1/*! For license information please see 40.3b363583.chunk.js.LICENSE.txt */ 2(this["webpackJsonpclassplus-web-react"]=this["webpackJsonpclassplus-web-react"]||[]).push([[40,42,44],{1040:function(e,t,r){e.exports=r.p+"static/media/SVGClose.71e6ac1a.svg"},1041:function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},1042:function(e,t,r){"use strict";var n=t,i=r(1050),o=r(1041),s=r(1326);n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t,r){var n,i=new Array(Math.max(e.bitLength(),r)+1);for(n=0;n<i.length;n+=1)i[n]=0;var o=1<<t+1,s=e.clone();for(n=0;n<i.length;n++){var a,u=s.andln(o-1);s.isOdd()?(a=u>(o>>1)-1?(o>>1)-u:u,s.isubn(a)):a=0,i[n]=a,s.iushrn(1)}return i},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),s=0===(1&u)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?u:-u,r[0].push(s),a=0===(1&l)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==u?l:-l,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},1046:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(1),i=r.n(n),o=r(47);function s(e){const{imageDetails:t,heading:r,subHeading:n,action:s,style:a,disabled:u}=e;return i.a.createElement(o.k,{centered:!0,style:{margin:"0 auto",...a}},r&&i.a.createElement(o.k.Row,{centered:!0,textAlign:"center"},i.a.createElement("img",{style:{...t.style,display:"block",margin:"0 auto"},src:t.src,alt:t.alt||"Empty Screen"})),r&&i.a.createElement(o.k.Row,null,i.a.createElement("h1",{style:{...r.style,color:"#000000",textAlign:"center"}},r.text)),n&&i.a.createElement(o.k.Row,{style:{padding:"0px"}},i.a.createElement("p",{style:{...n.style,height:"3em",width:"554px",color:"#524E4E",lineHeight:"1.5",textAlign:"center",margin:"0 auto"}},n.text)),s&&i.a.createElement(o.k.Row,{style:{marginTop:"2%"}},i.a.createElement(o.b,{disabled:u,basic:!0,color:u?"grey":"blue",onClick:s.handler},s.text)))}},1049:function(e,t,r){"use strict";var n=r(1041),i=r(1020);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=s(i)),r+=u(i.toString(16))}return r},t.zero2=a,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4===0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var l;l="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=l>>>0}return s},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+r+i;e[t]=s>>>
vendor: 5,273 bytes, line 2
20,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,s,a){var u=0,l=t;return u+=(l=l+n>>>0)<t?1:0,u+=(l=l+o>>>0)<o?1:0,e+r+i+s+(u+=(l=l+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,s,a,u,l){var c=0,h=t;return c+=(h=h+n>>>0)<t?1:0,c+=(h=h+o>>>0)<o?1:0,c+=(h=h+a>>>0)<a?1:0,e+r+i+s+u+(c+=(h=h+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,s,a,u,l){return t+n+o+a+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},1050:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1660).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,350 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1052:function(e,t,r){"use strict";var n=r(1629).Buffer,i=r(1304).Transform,o=r(1267).StringDecoder,s=r(1020),a=r(1151);function u(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(u,i),u.prototype.update=function(e,t,r){var n=a(e,t),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},u.prototype.setAutoPadding=function(){},u.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},u.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},u.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},u.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},u.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},u.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},u.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=u},1059:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1072:function(e,t,r){"use strict";(function(t,n){var i=r(1027).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;s<e;s+=65536)o.getRandomValues(r.slice(s,s+65536));else o.getRandomValues(r);if("function"===typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(251),r(252))},1073:function(e,t,r){"use strict";var n=r(1059).Buffer,i=r(1151);function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){e=i(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var u=s%n,l=Math.min(o-a,n-u),c=0;c<l;c++)r[u+c]=e[a+c];a+=l,(s+=l)%n===0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},1110:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(47),s=r(140),a=r(1028),u=r(459),l=r(1126),c=r.n(l),h=r(1143),d=r.n(h),f=r(67),p=r(38),m=r(2780);class g extends i.a.Component{constructor(e){super(e),this.getCourseLinkModal=()=>{let{t:e}=this.props;return i.a.createElement("div",null,i.a.createElement(o.m,{icon:"warning sign",content:e("components.custom.editDeleteModal.header","Batch cannot be removed."),className:"modalDiv"}),i.a.createElement(o.u.Content,{className:"modalDiv"},e("components.custom.content","This batch cannot be removed as it is linked to one of more online courses. Please unlink this batch from all the courses before removing.")),i.a.createElement(o.u.Actions,{style:{padding:"1rem"}},i.a.createElement(o.b,{primary:!0,onClick:this.handleClose,style:{float:"right",marginBottom:"1rem"}},e("components.custom.okay","Okay"))))},this.showCourseLinkModal=()=>{const{showCourseLinkModal:e}=this.props;return"function"===typeof e&&e()},this.getDeleteConfirmation=()=>{const{headerContent:e,modalContent:t,dropdownText:r="Remove",t:n}=this.props;return i.a.createElement("div",null,i.a.createElement(o.m,{icon:"warning sign",content:e,className:"modalDiv"}),i.a.createElement(o.u.Content,{className:"modalDiv"},t),i.a.createElement(o.u.Actions,{style:{padding:"1rem"}},i.a.createElement(o.b,{primary:!0,onClick:this.handleDelete,style:{float:"right",marginBottom:"1rem"}},r),i.a.createElement(o.b,{onClick:this.handleClose,style:{float:"right",marginBottom:"1rem"}},n("components.custom.editDeleteModal.close","Close"))))},this.state={modalOpen:!1},this.handleDelete=this.handleDelete.bind(this),this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}handleClose(){this.setState({modalOpen:!1}),this.props.cancelAction&&this.props.cancelAction()}handleOpen(e){"Remove Batch"===e&&Object(f.a)(p.W);const{permissions:t}=this.props,r=t&&t.ownerPremiumStatus;if(null==this.props.permissions)this.setState({modalOpen:!0});else if(!r)return this.props.showPremiumExpiryModal(!0);this.setState({modalOpen:!0})}async handleDelete(){let{dropdownText:e}=this.props;if(this.props.deleteEvent){"success"===(await this.props.deleteAction()).status&&(this.setState({modalOpen:!1}),this.props.resetOffset(),this.props.fetchEvents())}else"Remove Batch"===e&&Object(f.a)(p.U),this.setState({modalOpen:!1}),this.props.deleteAction()}render(){const{dropdownText:e="Remove",isDeleteTest:t,inactiveIcon:r,t:n}=this.props;return i.a.createElement(o.u,{onOpen:this.props.onOpen,trigger:i.a.createElement(o.h.Item,{onClick:this.handleOpen.bind(this,e),className:""},i.a.createElement("div",{className:"flexrow alignCenter"}," ",i.a.createElement("img",{src:r?d.a:c.a,alt:"SVGDelete",className:"mrighthalfrem"}),i.a.createElement("span",null," ",t?n("components.custom.editDeleteModal.remove","Remove"):e))),open:this.state.modalOpen,onClose:this.handleClose,size:"tiny"},this.showCourseLinkModal()&&this.getCourseLinkModal()||this.getDeleteConfirmation())}}t.a=Object(a.a)(Object(s.connect)(void 0,{showPremiumExpiryModal:u.c})(Object(m.a)()(g)))},1115:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function s(e){var t="function"===typeof Map?new Map:void 0;return(s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function a(e,t,r){return(a=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&l(i,r.prototype),i}).apply(null,arguments)}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=r(1187),d=r(1295),f=r(1555),p=r(1188),m=r(1297),g=r(1558),y=r(1560),b=r(1561),v=r(1298),w=r(1563),M=r(1299),x=r(1564),S=r(1565),_=S.justErrorsLogger,k=S.debugLogger,A=r(1567),j=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).isRestriction=!0,t}return o(t,e),t}(s(Error));"undefined"===typeof AggregateError&&(AggregateError=function(e){function t(t,r){var n;return(n=e.call(this,t)||this).errors=r,n}return o(t,e),t}(s(Error)));var E=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).isRestriction=!0,t}return o(t,e),t}(AggregateError),T=function(){function e(e){var t=this;this.defaultLocale={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",exceedsSize2:"%{backwardsCompat} %{size}",exceedsSize:"%{file} exceeds maximum allowed size of",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noNewAlreadyUploading:"Cannot add new files: already uploading",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},selectAllFilesFromFolderNamed:"Select all files from folder %{name}",unselectAllFilesFromFolderNamed:"Unselect all files from folder %{name}",selectFileNamed:"Select file %{name}",unselectFileNamed:"Unselect file %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:function(e){return e},onBeforeUpload:function(e){return e},store:y(),logger:_,infoTimeout:5e3};if(this.opts=n({},r,e,{restrictions:n({},r.restrictions,e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=k),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.plugins={}
2,this.getState=this.getState.bind(this),this.getPlugin=this.getPlugin.bind(this),this.setFileMeta=this.setFileMeta.bind(this),this.setFileState=this.setFileState.bind(this),this.log=this.log.bind(this),this.info=this.info.bind(this),this.hideInfo=this.hideInfo.bind(this),this.addFile=this.addFile.bind(this),this.removeFile=this.removeFile.bind(this),this.pauseResume=this.pauseResume.bind(this),this.validateRestrictions=this.validateRestrictions.bind(this),this.calculateProgress=p(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.updateOnlineStatus=this.updateOnlineStatus.bind(this),this.resetProgress=this.resetProgress.bind(this),this.pauseAll=this.pauseAll.bind(this),this.resumeAll=this.resumeAll.bind(this),this.retryAll=this.retryAll.bind(this),this.cancelAll=this.cancelAll.bind(this),this.retryUpload=this.retryUpload.bind(this),this.upload=this.upload.bind(this),this.emitter=d(),this.on=this.on.bind(this),this.off=this.off.bind(this),this.once=this.emitter.once.bind(this.emitter),this.emit=this.emitter.emit.bind(this.emitter),this.preProcessors=[],this.uploaders=[],this.postProcessors=[],this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:x(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:n({},this.opts.meta),info:{isHidden:!0,type:"info",message:""},recoveredState:null}),this.storeUnsubscribe=this.store.subscribe((function(e,r,n){t.emit("state-update",e,r,n),t.updateAll(r)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),this.addListeners()}var t,r,o,s=e.prototype;return s.on=function(e,t){return this.emitter.on(e,t),this},s.off=function(e,t){return this.emitter.off(e,t),this},s.updateAll=function(e){this.iteratePlugins((function(t){t.update(e)}))},s.setState=function(e){this.store.setState(e)},s.getState=function(){return this.store.getState()},s.setFileState=function(e,t){var r;if(!this.getState().files[e])throw new Error("Can\u2019t set state for "+e+" (the file could have been removed)");this.setState({files:n({},this.getState().files,(r={},r[e]=n({},this.getState().files[e],t),r))})},s.i18nInit=function(){this.translator=new h([this.defaultLocale,this.opts.locale]),this.locale=this.translator.locale,this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator)},s.setOptions=function(e){this.opts=n({},this.opts,e,{restrictions:n({},this.opts.restrictions,e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((function(e){e.setOptions()})),this.setState()},s.resetProgress=function(){var e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=n({},this.getState().files),r={};Object.keys(t).forEach((function(i){var o=n({},t[i]);o.progress=n({},o.progress,e),r[i]=o})),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")},s.addPreProcessor=function(e){this.preProcessors.push(e)},s.removePreProcessor=function(e){var t=this.preProcessors.indexOf(e);-1!==t&&this.preProcessors.splice(t,1)},s.addPostProcessor=function(e){this.postProcessors.push(e)},s.removePostProcessor=function(e){var t=this.postProcessors.indexOf(e);-1!==t&&this.postProcessors.splice(t,1)},s.addUploader=function(e){this.uploaders.push(e)},s.removeUploader=function(e){var t=this.uploaders.indexOf(e);-1!==t&&this.uploaders.splice(t,1)},s.setMeta=function(e){var t=n({},this.getState().meta,e),r=n({},this.getState().files);Object.keys(r).forEach((function(t){r[t]=n({},r[t],{meta:n({},r[t].meta,e)})})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})},s.setFileMeta=function(e,t){var r=n({},this.getState().files);if(r[e]){var i=n({},r[e].meta,t);r[e]=n({},r[e],{meta:i}),this.setState({files:r})}else this.log("Was trying to set metadata for a file that has been removed: ",e)},s.getFile=function(e){return this.getState().files[e]},s.getFiles=function(){var e=this.getState().files;return Object.keys(e).map((function(t){return e[t]}))},s.validateRestrictions=function(e,t){try{return this.checkRestrictions(e,t),{result:!0}}catch(r){return{result:!1,reason:r.message}}},s.checkRestrictions=function(e,t){void 0===t&&(t=this.getFiles());var r=this.opts.restrictions,n=r.maxFileSize,i=r.minFileSize,o=r.maxTotalFileSize,s=r.maxNumberOfFiles,a=r.allowedFileTypes;if(s&&t.length+1>s)throw new j(""+this.i18n("youCanOnlyUploadX",{smart_count:s}));if(a&&!a.some((function(t){return t.indexOf("/")>-1?!!e.type&&g(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()}))){var u=a.join(", ");throw new j(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&null!=e.size){var l=0;if(l+=e.size,t.forEach((function(e){l+=e.size})),l>o)throw new j(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:m(o),file:e.n
2ame}))}if(n&&null!=e.size&&e.size>n)throw new j(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:m(n),file:e.name}));if(i&&null!=e.size&&e.size<i)throw new j(this.i18n("inferiorSize",{size:m(i)}))},s.checkMinNumberOfFiles=function(e){var t=this.opts.restrictions.minNumberOfFiles;if(Object.keys(e).length<t)throw new j(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))},s.checkRequiredMetaFields=function(e){for(var t=this.opts.restrictions.requiredMetaFields,r=Object.prototype.hasOwnProperty,n=[],i=Object.keys(e),o=0;o<i.length;o++)for(var s=this.getFile(i[o]),a=0;a<t.length;a++)if(!r.call(s.meta,t[a])||""===s.meta[t[a]]){var u=new j(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:s.name}));n.push(u),this.showOrLogErrorAndThrow(u,{file:s,throwErr:!1})}if(n.length)throw new E(""+this.i18n("missingRequiredMetaField"),n)},s.showOrLogErrorAndThrow=function(e,t){var r=void 0===t?{}:t,n=r.showInformer,i=void 0===n||n,o=r.file,s=void 0===o?null:o,a=r.throwErr,u=void 0===a||a,l="object"===typeof e?e.message:e,c="object"===typeof e&&e.details?e.details:"",h=l;if(c&&(h+=" "+c),e.isRestriction?(this.log(h),this.emit("restriction-failed",s,e)):this.log(h,"error"),i&&this.info({message:l,details:c},"error",this.opts.infoTimeout),u)throw"object"===typeof e?e:new Error(e)},s.assertNewUploadAllowed=function(e){!1===this.getState().allowNewUpload&&this.showOrLogErrorAndThrow(new j(this.i18n("noNewAlreadyUploading")),{file:e})},s.checkAndCreateFileStateObject=function(e,t){var r=b(t),i=t;i.type=r;var o,s=this.opts.onBeforeFileAdded(i,e);!1===s&&this.showOrLogErrorAndThrow(new j("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,file:i}),"object"===typeof s&&s&&(i=s),o=i.name?i.name:"image"===r.split("/")[0]?r.split("/")[0]+"."+r.split("/")[1]:"noname";var a=v(o).extension,u=i.isRemote||!1,l=w(i);e[l]&&!e[l].isGhost&&this.showOrLogErrorAndThrow(new j(this.i18n("noDuplicates",{fileName:o})),{file:i});var c=i.meta||{};c.name=o,c.type=r;var h=isFinite(i.data.size)?i.data.size:null,d={source:i.source||"",id:l,name:o,extension:a||"",meta:n({},this.getState().meta,c),type:r,data:i.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:h,uploadComplete:!1,uploadStarted:null},size:h,isRemote:u,remote:i.remote||"",preview:i.preview};try{var f=Object.keys(e).map((function(t){return e[t]}));this.checkRestrictions(d,f)}catch(p){this.showOrLogErrorAndThrow(p,{file:d})}return d},s.startIfAutoProceed=function(){var e=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((function(){e.scheduledAutoProceed=null,e.upload().catch((function(t){t.isRestriction||e.log(t.stack||t.message||t)}))}),4))},s.addFile=function(e){var t;this.assertNewUploadAllowed(e);var r=this.getState().files,i=this.checkAndCreateFileStateObject(r,e);return r[i.id]&&r[i.id].isGhost&&(i=n({},r[i.id],{data:e.data,isGhost:!1}),this.log("Replaced the blob in the restored ghost file: "+i.name+", "+i.id)),this.setState({files:n({},r,(t={},t[i.id]=i,t))}),this.emit("file-added",i),this.emit("files-added",[i]),this.log("Added file: "+i.name+", "+i.id+", mime type: "+i.type),this.startIfAutoProceed(),i.id},s.addFiles=function(e){var t=this;this.assertNewUploadAllowed();for(var r=n({},this.getState().files),i=[],o=[],s=0;s<e.length;s++)try{var a=this.checkAndCreateFileStateObject(r,e[s]);r[a.id]&&r[a.id].isGhost&&(a=n({},r[a.id],{data:e[s].data,isGhost:!1}),this.log("Replaced blob in a ghost file: "+a.name+", "+a.id)),r[a.id]=a,i.push(a)}catch(l){l.isRestriction||o.push(l)}if(this.setState({files:r}),i.forEach((function(e){t.emit("file-added",e)})),this.emit("files-added",i),i.length>5?this.log("Added batch of "+i.length+" files"):Object.keys(i).forEac
2h((function(e){t.log("Added file: "+i[e].name+"\n id: "+i[e].id+"\n type: "+i[e].type)})),i.length>0&&this.startIfAutoProceed(),o.length>0){var u="Multiple errors occurred while adding files:\n";if(o.forEach((function(e){u+="\n * "+e.message})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:u},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(o,u);var l=new Error(u);throw l.errors=o,l}},s.removeFiles=function(e,t){var r=this,i=this.getState(),o=i.files,s=i.currentUploads,a=n({},o),u=n({},s),l=Object.create(null);function c(e){return void 0===l[e]}e.forEach((function(e){o[e]&&(l[e]=o[e],delete a[e])})),Object.keys(u).forEach((function(e){var t=s[e].fileIDs.filter(c);0!==t.length?u[e]=n({},s[e],{fileIDs:t}):delete u[e]}));var h={currentUploads:u,files:a};0===Object.keys(a).length&&(h.allowNewUpload=!0,h.error=null,h.recoveredState=null),this.setState(h),this.calculateTotalProgress();var d=Object.keys(l);d.forEach((function(e){r.emit("file-removed",l[e],t)})),d.length>5?this.log("Removed "+d.length+" files"):this.log("Removed files: "+d.join(", "))},s.removeFile=function(e,t){void 0===t&&(t=null),this.removeFiles([e],t)},s.pauseResume=function(e){if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete){var t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}},s.pauseAll=function(){var e=n({},this.getState().files);Object.keys(e).filter((function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted})).forEach((function(t){var r=n({},e[t],{isPaused:!0});e[t]=r})),this.setState({files:e}),this.emit("pause-all")},s.resumeAll=function(){var e=n({},this.getState().files);Object.keys(e).filter((function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted})).forEach((function(t){var r=n({},e[t],{isPaused:!1,error:null});e[t]=r})),this.setState({files:e}),this.emit("resume-all")},s.retryAll=function(){var e=n({},this.getState().files),t=Object.keys(e).filter((function(t){return e[t].error}));if(t.forEach((function(t){var r=n({},e[t],{isPaused:!1,error:null});e[t]=r})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});var r=this.createUpload(t,{forceAllowNewUpload:!0});return this.runUpload(r)},s.cancelAll=function(){this.emit("cancel-all");var e=this.getState().files,t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})},s.retryUpload=function(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);var t=this.createUpload([e],{forceAllowNewUpload:!0});return this.runUpload(t)},s.reset=function(){this.cancelAll()},s.logout=function(){this.iteratePlugins((function(e){e.provider&&e.provider.logout&&e.provider.logout()}))},s.calculateProgress=function(e,t){if(this.getFile(e.id)){var r=isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:n({},this.getFile(e.id).progress,{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: "+e.id)},s.calculateTotalProgress=function(){var e=this.getFiles().filter((function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess}));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});var t=e.filter((function(e){return null!=e.progress.bytesTotal})),r=e.filter((function(e){return null==e.progress.bytesTotal}));if(0!==t.length){var n=t.reduce((function(e,t){return e+t.progress.bytesTotal}),0),i=n/t.length;n+=i*r.length;var o=0;t.forEach((function(e){o+=e.progress.bytesUploaded})),r.forEach((function(e){o+=i*(e.progress.percentage||0)/100}));var s=0===n?0:Math.round(o/n*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}else{var a=100*e.length,u=r.reduce((function(e,t){return e+t.progress.percentage}),0),l=Math.round(u/a*100);this.setState({totalProgress:l})}},s.addListeners=function(){var e=this,t=function(t,r,n){var i=t.message||"Unknown error";t.details&&(i+=" "+t.details),e.setState({error:i}),null!=r&&"string"===typeof r.id&&e.setFileState(r.id,{error:i,response:n})};this.on("error",t),this.on("upload-error",(function(r,n,i){if(t(n,r,i),"object"===typeof n&&n.message){var o=new Error(n.message);o.details=n.message,n.details&&(o.details+=" "+n.details),o.message=e.i18n("failedToUpload",{file:r.name}),e.showOrLogErrorAndThrow(o,{throwErr:!1})}else e.showOrLogErrorAndThrow(n,{throwErr:!1})})),this.on("upload",(function(){e.setState({error:null})})),this.on("upload-started",(function(t){e.getFile(t.id)?e.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(function(t,r){if(e.getFile(t.id)){var i=e.getFile(t.id).progress;e.setFileState(t.id,{progress:n({},i,{postprocess:e.postProcessors.length>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal}),response:r,uploadURL:r.uploadURL,isPaused:!1}),null==t.size&&e.setFileState(t.id,{size:r.bytesUploaded||i.bytesTotal}),e.calculateTotalProgress()}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("preprocess-progress",(function(t,r){e.getFile(t.id)?e.setFileState(t.id,{progress:n({},e.getFile(t.id).progress,{preprocess:r})}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("preprocess-complete",(function(t){if(e.getFile(t.id)){var r=n({},e.getState().files);r[t.id]=n({},r[t.id],{progress:n({},r[t.id].progress)}),delete r[t.id].progress.preprocess,e.setState({files:r})}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("postprocess-progress",(function(t,r){e.getFile(t.id)?e.setFileState(t.id,{progress:n({},e.getState().files[t.id].progress,{postprocess:r})}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("postprocess-complete",(function(t){if(e.getFile(t.id)){var r=n({},e.getState().files);r[t.id]=n({},r[t.id],{progress:n({},r[t.id].progress)}),delete r[t.id].progress.postprocess,e.setState({files:r})}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("restored",(function(){e.calculateTotalProgress()})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",(function(){return e.updateOnlineStatus()})),window.addEventListener("offline",(function(){return e.updateOnlineStatus()})),setTimeout((function(){return e.updateOnlineStatus()}),3e3))},s.updateOnlineStatus=function(){"undefined"===typeof window.navigator.onLine||window.navigator.onLine?(this.emit
2("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},s.getID=function(){return this.opts.id},s.use=function(e,t){if("function"!==typeof e)throw new TypeError("Expected a plugin class, but got "+(null===e?"null":typeof e)+". Please verify that the plugin was imported and spelled correctly.");var r=new e(this,t),n=r.id;if(this.plugins[r.type]=this.plugins[r.type]||[],!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");var i=this.getPlugin(n);if(i){var o="Already found a plugin named '"+i.id+"'. Tried to use: '"+n+"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(o)}return e.VERSION&&this.log("Using "+n+" v"+e.VERSION),this.plugins[r.type].push(r),r.install(),this},s.getPlugin=function(e){var t=null;return this.iteratePlugins((function(r){if(r.id===e)return t=r,!1})),t},s.iteratePlugins=function(e){var t=this;Object.keys(this.plugins).forEach((function(r){t.plugins[r].forEach(e)}))},s.removePlugin=function(e){var t;this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();var r=this.plugins[e.type].slice(),i=M(r,(function(t){return t.id===e.id}));-1!==i&&(r.splice(i,1),this.plugins[e.type]=r);var o={plugins:n({},this.getState().plugins,(t={},t[e.id]=void 0,t))};this.setState(o)},s.close=function(){var e=this;this.log("Closing Uppy instance "+this.opts.id+": removing all files and uninstalling plugins"),this.reset(),this.storeUnsubscribe(),this.iteratePlugins((function(t){e.removePlugin(t)}))},s.info=function(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);var n="object"===typeof e;this.setState({info:{isHidden:!1,type:t,message:n?e.message:e,details:n?e.details:null}}),this.emit("info-visible"),clearTimeout(this.infoTimeoutID),this.infoTimeoutID=0!==r?setTimeout(this.hideInfo,r):void 0},s.hideInfo=function(){var e=n({},this.getState().info,{isHidden:!0});this.setState({info:e}),this.emit("info-hidden")},s.log=function(e,t){var r=this.opts.logger;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}},s.run=function(){return this.log("Calling run() is no longer necessary.","warning"),this},s.restore=function(e){return this.log('Core: attempting to restore upload "'+e+'"'),this.getState().currentUploads[e]?this.runUpload(e):(this.removeUpload(e),Promise.reject(new Error("Nonexistent upload")))},s.createUpload=function(e,t){var r;void 0===t&&(t={});var i=t.forceAllowNewUpload,o=void 0!==i&&i,s=this.getState(),a=s.allowNewUpload,u=s.currentUploads;if(!a&&!o)throw new Error("Cannot create a new upload: already uploading.");var l=f();return this.emit("upload",{id:l,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploads,currentUploads:n({},u,(r={},r[l]={fileIDs:e,step:0,result:{}},r))}),l},s.getUpload=function(e){return this.getState().currentUploads[e]},s.addResultData=function(e,t){var r;if(this.getUpload(e)){var i=this.getState().currentUploads,o=n({},i[e],{result:n({},i[e].result,t)});this.setState({currentUploads:n({},i,(r={},r[e]=o,r))})}else this.log("Not setting result for an upload that has been removed: "+e)},s.removeUpload=function(e){var t=n({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})},s.runUpload=function(e){var t=this,r=this.getState().currentUploads[e].step,i=[].concat(this.preProcessors,this.uploaders,this.postProcessors),o=Promise.resolve();return i.forEach((function(i,s){s<r||(o=o.then((function(){var r,o=t.getState().currentUploads,a=o[e];if(a){var u=n({},a,{step:s});return t.setState({currentUploads:n({},o,(r={},r[e]=u,r))}),i(u.fileIDs,e)}})).then((function(){return null})))})),o.catch((function(r){t.emit("error",r),t.removeUpload(e)})),o.then((function(){var r=t.getState().currentUploads[e];if(r){r.fileIDs.forEach((function(e){var r=t.getFile(e);r&&r.progress.postprocess&&t.emit("postprocess-complete",r)}));var n=r.fileIDs.map((function(e){return t.getFile(e)})),i=n.filter((function(e){return!e.error})),o=n.filter((function(e){return e.error}));t.addResultData(e,{successful:i,failed:o,uploadID:e})}})).then((function(){var r=t.getState().currentUploads;if(r[e]){var n=r[e].result;return t.emit("complete",n),t.removeUpload(e),n}})).then((function(r){return null==r&&t.log("Not setting result for an upload that has been removed: "+e),r}))},s.upload=function(){var e=this;this.plugins.uploader||this.log("No uploader type plugins are used","warning");var t=this.getState().files,r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"===typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then((function(){e.checkMinNumberOfFiles(t),e.checkRequiredMetaFields(t)})).catch((function(t){e.showOrLogErrorAndThrow(t)})).then((function(){var r=e.getState().currentUploads,n=Object.keys(r).reduce((function(e,t){return e.concat(r[t].fileIDs)}),[]),i=[];Object.keys(t).forEach((function(t){var r=e.getFile(t);
2r.progress.uploadStarted||-1!==n.indexOf(t)||i.push(r.id)}));var o=e.createUpload(i);return e.runUpload(o)})).catch((function(t){e.showOrLogErrorAndThrow(t,{showInformer:!1})})))},t=e,(r=[{key:"state",get:function(){return this.getState()}}])&&i(t.prototype,r),o&&i(t,o),e}();T.VERSION="1.20.1",e.exports=function(e){return new T(e)},e.exports.Uppy=T,e.exports.Plugin=A,e.exports.debugLogger=k},1116:function(e,t,r){"use strict";var n=r(1020),i=r(1192),o=r(1193),s=r(1194),a=r(1052);function u(e){a.call(this,"digest"),this._hash=e}n(u,a),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(s(e))}},1117:function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r(367).Buffer)},1118:function(e,t,r){"use strict";var n=r(1049),i=r(1041);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},1119:function(e,t,r){var n=t;n.bignum=r(1679),n.define=r(1681).define,n.base=r(1120),n.constants=r(1332),n.decoders=r(1686),n.encoders=r(1688)},1120:function(e,t,r){var n=t;n.Reporter=r(1683).Reporter,n.DecoderBuffer=r(1331).DecoderBuffer,n.EncoderBuffer=r(1331).EncoderBuffer,n.Node=r(1684)},1126:function(e,t,r){e.exports=r.p+"static/media/deleteBatch.dea37fba.svg"},1136:function(e,t,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&y(e,"error",t,r)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,s,a;if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"===typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=g(u,l);for(r=0;r<l;++r)o(c[r],this,t)}return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,s;if(l(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
vendor: 9,937 bytes, line 2
2("removeListener",e,r.listener||t));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},1137:function(e,t,r){e.exports=r.p+"static/media/emptyBatch.98a93259.svg"},1143:function(e,t,r){e.exports=r.p+"static/media/inactiveIcon.5d594c8c.svg"},1151:function(e,t,r){"use strict";var n=r(1617).Buffer,i=r(1618),o=r(1619),s=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(t){return!1}},a="undefined"!==typeof Uint8Array,u="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,l=u&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!("isBuffer"in e)?n.from(e):e;if("string"===typeof e)return n.from(e,t);if(u&&s(e)){if(0===e.byteLength)return n.alloc(0);if(l){var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),c=n.from(o);if(c.length===e.byteLength)return c}if(a&&e instanceof Uint8Array)return n.from(e);var h=i(e);if(h)for(var d=0;d<e.length;d+=1){var f=e[d];if("number"!==typeof f||f<0||f>255||~~f!==f)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||n.isBuffer(e)&&e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},1152:function(e,t,r){var n=r(1027).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function s(e,t,r,n,i){for(var o,s,a,u,l=r[0],c=r[1],h=r[2],d=r[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],y=4,b=1;b<i;b++)o=l[f>>>24]^c[p>>>16&255]^h[m>>>8&255]^d[255&g]^t[y++],s=l[p>>>24]^c[m>>>16&255]^h[g>>>8&255]^d[255&f]^t[y++],a=l[m>>>24]^c[g>>>16&255]^h[f>>>8&255]^d[255&p]^t[y++],u=l[g>>>24]^c[f>>>16&255]^h[p>>>8&255]^d[255&m]^t[y++],f=o,p=s,m=a,g=u;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[y++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^t[y++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^t[y++],u=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[y++],[o>>>=0,s>>>=0,a>>>=0,u>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var l=a^a<<1^a<<2^a<<3^a<<4;l=l>>>8^255&l^99,r[s]=l,n[l]=s;var c=e[s],h=e[c],d=e[h],f=257*e[l]^16843008*l;i[0][s]=f<<24|f>>>8,i[1][s]=f<<16|f>>>16,i[2][s]=f<<8|f>>>24,i[3][s]=f,f=16843009*d^65537*h^257*c^16843008*s,o[0][l]=f<<24|f>>>8,o[1][l]=f<<16|f>>>16,o[2][l]=f<<8|f>>>24,o[3][l]=f,0===s?s=a=1:(s=c^e[e[e[d^c]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var s=i[o-1];o%t===0?(s=s<<8|s>>>24,s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s],s^=a[o/t|0]<<24):t>6&&o%t===4&&(s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s]),i[o]=i[o-t]^s}for(var l=[],c=0;c<n;c++){var h=n-c,d=i[h-(c%4?0:4)];l[c]=c<4||h<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=l},1153:function(e,t,r){var n=r(1027).Buffer,i=r(1192);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,a=n.alloc(s),u=n.alloc(o||0),l=n.alloc(0);s>0||o>0;){var c=new i;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var h=0;if(s>0){var d=a.length-s;h=Math.min(s,l.length),l.copy(a,d,0,h),s-=h}if(h<l.length&&o>0){var f=u.length-o,p=Math.min(o,l.length-h);l.copy(u,f,h,h+p),o-=p}}return l.fill(0),{key:a,iv:u}}},1154:function(e,t,r){"use strict";var n=r(1050),i=r(1042),o=i.getNAF,s=i.getJSF,a=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var s,u,l=[];for(s=0;s<n.length;s+=r.step){u=0;for(var c=s+r.step-1;c>=s;c--)u=(u<<1)+n[c];l.push(u)}for(var h=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(s=0;s<l.length;s++)(u=l[s])===f?d=d.mixedAdd(r.points[s]):u===-f&&(d=d.mixedAdd(r.points[s].neg()));h=h.add(d)}return h.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(t,r,this._bitLength),u=this.jpoint(null,null,null),l=s.length-1;l>=0;l--){for(var c=0;l>=0&&0===s[l];l--)c++;if(l>=0&&c++,u=u.dblp(c),l<0)break;var h=s[l];a(0!==h),u="affine"===e.type?h>0?u.mixedAdd(i[h-1>>1]):u.mixedAdd(i[-h-1>>1].neg()):h>0?u.add(i[h-1>>1]):u.add(i[-h-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var a,u,l,c=this._wnafT1,h=this._wnafT2,d=this._wnafT3,f=0;for(a=0;a<n;a++){var p=(l=t[a])._getNAFPoints(e);c[a]=p.wnd,h[a]=p.points}for(a=n-1;a>=1;a-=2){var m=a-1,g=a;if(1===c[m]&&1===c[g]){var y=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(y[1]=t[m].add(t[g]),y[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[g]),y[2]=t[m].add(t[g].neg())):(y[1]=t[m].toJ().mixedAdd(t[g]),y[2]=t[m].toJ().mixedAdd(t[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[m],r[g]);for(f=Math.max(v[0].length,f),d[m]=new Array(f),d[g]=new Array(f),u=0;u<f;u++){var w=0|v[0][u],M=0|v[1][u];d[m][u]=b[3*(w+1)+(M+1)],d[g][u]=0,h[m]=y}}else d[m]=o(r[m],c[m],this._bitLength),d[g]=o(r[g],c[g],this._bitLength),f=Math.max(d[m].length,f),f=Math.max(d[g].length,f)}var x=this.jpoint(null,null,null),S=this._wnafT4;for(a=f;a>=0;a--){for(var _=0;a>=0;){var k=!0;for(u=0;u<n;u++)S[u]=0|d[u][a],0!==S[u]&&(k=!1);if(!k)break;_++,a--}if(a>=0&&_++,x=x.dblp(_),a<0)break;for(u=0;u<n;u++){var A=S[u];0!==A&&(A>0?l=h[u][A-1>>1]:A<0&&(l=h[u][-A-1>>1].neg()),x="affine"===l.type?x.mixedAdd(l):x.add(l))}}for(a=0;a<n;a++)h[a]=null;return i?x:x.toP()},u.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r)return 6===e[0]?a(e[e.length-1]%2===0):7===e[0]&&a(e[e.length-1]%2===1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)}
2,l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},1155:function(e,t,r){"use strict";var n=r(1678),i=r(1691),o=r(1692),s=r(1197),a=r(1311).pbkdf2Sync,u=r(1335).Buffer;function l(e){var t;"object"!==typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=u.from(e));var r,l,c=o(e,t),h=c.tag,d=c.data;switch(h){case"CERTIFICATE":l=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=n.PublicKey.decode(d,"der")),r=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=n.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=a(t,r,n,h,"sha1"),f=s.createDecipheriv(o,d,l),p=[];return p.push(f.update(c)),p.push(f.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(l=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:n.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=n.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}l.signature=n.signature,e.exports=l},1182:function(e,t,r){e.exports=r.p+"static/media/previous.abd18af3.svg"},1187:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=r(1554);e.exports=function(){function e(e){var t=this;this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(e)?e.forEach((function(e){return t._apply(e)})):this._apply(e)}var t=e.prototype;return t._apply=function(e){if(e&&e.strings){var t=this.locale;this.locale=n({},t,{strings:n({},t.strings,e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}},t.interpolate=function(e,t){var r=String.prototype,n=r.split,o=r.replace,s=/\$/g,a=[e];for(var u in t)if("_"!==u&&i(t,u)){var l=t[u];"string"===typeof l&&(l=o.call(t[u],s,"$$$$")),a=c(a,new RegExp("%\\{"+u+"\\}","g"),l)}return a;function c(e,t,r){var i=[];return e.forEach((function(e){if("string"!==typeof e)return i.push(e);n.call(e,t).forEach((function(e,t,n){""!==e&&i.push(e),t<n.length-1&&i.push(r)}))}
2)),i}},t.translate=function(e,t){return this.translateArray(e,t).join("")},t.translateArray=function(e,t){if(!i(this.locale.strings,e))throw new Error("missing string: "+e);var r=this.locale.strings[e];if("object"===typeof r){if(t&&"undefined"!==typeof t.smart_count){var n=this.locale.pluralize(t.smart_count);return this.interpolate(r[n],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return this.interpolate(r,t)},e}()},1188:function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=a||u||Function("return this")(),c=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(e,t,r){var n,i,o,s,a,u,l=0,c=!1,p=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=n,o=i;return n=i=void 0,l=t,s=e.apply(o,r)}function v(e){return l=e,a=setTimeout(M,t),c?b(e):s}function w(e){var r=e-u;return void 0===u||r>=t||r<0||p&&e-l>=o}function M(){var e=f();if(w(e))return x(e);a=setTimeout(M,function(e){var r=t-(e-u);return p?d(r,o-(e-l)):r}(e))}function x(e){return a=void 0,y&&n?b(e):(n=i=void 0,s)}function S(){var e=f(),r=w(e);if(n=arguments,i=this,u=e,r){if(void 0===a)return v(u);if(p)return a=setTimeout(M,t),b(u)}return void 0===a&&(a=setTimeout(M,t)),s}return t=g(t)||0,m(r)&&(c=!!r.leading,o=(p="maxWait"in r)?h(g(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=u=i=a=void 0},S.flush=function(){return void 0===a?s:x(f())},S}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var a=i.test(e);return a||o.test(e)?s(e.slice(2),a?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),p(e,t,{leading:n,maxWait:t,trailing:i})}}).call(this,r(251))},1189:function(e,t,r){"use strict";function n(){}r.r(t),r.d(t,"h",(function(){return a})),r.d(t,"createElement",(function(){return a})),r.d(t,"cloneElement",(function(){return c})),r.d(t,"Component",(function(){return N})),r.d(t,"render",(function(){return D})),r.d(t,"rerender",(function(){return p})),r.d(t,"options",(function(){return i}));var i={},o=[],s=[];function a(e,t){var r,a,u,l,c=s;for(l=arguments.length;l-- >2;)o.push(arguments[l]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((a=o.pop())&&void 0!==a.pop)for(l=a.length;l--;)o.push(a[l]);else"boolean"===typeof a&&(a=null),(u="function"!==typeof e)&&(null==a?a="":"number"===typeof a?a=String(a):"string"!==typeof a&&(u=!1)),u&&r?c[c.length-1]+=a:c===s?c=[a]:c.push(a),r=u;var h=new n;return h.nodeName=e,h.children=c,h.attributes=null==t?void 0:t,h.key=null==t?void 0:t.key,void 0!==i.vnode&&i.vnode(h),h}function u(e,t){for(var r in t)e[r]=t[r];return e}var l="function"==typeof Promise?Promise.resolve().then.bind(Prom
2ise.resolve()):setTimeout;function c(e,t){return a(e.nodeName,u(u({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function f(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(i.debounceRendering||l)(p)}function p(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&B(e)}function m(e,t,r){return"string"===typeof t||"number"===typeof t?void 0!==e.splitText:"string"===typeof t.nodeName?!e._componentConstructor&&g(e,t.nodeName):r||e._componentConstructor===t.nodeName}function g(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){var t=u({},e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(void 0!==r)for(var n in r)void 0===t[n]&&(t[n]=r[n]);return t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r,n,i){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)r&&r(null),n&&n(e);else if("class"!==t||i)if("style"===t){if(n&&"string"!==typeof n&&"string"!==typeof r||(e.style.cssText=n||""),n&&"object"===typeof n){if("string"!==typeof r)for(var o in r)o in n||(e.style[o]="");for(var o in n)e.style[o]="number"===typeof n[o]&&!1===h.test(o)?n[o]+"px":n[o]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?r||e.addEventListener(t,w,s):e.removeEventListener(t,w,s),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!i&&t in e)!function(e,t,r){try{e[t]=r}catch(n){}}(e,t,null==n?"":n),null!=n&&!1!==n||e.removeAttribute(t);else{var a=i&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!==typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function w(e){return this._listeners[e.type](i.event&&i.event(e)||e)}var M=[],x=0,S=!1,_=!1;function k(){for(var e;e=M.pop();)i.afterMount&&i.afterMount(e),e.componentDidMount&&e.componentDidMount()}function A(e,t,r,n,i,o){x++||(S=null!=i&&void 0!==i.ownerSVGElement,_=null!=e&&!("__preactattr_"in e));var s=j(e,t,r,n,o);return i&&s.parentNode!==i&&i.appendChild(s),--x||(_=!1,o||k()),s}function j(e,t,r,n,i){var o=e,s=S;if(null!=t&&"boolean"!==typeof t||(t=""),"string"===typeof t||"number"===typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||i)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),E(e,!0))),o.__preactattr_=!0,o;var a=t.nodeName;if("function"===typeof a)return function(e,t,r,n){var i=e&&e._component,o=i,s=e,a=i&&e._componentConstructor===t.nodeName,u=a,l=y(t);for(;i&&!u&&(i=i._parentComponent);)u=i.constructor===t.nodeName;i&&u&&(!n||i._component)?(I(i,l,3,r,n),e=i.base):(o&&!a&&(P(o),e=s=null),i=O(t.nodeName,l,r),e&&!i.nextBase&&(i.nextBase=e,s=null),I(i,l,1,r,n),e=i.base,s&&e!==s&&(s._component=null,E(s,!1)));return e}(e,t,r,n);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!g(e,a))&&(o=function(e,t){var r=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return r.normalizedNodeName=e,r}(a,S),e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),E(e,!0)}var u=o.firstChild,l=o.__preactattr_,c=t.children;if(null==l){l=o.__preactattr_={};for(var h=o.attributes,d=h.length;d--;)l[h[d].name]=h[d].value}return!_&&c&&1===c.length&&"string"===typeof c[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=c[0]&&(u.nodeValue=c[0]):(c&&c.length||null!=u)&&function(e,t,r,n,i){var o,s,a,u,l,c=e.childNodes,h=[],d={},f=0,p=0,g=c.length,y=0,v=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var M=c[w],x=M.__preactattr_;null!=(S=v&&x?M._component?M._component.__key:x.key:null)?(f++,d[S]=M):(x||(void 0!==M.splitText?!i||M.nodeValue.trim():i))&&(h[y++]=M)}if(0!==v)for(w=0;w<v;w++){var S;if(u=t[w],l=null,null!=(S=u.key))f&&void 0!==d[S]&&(l=d[S],d[S]=void 0,f--);else if(!l&&p<y)for(o=p;o<y;o++)if(void 0!==h[o]&&m(s=h[o],u,i)){l=s,h[o]=void 0,o===y-1&&y--,o===p&&p++;break}l=j(l,u,r,n),a=c[w],l&&l!==e&&l!==a&&(null==a?e.appendChild(l):l===a.nextSibling?b(a):e.insertBefore(l,a))}if(f)for(var w in d)void 0!==d[w]&&E(d[w],!1);for(;p<=y;)void 0!==(l=h[y--])&&E(l,!1)}(o,c,r,n,_||null!=l.dangerouslySetInnerHTML),function(e,t,r){var n;for(n in r)t&&null!=t[n]||null==r[n]||v(e,n,r[n],r[n]=void 0,S);for(n in t)"children"===n||"innerHTML"===n||n in r&&t[n]===("value"===n||"checked"===n?e[n]:r[n])||v(e,n,r[n],r[n]=t[n],S)}(o,t.attributes,l),S=s,o}function E(e,t){var r=e._component;r?P(r):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||b(e),T(e))}function T(e){for(e=e.lastChild;e;){var t=e.previousSibling;E(e,!0),e=t}}var C={};function O(e,t,r){var n,i=C[e.name];if(e.prototype&&e.prototype.render?(n=new e(t,r),N.call(n,t,r)):((n=new N(t,r)).constructor=e,n.render=R),i)for(var o=i.length;o--;)if(i[o].constructor===e){n.nextBase=i[o].nextBase,i.splice(o,1);break}return n}function R(e,t,r){return this.constructor(e,r)}function I(e,t,r,n,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==r&&(1!==r&&!1===i.syncComponentUpdates&&e.base?f(e):B(e,1,o)),e.__ref&&e.__ref(e))}function B(e,t,r,n){if(!e._disable){var o,s,a,l=e.props,c=e.state,h=e.context,d=e.prevProps||l,f=e.prevState||c,p=e.prevContext||h,m=e.base,g=e.nextBase,b=m||g,v=e._component,w=!1;if(m&&(e.props=d,e.state=f,e.context=p,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,h)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,h),e.props=l,e.state=c,e.context=h),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){o=e.render(l,c,h),e.getChildContext&&(h=u(u({},h),e.getChildContext()));var S,_,j=o&&o.nodeName;if("function"===typeof j){var T=y(o);(s=v)&&s.constructor===j&&T.key==s.__key?I(s,T,1,h,!1):(S=s,e._component=s=O(j,T,h),s.nextBase=s.nextBase||g,s._parentComponent=e,I(s,T,0,h,!1),B(s,1,r,!0)),_=s.base}else a=b,(S=v)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),_=A(a,o,h,r||!m,b&&b.parentNode,!0));
2if(b&&_!==b&&s!==v){var C=b.parentNode;C&&_!==C&&(C.replaceChild(_,b),S||(b._component=null,E(b,!1)))}if(S&&P(S),e.base=_,_&&!n){for(var R=e,N=e;N=N._parentComponent;)(R=N).base=_;_._component=R,_._componentConstructor=R.constructor}}if(!m||r?M.unshift(e):w||(e.componentDidUpdate&&e.componentDidUpdate(d,f,p),i.afterUpdate&&i.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||n||k()}}function P(e){i.beforeUnmount&&i.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?P(r):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,b(t),function(e){var t=e.constructor.name;(C[t]||(C[t]=[])).push(e)}(e),T(t)),e.__ref&&e.__ref(null)}function N(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function D(e,t,r){return A(r,e,{},!1,t,!1)}u(N.prototype,{setState:function(e,t){var r=this.state;this.prevState||(this.prevState=u({},r)),u(r,"function"===typeof e?e(r,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),f(this)}
2,forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),B(this,2)},render:function(){}});var U={h:a,createElement:a,cloneElement:c,Component:N,render:D,rerender:p,options:i};t.default=U},1190:function(e,t,r){"use strict";var n,i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(1587),u=r(1588);e.exports=(i=n=function(){function e(e,t){this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}var t,r,n,i=e.prototype;return i.headers=function(){var e=this.opts.companionHeaders||this.opts.serverHeaders||{};return Promise.resolve(o({},this.defaultHeaders,e))},i._getPostResponseFunc=function(e){var t=this;return function(r){return e?r:t.onReceiveResponse(r)}},i.onReceiveResponse=function(e){var t,r=this.uppy.getState().companion||{},n=this.opts.companionUrl,i=e.headers;i.has("i-am")&&i.get("i-am")!==r[n]&&this.uppy.setState({companion:o({},r,(t={},t[n]=i.get("i-am"),t))});return e},i._getUrl=function(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e},i._json=function(e){if(401===e.status)throw new a;if(e.status<200||e.status>300){var t="Failed request with status: "+e.status+". "+e.statusText;return e.json().then((function(e){throw t=e.message?t+" message: "+e.message:t,t=e.requestId?t+" request-Id: "+e.requestId:t,new Error(t)})).catch((function(){throw new Error(t)}))}return e.json()},i.preflight=function(e){var t=this;return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(this._getUrl(e),{method:"OPTIONS"}).then((function(e){return e.headers.has("access-control-allow-headers")&&(t.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((function(e){return e.trim().toLowerCase()}))),t.preflightDone=!0,t.allowedHeaders.slice()})).catch((function(e){return t.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),t.preflightDone=!0,t.allowedHeaders.slice()}))},i.preflightAndHeaders=function(e){var t=this;return Promise.all([this.preflight(e),this.headers()]).then((function(e){var r=e[0],n=e[1];return Object.keys(n).forEach((function(e){-1===r.indexOf(e.toLowerCase())&&(t.uppy.log("[CompanionClient] excluding unallowed header "+e),delete n[e])})),n}))},i.get=function(e,t){var r=this;return this.preflightAndHeaders(e).then((function(t){return u(r._getUrl(e),{method:"get",headers:t,credentials:r.opts.companionCookiesRule||"same-origin"})})).then(this._getPostResponseFunc(t)).then((function(e){return r._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not get "+r._getUrl(e)+". "+t.message),Promise.reject(t)}))},i.post=function(e,t,r){var n=this;return this.preflightAndHeaders(e).then((function(r){return u(n._getUrl(e),{method:"post",headers:r,credentials:n.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})})).then(this._getPostResponseFunc(r)).then((function(e){return n._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not post "+n._getUrl(e)+". "+t.message),Promise.reject(t)}))},i.delete=function(e,t,r){var n=this;return this.preflightAndHeaders(e).then((function(r){return u(n.hostname+"/"+e,{method:"delete",headers:r,credentials:n.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})})).then(this._getPostResponseFunc(r)).then((function(e){return n._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not delete "+n._getUrl(e)+". "+t.message),Promise.reject(t)}))},t=e,(r=[{key:"hostname",get:function(){var e=this.uppy.getState().companion,t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}},{key:"defaultHeaders",get:function(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+e.VERSION}}}])&&s(t.prototype,r),n&&s(t,n),e}(),n.VERSION="1.10.2",i)},1191:function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(1072),t.createHash=t.Hash=r(1116),t.createHmac=t.Hmac=r(1308);var n=r(1631),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var s=r(1311);t.pbkdf2=s.pbkdf2,t.pbkdf2Sync=s.pbkdf2Sync;var a=r(1633);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var u=r(1648);t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var l=r(1655);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=r(1694);var c=r(1697);t.publicEncrypt=c.publicEncrypt,t.privateEncrypt=c.privateEncrypt,t.publicDecrypt=c.publicDecrypt,t.privateDecrypt=c.privateDecrypt;var h=r(1701);t.randomFill=h.randomFill,t.randomFillSync=h.randomFillSync,t.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},1192:function(e,t,r){"use strict";var n=r(1020),i=r(1607),o=r(1027).Buffer,s=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function l(e,t,r,n,i,o,s){return u(e+(t&r|~t&n)+i+o|0,s)+t|0}function c(e,t,r,n,i,o,s){return u(e+(t&n|r&~n)+i+o|0,s)+t|0}function h(e,t,r,n,i,o,s){return u(e+(t^r^n)+i+o|0,s)+t|0}function d(e,t,r,n,i,o,s){return u(e+(r^(t|~n))+i+o|0,s)+t|0}n(a,i),a.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=l(r,n,i,o,e[0],3614090360,7),o=l(o,r,n,i,e[1],3905402710,12),i=l(i,o,r,n,e[2],606105819,17),n=l(n,i,o,r,e[3],3250441966,22),r=l(r,n,i,o,e[4],4118548399,7),o=l(o,r,n,i,e[5],1200080426,12),i=l(i,o,r,n,e[6],2821735955,17),n=l(n,i,o,r,e[7],4249261313,22),r=l(r,n,i,o,e[8],1770035416,7),o=l(o,r,n,i,e[9],2336552879,12),i=l(i,o,r,n,e[10],4294925233,17),n=l(n,i,o,r,e[11],2304563134,22),r=l(r,n,i,o,e[12],1804603682,7),o=l(o,r,n,i,e[13],4254626195,12),i=l(i,o,r,n,e[14],2792965006,17),r=c(r,n=l(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,r,n,i,e[8],2272392833,11),i=h(i,o,r,n,e[11],1839030562,16),n=h(n,i,o,r,e[14],4259657740,23),r=h(r,n,i,o,e[1],2763975236,4),o=h(o,r,n,i,e[4],1272893353,11),i=h(i,o,r,n,e[7],4139469664,16),n=h(n,i,o,r,e[10],3200236656,23),r=h(r,n,i,o,e[13],681279174,4),o=h(o,r,n,i,e[0],3936430074,11),i=h(i,o,r,n,e[3],3572445317,16),n=h(n,i,o,r,e[6],76029189,23),r=h(r,n,i,o,e[9],3654602809,4),o=h(o,r,n,i,e[12],3873151461,11),i=h(i,o,r,n,e[15],530742520,16),r=d(r,n=h(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r
vendor: 19,369 bytes, line 2
2=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},1193:function(e,t,r){"use strict";var n=r(367).Buffer,i=r(1020),o=r(1615),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(e,t){return e<<t|e>>>32-t}function p(e,t,r,n,i,o,s,a){return f(e+(t^r^n)+o+s|0,a)+i|0}function m(e,t,r,n,i,o,s,a){return f(e+(t&r|~t&n)+o+s|0,a)+i|0}function g(e,t,r,n,i,o,s,a){return f(e+((t|~r)^n)+o+s|0,a)+i|0}function y(e,t,r,n,i,o,s,a){return f(e+(t&n|r&~n)+o+s|0,a)+i|0}function b(e,t,r,n,i,o,s,a){return f(e+(t^(r|~n))+o+s|0,a)+i|0}function v(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}i(v,o),v.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,v=0|this._e,w=0|this._a,M=0|this._b,x=0|this._c,S=0|this._d,_=0|this._e,k=0;k<80;k+=1){var A,j;k<16?(A=p(r,n,i,o,v,e[a[k]],h[0],l[k]),j=b(w,M,x,S,_,e[u[k]],d[0],c[k])):k<32?(A=m(r,n,i,o,v,e[a[k]],h[1],l[k]),j=y(w,M,x,S,_,e[u[k]],d[1],c[k])):k<48?(A=g(r,n,i,o,v,e[a[k]],h[2],l[k]),j=g(w,M,x,S,_,e[u[k]],d[2],c[k])):k<64?(A=y(r,n,i,o,v,e[a[k]],h[3],l[k]),j=m(w,M,x,S,_,e[u[k]],d[3],c[k])):(A=b(r,n,i,o,v,e[a[k]],h[4],l[k]),j=p(w,M,x,S,_,e[u[k]],d[4],c[k])),r=v,v=o,o=f(i,10),i=n,n=A,w=_,_=S,S=f(x,10),x=M,M=j}var E=this._b+i+S|0;this._b=this._c+o+_|0,this._c=this._d+v+w|0,this._d=this._e+r+M|0,this._e=this._a+n+x|0,this._a=E},v.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=v},1194:function(e,t,r){"use strict";e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=r(1625),e.exports.sha1=r(1626),e.exports.sha224=r(1627),e.exports.sha256=r(1306),e.exports.sha384=r(1628),e.exports.sha512=r(1307)},1195:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1196:function(e,t,r){"use strict";var n=r(1041);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1197:function(e,t,r){var n=r(1638),i=r(1646),o=r(1320);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},1198:function(e,t,r){var n={ECB:r(1639),CBC:r(1640),CFB:r(1641),CFB8:r(1642),CFB1:r(1643),OFB:r(1644),CTR:r(1318),GCM:r(1318)},i=r(1320);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},1199:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(1652);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(s){}},1200:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1201:function(e,t,r){"use strict";var n=r(1202),i=r(1072),o=r(1658).Buffer;function s(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var r=function(e){var t=s(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),a=new n(e).mul(r.blinder).umod(t.modulus),u=a.toRed(n.mont(t.prime1)),l=a.toRed(n.mont(t.prime2)),c=t.coefficient,h=t.prime1,d=t.prime2,f=u.redPow(t.exponent1).fromRed(),p=l.redPow(t.exponent2).fromRed(),m=f.isub(p).imul(c).umod(h).imul(d);return p.iadd(m).imul(r.unblinder).umod(t.modulus).toArrayLike(o,"be",i)}a.getr=s,e.exports=a},1202:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1657).Buffer}catch(E){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),u=t;u<a;u++){var l=e.charCodeAt(u)-48;o*=i,s=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&s<i,"Invalid character"),o+=s}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)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")]=h}catch(E){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(c).toString(e);r=(h=h.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,229 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,803 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function M(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function j(e){A.call(this,e),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 e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},M.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},M.prototype.split=function(e,t){e.iushrn(this.n,0,t)},M.prototype.imulK=function(e){return e.imul(this.k)},i(x,M),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,M),i(_,M),i(k,M),k.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new S;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
vendor: 6,096 bytes, line 2
2u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new j(e)},i(j,A),j.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},j.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},j.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},j.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},j.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1203:function(e,t,r){"use strict";var n=t;n.version=r(1659).version,n.utils=r(1042),n.rand=r(1199),n.curve=r(1327),n.curves=r(1204),n.ec=r(1671),n.eddsa=r(1675)},1204:function(e,t,r){"use strict";var n,i=t,o=r(1205),s=r(1327),a=r(1042).assert;function u(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(1670)}catch(c){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 9,353 bytes, line 2
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},1205:function(e,t,r){var n=t;n.utils=r(1049),n.common=r(1118),n.sha=r(1664),n.ripemd=r(1668),n.hmac=r(1669),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1206:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1699).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1227:function(e,t,r){e.exports=r.p+"static/media/search.34766a00.svg"},1245:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF6SURBVHgBjZI9SMNAFMff3aWItUKGQhHxC7W4+bG6HNLiKs62jYNzK4LgZIODg4ir4GBsndVVq5DBvR3FInZxKBYJtHQxl/MutSX91DeEdy//3+XlvT+CjqD5DZX4AxQBXpJnDk6B1WumuXxneXXIe4i+xZOcQ1qo1TYRgpKoG4/zGb0LjL4mLjniGgwI8d54mstuyxzLR6QYP/wLcr/CkRZ5iaXcnL5rqo85edHKdC9xSAnCproO2a9bqDl1WbLsGp7BhNm0HzSC/aCPJWE1sNKEZIjh2RQj1piejNmhSQj5gi3odPwAAsQPex/H7S2LiWNvYXF4Ac4njtwL9kM7Laj8XenqRuHEKSDe4G+sBwFNuXDZrvSF5G4VRhSTMMdCv7s7KV8I8SfcV597QxxKrK6Y7h7XirEUBnQG/wtdGCHtMcCWwRFODCJEV1e5cEaTeWs4ufC1LOiyFej6JxA+5btNyL2kU0TzmkpGbdpckxweqyrC5EabyX8AJKeXCpbFFfoAAAAASUVORK5CYII="},1246:function(e,t,r){"use strict";var n,i,o=Function.prototype.toString,s="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof s&&"function"===typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s((function(){throw 42}),null,n)}catch(m){m!==i&&(s=null)}else s=null;var a=/^\s*class\b/,u=function(e){try{var t=o.call(e);return a.test(t)}catch(r){return!1}},l=function(e){try{return!u(e)&&(o.call(e),!0)}catch(t){return!1}},c=Object.prototype.toString,h="function"===typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(f=function(e){if((d||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=s?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{s(e,null,n)}catch(t){if(t!==i)return!1}return!u(e)&&l(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(h)return l(e);if(u(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},1247:function(e,t,r){"use strict";var n=r(1285);e.exports=function(){return n()&&!!Symbol.toStringTag}},1289:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(14);t.a=e=>class extends i.a.Component{constructor(){super(...arguments),this.state={Component:null}}componentDidMount(){e.then(e=>this.setState({Component:e.default}))}render(){return this.state.Component?i.a.createElement(this.state.Component,this.props):i.a.createElement("div",null,o.a.t("components.hoc.asyncComponent.load","Loading..."))}}},1295:function(e,t){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,i,o,s,a){var u=function(e){var r=t[e]?t[e]:[],n=e.indexOf(":"),i=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var u=o[s];if("*"===u&&(r=r.concat(t[u])),2===i.length&&i[0]===u){r=r.concat(t[u]);break}}return r}(e);u.length&&function(e,t,r){var n=0,i=t.length;for(;n<i&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,u,[r,n,i,o,s,a])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}
2))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],i=0,o=n?n.length:0;i<o;i++)n[i]!==t&&r.push(n[i]);r.length?this._fns[e]=r:delete this._fns[e]},e}},1296:function(e,t){e.exports=function(e,t){var r="000000000"+e;return r.substr(r.length-t)}},1297:function(e,t){e.exports=function(e){if("number"!==typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var i=r[n];return e>=10||e%1===0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},1298:function(e,t){e.exports=function(e){var t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}},1299:function(e,t){e.exports=function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}},1300:function(e,t){e.exports={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"}},1301:function(e,t,r){var n=r(1603),i=n.AbortController,o=n.AbortSignal;t.AbortController=i,t.AbortSignal=o,t.createAbortError=function(e){void 0===e&&(e="Aborted");try{return new DOMException(e,"AbortError")}catch(r){var t=new Error(e);return t.name="AbortError",t}}},1302:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAACh0lEQVRIicWXzU4TURTHf+cGUlFBovFzwQJ9Ae3MpClsGiERdyZ+JLow8Rn8wCcQ9TkkutClaAJUk9poO4UXUDeYCH4baqAwvcdFW1OK0AuW+t/M3HPvmd+9kzv3/EdwVDab7YrFYkPAIHAc2Fft+gm8AzKlUmkymUwuuTxPmg2YmZnxVHVUVUeA3U2G/wImRGQsHo8XtgUOw7BPVe+JyEWXCTZIReRRuVy+GQTBnDM4n88PiMhj4PAWgY36qqrnfd9/0dhhGgOFQuGKiEy3AApwQESeh2F4ubFjzYqrK50CYi2A1mvVWjscBMHLdeAwDPuAEDjYYmhNn6IoiicSiQ+w9lXf30EowKGOjo67tYZA5ZOx1uZw270fgSN1YxWYB4465FrA9zxvxgCo6qgj9I7neceAG3Wx69XYmEO+AUYBTDab7VLVMw5JqOqb6vX1ZrEmGkmn07tMZ2fnMLDHMakV2tvd3X3aUDl7261BY4zp/w/gE8Za29tuqoj0rjsy2yVjjPnRbqiqfjdUini79dYAmXZTVTVjSqXSJBXn0C4Vi8XitEkmk0si8swlQ0QSAMaY5GaxJppIpVLLAlAoFOKqmsftvJ6nYhLqi8QClcLRTFZVPd/3Zw1A1Zg9dJxxfWWieu8CRVXHfd+fhbp6bK29BXx2hG9HC+Vy+Xat8QccBMGcqp4DSjsAXbXWXqq5jzVgAN/3XwHXgJUWQldU9Wq934INNlMul0saY57w707zi6pecLK3AEEQZKMo8oBxKnZlq7LAgyiKTv4NCg6fTxiGp6jYlbM0NwxF4KmqjtV270Zy/jVJp9O7enp6hlR1AOgXkf0AqvoNeA9kFhcXp1Kp1LLL834D66n1gmiTb7QAAAAASUVORK5CYII="},1303:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAFDklEQVRoge2aXYwTVRTH/2f6sXS1HYSgCfJgAsOHG7O0M9OQtetmY1wiITEhvBANvokg0SgEY3zRxAcDJBiUYHiTRV+MPhg/wkeyrqubst0phgcUZzEYQqKLmnZA13a7c3xg2ky7nW1nOu3uA7+nO3fOnHv+uR9z7p0B7rG0IL8cXb58+YFisTgA4HEAjwJYC+BBAPdZJv8A+APArwCuMPP3wWBwNB6P5/xovyUhuq53GYaxk5l3A3gSQMClizlmPk9Ew6IofiZJUsFrLJ6EjI+PR8Lh8F4ABwCs9tp4DTeJ6KhhGB8ODg7+5/Zh10IymczTRPQ+7g6ddjBFRPtlWT7r5qGmhei63pXP5w8DeNl1aB4gouFCobCnr69vpin7ZozS6fRDwWDwKwByS9G5hIgywWBwe29v73RD20YGly5demRubu48gHW+ROcePRAIDMXj8esLGS0oJJvNrjJNcwzABl9Dc8810zRTyWTydycDwenGyMjIMtM0v8HiiwCAtYFA4Atd17ucDByFRKPRY+jwnFgIZlYNwzjqdL/u0LKW2K/bF1ZLbFUU5Vxt5bwe0XW9i4je60xMnjgxMjKyrLZynpB8Pv8SgPUdCckb66LR6J7ayioh1mR6zWsLzPwUgCten3fBwdqJXyXEMIydAB726l1V1QuiKCYAvAHgjlc/TbAml8vtsFdUCbGy2JaQJKmgKMq7giBsIKJhANyqz3oQ0XNV1+WCtZ+4BfepeAVFUeatgpqm9TPzcQCbvfp1oFQqlVZu2bLFAGw9Ym2KPItwQpblMVmWZWZ+HsAtH10HQ6HQE+UL+9BK+dhIFURkqqp6ulgsbgRwEsCcH35N06wrZJMfzheir6/vb0VR9pmmqQAY88HlxnLBLkTywXFTJJPJH2VZHgDwLICbXv0QUeV9ZxeysoXYvATBiqJ8AmA9M78NwPX2FsCKcsEu5P5Wg/OCoij/qqr6FhE9BuBTl4/HygXH7HeRiHh9MGgr34GtqzrF5ORkNzMfYubXAcxLBhtglAt2IX+ig0KYmTRN2wXgMBF5TYv+KhfsQ2uqpchcMDExsVnTtFEAH6OF3I6Z9XLZ3iNXAGzzHl5jxsfHV4TD4XcAvAAfsghBEH6qlG31P7Tq2AlmFjKZzO5wOPwzgL3wLxWqvFQrQgKBwLfwKXWwo2lav6ZpGhF9BGCVj65nZ2dnvytfVIRYp+IX/Golm82u1jTtNDOPwv/MFwDOlTNfoHqOAMBpAFtb8W4drb5qmuabaONLlpnP2K+r9g9WENfgfSXZDuAY2p+33YhEIut6enqK5YqqN7skSQUicjw7aoIv0Znk84hdBFAnRYnFYicBXO1AMF7RRVE8VVs5T4jVK690JibXMDPvq/dlq27SKMvyWWY+0f64XHNcVdW6K6tj9rt8+fIDRJRpX0yuuRiJRA453XQUIklSgZm3YWnMl2ulUumZ2glup9kPPefQwa1wDb8IgjCUSCR+W8io4cYqHo9fD4VCqUUaZhcFQUg1EgE0uUPs7e2djsVi/QCOo00nh7Uw8ylRFAcSiURTZ2GuP09PTk4OAfgA7RtqV5l5v9Pq5ISnHwasVOZFAAcBrPHiow43ABwRRfGUlz8gWv6FI5fL7bAOlIcwPwltRAnAWWY+093d/flCq1IjfPupJp1Ox0Kh0IBpmv1EtAl3P2evAhC1TG4DmGbmKWtnNzYzMzOaSqVu+xXDPZYS/wMBu6B/3VxSVQAAAABJRU5ErkJggg=="},1304:function(e,t,r){e.exports=i;var n=r(1136).EventEmitter;function i(){n.call(this)}r(1020)(i,n),i.Readable=r(1070),i.Writable=r(1611),i.Duplex=r(1612),i.Transform=r(1613),i.PassThrough=r(1614),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},1305:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1306:function(e,t,r){"use strict";var n=r(1020),i=r(1073),o=r(1059).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,088 bytes, line 2
2734187,3204031479,3329325298],a=new Array(64);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+f(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=g+d(u)+l(u,p,m)+s[b]+r[b]|0,w=h(n)+c(n,i,o)|0;g=m,m=p,p=u,u=a+v|0,a=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},1307:function(e,t,r){"use strict";var n=r(1020),i=r(1073),o=r(1059).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 6,104 bytes, line 2
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,M=0|this._bl,x=0|this._cl,S=0|this._dl,_=0|this._el,k=0|this._fl,A=0|this._gl,j=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var T=t[E-30],C=t[E-30+1],O=f(T,C),R=p(C,T),I=m(T=t[E-4],C=t[E-4+1]),B=g(C,T),P=t[E-14],N=t[E-14+1],D=t[E-32],U=t[E-32+1],L=R+N|0,F=O+P+y(L,R)|0;F=(F=F+I+y(L=L+B|0,B)|0)+D+y(L=L+U|0,U)|0,t[E]=F,t[E+1]=L}for(var q=0;q<160;q+=2){F=t[q],L=t[q+1];var z=c(r,n,i),V=c(w,M,x),H=h(r,w),K=h(w,r),G=d(a,_),W=d(_,a),X=s[q],Z=s[q+1],Y=l(a,u,b),J=l(_,k,A),Q=j+W|0,$=v+G+y(Q,j)|0;$=($=($=$+Y+y(Q=Q+J|0,J)|0)+X+y(Q=Q+Z|0,Z)|0)+F+y(Q=Q+L|0,L)|0;var ee=K+V|0,te=H+z+y(ee,K)|0;v=b,j=A,b=u,A=k,u=a,k=_,a=o+$+y(_=S+Q|0,S)|0,o=i,S=x,i=n,x=M,n=r,M=w,r=$+te+y(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+M|0,this._cl=this._cl+x|0,this._dl=this._dl+S|0,this._el=this._el+_|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+j|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,M)|0,this._ch=this._ch+i+y(this._cl,x)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+a+y(this._el,_)|0,this._fh=this._fh+u+y(this._fl,k)|0,this._gh=this._gh+b+y(this._gl,A)|0,this._hh=this._hh+v+y(this._hl,j)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},1308:function(e,t,r){"use strict";var n=r(1020),i=r(1630),o=r(1052),s=r(1027).Buffer,a=r(1309),u=r(1193),l=r(1194),c=s.alloc(128);function h(e,t){o.call(this,"digest"),"string"===typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:l(e)).update(t).digest():t.length<r&&(t=s.concat([t,c],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new u:l(e),this._hash.update(n)}n(h,o),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new i(a,t):new h(e,t)}},1309:function(e,t,r){var n=r(1192);e.exports=function(e){return(new n).update(e).digest()}},1310:function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1311:function(e,t,r){"use strict";t.pbkdf2=r(1632),t.pbkdf2Sync=r(1314)},1312:function(e,t,r){"use strict";var n=isFinite,i=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0||!n(e))throw new TypeError("Bad iterations");
vendor: 6,271 bytes, line 2
2if("number"!==typeof t)throw new TypeError("Key length not a number");if(t<0||t>i||t!==t)throw new TypeError("Bad key length")}},1313:function(e,t,r){"use strict";(function(t,r){var n;if(t.process&&t.process.browser)n="utf-8";else if(t.process&&t.process.version){n=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,r(251),r(252))},1314:function(e,t,r){"use strict";var n=r(1309),i=r(1193),o=r(1194),s=r(1195).Buffer,a=r(1312),u=r(1313),l=r(1315),c=s.alloc(128),h={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(e){return(new i).update(e).digest()}function p(e,t,r){var i=function(e){return"rmd160"===e||"ripemd160"===e?f:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length<a&&(t=s.concat([t,c],a));for(var u=s.allocUnsafe(a+h[e]),l=s.allocUnsafe(a+h[e]),d=0;d<a;d++)u[d]=54^t[d],l[d]=92^t[d];var p=s.allocUnsafe(a+r+4);u.copy(p,0,0,a),this.ipad1=p,this.ipad2=u,this.opad=l,this.alg=e,this.blocksize=a,this.hash=i,this.size=h[e]}p.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){a(r,n),e=l(e,u,"Password"),t=l(t,u,"Salt");var o=(i||"sha1").toLowerCase(),c=d[o]||o,f=h[c];if("number"!==typeof f||!f)throw new TypeError("Digest algorithm not supported: "+i);var m=new p(c,e,t.length),g=s.allocUnsafe(n),y=s.allocUnsafe(t.length+4);t.copy(y,0,0,t.length);for(var b=0,v=f,w=Math.ceil(n/v),M=1;M<=w;M++){y.writeUInt32BE(M,t.length);for(var x=m.run(y,m.ipad1),S=x,_=1;_<r;_++){S=m.run(S,m.ipad2);for(var k=0;k<v;k++)x[k]^=S[k]}x.copy(g,b),b+=v}return g}},1315:function(e,t,r){"use strict";var n=r(1195).Buffer,i=r(1151),o="undefined"!==typeof Uint8Array,s=o&&"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView;e.exports=function(e,t,r){if("string"===typeof e||n.isBuffer(e)||o&&e instanceof Uint8Array||s&&s(e))return i(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}},1316:function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,s=0,a=n.length>>>1,u=0;u<a;u++)o<<=1,o|=e>>>n[u]&1;for(u=a;u<n.length;u++)s<<=1,s|=t>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=s>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},1317:function(e,t,r){"use strict";var n=r(1041),i=r(1020),o=r(1316),s=r(1196);function a(){this.tmp=new Array(2),this.keys=null}function u(e){s.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(u,s),e.exports=u,u.create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var a=l[s>>>1];r=o.r28shl(r,a),i=o.r28shl(i,a),o.pc2(r,i,e.keys,s)}},u.prototype._update=function(e,t,r,n){var i=this._desState,s=o.readUInt32BE(e,t),a=o.readUInt32BE(e,t+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt
vendor: 6,308 bytes, line 2
2(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(r,s,n),o.writeUInt32BE(r,a,n+4)},u.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var s=t,a=r,u=0;u<e.keys.length;u+=2){var l=e.keys[u],c=e.keys[u+1];o.expand(a,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var h=o.substitute(l,c),d=a;a=(s^o.permute(h))>>>0,s=d}o.rip(a,s,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var s=r,a=t,u=e.keys.length-2;u>=0;u-=2){var l=e.keys[u],c=e.keys[u+1];o.expand(s,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var h=o.substitute(l,c),d=s;s=(a^o.permute(h))>>>0,a=d}o.rip(s,a,n,i)}},1318:function(e,t,r){var n=r(1117),i=r(1027).Buffer,o=r(1319);function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var u=s(e),l=o+16*a;e._cache.writeUInt32BE(u[0],l+0),e._cache.writeUInt32BE(u[1],l+4),e._cache.writeUInt32BE(u[2],l+8),e._cache.writeUInt32BE(u[3],l+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,c)}},1319:function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},1320:function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},1321:function(e,t,r){var n=r(1152),i=r(1027).Buffer,o=r(1052),s=r(1020),a=r(1645),u=r(1117),l=r(1319);function c(e,t,r,s){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(u);this._ghash=new a(c),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new a(r),o=t.length,s=o%16;n.update(t),s&&(s=16-s,n.update(i.alloc(s,0))),n.update(i.alloc(8,0));var u=8*o,c=i.alloc(8);c.writeUIntBE(u,0,8),n.update(c),e._finID=n.state;var h=i.from(e._finID);return l(h),h}(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(c,o),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=c},1322:function(e,t,r){var n=r(1152),i=r(1027).Buffer,o=r(1052);function s(e,t,r,s){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}r(1020)(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},1323:function(e,t,r){var n=r(1072);e.exports=b,b.simpleSieve=g,b.fermatTest=y;var i=r(1324),o=new i(24),s=new(r(1325)),a=new i(1),u=new i(2),l=new i(5),c=(new i(16),new i(8),new i(10)),h=new i(3),d=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;
vendor: 9,569 bytes, line 2
2for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!==0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function y(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(a),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(l))for(;r.mod(c).cmp(h);)r.iadd(f)}else for(;r.mod(o).cmp(d);)r.iadd(f);if(g(p=r.shrn(1))&&g(r)&&y(p)&&y(r)&&s.test(p)&&s.test(r))return r}}},1324:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1649).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
vendor: 4,421 bytes, line 2
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1325:function(e,t,r){var n=r(1650),i=r(1199);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),s=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),u=0;!a.testn(u);u++);for(var l=e.shrn(u),c=a.toRed(o);t>0;t--){var h=this._randrange(new n(2),a);r&&r(h);var d=h.toRed(o).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(c)){for(var f=1;f<u;f++){if(0===(d=d.redSqr()).cmp(s))return!1;if(0===d.cmp(c))break}if(f===u)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),a=0;!s.testn(a);a++);for(var u=e.shrn(a),l=s.toRed(i);t>0;t--){var c=this._randrange(new n(2),s),h=e.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(l)){for(var f=1;f<a;f++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(f===a)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},1326:function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},1327:function(e,t,r){"use strict";var n=t;n.base=r(1154),n.short=r(1661),n.mont=r(1662),n.edwards=r(1663)},1328:function(e,t,r){"use strict";var n=r(1049).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?s(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},1329:function(e,t,r){"use strict";var n=r(1049),i=r(1118),o=r(1328),s=r(1041),a=n.sum32,u=n.sum32_4,l=n.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 8,156 bytes, line 2
2734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],M=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var x=l(M,f(b),c(b,v,w),this.k[n],r[n]),S=a(d(i),h(i,o,g));M=w,w=v,v=b,b=a(y,x),y=g,g=o,o=i,i=a(x,S)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],M)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1330:function(e,t,r){"use strict";var n=r(1049),i=r(1118),o=r(1041),s=n.rotr64_hi,a=n.rotr64_lo,u=n.shr64_hi,l=n.shr64_lo,c=n.sum64,h=n.sum64_hi,d=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function M(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function _(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function j(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=C(r[n-4],r[n-3]),o=O(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=E(r[n-30],r[n-29]),l=T(r[n-30],r[n-29]),c=r[n-32],h=r[n-31];r[n]=f(i,o,s,a,u,l,c,h),r[n+1]=p(i,o,s,a,u,l,c,h)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],l=this.h[5],f=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],E=this.h[11],T=this.h[12],C=this.h[13],O=this.h[14],R=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var B=O,P=R,N=A(y,b),D=j(y,b),U=w(y,b,v,E,T),L=M(y,b,v,E,T,C),F=this.k[I],q=this.k[I+1],z=r[I],V=r[I+1],H=m(B,P,N,D,U,L,F,q,z,V),K=g(B,P,N,D,U,L,F,q,z,V);B=_(n,i),P=k(n,i),N=x(n,i,s,a,u),D=S(n,i,s,a,u,l);var G=h(B,P,N,D),W=d(B,P,N,D);O=T,R=C,T=v,C=E,v=y,E=b,y=h(f,p,H,K),b=d(p,p,H,K),f=u,p=l,u=s,l=a,s=n,a=i,n=h(H,K,G,W),i=d(H,K,G,W)}c(this.h,0,n,i),c(this.h,2,s,a),c(this.h,4,u,l),c(this.h,6,f,p),c(this.h,8,y,b),c(this.h,10,v,E),c(this.h,12,T,C),c(this.h,14,O,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1331:function(e,t,r){var n=r(1020),i=r(1120).Reporter,o=r(367).Buffer;function s(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},1332:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(1685)},1333:function(e,t,r){var n=r(1020),i=r(1119),o=i.base,s=i.bignum,a=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=a.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){var o=r;for(r=0;128===(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var s=e.readUInt8(r);if(e.isError(s))return s;n|=s}return n}
vendor: 7,330 bytes, line 2
2e.exports=u,u.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(l,o.Node),l.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=c(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},l.prototype._decodeTag=function(e,t,r){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=h(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var r=c(e,t);if(e.isError(r))return r;var n,i=h(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},l.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var s=r.decode(e,"der",n);if(e.isError(s)&&o)break;i.push(s)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var s=e.readUInt8();o<<=7,o|=127&s,0===(128&s)&&(i.push(o),o=0)}128&s&&i.push(o);var a=i[0]/40|0,u=i[0]%40;if(n=r?i:[a,u].concat(i.slice(1)),t){var l=t[n.join(" ")];void 0===l&&(l=t[n.join(".")]),void 0!==l&&(n=l)}return n},l.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,u,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var r=e.raw(),n=new s(r);return t&&(n=t[n.toString(10)]||n),n},l.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getDecoder("der").tree}},1334:function(e,t,r){var n=r(1020),i=r(367).Buffer,o=r(1119),s=o.base,a=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){s.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,s.Node),l.prototype._encodeComposite=function(e,t,r,n){var o,s=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=s,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,l=n.length;l>=256;l>>=8)u++;(o=new i(2+u))[0]=s,o[1]=128|u;l=1+u;for(var c=n.length;c>0;l--,c>>=8)o[l]=255&c;return this._createEncoderBuffer([o,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"===typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var s=e[n];for(o++;s>=128;s>>=7)o++}var a=new i(o),u=a.length-1;for(n=e.length-1;n>=0;n--){s=e[n];for(a[u--]=127&s;(s>>=7)>0;)a[u--]=128|127&s}return this._createEncoderBuffer(a)},l.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var s=e;s>=256;s>>=8)n++;for(s=(o=new Array(n)).length-1;s>=0;s--)o[s]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;
2var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},1335:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1336:function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},1337:function(e,t,r){var n=r(1116),i=r(1027).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,s=i.alloc(0),a=0;s.length<t;)r=o(a++),s=i.concat([s,n("sha1").update(e).update(r).digest()]);return s.slice(0,t)}},1338:function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},1339:function(e,t,r){var n=r(1206),i=r(1027).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},1340:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(47),s=r(1703),a=r.n(s),u=r(1704),l=r.n(u),c=r(1015),h=r(140);class d extends n.Component{render(){var e,t;const r=null===(e=this.props)||void 0===e||null===(t=e.persistedData)||void 0===t?void 0:t.premiumStatus;return i.a.createElement("div",{className:"EnablePreviewCourse"},i.a.createElement(o.u,{onClose:this.props.toggleViewModal,onOpen:this.props.toggleViewModal,open:this.props.viewModal&&1===r,size:"small"},i.a.createElement(o.u.Header,{style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between",padding:"32px"}},i.a.createElement("label",{className:"EnablePreviewCourse__HeaderPara"},i.a.createElement(c.a,{i18nKey:"components.contentStore.addContent.enablePreviewCourse.enablePreviewCourse"},"Enable Preview Course")),i.a.createElement("img",{onClick:this.props.toggleViewModal,className:"EnablePreviewCourse__HeaderImage",src:a.a,alt:"close"})),i.a.createElement(o.u.Content,null,i.a.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.a.createElement("img",{className:"EnablePreviewCourse__ContentImage",src:l.a,alt:"view"}),i.a.createElement("label",{className:"EnablePreviewCourse__ContentPara1"},this.props.viewDetails),i.a.createElement("label",{className:"EnablePreviewCourse__ContentPara2"},i.a.createElement(c.a,{i18nKey:"components.contentStore.addContent.enablePreviewCourse.itAllowsStdsToPreview"},"It allows students to preview first 2 mins of all locked videos in the course before purchasing.")))),i.a.createElement(o.u.Actions,{style:{boxShadow:"0px -2px 4px rgba(0, 0, 0, 0.12)",padding:"24px"}},i.a.createElement("button",{className:"EnablePreviewCourse__Button1",onClick:this.props.toggleViewModal},i.a.createElement(c.a,{i18nKey:"components.contentStore.addContent.enablePreviewCourse.noThanks"},"No, Thanks")),i.a.createElement("button",{className:"EnablePreviewCourse__Button2",onClick:this.props.handleEnablePreview},i.a.createElement(c.a,{i18nKey:"components.contentStore.addContent.enablePreviewCourse.yesEnablePreview"},"Yes, Enable Preview")))))}}t.a=Object(h.connect)(e=>({persistedData:e&&e.persistedData}),null)(d)},1405:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=(r(1553),r(1115)),s=r.n(o),a=r(1570),u=r.n(a),l=r(1572),c=r.n(l),h=(r(1582),r(1583),r(1584),r(1585)),d=r.n(h),f=r(2780);class p extends i.a.Component{constructor(e){var t;super(e),t=this,this._onRestrictionFailErrorHandler=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props.file,r=arguments.length>1?arguments[1]:void 0,{onRestrictionFail:n}=t.props;"function"===typeof n&&n(e,r)},this._onBeforeUpload=e=>{let{fileNamePrefix:t,maintainOriginalName:r}=this.props;const n={};return Object.keys(e).forEach(i=>
2{let o;o=r?t:`${t||"classplus_"+Date.now()}__${e[i].name.replace(/[^a-z0-9\.]/gi,"_")}`,n[i]={...e[i],name:o,meta:{...e[i].meta,name:o}}}),n},this._removeFile=e=>{this.uppy.removeFile(e)},this._renderFileList=()=>{let{selectedFiles:e,uploaded:t}=this.state,{t:r}=this.props;return 0===e.length?null:i.a.createElement("ul",{className:"selected-files-list"},e.map(e=>i.a.createElement("li",{key:e.id},e.name," ",!t&&i.a.createElement("button",{className:"btn-remove",onClick:()=>{this._removeFile(e.id)}},r("components.custom.s3MultipartUpload.remove","remove")))))},this.state={selectedFiles:[],uploading:!1,uploaded:!1};const{autoProceed:r,minNumberOfFiles:n,maxNumberOfFiles:o,maxFileSize:a,allowedFileTypes:u,t:l}=e;this.uppy=s()({meta:{type:"video"},restrictions:{maxNumberOfFiles:o,maxFileSize:a,allowedFileTypes:u,minNumberOfFiles:n},locale:{strings:{chooseFiles:l("components.custom.s3MultipartUpload.chooseFiles","Choose Files"),uploading:l("components.custom.s3MultipartUpload.uploading","Uploading"),uploadingXFiles:"",uploadXNewFiles:"",complete:l("components.custom.s3MultipartUpload.complete","Complete")}},autoProceed:r,onBeforeUpload:this._onBeforeUpload}),this._fileInput=i.a.createRef(),this._fileUploadHandler=this._fileUploadHandler.bind(this),this.uploadSuccess=this.uploadSuccess.bind(this),this._onBeforeUpload=this._onBeforeUpload.bind(this)}componentDidMount(){let{file:e}=this.props,t=this.uppy;if(e){let n=e.type;if(null===e||void 0===e||!e.type){var r;let t=null===e||void 0===e||null===(r=e.name)||void 0===r?void 0:r.split(".").slice(-1);"flv"==t&&(n="video/x-"+t)}try{t.addFile({source:"file input",name:e.name,type:n,data:e})}catch(o){o.isRestriction&&this._onRestrictionFailErrorHandler(e,o)}}const{companionUrl:n}=this.props,i=this._fileInput.current;t.use(u.a,{target:i,replaceTargetContent:!0,pretty:!0}),t.use(d.a,{limit:4,companionUrl:n,companionHeaders:{}}),t.on("file-added",e=>{let{onFileAdded:t}=this.props;"function"===typeof t&&t(e),this.setState({selectedFiles:[...this.state.selectedFiles,{id:e.id,name:e.name}]})}),t.on("file-removed",e=>{this.setState(t=>{let{selectedFiles:r}=t;return{selectedFiles:r.filter(t=>t.id!==e.id),uploading:!1}});let{onFileRemove:t}=this.props;"function"===typeof t&&t(e)}),t.on("upload",e=>{this.setState({uploading:!0});let{onUpload:t}=this.props;"function"===typeof t&&t(e)}),t.on("restriction-failed",this._onRestrictionFailErrorHandler),t.on("complete",e=>{let{onComplete:t,file:r}=this.props;this.setState({uploaded:!0}),t&&t(e,r)}),t.on("upload-success",(e,t)=>{let{onUploadSuccess:r}=this.props;this.setState({uploaded:!0}),"function"===typeof r&&r(e,t)}),t.on("upload-error",(e,t,r)=>{let{onUploadError:n}=this.props;"function"===typeof n&&n(e,t,r)}),t.on("error",e=>{let{onError:t}=this.props;"function"===typeof t&&t(e)}),t.on("reset-progress",()=>{this.setState({selectedFiles:[],uploading:!1})}),t.on("cancel-all",()=>{this.setState({selectedFiles:[],uploading:!1})})}_fileUploadHandler(){this.uppy.upload().then(e=>e).catch(e=>{console.error(e)})}uploadSuccess(){this.uppy.upload()}render(){let{autoProceed:e,t:t}=this.props,{selectedFiles:r,uploading:n}=this.state;return i.a.createElement("div",{className:"s3-multipart-uploader"},i.a.createElement("div",{className:"uploader "+(n&&"hidden")},i.a.createElement("div",{ref:this._fileInput},i.a.createElement("div",null,t("components.custom.s3MultipartUpload.unable2","Unable to load File uploader"))),!e&&r.length>0&&i.a.createElement("button",{className:"s3-btn",onClick:this._onUpload},t("components.custom.s3MultipartUpload.upload2","Upload"))),i.a.createElement(c.a,{uppy:this.uppy,hideUploadButton:!0,hideAfterFinish:!1}),this._renderFileList())}}p.defaultProps={autoProceed:!0,maxNumberOfFiles:1,maxFileSize:512e6,minNumberOfFiles:1,allowedFileTypes:["video/*"]},t.a=Object(f.a)()(p)},1406:function(e,t,r){var n;n=window,e.exports=function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[s]={exports:{}};t[s][0].call(l.exports,(function(e){return i(t[s][1][e]||e)}),l,l.exports,e,t,r,n)}return r[s].exports}for(var o=!1,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";var n=e("./browser/client");n.Buffer=e("buffer").Buffer,n.urllib=e("../shims/xhr"),n.version=e("./browser/version").version,t.exp
2orts=n},{"../shims/xhr":546,"./browser/client":3,"./browser/version":6,buffer:103}],2:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.slice.js");var s=e("assert"),a=e("../common/utils/checkBucketName").checkBucketName,u=r;function l(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function c(e){return e?l(e)?e:[e]:[]}u.useBucket=function(e){return a(e),this.options.bucket=e,this},u.setBucket=function(e){return a(e),this.options.bucket=e,this},u.getBucket=function(){return this.options.bucket},u.deleteBucket=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._bucketRequestParam
2s("DELETE",t,"",r),e.next=3,this.request(n);case 3:if(200!==(o=e.sent).status&&204!==o.status){e.next=6;break}return e.abrupt("return",{res:o.res});case 6:return e.next=8,this.requestError(o);case 8:throw e.sent;case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.putBucketACL=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=this._bucketRequestParams("PUT",t,"acl",n)).headers={"x-oss-acl":r},o.successStatuses=[200],e.next=5,this.request(o);case 5:return s=e.sent,e.abrupt("return",{bucket:s.headers.location&&s.headers.location.substring(1)||null,res:s.res});case 7:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),u.getBucketACL=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"acl",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.putBucketLogging=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s,a;return i.default.wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return o=this._bucketRequestParams("PUT",t,"logging",n),s='<?xml version="1.0" encoding="UTF-8"?>\n<BucketLoggingStatus>\n<LoggingEnabled>\n<TargetBucket>'.concat(t,"</TargetBucket>\n"),r&&(s+="<TargetPrefix>".concat(r,"</TargetPrefix>\n")),s+="</LoggingEnabled>\n</BucketLoggingStatus>",o.content=s,o.mime="xml",o.successStatuses=[200],e.next=9,this.request(o);case 9:return a=e.sent,e.abrupt("return",{res:a.res});case 11:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),u.getBucketLogging=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"logging",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,s=o.data.LoggingEnabled,e.abrupt("return",{enable:!!s,prefix:s&&s.TargetPrefix||null,res:o.res});case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.deleteBucketLogging=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"logging",r)).successStatuses=[204,200],e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.putBucketCORS=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,a,u,l,h,d,f,p,m,g;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s((r=r||[]).length,"rules is required"),r.forEach((function(e){s(e.allowedOrigin,"allowedOrigin is required"),s(e.allowedMethod,"allowedMethod is required")})),o=this._bucketRequestParams("PUT",t,"cors",n),a='<?xml version="1.0" encoding="UTF-8"?>\n<CORSConfiguration>',u=function(e){a+="<AllowedOrigin>".concat(e,"</AllowedOrigin>")},l=function(e){a+="<AllowedMethod>".concat(e,"</AllowedMethod>")},h=function(e){a+="<AllowedHeader>".concat(e,"</AllowedHeader>")},d=function(e){a+="<ExposeHeader>".concat(e,"</ExposeHeader>")},f=0,p=r.length;f<p;f++)m=r[f],a+="<CORSRule>",c(m.allowedOrigin).forEach(u),c(m.allowedMethod).forEach(l),c(m.allowedHeader).forEach(h),c(m.exposeHeader).forEach(d),m.maxAgeSeconds&&(a+="<MaxAgeSeconds>".concat(m.maxAgeSeconds,"</MaxAgeSeconds>")),a+="</CORSRule>";return a+="</CORSConfiguration>",o.content=a,o.mime="xml",o.successStatuses=[200],e.next=16,this.request(o);case 16:return g=e.sent,e.abrupt("return",{res:g.res});case 18:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),u.getBucketCORS=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s,a;return i.default.wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"cors",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,s=[],o.data&&o.data.CORSRule&&(l(a=o.data.CORSRule)||(a=[a]),a.forEach((function(e){var t={};Object.keys(e).forEach((function(r){t[r.slice(0,1).toLowerCase()+r.slice(1,r.length)]=e[r]})),s.push(t)}))),e.abrupt("return",{rules:s,res:o.res});case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.deleteBucketCORS=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"cors",r)).successStatuses=[204],e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.putBucketReferer=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var s,a,u,l;return i.default.wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:if(s=this._bucketRequestParams("PUT",t,"referer",o),a='<?xml version="1.0" encoding="UTF-8"?>\n<RefererConfiguration>\n',a+=" <AllowEmptyReferer>".concat(r?"true":"false","</AllowEmptyReferer>\n"),n&&n.length>0){for(a+=" <RefererList>\n",u=0;u<n.length;u++)a+=" <Referer>".concat(n[u],"</Referer>\n");a+=" </RefererList>\n"}else a+=" <RefererList />\n";return a+="</RefererConfiguration>",s.content=a,s.mime="xml",s.successStatuses=[200],e.next=10,this.request(s);case 10:return l=e.sent,e.abrupt("return",{res:l.res});case 12:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),u.getBucketReferer=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"referer",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,(s=o.data.RefererList.Referer||null)&&(l(s)||(s=[s])),e.abrupt("return",{allowEmpty:"true"===o.data.AllowEmptyReferer,referers:s,res:o.res});case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u.deleteBucketReferer=function(){var e=(0,o.default)(i.default.mark((function e(t,r){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}
2(),u._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,additionalHeaders:n&&n.additionalHeaders,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,assert:95,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],3:[function(e,t,r){(function(r,n){(function(){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),o=i(e("@babel/runtime/regenerator")),s=i(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.to-string.js");var a=e("debug")("ali-oss"),u=e("xml2js"),l=e("agentkeepalive"),c=e("merge-descriptors"),h=e("platform"),d=e("utility"),f=e("urllib"),p=e("./version"),m=e("bowser"),g=e("../common/signUtils"),y=e("../common/client/initOptions"),b=e("../common/utils/createRequest").createRequest,v=e("../common/utils/encoder").encoder,w=e("../common/client/getReqUrl").getReqUrl,M=e("../common/utils/setSTSToken").setSTSToken,x=e("../common/utils/retry").retry,S=e("../common/utils/isFunction").isFunction,_=e("../common/utils/getStandardRegion").getStandardRegion,k=new l;function A(e,t){if(function(){var e=h.name,t=h.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}(),!(this instanceof A))return new A(e,t);e&&e.inited?this.options=e:this.options=A.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=f,this.agent=this.options.agent||k),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}t.exports=A,A.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=Object.assign({secure:location&&"https:"===location.protocol,useFetch:!1},e);return y(t)};var j=A.prototype;function E(e){return T.apply(this,arguments)}function T(){return(T=(0,s.default)(o.default.mark((function e(t){var r,n,i,s,a,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.stsToken||!S(this.options.refreshSTSToken)){e.next=3;break}return e.next=3,M.call(this);case 3:return r=b.call(this,t),this.options.useFetch||(r.params.mode="disable-fetch"),s=!!t.stream,e.prev=6,e.next=9,this.urllib.request(r.url,r.params);case 9:n=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,r.url,n.status,n.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),i=e.t0;case 16:if(!n||!t.successStatuses||-1!==t.successStatuses.indexOf(n.status)){e.next=28;break}return e.next=19,this.requestError(n);case 19:if("RequestTimeTooSkewed"!==(a=e.sent).code||s){e.next=25;break}return this.options.amendTimeSkewed=+new Date(a.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:a.params=t,e.next=32;break;case 28:if(!i){e.next=32;break}return e.next=31,this.requestError(i);case 31:a=e.sent;case 32:if(!a){e.next=34;break}throw a;case 34:if(!t.xmlResponse){e.next=39;break}return e.next=37,this.parseXML(n.data);case 37:u=e.sent,n.data=u;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}}),e,this,[[6,13]])})))).apply(this,arguments)}j.debug=a,c(j,e("./object")),c(j,e("./bucket")),c(j,e("../common/bucket/getBucketWebsite")),c(j,e("../common/bucket/putBucketWebsite")),c(j,e("../common/bucket/deleteBucketWebsite")),c(j,e("../common/bucket/getBucketLifecycle")),c(j,e("../common/bucket/putBucketLifecycle")),c(j,e("../common/bucket/deleteBucketLifecycle")),c(j,e("../common/bucket/putBucketVersioning")),c(j,e("../common/bucket/getBucketVersioning")),c(j,e("../common/bucket/getBucketInventory")),c(j,e("../common/bucket/deleteBucketInventory")),c(j,e("../common/bucket/listBucketInventory")),c(j,e("../common/bucket/putBucketInventory")),c(j,e("../common/bucket/abortBucketWorm")),c(j,e("../common/bucket/completeBucketWorm")),c(j,e("../common/bucket/extendBucketWorm")),c(j,e("../common/bucket/getBucketWorm")),c(j,e("../common/bucket/initiateBucketWorm")),c(j,e("./managed-upload")),c(j,e("../common/multipart-copy")),c(j,e("../common/multipart")),c(j,e("../common/parallel")),j.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),g.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},j._getReqUrl=w,j.authorization=function(e,t,r,n){var i=g.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return g.authorization(this.options.accessKeyId,this.options.accessKeySecret,i,this.options.headerEncoding)},j.authorizationV4=function(e,t,r,n,i){return g.authorizationV4(this.options.accessKeyId,this.options.accessKeySecret,_(this.options.region),e,t,r,n,i,this.options.headerEncoding)},j.request=function(){var e=(0,s.default)(o.default.mark((function e(t){var r=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.retryMax){e.next=6;break}return e.next=3,x(E.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(t.stream)return!1;var n=[-1,-2].includes(e.status),i=r.options.requestErrorRetryHandle||function(){return!0};return n&&i(e)}(e)}})(t);case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",E.call(this,t));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),j._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=v(e.object,this.options.headerEncoding)),t},j._escape=function(e){return d.encodeURIComponent(e).replace(/%2F/g,"/")},j._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(p.version),r=h.description;return!r&&n&&(r="Node.js ".concat(n.version.slice(1)," on ").concat(n.platform," ").concat(n.arch)),this._checkUserAgent("".concat(t," ").concat(r))},j._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},j.checkBrowserAndVersion=function(e,t){return m.name===e&&m.version.split(".")[0]===t},j.parseXML=function(e){return new Promise((function(t,n){r.isBuffer(e)&&(e=e.toString()),u.parseString(e,{explicitRoot:!1,explicitArray:!1},(function(e,r){e?n(e):t(r)}))}))},j.requestError=function(){var e=(0,s.default)(o.default.mark((function e(t){var r,n,i,a,u,l=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,n=function(){var e=(0,s.default)(o.default.mark((function e(n){var i,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.parseXML(n);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:i=e.t0,e.next=16;break;case 9:return e.prev=9,e.t1=e.catch(0),l.debug(n,"error"),e.t1.message+="\nraw xml: ".concat(n),e.t1.status=t.status,e.t1.requestId=t.headers&&t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 16:return s=i.Message||"unknow request error, status: ".concat(t.status),i.Condition&&(s+=" (condition: ".concat(i.Condition,")")),(r=new Error(s)).name=i.Code?"".concat(i.Code,"Error"):"UnknownError",r.status=t.status,r.code=i.Code,r.ecCode=i.EC,r.requestId=i.RequestId,r.hostId=i.HostId,r.serverTime=i.ServerTime,e.abrupt("return",r);case 27:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),t.data&&t.data.length){e.next=38;break}if(-1!==t.status&&-2!==t.status){e.next=10;break}
2(r=new Error(t.message)).name=t.name,r.status=t.status,r.code=t.name,e.next=36;break;case 10:if(404!==t.status){e.next=17;break}(r=new Error("Object not exists")).name="NoSuchKeyError",r.status=404,r.code="NoSuchKey",e.next=34;break;case 17:if(412!==t.status){e.next=24;break}(r=new Error("Pre condition failed")).name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed",e.next=34;break;case 24:if((r=new Error("Unknow error, status: ".concat(t.status))).name="UnknownError",r.status=t.status,r.res=t,!(i=t.headers&&t.headers["x-oss-err"])){e.next=34;break}return a=atob(i),e.next=33,n(a);case 33:r=e.sent;case 34:r.requestId=t.headers&&t.headers["x-oss-request-id"],r.host="";case 36:e.next=43;break;case 38:return u=String(t.data),this.debug("request response error data: %s",u,"error"),e.next=42,n(u);case 42:r=e.sent;case 43:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 45:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}).call(this)}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":409,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":51,"../common/signUtils":52,"../common/utils/createRequest":58,"../common/utils/encoder":62,"../common/utils/getStandardRegion":65,"../common/utils/isFunction":72,"../common/utils/retry":80,"../common/utils/setSTSToken":82,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,agentkeepalive:94,bowser:101,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.symbol.description.js":351,"core-js/modules/es.symbol.js":354,debug:536,"merge-descriptors":428,platform:440,urllib:546,utility:545,xml2js:496}],4:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("util"),a=e("path"),u=e("mime"),l=e("copy-to"),
2c=e("../common/utils/isBlob").isBlob,h=e("../common/utils/isFile").isFile,d=e("../common/utils/isBuffer").isBuffer,f=r;f.multipartUpload=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s,l,f,p,m,g,y,b=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>2&&void 0!==b[2]?b[2]:{},this.resetCancelFlag(),n.disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,!n.checkpoint||!n.checkpoint.uploadId){e.next=8;break}return r&&h(r)&&(n.checkpoint.file=r),e.next=7,this._resumeMultipart(n.checkpoint,n);case 7:return e.abrupt("return",e.sent);case 8:return o=102400,n.mime||(h(r)?n.mime=u.getType(a.extname(r.name)):c(r)?n.mime=r.type:d(r)?n.mime="":n.mime=u.getType(a.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),e.next=14,this._getFileSize(r);case 14:if(!((s=e.sent)<o)){e.next=26;break}return n.contentLength=s,e.next=19,this.put(t,r,n);case 19:if(l=e.sent,!n||!n.progress){e.next=23;break}return e.next=23,n.progress(1);case 23:return f={res:l.res,bucket:this.options.bucket,name:t,etag:l.res.headers.etag},(n.headers&&n.headers["x-oss-callback"]||n.callback)&&(f.data=l.data),e.abrupt("return",f);case 26:if(!n.partSize||parseInt(n.partSize,10)===n.partSize){e.next=28;break}throw new Error("partSize must be int number");case 28:if(!(n.partSize&&n.partSize<o)){e.next=30;break}throw new Error("partSize must not be smaller than ".concat(o));case 30:return e.next=32,this.initMultipartUpload(t,n);case 32:if(p=e.sent,m=p.uploadId,g=this._getPartSize(s,n.partSize),y={file:r,name:t,fileSize:s,partSize:g,uploadId:m,doneParts:[]},!n||!n.progress){e.next=39;break}return e.next=39,n.progress(0,y,p.res);case 39:return e.next=41,this._resumeMultipart(y,n);case 41:return e.abrupt("return",e.sent);case 42:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),f._resumeMultipart=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,s,a,u,c,h,d,f,p,m,g,y,b,v,w,M,x,S;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,!this.isCancel()){e.next=3;break}throw this._makeCancelEvent();case 3:return s=t.file,a=t.fileSize,u=t.partSize,c=t.uploadId,h=t.doneParts,d=t.name,f=[],h.length>0&&l(h).to(f),p=this._divideParts(a,u),m=p.length,g=!1,y=function(e,n){return new Promise(function(){var a=(0,o.default)(i.default.mark((function o(a,u){var f,y,b,v,w;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=29;break}return f=p[n-1],i.next=5,e._createBuffer(s,f.start,f.end);case 5:return y=i.sent,b={content:y,size:f.end-f.start},i.prev=7,i.next=10,e._uploadPart(d,c,n,b,r);case 10:v=i.sent,i.next=18;break;case 13:if(i.prev=13,i.t0=i.catch(7),404!==i.t0.status){i.next=17;break}throw e._makeAbortEvent();case 17:throw i.t0;case 18:if(e.isCancel()||g){i.next=26;break}if(t.doneParts.push({number:n,etag:v.res.headers.etag}),!r.progress){i.next=23;break}return i.next=23,r.progress(h.length/(m+1),t,v.res);case 23:a({number:n,etag:v.res.headers.etag}),i.next=27;break;case 26:a();case 27:i.next=30;break;case 29:a();case 30:i.next=41;break;case 32:i.prev=32,i.t1=i.catch(0),(w=new Error).name=i.t1.name,w.message=i.t1.message,w.stack=i.t1.stack,w.partNum=n,l(i.t1).to(w),u(w);case 41:case"end":return i.stop()}}),o,null,[[0,32],[7,13]])})));return function(e,t){return a.apply(this,arguments)}}())},b=Array.from(new Array(m),(function(e,t){return t+1})),v=f.map((function(e){return e.number})),w=b.filter((function(e){return v.indexOf(e)<0})),M=r.parallel||5,e.next=17,this._parallel(w,M,(function(e){return new Promise((function(t,r){y(n,e).then((function(e){e&&f.push(e),t()})).catch((function(e){r(e)}))}))}));case 17:if(x=e.sent,g=!0,!(S=x.find((function(e){return"abort"===e.name})))){e.next=22;break}throw S;case 22:if(!this.isCancel()){e.next=25;break}throw y=null,this._makeCancelEvent();case 25:if(!(x&&x.length>0)){e.next=28;break}throw x[0].message="Failed to upload some parts with error: ".concat(x[0].toString()," part_num: ").concat(x[0].partNum),x[0];case 28:return e.next=30,this.completeMultipartUpload(d,c,f,r);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),f._getFileSize=function(){var e=(0,o.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!c(t)&&!h(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var p=e("stream").Readable;function m(e,t){if(!(this instanceof m))return new m(e,t);p.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}function g(e){return e.arrayBuffer?e.arrayBuffer():new Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e)},n.readAsArrayBuffer(e)}))}s.inherits(m,p),m.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.start<this.fileBuffer.length;){var r=this.start,n=r+e;n=n>this.fileBuffer.length?this.fileBuffer.length:n,this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},m.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);e=e||16384;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)}
2,f._createBuffer=function(){var e=(0,o.default)(i.default.mark((function e(r,n,o){var s,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!c(r)&&!h(r)){e.next=8;break}return s=r.slice(n,o),e.next=4,g(s);case 4:return a=e.sent,e.abrupt("return",t.from(a));case 8:if(!d(r)){e.next=12;break}return e.abrupt("return",r.subarray(n,o));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),f._getPartSize=function(e,t){t||(t=1048576);var r=Math.ceil(e/1e4);return t<r&&(t=r,console.warn("partSize has been set to ".concat(t,", because the partSize you provided causes partNumber to be greater than 10,000"))),t},f._divideParts=function(e,t){for(var r=Math.ceil(e/t),n=[],i=0;i<r;i++){var o=t*i,s=Math.min(o+t,e);n.push({start:o,end:s})}return n}}).call(this)}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":68,"../common/utils/isBuffer":69,"../common/utils/isFile":71,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,buffer:103,"copy-to":107,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.typed-array.copy-within.js":356,"core-js/modules/es.typed-array.every.js":357,"core-js/modules/es.typed-array.fill.js":358,"core-js/modules/es.typed-array.filter.js":359,"core-js/modules/es.typed-array.find-index.js":360,"core-js/modules/es.typed-array.find.js":361,"core-js/modules/es.typed-array.for-each.js":362,"core-js/modules/es.typed-array.includes.js":363,"core-js/modules/es.typed-array.index-of.js":364,"core-js/modules/es.typed-array.iterator.js":365,"core-js/modules/es.typed-array.join.js":366,"core-js/modules/es.typed-array.last-index-of.js":367,"core-js/modules/es.typed-array.map.js":368,"core-js/modules/es.typed-array.reduce-right.js":369,"core-js/modules/es.typed-array.reduce.js":370,"core-js/modules/es.typed-array.reverse.js":371,"core-js/modules/es.typed-array.set.js":372,"core-js/modules/es.typed-array.slice.js":373,"core-js/modules/es.typed-array.some.js":374,"core-js/modules/es.typed-array.sort.js":375,"core-js/modules/es.typed-array.subarray.js":376,"core-js/modules/es.typed-array.to-locale-string.js":377,"core-js/modules/es.typed-array.to-string.js":378,"core-js/modules/es.typed-array.uint8-array.js":379,mime:430,path:439,stream:468,util:489}],5:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.promise.js");var i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("fs"),a=e("copy-to"),u=e("path"),l=e("mime"),c=e("../common/callback"),h=e("merge-descriptors"),d=e("../common/utils/isBlob").isBlob,f=e("../common/utils/isFile").isFile,p=e("../common/utils/isBuffer").isBuffer,m=e("../common/utils/obj2xml").obj2xml,g=e("../common/utils/parseRestoreInfo").parseRestoreInfo,y=r;y.append=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(n=n||{}).position&&(n.position="0"),n.subres={append:"",position:n.position},n.method="POST",e.next=6,this.put(t,r,n);case 6:return(o=e.sent).nextAppendPosition=o.res.headers["x-oss-next-append-position"],e.abrupt("return",o);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),y.put=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s,a,h,m;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=n||{}).disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,n.headers=n.headers||{},t=this._objectName(t),!p(r)){e.next=8;break}o=r,e.next=19;break;case 8:if(!d(r)&&!f(r)){e.next=18;break}return n.mime||(f(r)?n.mime=l.getType(u.extname(r.name)):n.mime=r.type),e.next=12,this._createBuffer(r,0,r.size);case 12:return o=e.sent,e.next=15,this._getFileSize(r);case 15:n.contentLength=e.sent,e.next=19;break;
2case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(n.meta,n.headers),s=n.method||"PUT",a=this._objectRequestParams(s,t,n),c.encodeCallback(a,n),a.mime=n.mime,a.disabledMD5=n.disabledMD5,a.content=o,a.successStatuses=[200],e.next=29,this.request(a);case 29:return h=e.sent,m={name:t,url:this._objectUrl(t),res:h.res},a.headers&&a.headers["x-oss-callback"]&&(m.data=JSON.parse(h.data.toString())),e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),y.putStream=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s,a,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},t=this._objectName(t),n.contentLength?n.headers["Content-Length"]=n.contentLength:n.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(n.meta,n.headers),o=n.method||"PUT",s=this._objectRequestParams(o,t,n),c.encodeCallback(s,n),s.mime=n.mime,s.stream=r,s.successStatuses=[200],e.next=13,this.request(s);case 13:return a=e.sent,u={name:t,url:this._objectUrl(t),res:a.res},s.headers&&s.headers["x-oss-callback"]&&(u.data=JSON.parse(a.data.toString())),e.abrupt("return",u);case 17:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),h(y,e("../common/object/copyObject")),h(y,e("../common/object/getObjectTagging")),h(y,e("../common/object/putObjectTagging")),h(y,e("../common/object/deleteObjectTagging")),h(y,e("../common/image")),h(y,e("../common/object/getBucketVersions")),h(y,e("../common/object/getACL")),h(y,e("../common/object/putACL")),h(y,e("../common/object/head")),h(y,e("../common/object/delete")),h(y,e("../common/object/get")),h(y,e("../common/object/putSymlink")),h(y,e("../common/object/getSymlink")),h(y,e("../common/object/deleteMulti")),h(y,e("../common/object/getObjectMeta")),h(y,e("../common/object/getObjectUrl")),h(y,e("../common/object/generateObjectUrl")),h(y,e("../common/object/signatureUrl")),h(y,e("../common/object/asyncSignatureUrl")),h(y,e("../common/object/signatureUrlV4")),h(y,e("../common/object/signPostObjectPolicyV4")),y.putMeta=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.copy(t,t,{meta:r||{},timeout:n&&n.timeout,ctx:n&&n.ctx});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),y.list=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s,a,u;return i.default.wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return(n=this._objectRequestParams("GET","",r)).query=t,n.xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return o=e.sent,s=o.data.Contents||[],a=this,s&&(Array.isArray(s)||(s=[s]),s=s.map((function(e){return{name:e.Key,url:a._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName},restoreInfo:g(e.RestoreInfo)}}))),(u=o.data.CommonPrefixes||null)&&(Array.isArray(u)||(u=[u]),u=u.map((function(e){return e.Prefix}))),e.abrupt("return",{res:o.res,objects:s,prefixes:u,nextMarker:o.data.NextMarker||null,isTruncated:"true"===o.data.IsTruncated});case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),y.listV2=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s,a,u,l,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},(n=t["continuation-token"]||t.continuationToken)&&(r.subres=Object.assign({"continuation-token":n}
2,r.subres)),(o=this._objectRequestParams("GET","",r)).query=Object.assign({"list-type":2},t),delete o.query["continuation-token"],delete o.query.continuationToken,o.xmlResponse=!0,o.successStatuses=[200],e.next=11,this.request(o);case 11:return s=e.sent,a=s.data.Contents||[],u=this,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(e){var t=null;return e.Owner&&(t={id:e.Owner.ID,displayName:e.Owner.DisplayName}),{name:e.Key,url:u._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:t,restoreInfo:g(e.RestoreInfo)}}))),(l=s.data.CommonPrefixes||null)&&(Array.isArray(l)||(l=[l]),l=l.map((function(e){return e.Prefix}))),e.abrupt("return",{res:s.res,objects:a,prefixes:l,isTruncated:"true"===s.data.IsTruncated,keyCount:+s.data.KeyCount,continuationToken:s.data.ContinuationToken||null,nextContinuationToken:s.data.NextContinuationToken||null});case 18:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),y.restore=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s,a=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=(r=a.length>1&&void 0!==a[1]?a[1]:{type:"Archive"})||{}).subres=Object.assign({restore:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParam
2s("POST",t,r),o={RestoreRequest:{Days:r.Days?r.Days:2}},"ColdArchive"!==r.type&&"DeepColdArchive"!==r.type||(o.RestoreRequest.JobParameters={Tier:r.JobParameters?r.JobParameters:"Standard"}),n.content=m(o,{headers:!0}),n.mime="xml",n.successStatuses=[202],e.next=12,this.request(n);case 12:return s=e.sent,e.abrupt("return",{res:s.res});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),y._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},y._objectRequestParams=function(e,t,r){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");r=r||{};var n={object:t=this._objectName(t),bucket:this.options.bucket,method:e,subres:r&&r.subres,additionalHeaders:r&&r.additionalHeaders,timeout:r&&r.timeout,ctx:r&&r.ctx};return r.headers&&(n.headers={},a(r.headers).to(n.headers)),n},y._objectName=function(e){return e.replace(/^\/+/,"")},y._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach((function(r){t["x-oss-meta-".concat(r)]=e[r]}))},y._deleteFileSafe=function(e){var t=this;return new Promise((function(r){s.exists(e,(function(n){n?s.unlink(e,(function(n){n&&t.debug("unlink %j error: %s",e,n,"error"),r()})):r()}))}))}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signPostObjectPolicyV4":48,"../common/object/signatureUrl":49,"../common/object/signatureUrlV4":50,"../common/utils/isBlob":68,"../common/utils/isBuffer":69,"../common/utils/isFile":71,"../common/utils/obj2xml":76,"../common/utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,fs:102,"merge-descriptors":428,mime:430,path:439}],6:[function(e,t,r){"use strict";r.version="6.23.0"},{}],7:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.abortBucketWorm=void 0;var s=e("../utils/checkBucketName");function a(){return(a=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),n=this._bucketRequestParam
2s("DELETE",t,"worm",r),e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res,status:o.status});case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.abortBucketWorm=function(e,t){return a.apply(this,arguments)}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],8:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.completeBucketWorm=void 0;var s=e("../utils/checkBucketName");function a(){return(a=(0,o.default)(i.default.mark((function e(t,r,n){var o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),o=this._bucketRequestParams("POST",t,{wormId:r},n),e.next=4,this.request(o);case 4:return a=e.sent,e.abrupt("return",{res:a.res,status:a.status});case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.completeBucketWorm=function(e,t,r){return a.apply(this,arguments)}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],9:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.deleteBucketInventory=void 0;var s=e("../utils/checkBucketName");function a(){return(a=(0,o.default)(i.default.mark((function e(t,r){var n,o,a,u,l=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},o=Object.assign({inventory:"",inventoryId:r}
2,n.subres),s.checkBucketName(t),(a=this._bucketRequestParams("DELETE",t,o,n)).successStatuses=[204],e.next=7,this.request(a);case 7:return u=e.sent,e.abrupt("return",{status:u.status,res:u.res});case 9:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.deleteBucketInventory=function(e,t){return a.apply(this,arguments)}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],10:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.deleteBucketLifecycle=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("DELETE",t,"lifecycle",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],11:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.deleteBucketWebsite=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParam
2s("DELETE",t,"website",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],12:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.extendBucketWorm=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function u(){return(u=(0,o.default)(i.default.mark((function e(t,r,n,o){var u,l,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),u=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:r},o),l={ExtendWormConfiguration:{RetentionPeriodInDays:n}},u.mime="xml",u.content=a.obj2xml(l,{headers:!0}),u.successStatuses=[200],e.next=8,this.request(u);case 8:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.extendBucketWorm=function(e,t,r,n){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],13:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function u(){return(u=(0,o.default)(i.default.mark((function e(t,r){var n,o,u,l,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},o=Object.assign({inventory:"",inventoryId:r}
2,n.subres),s.checkBucketName(t),(u=this._bucketRequestParams("GET",t,o,n)).successStatuses=[200],u.xmlResponse=!0,e.next=8,this.request(u);case 8:return l=e.sent,e.abrupt("return",{status:l.status,res:l.res,inventory:a.formatInventoryConfig(l.data)});case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.getBucketInventory=function(e,t){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],14:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isArray").isArray,u=e("../utils/formatObjKey").formatObjKey;r.getBucketLifecycle=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParam
2s("GET",t,"lifecycle",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,(l=o.data.Rule||null)&&(a(l)||(l=[l]),l=l.map((function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!a(e.Tag)&&(e.Tag=[e.Tag]),u(e,"firstLowerCase")}))),e.abrupt("return",{rules:l,res:o.res});case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"../utils/formatObjKey":64,"../utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.getBucketVersioning=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParam
2s("GET",t,"versioning",r)).xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return o=e.sent,a=o.data.Status,e.abrupt("return",{status:o.status,versionStatus:a,res:o.res});case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],16:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isObject").isObject;r.getBucketWebsite=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("GET",t,"website",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,u=[],o.data.RoutingRules&&o.data.RoutingRules.RoutingRule&&(u=a(o.data.RoutingRules.RoutingRule)?[o.data.RoutingRules.RoutingRule]:o.data.RoutingRules.RoutingRule),e.abrupt("return",{index:o.data.IndexDocument&&o.data.IndexDocument.Suffix||"",supportSubDir:o.data.IndexDocument&&o.data.IndexDocument.SupportSubDir||"false",type:o.data.IndexDocument&&o.data.IndexDocument.Type,routingRules:u,error:o.data.ErrorDocument&&o.data.ErrorDocument.Key||null,res:o.res});case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],17:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketWorm=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/dataFix");function u(){return(u=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),(n=this._bucketRequestParam
2s("GET",t,"worm",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,a.dataFix(o.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},o.data),{res:o.res,status:o.status}));case 9:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.getBucketWorm=function(e,t){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/dataFix":59,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],18:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.initiateBucketWorm=void 0;var s=e("../utils/obj2xml"),a=e("../utils/checkBucketName");function u(){return(u=(0,o.default)(i.default.mark((function e(t,r,n){var o,u,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),o=this._bucketRequestParam
2s("POST",t,"worm",n),u={InitiateWormConfiguration:{RetentionPeriodInDays:r}},o.mime="xml",o.content=s.obj2xml(u,{headers:!0}),o.successStatuses=[200],e.next=8,this.request(o);case 8:return l=e.sent,e.abrupt("return",{res:l.res,wormId:l.res.headers["x-oss-worm-id"],status:l.status});case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.initiateBucketWorm=function(e,t,r){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],19:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.listBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function u(){return(u=(0,o.default)(i.default.mark((function e(t){var r,n,o,u,l,c,h,d,f=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=f.length>1&&void 0!==f[1]?f[1]:{},n=r.continuationToken,o=Object.assign({inventory:""},n&&{"continuation-token":n}
2,r.subres),s.checkBucketName(t),(u=this._bucketRequestParams("GET",t,o,r)).successStatuses=[200],u.xmlResponse=!0,e.next=9,this.request(u);case 9:return l=e.sent,c=l.data,h=l.res,d=l.status,e.abrupt("return",{isTruncated:"true"===c.IsTruncated,nextContinuationToken:c.NextContinuationToken,inventoryList:a.formatInventoryConfig(c.InventoryConfiguration,!0),status:d,res:h});case 12:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.listBucketInventory=function(e){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],20:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.putBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function u(){return(u=(0,o.default)(i.default.mark((function e(t,r){var n,o,u,l,c,h,d,f,p,m,g,y=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=y.length>2&&void 0!==y[2]?y[2]:{},o=Object.assign({inventory:"",inventoryId:r.id},n.subres),s.checkBucketName(t),u=r.OSSBucketDestination,l=r.optionalFields,c=r.includedObjectVersions,h="acs:oss:::",d="acs:ram::".concat(u.accountId,":role/"),f={InventoryConfiguration:{Id:r.id,IsEnabled:r.isEnabled,Filter:{Prefix:r.prefix||""},Destination:{OSSBucketDestination:{Format:u.format,AccountId:u.accountId,RoleArn:"".concat(d).concat(u.rolename),Bucket:"".concat(h).concat(u.bucket),Prefix:u.prefix||"",Encryption:u.encryption||""}},Schedule:{Frequency:r.frequency},IncludedObjectVersions:c,OptionalFields:{Field:(null===l||void 0===l?void 0:l.field)||[]}}},p=a.obj2xml(f,{headers:!0,firstUpperCase:!0}
2),(m=this._bucketRequestParams("PUT",t,o,n)).successStatuses=[200],m.mime="xml",m.content=p,e.next=14,this.request(m);case 14:return g=e.sent,e.abrupt("return",{status:g.status,res:g.res});case 16:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}r.putBucketInventory=function(e,t){return u.apply(this,arguments)}},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325}],21:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array.includes.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isArray").isArray,u=e("../utils/deepCopy").deepCopy,l=e("../utils/isObject").isObject,c=e("../utils/obj2xml").obj2xml,h=e("../utils/checkObjectTag").checkObjectTag,d=e("../utils/getStrBytesCount").getStrBytesCount;function f(e,t){var r=e.days,n=e.createdBeforeDate;if(!r&&!n)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(r&&(a(r)||!/^[1-9][0-9]*$/.test(r)))throw new Error("days must be a positive integer");if(n&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(n))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function p(e,t){var r=e.noncurrentDays;if(!r)throw new Error("".concat(t," must includes noncurrentDays"));if(r&&(a(r)||!/^[1-9][0-9]*$/.test(r)))throw new Error("noncurrentDays must be a positive integer")}function m(e){if(!["IA","Archive","ColdArchive","DeepColdArchive"].includes(e))throw new Error("StorageClass must be IA or Archive or ColdArchive or DeepColdArchive")}function g(e){if(e.id&&d(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(!e.expiration&&!e.noncurrentVersionExpiration&&!e.abortMultipartUpload&&!e.transition&&!e.noncurrentVersionTransition)throw new Error("Rule must includes expiration or noncurrentVersionExpiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.transition&&(m(e.transition.storageClass),f(e.transition,"Transition")),e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else f(e.expiration,"Expiration");if(e.abortMultipartUpload&&f(e.abortMultipartUpload,"AbortMultipartUpload"),e.noncurrentVersionTransition&&(m(e.noncurrentVersionTransition.storageClass),p(e.noncurrentVersionTransition,"NoncurrentVersionTransition")),e.noncurrentVersionExpiration&&p(e.noncurrentVersionExpiration,"NoncurrentVersionExpiration"),e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");!function(e){if(!a(e)&&!l(e))throw new Error("tag must be Object or Array");e=l(e)?[e]:e;var t={};u(e).forEach((function(e){t[e.key]=e.value})),h(t)}(e.tag)}}r.putBucketLifecycle=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,u,l,h,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s(t),a(r)){e.next=3;break}throw new Error("rules must be Array");
2case 3:return o=this._bucketRequestParams("PUT",t,"lifecycle",n),l={LifecycleConfiguration:{Rule:u=[]}},r.forEach((function(e){var t;(t=e).days&&(t.expiration={days:t.days}),t.date&&(t.expiration={createdBeforeDate:t.date}),g(e),e.id&&(e.ID=e.id,delete e.id),u.push(e)})),h=c(l,{headers:!0,firstUpperCase:!0}),o.content=h,o.mime="xml",o.successStatuses=[200],e.next=13,this.request(o);case 13:return d=e.sent,e.abrupt("return",{res:d.res});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"../utils/checkObjectTag":56,"../utils/deepCopy":60,"../utils/getStrBytesCount":66,"../utils/isArray":67,"../utils/isObject":74,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.includes.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/obj2xml").obj2xml;r.putBucketVersioning=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,u,l,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>2&&void 0!==c[2]?c[2]:{},s(t),["Enabled","Suspended"].includes(r)){e.next=4;break}throw new Error("status must be Enabled or Suspended");
2case 4:return o=this._bucketRequestParams("PUT",t,"versioning",n),u={VersioningConfiguration:{Status:r}},o.mime="xml",o.content=a(u,{headers:!0}),e.next=10,this.request(o);case 10:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315}],23:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/obj2xml").obj2xml,u=e("../utils/isArray").isArray;r.putBucketWebsite=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,l,c,h,d,f=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=f.length>1&&void 0!==f[1]?f[1]:{},n=f.length>
22?f[2]:void 0,s(t),o=this._bucketRequestParams("PUT",t,"website",n),l={Suffix:r.index||"index.html"},h={WebsiteConfiguration:c={IndexDocument:l}},r.supportSubDir&&(l.SupportSubDir=r.supportSubDir),r.type&&(l.Type=r.type),r.error&&(c.ErrorDocument={Key:r.error}),void 0===r.routingRules){e.next=14;break}if(u(r.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:c.RoutingRules={RoutingRule:r.routingRules};case 14:return h=a(h),o.content=h,o.mime="xml",o.successStatuses=[200],e.next=20,this.request(o);case 20:return d=e.sent,e.abrupt("return",{res:d.res});case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"../utils/isArray":67,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],24:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),r.encodeCallback=function(e,r){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&r.callback){var n={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(n.callbackHost=r.callback.host),r.callback.contentType&&(n.callbackBodyType=r.callback.contentType),r.callback.callbackSNI&&(n.callbackSNI=r.callback.callbackSNI);var i=t.from(JSON.stringify(n)).toString("base64");if(e.headers["x-oss-callback"]=i,r.callback.customValue){var o={};Object.keys(r.callback.customValue).forEach((function(e){o["x:".concat(e)]=r.callback.customValue[e].toString()})),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(o)).toString("base64")}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],25:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getReqUrl=void 0;var i=n(e("copy-to")),o=n(e("url")),s=n(e("merge-descriptors")),a=n(e("is-type-of")),u=e("../utils/isIP"),l=e("../utils/checkConfigValid");r.getReqUrl=function(e){var t={},r=this.options.cname;l.checkConfigValid(this.options.endpoint,"endpoint"),i.default(this.options.endpoint,!1).to(t),!e.bucket||r||u.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var n="/";e.bucket&&this.options.sldEnable&&(n+="".concat(e.bucket,"/")),e.object&&(n+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=n;var c={};if(e.query&&s.default(c,e.query),e.subres){var h={};a.default.string(e.subres)?h[e.subres]="":a.default.array(e.subres)?e.subres.forEach((function(e){h[e]=""})):h=e.subres,s.default(c,h)}return t.query=c,o.default.format(t)}},{"../utils/checkConfigValid":54,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,"is-type-of":537,"merge-descriptors":428,url:543}],26:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var n=e("humanize-ms"),i=e("url"),o=e("../utils/checkBucketName").checkBucketName,s=e("../utils/setRegion").setRegion,a=e("../utils/checkConfigValid").checkConfigValid;t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");!e.stsToken||e.refreshSTSToken||e.refreshSTSTokenInterval||console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),e.bucket&&o(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0,authorizationV4:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=n(t.timeout)),t.endpoint)t.endpoint=function(e,t){a(e,"endpoint");var r=i.parse(e);if(r.protocol||(r=i.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==r.protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");
2t.endpoint=s(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":53,"../utils/checkConfigValid":54,"../utils/setRegion":81,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.string.trim.js":349,"humanize-ms":399,url:543}],27:[function(e,t,r){"use strict";e("merge-descriptors")(r,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":428}],28:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("querystring"),u=e("js-base64").Base64.encode;function l(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!==typeof e)throw new Error("".concat(t," must be String"))}r.processObjectSave=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var c,h,d,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(t,"sourceObject"),l(r,"targetObject"),l(n,"process"),r=this._objectName(r),o&&s(o),c=this._objectRequestParam
2s("POST",t,{subres:"x-oss-process"}),h=o?",b_".concat(u(o)):"",r=u(r),d={"x-oss-process":"".concat(n,"|sys/saveas,o_").concat(r).concat(h)},c.content=a.stringify(d),e.next=12,this.request(c);case 12:return f=e.sent,e.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"js-base64":413,querystring:451}],29:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("debug")("ali-oss:multipart-copy"),a=e("copy-to"),u=r;u.uploadPartCopy=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o,s){var a,u,l,c,h,d=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=d.length>5&&void 0!==d[5]?d[5]:{}).headers=a.headers||{},u=a.versionId||a.subres&&a.subres.versionId||null,l=u?"/".concat(s.sourceBucketName,"/").concat(encodeURIComponent(s.sourceKey),"?versionId=").concat(u):"/".concat(s.sourceBucketName,"/").concat(encodeURIComponent(s.sourceKey)),a.headers["x-oss-copy-source"]=l,o&&(a.headers["x-oss-copy-source-range"]="bytes=".concat(o)),a.subres={partNumber:n,uploadId:r}
2,(c=this._objectRequestParams("PUT",t,a)).mime=a.mime,c.successStatuses=[200],e.next=12,this.request(c);case 12:return h=e.sent,e.abrupt("return",{name:t,etag:h.res.headers.etag,res:h.res});case 14:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}(),u.multipartUploadCopy=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,s,a,u,l,c,h,d,f,p,m=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=m.length>2&&void 0!==m[2]?m[2]:{},this.resetCancelFlag(),o=n.versionId,s={versionId:void 0===o?null:o},e.next=6,this._getObjectMeta(r.sourceBucketName,r.sourceKey,s);case 6:if(a=e.sent,u=a.res.headers["content-length"],r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||u,!n.checkpoint||!n.checkpoint.uploadId){e.next=14;break}return e.next=13,this._resumeMultipartCopy(n.checkpoint,r,n);case 13:return e.abrupt("return",e.sent);case 14:if(l=102400,!((c=r.endOffset-r.startOffset)<l)){e.next=18;break}throw new Error("copySize must not be smaller than ".concat(l));case 18:if(!(n.partSize&&n.partSize<l)){e.next=20;break}throw new Error("partSize must not be smaller than ".concat(l));case 20:return e.next=22,this.initMultipartUpload(t,n);case 22:if(h=e.sent,d=h.uploadId,f=this._getPartSize(c,n.partSize),p={name:t,copySize:c,partSize:f,uploadId:d,doneParts:[]},!n||!n.progress){e.next=29;break}return e.next=29,n.progress(0,p,h.res);case 29:return e.next=31,this._resumeMultipartCopy(p,r,n);case 31:return e.abrupt("return",e.sent);case 32:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),u._resumeMultipartCopy=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var u,l,c,h,d,f,p,m,g,y,b,v,w,M,x,S,_,k,A,j;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isCancel()){e.next=2;break}throw this._makeCancelEvent();case 2:if(u=n.versionId,c={versionId:l=void 0===u?null:u},h=t.copySize,d=t.partSize,f=t.uploadId,p=t.doneParts,m=t.name,g=this._divideMultipartCopyParts(h,d,r.startOffset),y=g.length,b={headers:{}},n.copyheaders&&a(n.copyheaders).to(b.headers),l&&a(c).to(b),v=function(e,r,a){return new Promise(function(){var u=(0,o.default)(i.default.mark((function o(u,l){var c,h,d;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=22;break}return c=g[r-1],h="".concat(c.start,"-").concat(c.end-1),i.prev=4,i.next=7,e.uploadPartCopy(m,f,r,h,a,b);case 7:d=i.sent,i.next=15;break;case 10:if(i.prev=10,i.t0=i.catch(4),404!==i.t0.status){i.next=14;break}throw e._makeAbortEvent();case 14:throw i.t0;case 15:if(e.isCancel()){i.next=22;break}if(s("content-range ".concat(d.res.headers["content-range"])),p.push({number:r,etag:d.res.headers.etag}),t.doneParts=p,!n||!n.progress){i.next=22;break}return i.next=22,n.progress(p.length/y,t,d.res);case 22:u(),i.next=29;break;case 25:i.prev=25,i.t1=i.catch(0),i.t1.partNum=r,l(i.t1);case 29:case"end":return i.stop()}}),o,null,[[0,25],[4,10]])})));return function(e,t){return u.apply(this,arguments)}}())},w=Array.from(new Array(y),(function(e,t){return t+1})),M=p.map((function(e){return e.number})),x=w.filter((function(e){return M.indexOf(e)<0})),S=n.parallel||5,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==S){e.next=28;break}_=0;case 18:if(!(_<x.length)){e.next=26;break}if(!this.isCancel()){e.next=21;break}throw this._makeCancelEvent();case 21:return e.next=23,v(this,x[_],r);case 23:_++,e.next=18;break;case 26:e.next=40;break;case 28:return e.next=30,this._parallelNode(x,S,v,r);case 30:if(k=e.sent,!(A=k.find((function(e){return"abort"===e.name})))){e.next=34;break}throw A;case 34:if(!this.isCancel()){e.next=36;break}throw this._makeCancelEvent();case 36:if(!(k&&k.length>0)){e.next=40;break}throw(j=k[0]).message="Failed to copy some parts with error: ".concat(j.toString()," part_num: ").concat(j.partNum),j;case 40:return e.next=42,this.completeMultipartUpload(m,f,p,n);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),u._divideMultipartCopyParts=function(e,t,r){for(var n=Math.ceil(e/t),i=[],o=0;o<n;o++){var s=t*o+r,a=Math.min(s+t,e+r);i.push({start:s,end:a})}return i},u._getObjectMeta=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getBucket(),this.setBucket(t),e.next=4,this.head(r,n);case 4:return s=e.sent,this.setBucket(o),e.abrupt("return",s);case 7:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.array.
2concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,debug:536}],30:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.regexp.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("copy-to"),a=e("./callback"),u=e("./utils/deepCopy").deepCopyWith,l=e("./utils/isBuffer").isBuffer,c=e("./utils/omit").omit,h=r;h.listUploads=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,a,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},s(r=r||{}
2).to(n),n.subres="uploads",(o=this._objectRequestParams("GET","",n)).query=t,o.xmlResponse=!0,o.successStatuses=[200],e.next=10,this.request(o);case 10:return a=e.sent,u=a.data.Upload||[],Array.isArray(u)||(u=[u]),u=u.map((function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}})),e.abrupt("return",{res:a.res,uploads:u,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:"true"===a.data.IsTruncated});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),h.listParts=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var a,u,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},s(o=o||{}).to(a),a.subres={uploadId:r},(u=this._objectRequestParams("GET",t,a)).query=n,u.xmlResponse=!0,u.successStatuses=[200],e.next=10,this.request(u);case 10:return l=e.sent,e.abrupt("return",{res:l.res,uploadId:l.data.UploadId,bucket:l.data.Bucket,name:l.data.Key,partNumberMarker:l.data.PartNumberMarker,nextPartNumberMarker:l.data.NextPartNumberMarker,maxParts:l.data.MaxParts,isTruncated:l.data.IsTruncated,parts:l.data.Part||[]});case 12:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),h.abortMultipartUpload=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,a,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._stop(),o={},s(n=n||{}).to(o),o.subres={uploadId:r}
2,(a=this._objectRequestParams("DELETE",t,o)).successStatuses=[204],e.next=9,this.request(a);case 9:return u=e.sent,e.abrupt("return",{res:u.res});case 11:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}(),h.initMultipartUpload=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},s(r=r||{}).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(r.meta,n.headers),n.subres="uploads",(o=this._objectRequestParams("POST",t,n)).mime=r.mime,o.xmlResponse=!0,o.successStatuses=[200],e.next=12,this.request(o);case 12:return a=e.sent,e.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),h.uploadPart=function(){var e=(0,o.default)(i.default.mark((function e(r,n,o,s,a,u,l){var c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c={size:u-a},!t||!t.browser){e.next=8;break}return e.next=5,this._createBuffer(s,a,u);case 5:c.content=e.sent,e.next=11;break;case 8:return e.next=10,this._createStream(s,a,u);case 10:c.stream=e.sent;case 11:return e.next=13,this._uploadPart(r,n,o,c,l);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o,s,a){return e.apply(this,arguments)}}(),h.completeMultipartUpload=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var s,h,d,f,p,m,g,y;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=n.concat().sort((function(e,t){return e.number-t.number})).filter((function(e,t,r){return!t||e.number!==r[t-1].number})),h='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',d=0;d<s.length;d++)f=s[d],h+="<Part>\n",h+="<PartNumber>".concat(f.number,"</PartNumber>\n"),h+="<ETag>".concat(f.etag,"</ETag>\n"),h+="</Part>\n";return h+="</CompleteMultipartUpload>",p={},(p=u(o=o||{},(function(e){if(l(e))return null}))).subres={uploadId:r},p.headers=c(p.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),m=this._objectRequestParam
2s("POST",t,p),a.encodeCallback(m,p),m.mime="xml",m.content=h,m.headers&&m.headers["x-oss-callback"]||(m.xmlResponse=!0),m.successStatuses=[200],e.next=17,this.request(m);case 17:if(g=e.sent,!o.progress){e.next=21;break}return e.next=21,o.progress(1,null,g.res);case 21:return y={res:g.res,bucket:m.bucket,name:t,etag:g.res.headers.etag},m.headers&&m.headers["x-oss-callback"]&&(y.data=JSON.parse(g.data.toString())),e.abrupt("return",y);case 24:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),h._uploadPart=function(){var e=(0,o.default)(i.default.mark((function e(r,n,o,a,u){var l,h,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l={},s(u=u||{}).to(l),l.headers=l.headers||{},l.headers["Content-Length"]=a.size,l.headers=c(l.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),l.subres={partNumber:o,uploadId:n},(h=this._objectRequestParams("PUT",r,l)).mime=l.mime,t&&t.browser?h.content=a.content:h.stream=a.stream,h.successStatuses=[200],h.disabledMD5=u.disabledMD5,e.next=15,this.request(h);case 15:if((d=e.sent).res.headers.etag){e.next=18;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 18:return a.stream&&(a.stream=null,h.stream=null),e.abrupt("return",{name:r,etag:d.res.headers.etag,res:d.res});case 20:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()}).call(this)}).call(this,e("_process"))},{"./callback":24,"./utils/deepCopy":60,"./utils/isBuffer":69,"./utils/omit":77,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("url"),a=e("utility"),u=e("copy-to"),l=e("../../common/signUtils"),c=e("../utils/isIP").isIP,h=e("../utils/setSTSToken").setSTSToken,d=e("../utils/isFunction").isFunction;r.asyncSignatureUrl=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,f,p,m,g,y=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(y.length>2&&void 0!==y[2])||y[2],!c(this.options.endpoint.hostname)){e.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!n||!/^\?/.test(t)){e.next=5;break}throw new Error("Invalid object name ".concat(t));case 5:if(r=r||{},t=this._objectName(t),r.method=r.method||"GET",o=a.timestamp()+(r.expires||1800),f={bucket:this.options.bucket,object:t},p=this._getResource(f),!this.options.stsToken||!d(this.options.refreshSTSToken)){e.next=14;break}return e.next=14,h.call(this);case 14:return this.options.stsToken&&(r["security-token"]=this.options.stsToken),m=l._signatureForURL(this.options.accessKeySecret,r,p,o),(g=s.parse(this._getReqUrl(f))).query={OSSAccessKeyId:this.options.accessKeyId,Expires:o,Signature:m.Signature},u(m.subResource).to(g.query),e.abrupt("return",g.format());case 20:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../../common/signUtils":52,"../utils/isFunction":72,"../utils/isIP":73,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.
2concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var o=n(e("@babel/runtime/helpers/typeof")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,u=r,l=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];u.copy=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n,s){var a,u,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"object"===(0,o.default)(n)&&(s=n),(s=s||{}).headers=s.headers||{},Object.keys(s.headers).forEach((function(e){s.headers["x-oss-copy-source-".concat(e.toLowerCase())]=s.headers[e]})),(s.meta||Object.keys(s.headers).find((function(e){return l.includes(e.toLowerCase())})))&&(s.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(s.meta,s.headers),r=this._getSourceName(r,n),s.versionId&&(r="".concat(r,"?versionId=").concat(s.versionId)),s.headers["x-oss-copy-source"]=r,(a=this._objectRequestParams("PUT",t,s)).xmlResponse=!0,a.successStatuses=[200,304],e.next=14,this.request(a);case 14:return u=e.sent,(c=u.data)&&(c={etag:c.ETag,lastModified:c.LastModified}),e.abrupt("return",{data:c,res:u.res});case 18:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),u._getSourceName=function(e,t){return"string"===typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),a(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.delete=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParam
2s("DELETE",t,r)).successStatuses=[204],e.next=7,this.request(n);case 7:return o=e.sent,e.abrupt("return",{res:o.res});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],34:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("utility"),a=e("../utils/obj2xml").obj2xml;r.deleteMulti=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,u,l,c,h,d,f,p,m,g,y,b=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=b.length>1&&void 0!==b[1]?b[1]:{},n=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(o=0;o<t.length;o++)u={},"string"===typeof t[o]?u.Key=s.escape(this._objectName(t[o])):(l=t[o],c=l.key,h=l.versionId,u.Key=s.escape(this._objectName(c)),u.VersionId=h),n.push(u);return d={Delete:{Quiet:!!r.quiet,Object:n}},f=a(d,{headers:!0}),r.subres=Object.assign({delete:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(p=this._objectRequestParam
2s("POST","",r)).mime="xml",p.content=f,p.xmlResponse=!0,p.successStatuses=[200],e.next=16,this.request(p);case 16:return m=e.sent,g=m.data,(y=g&&g.Deleted||null)&&(Array.isArray(y)||(y=[y])),e.abrupt("return",{res:m.res,deleted:y||[]});case 21:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,utility:545}],35:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.deleteObjectTagging=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParam
2s("DELETE",t,r)).successStatuses=[204],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],36:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js");var n=e("url"),i=e("../utils/isIP").isIP;r.generateObjectUrl=function(e,t){if(i(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var r=n.parse(t),o=this.options.bucket;r.hostname="".concat(o,".").concat(r.hostname),r.host="".concat(o,".").concat(r.host),t=r.format()}return t+this._escape(this._objectName(e))}},{"../utils/isIP":73,"core-js/modules/es.array.concat.js":310,url:543}],37:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("fs"),a=e("is-type-of"),u=e("../utils/isObject").isObject;r.get=function(){var e=(0,o.default)(i.default.mark((function e(r,n){var o,l,c,h,d,f,p,m,g=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.length>2&&void 0!==g[2]?g[2]:{},l=null,c=!1,a.writableStream(n)?l=n:a.string(n)?(l=s.createWriteStream(n),c=!0):u(n)&&(o=n),o=o||{},h=t&&t.browser,d=null===o.responseCacheControl?"":"no-cache",f=h&&d?{"response-cache-control":d}:{},o.subres=Object.assign(f,o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),e.prev=11,(m=this._objectRequestParam
2s("GET",r,o)).writeStream=l,m.successStatuses=[200,206,304],e.next=17,this.request(m);case 17:p=e.sent,c&&l.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e.catch(11),!c){e.next=27;break}return l.destroy(),e.next=27,this._deleteFileSafe(n);case 27:throw e.t0;case 28:return e.abrupt("return",{res:p.res,content:p.data});case 29:case"end":return e.stop()}}),e,this,[[11,21]])})));return function(t,r){return e.apply(this,arguments)}}()}).call(this)}).call(this,e("_process"))},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"core-js/modules/es.object.assign.js":325,fs:102,"is-type-of":537}],38:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getACL=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParam
2s("GET",t,r)).successStatuses=[200],n.xmlResponse=!0,e.next=9,this.request(n);case 9:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],39:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r,a=e("../utils/isObject").isObject,u=e("../utils/isArray").isArray,l=e("../utils/parseRestoreInfo").parseRestoreInfo;function c(){return h.apply(this,arguments)}function h(){return(h=(0,o.default)(i.default.mark((function e(){var t,r,n,o,s,a,c,h,d=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:{},r=d.length>1&&void 0!==d[1]?d[1]:{},!t.versionIdMarker||void 0!==t.keyMarker){e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return r.subres=Object.assign({versions:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParam
2s("GET","",r)).xmlResponse=!0,n.successStatuses=[200],n.query=f(t),e.next=12,this.request(n);case 12:return o=e.sent,s=o.data.Version||[],a=o.data.DeleteMarker||[],c=this,s&&(Array.isArray(s)||(s=[s]),s=s.map((function(e){return{name:e.Key,url:c._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName},restoreInfo:l(e.RestoreInfo)}}))),a&&(u(a)||(a=[a]),a=a.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),(h=o.data.CommonPrefixes||null)&&(u(h)||(h=[h]),h=h.map((function(e){return e.Prefix}))),e.abrupt("return",{res:o.res,objects:s,deleteMarker:a,prefixes:h,nextMarker:o.data.NextKeyMarker||null,NextVersionIdMarker:o.data.NextVersionIdMarker||null,nextKeyMarker:o.data.NextKeyMarker||null,nextVersionIdMarker:o.data.NextVersionIdMarker||null,isTruncated:"true"===o.data.IsTruncated});case 21:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function d(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return a(e)&&Object.keys(e).forEach((function(r){t[d(r)]=e[r]})),t}s.getBucketVersions=c,s.listObjectVersions=c},{"../utils/isArray":67,"../utils/isObject":74,"../utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],40:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getObjectMeta=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},t=this._objectName(t),r.subres=Object.assign({objectMeta:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParam
2s("HEAD",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],41:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r,a=e("../utils/isObject").isObject;s.getObjectTagging=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s,u,l,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=c.length>1&&void 0!==c[1]?c[1]:{}).subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParam
2s("GET",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.next=11,this.parseXML(o.data);case 11:return s=e.sent,u=(u=s.TagSet.Tag)&&a(u)?[u]:u||[],l={},u.forEach((function(e){l[e.Key]=e.Value})),e.abrupt("return",{status:o.status,res:o.res,tag:l});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],42:[function(e,t,r){"use strict";var n=e("../utils/isIP").isIP;r.getObjectUrl=function(e,t){if(n(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":73}],43:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getSymlink=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,s,a=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=a.length>1&&void 0!==a[1]?a[1]:{}).subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParam
2s("GET",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,s=o.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(s),res:o.res});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],44:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkEnv").checkEnv;r.head=function(){var e=(0,o.default)(i.default.mark((function e(t){var r,n,o,a,u=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},s("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),r.subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParam
2s("HEAD",t,r)).successStatuses=[200,304],e.next=8,this.request(n);case 8:return o=e.sent,a={meta:null,res:o.res,status:o.status},200===o.status&&Object.keys(o.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(a.meta||(a.meta={}),a.meta[e.substring(11)]=o.headers[e])})),e.abrupt("return",a);case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{"../utils/checkEnv":55,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],45:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putACL=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).subres=Object.assign({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=r,t=this._objectName(t),(o=this._objectRequestParam
2s("PUT",t,n)).successStatuses=[200],e.next=10,this.request(o);case 10:return s=e.sent,e.abrupt("return",{res:s.res});case 12:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/obj2xml").obj2xml,a=e("../utils/checkObjectTag").checkObjectTag;r.putObjectTagging=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o,u,l,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},a(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(o=this._objectRequestParam
2s("PUT",t,n)).successStatuses=[200],r=Object.keys(r).map((function(e){return{Key:e,Value:r[e]}})),u={Tagging:{TagSet:{Tag:r}}},o.mime="xml",o.content=s(u),e.next=13,this.request(o);case 13:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{"../utils/checkObjectTag":56,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328}],47:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putSymlink=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n){var o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},r=this._escape(this._objectName(r)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=r,n.subres=Object.assign({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),t=this._objectName(t),(o=this._objectRequestParam
2s("PUT",t,n)).successStatuses=[200],e.next=13,this.request(o);case 13:return s=e.sent,e.abrupt("return",{res:s.res});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],48:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.signPostObjectPolicyV4=void 0;var i=n(e("dateformat")),o=e("../utils/getStandardRegion"),s=e("../utils/policy2Str"),a=e("../signUtils");r.signPostObjectPolicyV4=function(e,r){var n=t.from(s.policy2Str(e),"utf8").toString("base64"),u=i.default(r,"UTC:yyyymmdd'T'HHMMss'Z'").split("T")[0];return a.getSignatureV4(this.options.accessKeySecret,u,o.getStandardRegion(this.options.region),n)}}).call(this)}).call(this,e("buffer").Buffer)},{"../signUtils":52,"../utils/getStandardRegion":65,"../utils/policy2Str":79,buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,dateformat:383}],49:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js");var n=e("url"),i=e("utility"),o=e("copy-to"),s=e("../../common/signUtils"),a=e("../utils/isIP").isIP;r.signatureUrl=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(a(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(r&&/^\?/.test(e))throw new Error("Invalid object name ".concat(e));t=t||{},e=this._objectName(e),t.method=t.method||"GET";var u=i.timestamp()+(t.expires||1800),l={bucket:this.options.bucket,object:e},c=this._getResource(l);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var h=s._signatureForURL(this.options.accessKeySecret,t,c,u),d=n.parse(this._getReqUrl(l));return d.query={OSSAccessKeyId:this.options.accessKeyId,Expires:u,Signature:h.Signature},o(h.subResource).to(d.query),d.format()}},{"../../common/signUtils":52,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],50:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.join.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("dateformat"),a=e("url"),u=e("../../common/signUtils"),l=e("../utils/setSTSToken").setSTSToken,c=e("../utils/isFunction").isFunction,h=e("../utils/getStandardRegion").getStandardRegion;r.signatureUrlV4=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o,d){var f,p,m,g,y,b,v,w,M,x,S,_;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=this.options.cloudBoxId,p=u.getProduct(f),m=u.getSignRegion(h(this.options.region),f),g=n&&n.headers||{},y=Object.assign({},n&&n.queries||{}),b=new Date,v=s(b,"UTC:yyyymmdd'T'HHMMss'Z'"),w=v.split("T")[0],(M=u.fixAdditionalHeaders(d)).length>0&&(y["x-oss-additional-headers"]=M.join(";")),y["x-oss-credential"]=u.getCredential(w,m,this.options.accessKeyId,p),y["x-oss-date"]=v,y["x-oss-expires"]=r,y["x-oss-signature-version"]="OSS4-HMAC-SHA256",!this.options.stsToken||!c(this.options.refreshSTSToken)){e.next=17;break}return e.next=17,l.call(this);case 17:return this.options.stsToken&&(y["x-oss-security-token"]=this.options.stsToken),x=u.getCanonicalRequest(t,{headers:g,queries:y},this.options.bucket,o,M),S=u.getStringToSign(m,v,x,p),y["x-oss-signature"]=u.getSignatureV4(this.options.accessKeySecret,w,m,S,p),(_=a.parse(this._getReqUrl({bucket:this.options.bucket,object:o}))).query=Object.assign({},y),e.abrupt("return",_.format());case 24:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}()},{"../../common/signUtils":52,"../utils/getStandardRegion":65,"../utils/isFunction":72,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.join.js":317,"core-js/modules/es.object.assign.js":325,dateformat:383,url:543}],51:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("./utils/isArray").isArray,a=r;a._parallelNode=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var s,a,u,l,c,h,d,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=this,a=[],u=[],l=t.length/r,c=t.length%r,h=0===c?l:(t.length-c)/r+1,d=1,f=0;case 8:if(!(f<t.length)){e.next=26;break}if(!s.isCancel()){e.next=11;break}return e.abrupt("break",26);case 11:if(o?u.push(n(s,t[f],o)):u.push(n(s,t[f])),u.length!==r&&(d!==h||f!==t.length-1)){e.next=23;break}return e.prev=13,d+=1,e.next=17,Promise.all(u);case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(13),a.push(e.t0);case 22:u=[];case 23:f++,e.next=8;break;case 26:return e.abrupt("return",a);case 27:case"end":return e.stop()}}),e,this,[[13,19]])})));return function(t,r,n,i){return e.apply(this,arguments)}}(),a._parallel=function(e,t,r){var n=this;return new Promise((function(i){var o=[];if(t<=0||!e)i(o);else{var s=function(e){var t=-1,r=e.length;return function(){return++t<r&&!n.isCancel()?{value:e[t],key:t}:null}}(e),a=!1,u=0,l=!1;f()}function c(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}function h(e){u-=1,e?(a=!0,o.push(e),i(o)):a&&u<=0?(a=!0,i(o)):l||(n.isCancel()?i(o):f())}function d(e,t){r(e).then((function(e){t(null,e)}
2)).catch((function(e){t(e)}))}function f(){for(l=!0;u<t&&!a&&!n.isCancel();){var e=s();if(null===e||o.length>0)return a=!0,void(u<=0&&i(o));u+=1,d(e.value,c(h))}l=!1}}))},a.cancel=function(e){this.options.cancelFlag=!0,s(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach((function(e){!1===e.destroyed&&e.destroy({name:"cancel",message:"cancel"})})),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},a.isCancel=function(){return this.options.cancelFlag},a.resetCancelFlag=function(){this.options.cancelFlag=!1},a._stop=function(){this.options.cancelFlag=!0},a._makeCancelEvent=function(){return{status:0,name:"cancel"}},a._makeAbortEvent=function(){return{status:0,name:"abort",message:"upload task has been abort"}}},{"./utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.string.iterator.js":343,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381}],52:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/toConsumableArray"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.set.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.string.starts-with.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.to-string.js");var i=e("./../../shims/crypto/crypto.js"),o=e("is-type-of"),s=e("qs"),a=e("./utils/lowercaseKeyHeader").lowercaseKeyHeader,u=e("./utils/encodeString").encodeString;r.getProduct=function(e){return void 0===e?"oss":"oss-cloudbox"},r.getSignRegion=function(e,t){return void 0===t?e:t},r.buildCanonicalizedResource=function(e,t){var r="".concat(e),n="?";return o.string(t)&&""!==t.trim()?r+=n+t:o.array(t)?(t.sort(),r+=n+t.join("&")):t&&Object.keys(t).sort().forEach((function(e){r+=n+e,(t[e]||0===t[e])&&(r+="=".concat(t[e])),n="&"})),r},r.buildCanonicalString=function(e,t,r,n){var i=a((r=r||{}).headers),o=[],s={},u=[e.toUpperCase(),i["content-md5"]||"",i["content-type"],n||i["x-oss-date"]];
2return Object.keys(i).forEach((function(e){var t=e.toLowerCase();0===t.indexOf("x-oss-")&&(s[t]=String(i[e]).trim())})),Object.keys(s).sort().forEach((function(e){o.push("".concat(e,":").concat(s[e]))})),(u=u.concat(o)).push(this.buildCanonicalizedResource(t,r.parameters)),u.join("\n")},r.computeSignature=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf-8",o=i.createHmac("sha1",e);return o.update(t.from(r,n)).digest("base64")},r.authorization=function(e,t,r,n){return"OSS ".concat(e,":").concat(this.computeSignature(t,r,n))},r.fixAdditionalHeaders=function(e){return e?(0,n.default)(new Set(e.map((function(e){return e.toLowerCase()})))).filter((function(e){return"content-type"!==e&&"content-md5"!==e&&!e.startsWith("x-oss-")})).sort():[]},r.getCanonicalRequest=function(e,t,r,i,l){var c=a(t.headers),h=t.queries||{};if(i&&!r)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var d=[e.toUpperCase(),u("/".concat(r?"".concat(r,"/"):"").concat(i||"")).replace(/%2F/g,"/")];d.push(s.stringify(h,{encoder:u,sort:function(e,t){return e.localeCompare(t)},strictNullHandling:!0})),l&&l.forEach((function(e){if(!Object.prototype.hasOwnProperty.call(c,e))throw Error("Can't find additional header ".concat(e," in request headers."))}));var f=new Set(l);Object.keys(c).forEach((function(e){("content-type"===e||"content-md5"===e||e.startsWith("x-oss-"))&&f.add(e)}));var p="".concat((0,n.default)(f).sort().map((function(e){return"".concat(e,":").concat(o.string(c[e])?c[e].trim():c[e],"\n")})).join(""));return d.push(p),l&&l.length>0?d.push(l.join(";")):d.push(""),d.push(c["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),d.join("\n")},r.getCredential=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss",i="".concat(e,"/").concat(t,"/").concat(n,"/aliyun_v4_request");return r?"".concat(r,"/").concat(i):i},r.getStringToSign=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss",o=["OSS4-HMAC-SHA256",t,this.getCredential(t.split("T")[0],e,void 0,n),i.createHash("sha256").update(r).digest("hex")];return o.join("\n")},r.getSignatureV4=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"oss",s=i.createHmac("sha256","aliyun_v4".concat(e)).update(t).digest(),a=i.createHmac("sha256",s).update(r).digest(),u=i.createHmac("sha256",a).update(o).digest(),l=i.createHmac("sha256",u).update("aliyun_v4_request").digest(),c=i.createHmac("sha256",l).update(n).digest("hex");return c},r.authorizationV4=function(e,r,n,i,s,a,u,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"utf-8",h=arguments.length>9?arguments[9]:void 0,d=this.getProduct(h),f=this.fixAdditionalHeaders(l),p={};Object.entries(s.headers).forEach((function(e){p[e[0]]=o.string(e[1])?t.from(e[1],c).toString():e[1]}));var m=p["x-oss-date"]||s.queries&&s.queries["x-oss-date"],g=this.getCanonicalRequest(i,{headers:p,queries:s.queries},a,u,f),y=this.getStringToSign(n,m,g,d),b=m.split("T")[0],v=this.getSignatureV4(r,b,n,y,d),w=f.length>0?"AdditionalHeaders=".concat(f.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(this.getCredential(b,n,e,d),",").concat(w,"Signature=").concat(v)},r._signatureForURL=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s={},a=r.subResource,u=void 0===a?{}:a;if(r.process){var l="x-oss-process";u[l]=r.process}if(r.trafficLimit){var c="x-oss-traffic-limit";u[c]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach((function(e){var t="response-".concat(e.toLowerCase());u[t]=r.response[e]})),Object.keys(r).forEach((function(e){var t=e.toLowerCase(),n=r[e];0===t.indexOf("x-oss-")?s[t]=n:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(s[e]=n)})),Object.prototype.hasOwnProperty.call(r,"security-token")&&(u["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var h={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body}
2;if(r.callback.host&&(h.callbackHost=r.callback.host),r.callback.contentType&&(h.callbackBodyType=r.callback.contentType),r.callback.callbackSNI&&(h.callbackSNI=r.callback.callbackSNI),u.callback=t.from(JSON.stringify(h)).toString("base64"),r.callback.customValue){var d={};Object.keys(r.callback.customValue).forEach((function(e){d["x:".concat(e)]=r.callback.customValue[e]})),u["callback-var"]=t.from(JSON.stringify(d)).toString("base64")}}var f=this.buildCanonicalString(r.method,n,{headers:s,parameters:u},i.toString());return{Signature:this.computeSignature(e,f,o),subResource:u}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":531,"./utils/encodeString":61,"./utils/lowercaseKeyHeader":75,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/toConsumableArray":90,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.set.js":341,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.starts-with.js":348,"core-js/modules/es.string.trim.js":349,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381,"is-type-of":537,qs:445}],53:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!r.test(e))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":338}],54:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkConfigValid=void 0;var n={endpoint:function(e){return"string"===typeof e?/^[a-zA-Z0-9._:/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:/-]+$/.test(e.host)},region:/^[a-zA-Z0-9\-_]+$/};r.checkConfigValid=function(e,t){if(n[t]&&!(n[t]instanceof Function?n[t](e):n[t].test(e)))throw new Error("The ".concat(t," must be conform to the specifications"))}},{"core-js/modules/es.regexp.exec.js":338}],55:[function(e,t,r){(function(e){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkEnv=void 0,r.checkEnv=function(t){e.browser&&console.warn(t)}}).call(this)}).call(this,e("_process"))},{_process:538}],56:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkObjectTag=void 0;var n=e("./checkValid").checkValid,i=e("./isObject").isObject,o=[{validator:function(e){if("string"!==typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],s={key:[].concat(o,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(o,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};r.checkObjectTag=function(e){if(!i(e))throw new Error("tag must be Object");var t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var r=["key","value"];t.forEach((function(e){e.forEach((function(e,t){n(e,s[r[t]])}))}))}},{"./checkValid":57,"./isObject":74,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],57:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esMo
2dule",{value:!0}),r.checkValid=void 0,r.checkValid=function(e,t){t.forEach((function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)}))}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],58:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var n=e("./../../../shims/crypto/crypto.js"),i=e("debug")("ali-oss"),o=e("lodash/isString"),s=e("lodash/isArray"),a=e("lodash/isObject"),u=e("mime"),l=e("dateformat"),c=e("copy-to"),h=e("path"),d=e("./encoder").encoder,f=e("./isIP").isIP,p=e("./setRegion").setRegion,m=e("../client/getReqUrl").getReqUrl,g=e("./isDingTalk").isDingTalk;function y(e,t){return e[t]||e[t.toLowerCase()]}r.createRequest=function(e){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var b={"x-oss-date":l(r,this.options.authorizationV4?"UTC:yyyymmdd'T'HHMMss'Z'":"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};this.options.authorizationV4&&(b["x-oss-content-sha256"]="UNSIGNED-PAYLOAD"),"undefined"!==typeof window&&(b["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(b["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(b,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(b["x-oss-security-token"]=this.options.stsToken),c(e.headers).to(b),y(b,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?b["Content-Type"]=e.mime:g()?b["Content-Type"]="application/octet-stream":b["Content-Type"]=u.getType(e.mime||h.extname(e.object||""))),y(b,"Content-Type")||function(e,t){delete e[t],delete e[t.toLowerCase()]}(b,"Content-Type"),e.content&&(e.disabledMD5||(e.headers&&e.headers["Content-MD5"]?b["Content-MD5"]=e.headers["Content-MD5"]:b["Content-MD5"]=n.createHash("md5").update(t.from(e.content,"utf8")).digest("base64")),b["Content-Length"]||(b["Content-Length"]=e.content.length));var v=Object.prototype.hasOwnProperty;for(var w in b)b[w]&&v.call(b,w)&&(b[w]=d(String(b[w]),this.options.headerEncoding));var M={};if(o(e.subres)?M[e.subres]=null:s(e.subres)?e.subres.forEach((function(e){M[e]=null})):a(e.subres)&&Object.entries(e.subres).forEach((function(e){M[e[0]]=""===e[1]?null:e[1]})),a(e.query)&&Object.entries(e.query).forEach((function(e){M[e[0]]=e[1]})),b.authorization=this.options.authorizationV4?this.authorizationV4(e.method,{headers:b,queries:M},e.bucket,e.object,e.additionalHeaders):this.authorization(e.method,this._getResource(e),e.subres,b,this.options.headerEncoding),f(this.options.endpoint.hostname)){var x=this.options,S=x.region,_=x.internal,k=x.secure,A=p(S,_,k);b.host="".concat(e.bucket,".").concat(A.host)}var j=m.bind(this)(e);i("request %s %s, with headers %j, !!stream: %s",e.method,j,b,!!e.stream);var E=e.timeout||this.options.timeout,T={method:e.method,content:e.content,stream:e.stream,headers:b,timeout:E,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(T.agent=this.agent),this.httpsAgent&&(T.httpsAgent=this.httpsAgent),T.enableProxy=!!this.options.enableProxy,T.proxy=this.options.proxy?this.options.proxy:null,{url:j,params:T}}}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":531,"./encoder":62,"./isDingTalk":70,"./isIP":73,"./setRegion":81,buffer:103,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.string.includes.js":342,"core-js/modules/web.dom-collections.for-each.js":380,dateformat:383,debug:536,"lodash/isArray":422,"lodash/isObject":423,"lodash/isString":425,mime:430,path:439}],59:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esMo
2dule",{value:!0}),r.dataFix=void 0;var n=e("./isObject"),i=["true","TRUE","1",1],o=["false","FALSE","0",0];r.dataFix=function e(t,r,s){if(n.isObject(t)){var a=r.remove,u=void 0===a?[]:a,l=r.rename,c=void 0===l?{}:l,h=r.camel,d=void 0===h?[]:h,f=r.bool,p=void 0===f?[]:f,m=r.lowerFirst,g=void 0!==m&&m;return u.forEach((function(e){return delete t[e]})),Object.entries(c).forEach((function(e){t[e[0]]&&(t[e[1]]||(t[e[1]]=t[e[0]],delete t[e[0]]))})),d.forEach((function(e){if(t[e]){var r=e.replace(/^(.)/,(function(e){return e.toLowerCase()})).replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));t[r]||(t[r]=t[e])}})),p.forEach((function(e){var r;t[e]=!!(r=t[e])&&(!!i.includes(r)||!o.includes(r)&&r)})),"function"===typeof s&&s(t),function(e,t){t&&Object.keys(e).forEach((function(t){var r=t.replace(/^\w/,(function(e){return e.toLowerCase()}));"undefined"===typeof e[r]&&(e[r]=e[t],delete e[t])}))}(t,g),e}}},{"./isObject":74,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],60:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var i=n(e("@babel/runtime/helpers/typeof"));Object.defineProperty(r,"__esModule",{value:!0}),r.deepCopyWith=r.deepCopy=void 0;var o=e("./isBuffer");r.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;if(o.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){t[n]=r.deepCopy(e[n])})),t},r.deepCopyWith=function(e,t){return t?function e(r,n,s){var a=t(r,n,s);if(void 0!==a)return a;if(null===r||"object"!==(0,i.default)(r))return r;if(o.isBuffer(r))return r.slice();var u=Array.isArray(r)?[]:{};return Object.keys(r).forEach((function(t){u[t]=e(r[t],t,r)})),u}(e,"",null):r.deepCopy(e)}},{"./isBuffer":69,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],61:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeString=void 0;var i=n(e("lodash/toString"));r.encodeString=function(e){var t=i.default(e);return encodeURIComponent(t).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"lodash/toString":427}],62:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.encoder=void 0,r.encoder=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8";return"utf-8"===r?e:t.from(e).toString("latin1")}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],63:[function(e,t,r){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.formatInventoryConfig=void 0;var n=e("../utils/dataFix"),i=e("../utils/isObject"),o=e("../utils/isArray"),s=e("../utils/formatObjKey");function a(e){return n.dataFix(e,{bool:["IsEnabled"]},(function(e){var t,r;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null===e||void 0===e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&
2!o.isArray(null===(r=e.OptionalFields)||void 0===r?void 0:r.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])})),e=s.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]})}r.formatInventoryConfig=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&i.isObject(e)&&(e=[e]),e=o.isArray(e)?e.map(a):a(e)}},{"../utils/dataFix":59,"../utils/formatObjKey":64,"../utils/isArray":67,"../utils/isObject":74,"core-js/modules/es.array.map.js":318,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345}],64:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var i=n(e("@babel/runtime/helpers/typeof"));Object.defineProperty(r,"__esModule",{value:!0}),r.formatObjKey=void 0,r.formatObjKey=function e(t,r,n){if(null===t||"object"!==(0,i.default)(t))return t;var o;if(Array.isArray(t)){o=[];for(var s=0;s<t.length;s++)o.push(e(t[s],r,n))}else o={},Object.keys(t).forEach((function(i){o[function(e,t,r){return r&&r.exclude&&r.exclude.includes(e)||("firstUpperCase"===t?e=e.replace(/^./,(function(e){return e.toUpperCase()})):"firstLowerCase"===t&&(e=e.replace(/^./,(function(e){return e.toLowerCase()})))),e}(i,r,n)]=e(t[i],r,n)}));return o}},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.includes.js":342,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],65:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.getStandardRegion=void 0,r.getStandardRegion=function(e){return e.replace(/^oss-/g,"")}},{"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345}],66:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.getStrBytesCount=void 0,r.getStrBytesCount=function(e){for(var t=0,r=0;r<e.length;r++){var n=e.charAt(r);/^[\u00-\uff]$/.test(n)?t+=1:t+=2}return t}},{"core-js/modules/es.regexp.exec.js":338}],67:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=void 0,r.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],68:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBlob=void 0,r.isBlob=function(e){return"undefined"!==typeof Blob&&e instanceof Blob}},{}],69:[function(e,t,r){(function(e){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBuffer=void 0,r.isBuffer=function(t){return e.isBuffer(t)}}).call(this)}).call(this,{isBuffer:e("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":409}],70:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isDingTalk=void 0,r.isDingTalk=function(){return!(!t.browser||!window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}}).call(this)}).call(this,e("_process"))},{_process:538,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.string.includes.js":342}],71:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFile=void 0,r.isFile=function(e){return"undefined"!==typeof File&&e instanceof File}},{}],72:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"===typeof e}},{}],73:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isIP=void 0,r.isIP=function(e){return/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/.test(e)||/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(e)}},{"core-js/modules/es.regexp.exec.js":338}],74:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=void 0,r.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],75:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.lowercaseKeyHeader=void 0;var n=e("./isObject");r.lowercaseKeyHeader=function(e){var t={};return n.isObject(e)&&Object.keys(e).forEach((function(r){t[r.toLowerCase()]=e[r]})),t}},{"./isObject":74,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],76:[function(e,t,r){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.obj2xml=void 0;var n=e("./formatObjKey");function i(e){return Object.prototype.toString.call(e).replace(/(.*? |])/g,"").toLowerCase()}r.obj2xml=function e(t,r){var o="";return r&&r.headers&&(o='<?xml version="1.0" encoding="UTF-8"?>\n'),r&&r.firstUpperCase&&(t=n.formatObjKey(t,"firstUpperCase")),"object"===i(t)?Object.keys(t).forEach((function(r){"undefined"!==i(t[r])&&"null"!==i(t[r])&&("string"===i(t[r])||"number"===i(t[r])?o+="<".concat(r,">").concat(t[r],"</").concat(r,">"):"object"===i(t[r])?o+="<".concat(r,">").concat(e(t[r]),"</").concat(r,">"):"array"===i(t[r])?o+=t[r].map((function(t){return"<".concat(r,">").concat(e(t),"</").concat(r,">")})).join(""):o+="<".concat(r,">").concat(t[r].toString(),"</").concat(r,">"))})):o+=t.toString(),o}},{"./formatObjKey":64,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],77:[function(e,t,r){"use strict";function n(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.object.assign.js"),Object.defineProperty(r,"__esMo
2dule",{value:!0}),r.omit=void 0,r.omit=function(e,t){var r,i=Object.assign({},e),o=n(t);try{for(o.s();!(r=o.n()).done;)delete i[r.value]}catch(s){o.e(s)}finally{o.f()}return i}},{"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.symbol.description.js":351,"core-js/modules/es.symbol.iterator.js":353,"core-js/modules/es.symbol.js":354,"core-js/modules/web.dom-collections.iterator.js":381}],78:[function(e,t,r){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.match.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.parseRestoreInfo=void 0,r.parseRestoreInfo=function(e){var t;if(e&&!(t={ongoingRequest:e.includes("true")}).ongoingRequest){var r=e.match(/expiry-date="(.*)"/);r&&r[1]&&(t.expiryDate=new Date(r[1]))}return t}},{"core-js/modules/es.array.includes.js":315,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.includes.js":342,"core-js/modules/es.string.match.js":344}],79:[function(e,t,r){"use strict";e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.policy2Str=void 0,r.policy2Str=function(e){var t;if(e)if("string"===typeof e)try{t=JSON.stringify(JSON.parse(e))}catch(r){throw new Error("Policy string is not a valid JSON: ".concat(r.message))}else t=JSON.stringify(e);return t}},{"core-js/modules/es.object.keys.js":328}],80:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0,r.retry=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=0,i=r.retryDelay,o=void 0===i?500:i,s=r.errorHandler,a=void 0===s?function(){return!0}:s,u=function r(){for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return new Promise((function(i,u){e.apply(void 0,s).then((function(e){n=0,i(e)})).catch((function(e){n<t&&a(e)?(n++,setTimeout((function(){i(r.apply(void 0,s))}),o)):(n=0,u(e))}))}))};return u}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333}],81:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.setRegion=void 0;var i=n(e("url")),o=e("./checkConfigValid");r.setRegion=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.checkConfigValid(e,"region");var n=r?"https://":"http://",s=t?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return e.substr(0,a.length)===a&&(s=".aliyuncs.com"),i.default.parse(n+e+s)}},{"./checkConfigValid":54,url:543}],82:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.checkCredentials=r.setSTSToken=void 0;var s=e("./formatObjKey");function a(){return(a=(0,o.default)(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(!(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){e.next=12;break}return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();case 7:r=e.sent,(r=s.formatObjKey(r,"firstLowerCase")).securityToken&&(r.stsToken=r.securityToken),u(r),Object.assign(this.options,r);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function u(e){var t=Object.keys(e);["accessKeySecret","accessKeyId","stsToken"].forEach((function(e){if(!t.find((function(t){return t===e})))throw Error("refreshSTSToken must return contains ".concat(e))}))}r.setSTSToken=function(){return a.apply(this,arguments)},r.checkCredentials=u},{"./formatObjKey":64,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.find.js":313,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329}],83:[function(e,t,r){t.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}
vendor: 5,537 bytes, line 2
2,t.exports.__esModule=!0,t.exports.default=t.exports},{}],84:[function(e,t,r){var n=e("./arrayLikeToArray.js");t.exports=function(e){if(Array.isArray(e))return n(e)},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":83}],85:[function(e,t,r){function n(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(l){return void r(l)}a.done?t(u):Promise.resolve(u).then(n,i)}t.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],86:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],87:[function(e,t,r){t.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},t.exports.__esModule=!0,t.exports.default=t.exports},{}],88:[function(e,t,r){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],89:[function(e,t,r){var n=e("./typeof.js").default;function i(){"use strict";t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:E(e,r,s)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var m="suspendedStart",g="executing",y="completed",b={};function v(){}function w(){}function M(){}var x={};d(x,l,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(I([])));_&&_!==o&&s.call(_,l)&&(x=_);var k=M.prototype=v.prototype=Object.create(x);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(i,o,a,u){var l=p(e[i],e,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==n(h)&&s.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,u)}))}u(l.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var i=m;return function(o,s){if(i===g)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var u=T(a,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?y:"suspendedYield",l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=y,n.method="throw",n.arg=l.arg)}}}function T(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(s.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=M,a(k,"constructor",{value:M,configurable:!0}),a(M,"constructor",{value:w,configurable:!0}),w.displayName=d(M,h,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,M):(e.__proto__=M,d(e,h,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},A(j.prototype),d(j.prototype,c,(function(){return this})),r.AsyncIterator=j,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var s=new j(f(e,t,n,i),o);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},A(k),d(k,h,"Generator"),d(k,l,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"}
2)),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=I,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},{"./typeof.js":91}],90:[function(e,t,r){var n=e("./arrayWithoutHoles.js"),i=e("./iterableToArray.js"),o=e("./unsupportedIterableToArray.js"),s=e("./nonIterableSpread.js");t.exports=function(e){return n(e)||i(e)||o(e)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayWithoutHoles.js":84,"./iterableToArray.js":87,"./nonIterableSpread.js":88,"./unsupportedIterableToArray.js":92}],91:[function(e,t,r){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],92:[function(e,t,r){var n=e("./arrayLikeToArray.js");t.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":83}],93:[function(e,t,r){var n=e("../helpers/regeneratorRuntime")();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{"../helpers/regeneratorRuntime":89}],94:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],95:[function(e,t,r){(function(r){(function(){"use strict";var n=e("object.assign/polyfill")();function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function o(e){return r.Buffer&&"function"===typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=e("util/"),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,l="foo"===function(){}.name;function c(e){return Object.prototype.toString.call(e)}function h(e){return!o(e)&&"function"===typeof r.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var d=t.exports=b,f=/\s*function\s+([^\(\s]*)\s*/;function p(e){if(s.isFunction(e)){if(l)return e.name;var t=e.toString().match(f);return t&&t[1]}}function m(e,t){return"string"===typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(l||!s.isFunction(e))return s.inspect(e);var t=p(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,r,n,i){throw new d.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function b(e,t){e||y(e,!0,t,"==",d.ok)}function v(e,t,r,n){if(e===t)return!0;
vendor: 3,408 bytes, line 2
2if(o(e)&&o(t))return 0===i(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===typeof e||null!==t&&"object"===typeof t){if(h(e)&&h(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var a=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null===e||void 0===e||null===t||void 0===t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=w(e),o=w(t);if(i&&!o||!i&&o)return!1;if(i)return e=u.call(e),t=u.call(t),v(e,t,r);var a,l,c=S(e),h=S(t);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),l=c.length-1;l>=0;l--)if(c[l]!==h[l])return!1;for(l=c.length-1;l>=0;l--)if(a=c[l],!v(e[a],t[a],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function M(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(r){t=r}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&y(i,r,"Missing expected exception"+n);var o="string"===typeof n,a=!e&&i&&!r;if((!e&&s.isError(i)&&o&&M(i,r)||a)&&y(i,r,"Got unwanted exception"+n),e&&i&&r&&!M(i,r)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=p(t),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=y,d.ok=b,d.equal=function(e,t,r){e!=t&&y(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&y(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){v(e,t,!1)||y(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){v(e,t,!0)||y(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){v(e,t,!1)&&y(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&y(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&y(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&y(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){x(!0,e,t,r)},d.doesNotThrow=function(e,t,r){x(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n((function e(t,r){t||y(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var S=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}
vendor: 5,890 bytes, line 2
2).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object.assign/polyfill":438,"util/":98}],96:[function(e,t,r){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],97:[function(e,t,r){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],98:[function(e,t,r){(function(t,n){(function(){var i=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),u=n[r];r<o;u=n[++r])m(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},r.deprecate=function(e,i){if(b(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,s={};function a(e,t){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=a.styles[t];return r?"\x1b["+a.colors[r][0]+"m"+e+"\x1b["+a.colors[r][1]+"m":e}function l(e,t){return e}function c(e,t,n){if(e.customInspect&&t&&S(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=c(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),x(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(t);if(0===s.length){if(S(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return h(t)}var l,w="",_=!1,k=["{","}"];return f(t)&&(_=!0,k=["[","]"]),S(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(w=" "+RegExp.prototype.toString.call(t)),M(t)&&(w=" "+Date.prototype.toUTCString.call(t)),x(t)&&(w=" "+h(t)),0!==s.length||_&&0!=t.length?n<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=_?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(d(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))})),o}(e,t,n,a,s):s.map((function(r){return d(e,t,n,a,r,_)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(l,w,k)):k[0]+w+k[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=m(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function m(e){return null===e}function g(e){return"number"===typeof e}function y(e){return"string"===typeof e}function b(e){return void 0===e}function v(e){return w(e)&&"[object RegExp]"===_(e)}function w(e){return"object"===typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===_(e)}function x(e){return w(e)&&("[object Error]"===_(e)||e instanceof Error)}function S(e){return"function"===typeof e}function _(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(b(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=f,r.isBoolean=p,r.isNull=m,r.isNullOrUndefined=function(e){return null==e}
2,r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"===typeof e},r.isUndefined=b,r.isRegExp=v,r.isObject=w,r.isDate=M,r.isError=x,r.isFunction=S,r.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},r.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",j(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":97,_process:538,inherits:96}],99:[function(e,t,r){(function(e){(function(){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"===typeof globalThis?e:globalThis;t.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof n[r[t]]&&(e[e.length]=r[t]);return e}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],100:[function(e,t,r){"use strict";r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=l(e),s=n[0],a=n[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),c=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(c(e,s,s+16383>a?a:s+16383));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],101:[function(e,t,r){var n,i;n=this,i=function(){var e=!0;function t(t){function r(e){var r=t.match(e);return r&&r.length>1&&r[1]||""}function n(e){var r=t.match(e);return r&&r.length>1&&r[2]||""}var i,s=r(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),d=/sailfish/i.test(t),f=/tizen/i.test(t),p=/(web|hpw)(o|0)s/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),y=!s&&!h&&/macintosh/i.test(t),b=!a&&!d&&!f&&!p&&/linux/i.test(t),v=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=r(/version\/(\d+(\.\d+)?)/i),M=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!M&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:e,version:w||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:e,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:e,version:w||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:e,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:e,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:e,version:w||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:e,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:w||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:e,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:e,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:e,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:e,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:e,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:e,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},v?(i.msedge=e,i.version=v):(i.msie=e,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?i={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:v}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:e,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||w}:d?i={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:e,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e,i.osname="Firefox OS")):h?i={name:"Amazon Silk",silk:e,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:e,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:p?(i={name:"WebOS",osname:"WebOS",webos:e,version:w||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:e,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:f?i={name:"Tizen",osname:"Tizen",tizen:e,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:e,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?i={name:"Chromium",chromium:e,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:e},w&&(i.version=w)):s?(i={name:"iphone"==s?"iPhone":"ipad"==s?"iPad":"iPod"},w&&(i.version=w)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:r(/googlebot\/(\d+(\.\d+))/i)||w}
2:{name:r(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=e):(i.name=i.name||"Webkit",i.webkit=e),!i.version&&w&&(i.version=w)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=e,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!a&&!i.silk?!i.windowsphone&&s?(i[s]=e,i.ios=e,i.osname="iOS"):y?(i.mac=e,i.osname="macOS"):S?(i.xbox=e,i.osname="Xbox"):g?(i.windows=e,i.osname="Windows"):b&&(i.linux=e,i.osname="Linux"):(i.android=e,i.osname="Android");var _="";i.windows?_=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?_=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?_=(_=r(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):s?_=(_=r(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?_=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?_=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?_=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?_=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(_=r(/tizen[\/\s](\d+(\.\d+)*)/i)),_&&(i.osversion=_);var k=!i.windows&&_.split(".")[0];return M||l||"ipad"==s||a&&(3==k||k>=4&&!x)||i.silk?i.tablet=e:(x||"iphone"==s||"ipod"==s||a||u||i.blackberry||i.webos||i.bada)&&(i.mobile=e),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===o([i.version,"1.0"])||i.mzbrowser&&1===o([i.version,"6.0"])||i.focus&&1===o([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=e:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=e:i.x=e,i}var r=t("undefined"!==typeof navigator&&navigator.userAgent||"");function n(e){return e.split(".").length}function i(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function o(e){for(var t=Math.max(n(e[0]),n(e[1])),r=i(e,(function(e){var r=t-n(e);return i((e+=new Array(r+1).join(".0")).split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));--t>=0;){if(r[0][t]>r[1][t])return 1;if(r[0][t]!==r[1][t])return-1;if(0===t)return 0}}function s(e,n,i){var s=r;"string"===typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(s=t(i));var a=""+s.version;for(var u in e)if(e.hasOwnProperty(u)&&s[u]){if("string"!==typeof e[u])throw new Error("Browser version in the minVersion map should be a string: "+u+": "+String(e));return o([a,e[u]])<0}return n}return r.test=function(e){for(var t=0;t<e.length;++t){var n=e[t];if("string"===typeof n&&n in r)return!0}return!1},r.isUnsupportedBrowser=s,r.compareVersions=o,r.check=function(e,t,r){return!s(e,t,r)},r._detect=t,r.detect=t,r},"undefined"!=typeof t&&t.exports?t.exports=i():n.bowser=i()},{}],102:[function(e,t,r){},{}],103:[function(e,t,r){(function(t){(function(){"use strict";var t=e("base64-js"),n=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"===typeof e)return function(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=i(r),s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(D(e,ArrayBuffer)||e&&D(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=o.prototype,n}(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var s=function(e){if(o.isBuffer(e)){var t=0|c(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!==typeof e.length||U(e.length)?i(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(s)return s;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');
vendor: 8,498 bytes, line 2
2if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return a(e),i(e<0?0:0|c(e))}function l(e){for(var t=e.length<0?0:0|c(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function c(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||D(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(i)return n?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){h=!1;break}if(h)return o}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(U(a))return s;e[r+s]=a}return s}function y(e,t,r,n){return N(B(t,e.length-r),e,r,n)}function b(e,t,r,n){return N(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function v(e,t,r,n){return b(e,t,r,n)}function w(e,t,r,n){return N(P(t),e,r,n)}function M(e,t,r,n){return N(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,l=e[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function _(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var o="",s=t;s<r;++s)o+=(n=e[s])<16?"0"+n.toString(16):n.toString(16);return o}function j(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function E(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,i,o){return t=+t,r>>>=0,o||C(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function R(e,t,r,i,o){return t=+t,r>>>=0,o||C(e,0,r,8),n.write(e,t,r,i,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,r){return s(e,t,r)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,r){return function(e,t,r){return a(e),e<=0?i(e):void 0!==t?"string"===typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(D(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(D(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):d.apply(this,arguments)}
vendor: 8,429 bytes, line 2
2,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,i){if(D(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),u=Math.min(s,a),l=this.slice(n,i),c=e.slice(t,r),h=0;h<u;++h)if(l[h]!==c[h]){s=l[h],a=c[h];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=o.prototype,n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var s=i-1;s>=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},o.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var s;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s<r;++s)this[s]=e;else{var a=o.isBuffer(e)?e:o.from(e,n),u=a.length;
2if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<r-t;++s)this[s+t]=a[s%u]}return this};var I=/[^+/0-9A-Za-z-_]/g;function B(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function P(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function N(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function D(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!==e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":100,buffer:103,ieee754:400}],104:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],105:[function(e,t,r){"use strict";var n=e("get-intrinsic"),i=e("./"),o=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&o(e,".prototype.")>-1?i(r):r}},{"./":106,"get-intrinsic":390}],106:[function(e,t,r){"use strict";var n=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||n.call(u,a),c=i("%Object.defineProperty%",!0),h=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(f){c=null}t.exports=function(e){if("function"!==typeof e)throw new s("a function is required");var t=l(n,u,arguments);return o(t,1+h(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(n,a,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},{"function-bind":389,"get-intrinsic":390,"set-function-length":466}],107:[function(e,t,r){"use strict";var n=Array.prototype.slice;function i(e,t){if(!(this instanceof i))return new i(e,t);this.src=e,this._withAccess=t}function o(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=i,i.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},i.prototype.pick=function(e){return Array.isArray(e)||(e=n.call(arguments)),e.length&&(this.keys=e),this},i.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r<t.length;r++)void 0===e[n=t[r]]&&(e[n]=this.src[n]);return e}for(r=0;r<t.length;r++){var n=t[r];
2if(o(e,n)){var i=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);i&&e.__defineGetter__(n,i),s&&e.__defineSetter__(n,s),i||s||(e[n]=this.src[n])}}return e},i.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),r=0;r<t.length;r++){var n=t[r];delete e[n];var i=this.src.__lookupGetter__(n),o=this.src.__lookupSetter__(n);i&&e.__defineGetter__(n,i),o&&e.__defineSetter__(n,o),i||o||(e[n]=this.src[n])}},i.prototype.override=i.prototype.toCover,i.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],108:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},{"../internals/is-callable":203,"../internals/try-to-string":293}],109:[function(e,t,r){"use strict";var n=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},{"../internals/is-constructor":204,"../internals/try-to-string":293}],110:[function(e,t,r){"use strict";var n=e("../internals/is-possible-prototype"),i=String,o=TypeError;t.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},{"../internals/is-possible-prototype":209}],111:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":229,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],112:[function(e,t,r){"use strict";var n=e("../internals/string-multibyte").charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},{"../internals/string-multibyte":271}],113:[function(e,t,r){"use strict";var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":238}],114:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=String,o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},{"../internals/is-object":208}],115:[function(e,t,r){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],116:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},{"../internals/fails":171}],117:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/array-buffer-basic-detection"),a=e("../internals/descriptors"),u=e("../internals/global"),l=e("../internals/is-callable"),c=e("../internals/is-object"),h=e("../internals/has-own-property"),d=e("../internals/classof"),f=e("../internals/try-to-string"),p=e("../internals/create-non-enumerable-property"),m=e("../internals/define-built-in"),g=e("../internals/define-built-in-accessor"),y=e("../internals/object-is-prototype-of"),b=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),w=e("../internals/well-known-symbol"),M=e("../internals/uid"),x=e("../internals/internal-state"),S=x.enforce,_=x.get,k=u.Int8Array,A=k&&k.prototype,j=u.Uint8ClampedArray,E=j&&j.prototype,T=k&&b(k),C=A&&b(A),O=Object.prototype,R=u.TypeError,I=w("toStringTag"),B=M("TYPED_ARRAY_TAG"),P=s&&!!v&&"Opera"!==d(u.opera),N=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},L=function(e){var t=b(e);if(c(t)){var r=_(t);return r&&h(r,"TypedArrayConstructor")?r.TypedArrayConstructor:L(t)}},F=function(e){if(!c(e))return!1;var t=d(e);return h(D,t)||h(U,t)};for(n in D)(o=(i=u[n])&&i.prototype)?S(o).TypedArrayConstructor=i:P=!1;for(n in U)(o=(i=u[n])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!P||!l(T)||T===Function.prototype)&&(T=function(){throw new R("Incorrect invocation")},P))for(n in D)u[n]&&v(u[n],T);if((!P||!C||C===O)&&(C=T.prototype,P))for(n in D)u[n]&&v(u[n].prototype,C);if(P&&b(E)!==C&&v(E,C),a&&!h(C,I))for(n in N=!0,g(C,I,{configurable:!0,get:function(){return c(this)?this[B]:void 0}}),D)u[n]&&p(u[n],B,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:N&&B,aTypedArray:function(e){if(F(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!v||y(T,e)))return e;throw new R(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var i in D){var o=u[i];if(o&&h(o.prototype,e))try{delete o.prototype[e]}catch(s){try{o.prototype[e]=t}catch(l){}}}C[e]&&!r||m(C,e,r?t:P&&A[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(a){if(v){if(r)for(n in D)if((i=u[n])&&h(i,e))try{delete i[e]}catch(o){}if(T[e]&&!r)return;try{return m(T,e,r?t:P&&T[e]||t)}catch(o){}}for(n in D)!(i=u[n])||i[e]&&!r||m(i,e,t)}},getTypedArrayConstructor:L,isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||h(D,t)||h(U,t)},isTypedArray:F,TypedArray:T,TypedArrayPrototype:C}}
2,{"../internals/array-buffer-basic-detection":115,"../internals/classof":138,"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/global":188,"../internals/has-own-property":189,"../internals/internal-state":199,"../internals/is-callable":203,"../internals/is-object":208,"../internals/object-get-prototype-of":236,"../internals/object-is-prototype-of":238,"../internals/object-set-prototype-of":242,"../internals/try-to-string":293,"../internals/uid":299,"../internals/well-known-symbol":306}],118:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/function-uncurry-this"),o=e("../internals/descriptors"),s=e("../internals/array-buffer-basic-detection"),a=e("../internals/function-name"),u=e("../internals/create-non-enumerable-property"),l=e("../internals/define-built-in-accessor"),c=e("../internals/define-built-ins"),h=e("../internals/fails"),d=e("../internals/an-instance"),f=e("../internals/to-integer-or-infinity"),p=e("../internals/to-length"),m=e("../internals/to-index"),g=e("../internals/math-fround"),y=e("../internals/ieee754"),b=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),w=e("../internals/array-fill"),M=e("../internals/array-slice"),x=e("../internals/inherit-if-required"),S=e("../internals/copy-constructor-properties"),_=e("../internals/set-to-string-tag"),k=e("../internals/internal-state"),A=a.PROPER,j=a.CONFIGURABLE,E=k.getterFor("ArrayBuffer"),T=k.getterFor("DataView"),C=k.set,O=n.ArrayBuffer,R=O,I=R&&R.prototype,B=n.DataView,P=B&&B.prototype,N=Object.prototype,D=n.Array,U=n.RangeError,L=i(w),F=i([].reverse),q=y.pack,z=y.unpack,V=function(e){return[255&e]},H=function(e){return[255&e,e>>8&255]},K=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return q(g(e),23,4)},X=function(e){return q(e,52,8)},Z=function(e,t,r){l(e.prototype,t,{configurable:!0,get:function(){return r(this)[t]}})},Y=function(e,t,r,n){var i=T(e),o=m(r),s=!!n;if(o+t>i.byteLength)throw new U("Wrong index");var a=i.bytes,u=o+i.byteOffset,l=M(a,u,u+t);return s?l:F(l)},J=function(e,t,r,n,i,o){var s=T(e),a=m(r),u=n(+i),l=!!o;if(a+t>s.byteLength)throw new U("Wrong index");for(var c=s.bytes,h=a+s.byteOffset,d=0;d<t;d++)c[h+d]=u[l?d:t-d-1]};if(s){var Q=A&&"ArrayBuffer"!==O.name;h((function(){O(1)}))&&h((function(){new O(-1)}))&&!h((function(){return new O,new O(1.5),new O(NaN),1!==O.length||Q&&!j}))?Q&&j&&u(O,"name","ArrayBuffer"):((R=function(e){return d(this,I),x(new O(m(e)),this,R)}).prototype=I,I.constructor=R,S(R,O)),v&&b(P)!==N&&v(P,N);var $=new B(new R(2)),ee=i(P.setInt8);$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||c(P,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else I=(R=function(e){d(this,I);var t=m(e);C(this,{type:"ArrayBuffer",bytes:L(D(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,P=(B=function(e,t,r){d(this,P),d(e,I);var n=E(e),i=n.byteLength,s=f(t);if(s<0||s>i)throw new U("Wrong offset");if(s+(r=void 0===r?i-s:p(r))>i)throw new U("Wrong length");C(this,{type:"DataView",buffer:e,byteLength:r,byteOffset:s,bytes:n.bytes}),o||(this.buffer=e,this.byteLength=r,this.byteOffset=s)}).prototype,o&&(Z(R,"byteLength",E),Z(B,"buffer",T),Z(B,"byteLength",T),Z(B,"byteOffset",T)),c(P,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(Y(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return G(Y(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return z(Y(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return z(Y(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){J(this,1,e,V,t)},setUint8:function(e,t){J(this,1,e,V,t)},setInt16:function(e,t){J(this,2,e,H,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){J(this,2,e,H,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){J(this,4,e,K,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){J(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){J(this,4,e,W,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){J(this,8,e,X,t,arguments.length>2&&arguments[2])}});
2_(R,"ArrayBuffer"),_(B,"DataView"),t.exports={ArrayBuffer:R,DataView:B}},{"../internals/an-instance":113,"../internals/array-buffer-basic-detection":115,"../internals/array-fill":120,"../internals/array-slice":131,"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/ieee754":194,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/math-fround":222,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/to-index":281,"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],119:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=e("../internals/delete-property-or-throw"),a=Math.min;t.exports=[].copyWithin||function(e,t){var r=n(this),u=o(r),l=i(e,u),c=i(t,u),h=arguments.length>2?arguments[2]:void 0,d=a((void 0===h?u:i(h,u))-c,u-l),f=1;for(c<l&&l<c+d&&(f=-1,c+=d-1,l+=d-1);d-- >0;)c in r?r[l]=r[c]:s(r,l),l+=f,c+=f;return r}},{"../internals/delete-property-or-throw":152,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],120:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like");t.exports=function(e){for(var t=n(this),r=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,l=void 0===u?r:i(u,r);l>a;)t[a++]=e;return t}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],121:[function(e,t,r){"use strict";var n=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict")("forEach");t.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":125,"../internals/array-method-is-strict":128}],122:[function(e,t,r){"use strict";var n=e("../internals/length-of-array-like");t.exports=function(e,t,r){for(var i=0,o=arguments.length>2?r:n(t),s=new e(o);o>i;)s[i]=t[i++];return s}},{"../internals/length-of-array-like":219}],123:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/to-object"),s=e("../internals/call-with-safe-iteration-closing"),a=e("../internals/is-array-iterator-method"),u=e("../internals/is-constructor"),l=e("../internals/length-of-array-like"),c=e("../internals/create-property"),h=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),f=Array;t.exports=function(e){var t=o(e),r=u(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,p>2?arguments[2]:void 0));var y,b,v,w,M,x,S=d(t),_=0;if(!S||this===f&&a(S))for(y=l(t),b=r?new this(y):f(y);y>_;_++)x=g?m(t[_],_):t[_],c(b,_,x);else for(M=(w=h(t,S)).next,b=r?new this:[];!(v=i(M,w)).done;_++)x=g?s(w,m,[v.value,_],!0):v.value,c(b,_,x);return b.length=_,b}},{"../internals/call-with-safe-iteration-closing":135,"../internals/create-property":147,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-constructor":204,"../internals/length-of-array-like":219,"../internals/to-object":285}],124:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=function(e){return function(t,r,s){var a,u=n(t),l=o(u),c=i(s,l);if(e&&r!==r){for(;l>c;)if((a=u[c++])!==a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-indexed-object":282}],125:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-uncurr
2y-this"),o=e("../internals/indexed-object"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),u=e("../internals/array-species-create"),l=i([].push),c=function(e){var t=1===e,r=2===e,i=3===e,c=4===e,h=6===e,d=7===e,f=5===e||h;return function(p,m,g,y){for(var b,v,w=s(p),M=o(w),x=a(M),S=n(m,g),_=0,k=y||u,A=t?k(p,x):r||d?k(p,0):void 0;x>_;_++)if((f||_ in M)&&(v=S(b=M[_],_,w),e))if(t)A[_]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:l(A,b)}else switch(e){case 4:return!1;case 7:l(A,b)}return h?-1:i||c?c:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},{"../internals/array-species-create":134,"../internals/function-bind-context":175,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],126:[function(e,t,r){"use strict";var n=e("../internals/function-apply"),i=e("../internals/to-indexed-object"),o=e("../internals/to-integer-or-infinity"),s=e("../internals/length-of-array-like"),a=e("../internals/array-method-is-strict"),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,h=a("lastIndexOf"),d=c||!h;t.exports=d?function(e){if(c)return n(l,this,arguments)||0;var t=i(this),r=s(t),a=r-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},{"../internals/array-method-is-strict":128,"../internals/function-apply":174,"../internals/length-of-array-like":219,"../internals/to-indexed-object":282,"../internals/to-integer-or-infinity":283}],127:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/engine-v8-version"),s=i("species");t.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/well-known-symbol":306}],128:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},{"../internals/fails":171}],129:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),s=e("../internals/length-of-array-like"),a=TypeError,u=function(e){return function(t,r,u,l){var c=i(t),h=o(c),d=s(c);n(r);var f=e?d-1:0,p=e?-1:1;if(u<2)for(;;){if(f in h){l=h[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw new a("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in h&&(l=r(l,h[f],f,c));return l}};t.exports={left:u(!1),right:u(!0)}},{"../internals/a-callable":108,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],130:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/is-array"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();t.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},{"../internals/descriptors":153,"../internals/is-array":201}],131:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n([].slice)},{"../internals/function-uncurry-this":181}],132:[function(e,t,r){"use strict";var n=e("../internals/array-slice"),i=Math.floor,o=function(e,t){var r=e.length;if(r<8)for(var s,a,u=1;u<r;){for(a=u,s=e[u];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==u++&&(e[a]=s)}else for(var l=i(r/2),c=o(n(e,0,l),t),h=o(n(e,l),t),d=c.length,f=h.length,p=0,m=0;p<d||m<f;)e[p+m]=p<d&&m<f?t(c[p],h[m])<=0?c[p++]:h[m++]:p<d?c[p++]:h[m++];return e};t.exports=o},{"../internals/array-slice":131}],133:[function(e,t,r){"use strict";var n=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===a||n(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":201,"../internals/is-constructor":204,"../internals/is-object":208,"../internals/well-known-symbol":306}],134:[function(e,t,r){"use strict";var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":133}],135:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(s){i(e,"throw",s)}}},{"../internals/an-object":114,"../internals/iterator-close":214}],136:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(a){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(a){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(a){}return r}},{"../internals/well-known-symbol":306}],137:[function(e,t,r){"use strict";
vendor: 5,383 bytes, line 2
2var n=e("../internals/function-uncurry-this"),i=n({}.toString),o=n("".slice);t.exports=function(e){return o(i(e),8,-1)}},{"../internals/function-uncurry-this":181}],138:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=a(e),s))?r:u?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},{"../internals/classof-raw":137,"../internals/is-callable":203,"../internals/to-string-tag-support":290,"../internals/well-known-symbol":306}],139:[function(e,t,r){"use strict";var n=e("../internals/object-create"),i=e("../internals/define-built-in-accessor"),o=e("../internals/define-built-ins"),s=e("../internals/function-bind-context"),a=e("../internals/an-instance"),u=e("../internals/is-null-or-undefined"),l=e("../internals/iterate"),c=e("../internals/iterator-define"),h=e("../internals/create-iter-result-object"),d=e("../internals/set-species"),f=e("../internals/descriptors"),p=e("../internals/internal-metadata").fastKey,m=e("../internals/internal-state"),g=m.set,y=m.getterFor;t.exports={getConstructor:function(e,t,r,c){var h=e((function(e,i){a(e,d),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),f||(e.size=0),u(i)||l(i,e[c],{that:e,AS_ENTRIES:r})})),d=h.prototype,m=y(t),b=function(e,t,r){var n,i,o=m(e),s=v(e,t);return s?s.value=r:(o.last=s={index:i=p(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),f?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},v=function(e,t){var r,n=m(e),i=p(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===t)return r};return o(d,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),f?e.size=0:this.size=0},delete:function(e){var t=m(this),r=v(this,e);if(r){var n=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),t.first===r&&(t.first=n),t.last===r&&(t.last=i),f?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(d,r?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),f&&i(d,"size",{configurable:!0,get:function(){return m(this).size}}),h},setStrong:function(e,t,r){var n=t+" Iterator",i=y(t),o=y(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?h("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,h(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},{"../internals/an-instance":113,"../internals/create-iter-result-object":144,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/function-bind-context":175,"../internals/internal-metadata":198,"../internals/internal-state":199,"../internals/is-null-or-undefined":207,"../internals/iterate":213,"../internals/iterator-define":216,"../internals/object-create":229,"../internals/set-species":265}],140:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-forced"),a=e("../internals/define-built-in"),u=e("../internals/internal-metadata"),l=e("../internals/iterate"),c=e("../internals/an-instance"),h=e("../internals/is-callable"),d=e("../internals/is-null-or-undefined"),f=e("../internals/is-object"),p=e("../internals/fails"),m=e("../internals/check-correctness-of-iteration"),g=e("../internals/set-to-string-tag"),y=e("../internals/inherit-if-required");t.exports=function(e,t,r){var b=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=b?"set":"add",M=i[e],x=M&&M.prototype,S=M,_={},k=function(e){var t=o(x[e]);a(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(v&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return v&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(v&&!f(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(s(e,!h(M)||!(v||x.forEach&&!p((function(){(new M).entries().next()})))))S=r.getConstructor(t,e,b,w),u.enable();else if(s(e,!0)){var A=new S,j=A[w](v?{}:-0,1)!==A,E=p((function(){A.has(1)})),T=m((function(e){new M(e)})),C=!v&&p((function(){for(var e=new M,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((S=t((function(e,t){c(e,x);var r=y(new M,e,S);return d(t)||l(t,r[w],{that:r,AS_ENTRIES:b}),r}))).prototype=x,x.constructor=S),(E||C)&&(k("delete"),k("has"),b&&k("get")),(C||j)&&k(w),v&&x.clear&&delete x.clear}return _[e]=S,n({global:!0,constructor:!0,forced:S!==M},_),g(S,e),v||r.setStrong(S,e,b),S}},{"../internals/an-instance":113,"../internals/check-correctness-of-iteration":136,"../internals/define-built-in":149,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurr
2y-this":181,"../internals/global":188,"../internals/inherit-if-required":196,"../internals/internal-metadata":198,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-null-or-undefined":207,"../internals/is-object":208,"../internals/iterate":213,"../internals/set-to-string-tag":266}],141:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,r){for(var a=i(t),u=s.f,l=o.f,c=0;c<a.length;c++){var h=a[c];n(e,h)||r&&n(r,h)||u(e,h,l(t,h))}}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/own-keys":246}],142:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},{"../internals/well-known-symbol":306}],143:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":171}],144:[function(e,t,r){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],145:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":146,"../internals/descriptors":153,"../internals/object-define-property":231}],146:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],147:[function(e,t,r){"use strict";var n=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var s=n(t);s in e?i.f(e,s,o(0,r)):e[s]=r}},{"../internals/create-property-descriptor":146,"../internals/object-define-property":231,"../internals/to-property-key":289}],148:[function(e,t,r){"use strict";var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":220,"../internals/object-define-property":231}],149:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,l=void 0!==a.name?a.name:t;if(n(r)&&o(r,l,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(c){}u?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":151,"../internals/is-callable":203,"../internals/make-built-in":220,"../internals/object-define-property":231}],150:[function(e,t,r){"use strict";var n=e("../internals/define-built-in");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"../internals/define-built-in":149}],151:[function(e,t,r){"use strict";var n=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":188}],152:[function(e,t,r){"use strict";var n=e("../internals/try-to-string"),i=TypeError;t.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+n(t)+" of "+n(e))}},{"../internals/try-to-string":293}],153:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":171}],154:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-object"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(e){return s?o.createElement(e):{}}},{"../internals/global":188,"../internals/is-object":208}],155:[function(e,t,r){"use strict";var n=TypeError;t.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},{}],156:[function(e,t,r){"use strict";
vendor: 1,677 bytes, line 2
2t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],157:[function(e,t,r){"use strict";var n=e("../internals/document-create-element")("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},{"../internals/document-create-element":154}],158:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent").match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],159:[function(e,t,r){"use strict";var n=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":160,"../internals/engine-is-node":164}],160:[function(e,t,r){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],161:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(n)},{"../internals/engine-user-agent":166}],162:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":166}],163:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");
2t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":166}],164:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(n.process)},{"../internals/classof-raw":137,"../internals/global":188}],165:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":166}],166:[function(e,t,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],167:[function(e,t,r){"use strict";var n,i,o=e("../internals/global"),s=e("../internals/engine-user-agent"),a=o.process,u=o.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/engine-user-agent":166,"../internals/global":188}],168:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],169:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],170:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),a=e("../internals/define-global-property"),u=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var r,c,h,d,f,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||a(p,{}):(n[p]||{}).prototype)for(c in t){if(d=t[c],h=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!l(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;u(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),s(r,c,d,e)}}},{"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/define-global-property":151,"../internals/global":188,"../internals/is-forced":205,"../internals/object-get-own-property-descriptor":232}],171:[function(e,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],172:[function(e,t,r){"use strict";e("../modules/es.regexp.exec");var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/define-built-in"),o=e("../internals/regexp-exec"),s=e("../internals/fails"),a=e("../internals/well-known-symbol"),u=e("../internals/create-non-enumerable-property"),l=a("species"),c=RegExp.prototype;t.exports=function(e,t,r,h){var d=a(e),f=!s((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=f&&!s((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!f||!p||r){var m=n(/./[d]),g=t(d,""[e],(function(e,t,r,i,s){var a=n(e),u=t.exec;return u===o||u===c.exec?f&&!s?{done:!0,value:m(t,r,i)}:{done:!0,value:a(r,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(c,d,g[1])}h&&u(c[d],"sham",!0)}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/regexp-exec":256,"../internals/well-known-symbol":306,"../modules/es.regexp.exec":338}],173:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},{"../internals/fails":171}],174:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":176}],175:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),s=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":108,"../internals/function-bind-native":176,"../internals/function-uncurr
2y-this-clause":180}],176:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":171}],177:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":176}],178:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,l=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},{"../internals/descriptors":153,"../internals/has-own-property":189}],179:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(o){}}},{"../internals/a-callable":108,"../internals/function-uncurry-this":181}],180:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":137,"../internals/function-uncurry-this":181}],181:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":176}],182:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-callable"),o=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},{"../internals/global":188,"../internals/is-callable":203}],183:[function(e,t,r){"use strict";var n=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[n(e)]}},{"../internals/classof":138,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/iterators":218,"../internals/well-known-symbol":306}],184:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),u=TypeError;t.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return o(n(r,e));throw new u(s(e)+" is not iterable")}},{"../internals/a-callable":108,"../internals/an-object":114,"../internals/function-call":177,"../internals/get-iterator-method":183,"../internals/try-to-string":293}],185:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/to-string"),u=n([].push);t.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?u(r,l):"number"!=typeof l&&"Number"!==s(l)&&"String"!==s(l)||u(r,a(l))}var c=r.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},{"../internals/classof-raw":137,"../internals/function-uncurry-this":181,"../internals/is-array":201,"../internals/is-callable":203,"../internals/to-string":291}],186:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":108,"../internals/is-null-or-undefined":207}],187:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=Math.floor,s=n("".charAt),a=n("".replace),u=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,r,n,h,d){var f=r+e.length,p=n.length,m=c;return void 0!==h&&(h=i(h),m=l),a(d,m,(function(i,a){var l;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,r);case"'":return u(t,f);case"<":l=h[u(a,1,-1)];break;default:var c=+a;if(0===c)return i;if(c>p){var d=o(c/10);return 0===d?i:d<=p?void 0===n[d-1]?s(a,1):n[d-1]+s(a,1):i}l=n[c-1]}return void 0===l?"":l}))}}
2,{"../internals/function-uncurry-this":181,"../internals/to-object":285}],188:[function(e,t,r){(function(e){(function(){"use strict";var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],189:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},{"../internals/function-uncurry-this":181,"../internals/to-object":285}],190:[function(e,t,r){"use strict";t.exports={}},{}],191:[function(e,t,r){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}},{}],192:[function(e,t,r){"use strict";var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":182}],193:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":153,"../internals/document-create-element":154,"../internals/fails":171}],194:[function(e,t,r){"use strict";var n=Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,u=Math.LN2;t.exports={pack:function(e,t,r){var l,c,h,d=n(r),f=8*r-t-1,p=(1<<f)-1,m=p>>1,g=23===t?o(2,-24)-o(2,-77):0,y=e<0||0===e&&1/e<0?1:0,b=0;for((e=i(e))!==e||e===1/0?(c=e!==e?1:0,l=p):(l=s(a(e)/u),e*(h=o(2,-l))<1&&(l--,h*=2),(e+=l+m>=1?g/h:g*o(2,1-m))*h>=2&&(l++,h/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(e*h-1)*o(2,t),l+=m):(c=e*o(2,m-1)*o(2,t),l=0));t>=8;)d[b++]=255&c,c/=256,t-=8;for(l=l<<t|c,f+=t;f>0;)d[b++]=255&l,l/=256,f-=8;return d[--b]|=128*y,d},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,s=(1<<i)-1,a=s>>1,u=i-7,l=n-1,c=e[l--],h=127&c;for(c>>=7;u>0;)h=256*h+e[l--],u-=8;for(r=h&(1<<-u)-1,h>>=-u,u+=t;u>0;)r=256*r+e[l--],u-=8;if(0===h)h=1-a;else{if(h===s)return r?NaN:c?-1/0:1/0;r+=o(2,t),h-=a}return(c?-1:1)*r*o(2,h-t)}}},{}],195:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),s=Object,a=n("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},{"../internals/classof-raw":137,"../internals/fails":171,"../internals/function-uncurry-this":181}],196:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/is-object"),o=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){var s,a;return o&&n(s=t.constructor)&&s!==r&&i(a=s.prototype)&&a!==r.prototype&&o(e,a),e}},{"../internals/is-callable":203,"../internals/is-object":208,"../internals/object-set-prototype-of":242}],197:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),t.exports=o.inspectSource},{"../internals/function-uncurry-this":181,"../internals/is-callable":203,"../internals/shared-store":268}],198:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/hidden-keys"),s=e("../internals/is-object"),a=e("../internals/has-own-property"),u=e("../internals/object-define-property").f,l=e("../internals/object-get-own-property-names"),c=e("../internals/object-get-own-property-names-external"),h=e("../internals/object-is-extensible"),d=e("../internals/uid"),f=e("../internals/freezing"),p=!1,m=d("meta"),g=0,y=function(e){u(e,m,{value:{objectID:"O"+g++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},p=!0;var e=l.f,t=i([].splice),r={};r[m]=1,e(r).length&&(l.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!h(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!a(e,m)){if(!h(e))return!0;
2if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return f&&p&&h(e)&&!a(e,m)&&y(e),e}};o[m]=!0},{"../internals/export":170,"../internals/freezing":173,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/is-object":208,"../internals/object-define-property":231,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-names-external":233,"../internals/object-is-extensible":237,"../internals/uid":299}],199:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/weak-map-basic-detection"),a=e("../internals/global"),u=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/has-own-property"),h=e("../internals/shared-store"),d=e("../internals/shared-key"),f=e("../internals/hidden-keys"),p=a.TypeError,m=a.WeakMap;if(s||h.state){var g=h.state||(h.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p("Object already initialized");return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=d("state");f[y]=!0,n=function(e,t){if(c(e,y))throw new p("Object already initialized");return t.facade=e,l(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}t.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}},{"../internals/create-non-enumerable-property":145,"../internals/global":188,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/is-object":208,"../internals/shared-key":267,"../internals/shared-store":268,"../internals/weak-map-basic-detection":303}],200:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":218,"../internals/well-known-symbol":306}],201:[function(e,t,r){"use strict";var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===n(e)}},{"../internals/classof-raw":137}],202:[function(e,t,r){"use strict";var n=e("../internals/classof");t.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},{"../internals/classof":138}],203:[function(e,t,r){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},{}],204:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/classof"),a=e("../internals/get-built-in"),u=e("../internals/inspect-source"),l=function(){},c=[],h=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(l),m=function(e){if(!o(e))return!1;try{return h(l,c,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,u(e))}catch(t){return!0}};g.sham=!0,t.exports=!h||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},{"../internals/classof":138,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/inspect-source":197,"../internals/is-callable":203}],205:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,s=function(e,t){var r=u[a(e)];return r===c||r!==l&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},{"../internals/fails":171,"../internals/is-callable":203}],206:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"../internals/is-object":208}],207:[function(e,t,r){"use strict";
vendor: 4,655 bytes, line 2
2t.exports=function(e){return null===e||void 0===e}},{}],208:[function(e,t,r){"use strict";var n=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/is-callable":203}],209:[function(e,t,r){"use strict";var n=e("../internals/is-object");t.exports=function(e){return n(e)||null===e}},{"../internals/is-object":208}],210:[function(e,t,r){"use strict";t.exports=!1},{}],211:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":137,"../internals/is-object":208,"../internals/well-known-symbol":306}],212:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":182,"../internals/is-callable":203,"../internals/object-is-prototype-of":238,"../internals/use-symbol-as-uid":300}],213:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),u=e("../internals/length-of-array-like"),l=e("../internals/object-is-prototype-of"),c=e("../internals/get-iterator"),h=e("../internals/get-iterator-method"),d=e("../internals/iterator-close"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,r){var g,y,b,v,w,M,x,S=r&&r.that,_=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),E=n(t,S),T=function(e){return g&&d(g,"normal",e),new p(!0,e)},C=function(e){return _?(o(e),j?E(e[0],e[1],T):E(e[0],e[1])):j?E(e,T):E(e)};if(k)g=e.iterator;else if(A)g=e;else{if(!(y=h(e)))throw new f(s(e)+" is not iterable");if(a(y)){for(b=0,v=u(e);v>b;b++)if((w=C(e[b]))&&l(m,w))return w;return new p(!1)}g=c(e,y)}for(M=k?e.next:g.next;!(x=i(M,g)).done;){try{w=C(x.value)}catch(O){d(g,"throw",O)}if("object"==typeof w&&w&&l(m,w))return w}return new p(!1)}},{"../internals/an-object":114,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/iterator-close":214,"../internals/length-of-array-like":219,"../internals/object-is-prototype-of":238,"../internals/try-to-string":293}],214:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,r){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(u){a=!0,s=u}if("throw"===t)throw r;if(a)throw s;return i(s),r}},{"../internals/an-object":114,"../internals/function-call":177,"../internals/get-method":186}],215:[function(e,t,r){"use strict";var n=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),u=function(){return this};t.exports=function(e,t,r,l){var c=t+" Iterator";return e.prototype=i(n,{next:o(+!l,r)}),s(e,c,!1,!0),a[c]=u,e}},{"../internals/create-property-descriptor":146,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-create":229,"../internals/set-to-string-tag":266}],216:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),s=e("../internals/function-name"),a=e("../internals/is-callable"),u=e("../internals/iterator-create-constructor"),l=e("../internals/object-get-prototype-of"),c=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),d=e("../internals/create-non-enumerable-property"),f=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),m=e("../internals/iterators"),g=e("../internals/iterators-core"),y=s.PROPER,b=s.CONFIGURABLE,v=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,M=p("iterator"),x=function(){return this};t.exports=function(e,t,r,s,p,g,S){u(r,t,s);var _,k,A,j=function(e){if(e===p&&R)return R;if(!w&&e&&e in C)return C[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",T=!1,C=e.prototype,O=C[M]||C["@@iterator"]||p&&C[p],R=!w&&O||j(p),I="Array"===t&&C.entr
2ies||O;if(I&&(_=l(I.call(new e)))!==Object.prototype&&_.next&&(o||l(_)===v||(c?c(_,v):a(_[M])||f(_,M,x)),h(_,E,!0,!0),o&&(m[E]=x)),y&&"values"===p&&O&&"values"!==O.name&&(!o&&b?d(C,"name","values"):(T=!0,R=function(){return i(O,this)})),p)if(k={values:j("values"),keys:g?R:j("keys"),entries:j("entries")},S)for(A in k)(w||T||!(A in C))&&f(C,A,k[A]);else n({target:t,proto:!0,forced:w||T},k);return o&&!S||C[M]===R||f(C,M,R,{name:p}),m[t]=R,k}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/export":170,"../internals/function-call":177,"../internals/function-name":178,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/iterator-create-constructor":215,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306}],217:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/fails"),a=e("../internals/is-callable"),u=e("../internals/is-object"),l=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),f=e("../internals/is-pure"),p=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):m=!0),!u(n)||s((function(){var e={};return n[p].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":149,"../internals/fails":171,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-get-prototype-of":236,"../internals/well-known-symbol":306}],218:[function(e,t,r){arguments[4][190][0].apply(r,arguments)},{dup:190}],219:[function(e,t,r){"use strict";var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":284}],220:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/has-own-property"),a=e("../internals/descriptors"),u=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),c=e("../internals/internal-state"),h=c.enforce,d=c.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),b=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=t.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=h(e);return s(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&d(this).source||l(this)}),"toString")},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/inspect-source":197,"../internals/internal-state":199,"../internals/is-callable":203}],221:[function(e,t,r){"use strict";var n=e("../internals/math-sign"),i=Math.abs;t.exports=function(e,t,r,o){var s=+e,a=i(s),u=n(s);if(a<o)return u*function(e){return e+4503599627370496-4503599627370496}(a/o/t)*o*t;var l=(1+t/2220446049250313e-31)*a,c=l-(l-a);return c>r||c!==c?u*(1/0):u*c}},{"../internals/math-sign":223}],222:[function(e,t,r){"use strict";var n=e("../internals/math-float-round");t.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},{"../internals/math-float-round":221}],223:[function(e,t,r){"use strict";t.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},{}],224:[function(e,t,r){"use strict";var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],225:[function(e,t,r){"use strict";var n,i,o,s,a,u=e("../internals/global"),l=e("../internals/safe-get-built-in"),c=e("../internals/function-bind-context"),h=e("../internals/task").set,d=e("../internals/queue"),f=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),y=u.MutationObserver||u.WebKitMutationObserver,b=u.document,v=u.process,w=u.Promise,M=l("queueMicrotask");if(!M){var x=new d,S=function(){var e,t;for(g&&(e=v.domain)&&e.exit();t=x.get();)try{t()}catch(r){throw x.head&&n(),r}e&&e.enter()};f||g||m||!y||!b?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=c(s.then,s),n=function(){a(S)}):g?n=function(){v.nextTick(S)}:(h=c(h,u),n=function(){h(S)}):(i=!0,o=b.createTextNode(""),new y(S).observe(o,{characterData:!0}
vendor: 4,850 bytes, line 2
2),n=function(){o.data=i=!i}),M=function(e){x.head||n(),x.add(e)}}t.exports=M},{"../internals/engine-is-ios":163,"../internals/engine-is-ios-pebble":162,"../internals/engine-is-node":164,"../internals/engine-is-webos-webkit":165,"../internals/function-bind-context":175,"../internals/global":188,"../internals/queue":254,"../internals/safe-get-built-in":263,"../internals/task":277}],226:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=TypeError,o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new o(e)}},{"../internals/a-callable":108}],227:[function(e,t,r){"use strict";var n=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":211}],228:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),s=e("../internals/fails"),a=e("../internals/object-keys"),u=e("../internals/object-get-own-property-symbols"),l=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),h=e("../internals/indexed-object"),d=Object.assign,f=Object.defineProperty,p=i([].concat);t.exports=!d||s((function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||"abcdefghijklmnopqrst"!==a(d({},t)).join("")}))?function(e,t){for(var r=c(e),i=arguments.length,s=1,d=u.f,f=l.f;i>s;)for(var m,g=h(arguments[s++]),y=d?p(a(g),d(g)):a(g),b=y.length,v=0;b>v;)m=y[v++],n&&!o(f,g,m)||(r[m]=g[m]);return r}:d},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/object-get-own-property-symbols":235,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-object":285}],229:[function(e,t,r){"use strict";var n,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),u=e("../internals/html"),l=e("../internals/document-create-element"),c=e("../internals/shared-key"),h=c("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&n?p(n):function(){var e,t=l("iframe");return t.style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F}():p(n);for(var e=s.length;e--;)delete m.prototype[s[e]];return m()};a[h]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(d.prototype=i(e),r=new d,d.prototype=null,r[h]=e):r=m(),void 0===t?r:o.f(r,t)}},{"../internals/an-object":114,"../internals/document-create-element":154,"../internals/enum-bug-keys":169,"../internals/hidden-keys":190,"../internals/html":192,"../internals/object-define-properties":230,"../internals/shared-key":267}],230:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),s=e("../internals/an-object"),a=e("../internals/to-indexed-object"),u=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),i=u(t),l=i.length,c=0;l>c;)o.f(e,r=i[c++],n[r]);return e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/object-define-property":231,"../internals/object-keys":240,"../internals/to-indexed-object":282,"../internals/v8-prototype-define-bug":301}],231:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),a=e("../internals/to-property-key"),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;r.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"===typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return l(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/ie8-d
2om-define":193,"../internals/to-property-key":289,"../internals/v8-prototype-define-bug":301}],232:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),u=e("../internals/to-property-key"),l=e("../internals/has-own-property"),c=e("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;r.f=n?h:function(e,t){if(e=a(e),t=u(t),c)try{return h(e,t)}catch(r){}if(l(e,t))return s(!i(o.f,e,t),e[t])}},{"../internals/create-property-descriptor":146,"../internals/descriptors":153,"../internals/function-call":177,"../internals/has-own-property":189,"../internals/ie8-dom-define":193,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282,"../internals/to-property-key":289}],233:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"Window"===n(e)?function(e){try{return o(e)}catch(t){return s(a)}}(e):o(i(e))}},{"../internals/array-slice":131,"../internals/classof-raw":137,"../internals/object-get-own-property-names":234,"../internals/to-indexed-object":282}],234:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],235:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],236:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),u=s("IE_PROTO"),l=Object,c=l.prototype;t.exports=a?l.getPrototypeOf:function(e){var t=o(e);if(n(t,u))return t[u];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?c:null}},{"../internals/correct-prototype-getter":143,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/shared-key":267,"../internals/to-object":285}],237:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/is-object"),o=e("../internals/classof-raw"),s=e("../internals/array-buffer-non-extensible"),a=Object.isExtensible,u=n((function(){a(1)}));t.exports=u||s?function(e){return!!i(e)&&(!s||"ArrayBuffer"!==o(e))&&(!a||a(e))}:a},{"../internals/array-buffer-non-extensible":116,"../internals/classof-raw":137,"../internals/fails":171,"../internals/is-object":208}],238:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":181}],239:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),u=n([].push);t.exports=function(e,t){var r,n=o(e),l=0,c=[];for(r in n)!i(a,r)&&i(n,r)&&u(c,r);for(;t.length>l;)i(n,r=t[l++])&&(~s(c,r)||u(c,r));return c}},{"../internals/array-includes":124,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/to-indexed-object":282}],240:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],241:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);r.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],242:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");
vendor: 4,886 bytes, line 2
2t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},{"../internals/a-possible-prototype":110,"../internals/an-object":114,"../internals/function-uncurry-this-accessor":179}],243:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),l=o(e("../internals/object-property-is-enumerable").f),c=o([].push),h=n&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),d=function(e){return function(t){for(var r,i=u(t),o=a(i),d=h&&null===s(i),f=o.length,p=0,m=[];f>p;)r=o[p++],n&&!(d?r in i:l(i,r))||c(m,e?[r,i[r]]:i[r]);return m}};t.exports={entries:d(!0),values:d(!1)}},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/object-get-prototype-of":236,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282}],244:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),i=e("../internals/classof");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},{"../internals/classof":138,"../internals/to-string-tag-support":290}],245:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e)))return a;if(i(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":177,"../internals/is-callable":203,"../internals/is-object":208}],246:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?u(t,r(e)):t}},{"../internals/an-object":114,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-symbols":235}],247:[function(e,t,r){"use strict";var n=e("../internals/global");t.exports=n},{"../internals/global":188}],248:[function(e,t,r){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],249:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),s=e("../internals/is-forced"),a=e("../internals/inspect-source"),u=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),c=e("../internals/engine-is-deno"),h=e("../internals/is-pure"),d=e("../internals/engine-v8-version"),f=i&&i.prototype,p=u("species"),m=!1,g=o(n.PromiseRejectionEvent),y=s("Promise",(function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[p]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(l||c)&&!g}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},{"../internals/engine-is-browser":159,"../internals/engine-is-deno":160,"../internals/engine-v8-version":167,"../internals/global":188,"../internals/inspect-source":197,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/promise-native-constructor":250,"../internals/well-known-symbol":306}],250:[function(e,t,r){"use strict";var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":188}],251:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":114,"../internals/is-object":208,"../internals/new-promise-capability":226}],252:[function(e,t,r){"use strict";var n=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":136,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],253:[function(e,t,r){"use strict";var n=e("../internals/object-define-property").f;
2t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},{"../internals/object-define-property":231}],254:[function(e,t,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=n},{}],255:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/regexp-exec"),u=TypeError;t.exports=function(e,t){var r=e.exec;if(o(r)){var l=n(r,e,t);return null!==l&&i(l),l}if("RegExp"===s(e))return n(a,e,t);throw new u("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":114,"../internals/classof-raw":137,"../internals/function-call":177,"../internals/is-callable":203,"../internals/regexp-exec":256}],256:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/function-uncurry-this"),o=e("../internals/to-string"),s=e("../internals/regexp-flags"),a=e("../internals/regexp-sticky-helpers"),u=e("../internals/shared"),l=e("../internals/object-create"),c=e("../internals/internal-state").get,h=e("../internals/regexp-unsupported-dot-all"),d=e("../internals/regexp-unsupported-ncg"),f=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=i("".charAt),y=i("".indexOf),b=i("".replace),v=i("".slice),w=function(){var e=/a/,t=/b*/g;return n(p,e,"a"),n(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),M=a.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(w||x||M||h||d)&&(m=function(e){var t,r,i,a,u,h,d,S=this,_=c(S),k=o(e),A=_.raw;if(A)return A.lastIndex=S.lastIndex,t=n(m,A,k),S.lastIndex=A.lastIndex,t;var j=_.groups,E=M&&S.sticky,T=n(s,S),C=S.source,O=0,R=k;if(E&&(T=b(T,"y",""),-1===y(T,"g")&&(T+="g"),R=v(k,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==g(k,S.lastIndex-1))&&(C="(?: "+C+")",R=" "+R,O++),r=new RegExp("^(?:"+C+")",T)),x&&(r=new RegExp("^"+C+"$(?!\\s)",T)),w&&(i=S.lastIndex),a=n(p,E?r:S,R),E?a?(a.input=v(a.input,O),a[0]=v(a[0],O),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:w&&a&&(S.lastIndex=S.global?a.index+a[0].length:i),x&&a&&a.length>1&&n(f,a[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&j)for(a.groups=h=l(null),u=0;u<j.length;u++)h[(d=j[u])[0]]=a[d[1]];return a}),t.exports=m},{"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/internal-state":199,"../internals/object-create":229,"../internals/regexp-flags":257,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/shared":269,"../internals/to-string":291}],257:[function(e,t,r){"use strict";var n=e("../internals/an-object");t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},{"../internals/an-object":114}],258:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/has-own-property"),o=e("../internals/object-is-prototype-of"),s=e("../internals/regexp-flags"),a=RegExp.prototype;t.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||i(e,"flags")||!o(a,e)?t:n(s,e)}},{"../internals/function-call":177,"../internals/has-own-property":189,"../internals/object-is-prototype-of":238,"../internals/regexp-flags":257}],259:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/global").RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=o||n((function(){return!i("a","y").sticky})),a=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},{"../internals/fails":171,"../internals/global":188}],260:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},{"../internals/fails":171,"../internals/global":188}],261:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},{"../internals/fails":171,"../internals/global":188}],262:[function(e,t,r){"use strict";var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":207}],263:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/descriptors"),o=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(e,t,r){"use strict";
2t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},{}],265:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var t=n(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],266:[function(e,t,r){"use strict";var n=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(e,t,r){"use strict";var n=e("../internals/shared"),i=e("../internals/uid"),o=n("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/define-global-property"),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(e,t,r){"use strict";var n=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:n?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":210,"../internals/shared-store":268}],270:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||o(r=n(a)[s])?t:i(r)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),s=e("../internals/require-object-coercible"),a=n("".charAt),u=n("".charCodeAt),l=n("".slice),c=function(e){return function(t,r){var n,c,h=o(s(t)),d=i(r),f=h.length;return d<0||d>=f?e?"":void 0:(n=u(h,d))<55296||n>56319||d+1===f||(c=u(h,d+1))<56320||c>57343?e?a(h,d):n:e?l(h,d,d+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(e,t,r){"use strict";var n=e("../internals/function-name").PROPER,i=e("../internals/fails"),o=e("../internals/whitespace
2s");t.exports=function(e){return i((function(){return!!o[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||n&&o[e].name!==e}))}},{"../internals/fails":171,"../internals/function-name":178,"../internals/whitespaces":307}],273:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/require-object-coercible"),o=e("../internals/to-string"),s=e("../internals/whitespaces"),a=n("".replace),u=RegExp("^["+s+"]+"),l=RegExp("(^|[^"+s+"])["+s+"]+$"),c=function(e){return function(t){var r=o(i(t));return 1&e&&(r=a(r,u,"")),2&e&&(r=a(r,l,"$1")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-string":291,"../internals/whitespaces":307}],274:[function(e,t,r){"use strict";var n=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/global":188}],275:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return n(r,this)}),{arity:1})}},{"../internals/define-built-in":149,"../internals/function-call":177,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],276:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":274}],277:[function(e,t,r){"use strict";var n,i,o,s,a=e("../internals/global"),u=e("../internals/function-apply"),l=e("../internals/function-bind-context"),c=e("../internals/is-callable"),h=e("../internals/has-own-property"),d=e("../internals/fails"),f=e("../internals/html"),p=e("../internals/array-slice"),m=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),y=e("../internals/engine-is-ios"),b=e("../internals/engine-is-node"),v=a.setImmediate,w=a.clearImmediate,M=a.process,x=a.Dispatch,S=a.Function,_=a.MessageChannel,k=a.String,A=0,j={};d((function(){n=a.location}));var E=function(e){if(h(j,e)){var t=j[e];delete j[e],t()}},T=function(e){return function(){E(e)}},C=function(e){E(e.data)},O=function(e){a.postMessage(k(e),n.protocol+"//"+n.host)};v&&w||(v=function(e){g(arguments.length,1);var t=c(e)?e:S(e),r=p(arguments,1);return j[++A]=function(){u(t,void 0,r)},i(A),A},w=function(e){delete j[e]},b?i=function(e){M.nextTick(T(e))}:x&&x.now?i=function(e){x.now(T(e))}:_&&!y?(s=(o=new _).port2,o.port1.onmessage=C,i=l(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(O)?(i=O,a.addEventListener("message",C,!1)):i="onreadystatechange"in m("script")?function(e){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this),E(e)}}:function(e){setTimeout(T(e),0)}),t.exports={set:v,clear:w}},{"../internals/array-slice":131,"../internals/document-create-element":154,"../internals/engine-is-ios":163,"../internals/engine-is-node":164,"../internals/fails":171,"../internals/function-apply":174,"../internals/function-bind-context":175,"../internals/global":188,"../internals/has-own-property":189,"../internals/html":192,"../internals/is-callable":203,"../internals/validate-arguments-length":302}],278:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n(1..valueOf)},{"../internals/function-uncurry-this":181}],279:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},{"../internals/to-integer-or-infinity":283}],280:[function(e,t,r){"use strict";var n=e("../internals/to-primitive"),i=TypeError;t.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},{"../internals/to-primitive":288}],281:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=e("../internals/to-length"),o=RangeError;t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);
2if(t!==r)throw new o("Wrong length or index");return r}},{"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],282:[function(e,t,r){"use strict";var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":195,"../internals/require-object-coercible":262}],283:[function(e,t,r){"use strict";var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},{"../internals/math-trunc":224}],284:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":283}],285:[function(e,t,r){"use strict";var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":262}],286:[function(e,t,r){"use strict";var n=e("../internals/to-positive-integer"),i=RangeError;t.exports=function(e,t){var r=n(e);if(r%t)throw new i("Wrong offset");return r}},{"../internals/to-positive-integer":287}],287:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=RangeError;t.exports=function(e){var t=n(e);if(t<0)throw new i("The argument can't be less than 0");return t}},{"../internals/to-integer-or-infinity":283}],288:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),s=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),u=e("../internals/well-known-symbol"),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var r,u=s(e,c);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!i(r)||o(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":177,"../internals/get-method":186,"../internals/is-object":208,"../internals/is-symbol":212,"../internals/ordinary-to-primitive":245,"../internals/well-known-symbol":306}],289:[function(e,t,r){"use strict";var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":212,"../internals/to-primitive":288}],290:[function(e,t,r){"use strict";var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":306}],291:[function(e,t,r){"use strict";var n=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":138}],292:[function(e,t,r){"use strict";var n=Math.round;t.exports=function(e){var t=n(e);return t<0?0:t>255?255:255&t}},{}],293:[function(e,t,r){"use strict";var n=String;t.exports=function(e){try{return n(e)}catch(t){return"Object"}}},{}],294:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/descriptors"),a=e("../internals/typed-array-constructors-require-wrappers"),u=e("../internals/array-buffer-view-core"),l=e("../internals/array-buffer"),c=e("../internals/an-instance"),h=e("../internals/create-property-descriptor"),d=e("../internals/create-non-enumerable-property"),f=e("../internals/is-integral-number"),p=e("../internals/to-length"),m=e("../internals/to-index"),g=e("../internals/to-offset"),y=e("../internals/to-uint8-clamped"),b=e("../internals/to-property-key"),v=e("../internals/has-own-property"),w=e("../internals/classof"),M=e("../internals/is-object"),x=e("../internals/is-symbol"),S=e("../internals/object-create"),_=e("../internals/object-is-prototype-of"),k=e("../internals/object-set-prototype-of"),A=e("../internals/object-get-own-property-names").f,j=e("../internals/typed-array-from"),E=e("../internals/array-iteration").forEach,T=e("../internals/set-species"),C=e("../internals/define-built-in-accessor"),O=e("../internals/object-define-property"),R=e("../internals/object-get-own-property-descriptor"),I=e("../internals/array-from-constructor-and-list"),B=e("../internals/internal-state"),P=e("../internals/inherit-if-required"),N=B.get,D=B.set,U=B.enforce,L=O.f,F=R.f,q=i.RangeError,z=l.ArrayBuffer,V=z.prototype,H=l.DataView,K=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,W=u.TypedArray,X=u.TypedArrayPrototype,Z=u.isTypedArray,Y=function(e,t){C(e,t,{configurable:!0,get:function(){return N(this)[t]}})},J=function(e){var t;return _(V,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},Q=function(e,t){return Z(e)&&!x(t)&&t in e&&f(+t)&&t>=0},$=function(e,t){return t=b(t),Q(e,t)?h(2,e[t]):F(e,t)},ee=function(e,t,r){return t=b(t),!(Q(e,t)&&M(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?L(e,t,r):(e[t]=r.value,e)};s?(K||(R.f=$,O.f=ee,Y(X,"buffer"),Y(X,"byteOffset"),Y(X,"byteLength"),Y(X,"length")),n({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:$,defineProperty:ee}),t.exports=function(e,t,r){var s=e.match(/\d+/)[0]/8,u=e+(r?"Clamped":"")+"Array",l="get"+e,h="set"+e,f=i[u],b=f,v=b&&b.prototype,w={},x=function(e,t){L(e,t,{get:function(){return function(e,t){var r=N(e);return r.view[l](t*s+r.byteOffset,!0)}(this,t)}
2,set:function(e){return function(e,t,n){var i=N(e);i.view[h](t*s+i.byteOffset,r?y(n):n,!0)}(this,t,e)},enumerable:!0})};K?a&&(b=t((function(e,t,r,n){return c(e,v),P(M(t)?J(t)?void 0!==n?new f(t,g(r,s),n):void 0!==r?new f(t,g(r,s)):new f(t):Z(t)?I(b,t):o(j,b,t):new f(m(t)),e,b)})),k&&k(b,W),E(A(f),(function(e){e in b||d(b,e,f[e])})),b.prototype=v):(b=t((function(e,t,r,n){c(e,v);var i,a,u,l=0,h=0;if(M(t)){if(!J(t))return Z(t)?I(b,t):o(j,b,t);i=t,h=g(r,s);var d=t.byteLength;if(void 0===n){if(d%s)throw new q("Wrong length");if((a=d-h)<0)throw new q("Wrong length")}else if((a=p(n)*s)+h>d)throw new q("Wrong length");u=a/s}else u=m(t),i=new z(a=u*s);for(D(e,{buffer:i,byteOffset:h,byteLength:a,length:u,view:new H(i)});l<u;)x(e,l++)})),k&&k(b,W),v=b.prototype=S(X)),v.constructor!==b&&d(v,"constructor",b),U(v).TypedArrayConstructor=b,G&&d(v,G,u);var _=b!==f;w[u]=b,n({global:!0,constructor:!0,forced:_,sham:!K},w),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",s),"BYTES_PER_ELEMENT"in v||d(v,"BYTES_PER_ELEMENT",s),T(u)}):t.exports=function(){}},{"../internals/an-instance":113,"../internals/array-buffer":118,"../internals/array-buffer-view-core":117,"../internals/array-from-constructor-and-list":122,"../internals/array-iteration":125,"../internals/classof":138,"../internals/create-non-enumerable-property":145,"../internals/create-property-descriptor":146,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/function-call":177,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/is-integral-number":206,"../internals/is-object":208,"../internals/is-symbol":212,"../internals/object-create":229,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/object-set-prototype-of":242,"../internals/set-species":265,"../internals/to-index":281,"../internals/to-length":284,"../internals/to-offset":286,"../internals/to-property-key":289,"../internals/to-uint8-clamped":292,"../internals/typed-array-constructors-require-wrappers":295,"../internals/typed-array-from":297}],295:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/check-correctness-of-iteration"),s=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;t.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},{"../internals/array-buffer-view-core":117,"../internals/check-correctness-of-iteration":136,"../internals/fails":171,"../internals/global":188}],296:[function(e,t,r){"use strict";var n=e("../internals/array-from-constructor-and-list"),i=e("../internals/typed-array-species-constructor");t.exports=function(e,t){return n(i(e),t)}},{"../internals/array-from-constructor-and-list":122,"../internals/typed-array-species-constructor":298}],297:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/a-constructor"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),u=e("../internals/get-iterator"),l=e("../internals/get-iterator-method"),c=e("../internals/is-array-iterator-method"),h=e("../internals/is-big-int-array"),d=e("../internals/array-buffer-view-core").aTypedArrayConstructor,f=e("../internals/to-big-int");t.exports=function(e){var t,r,p,m,g,y,b,v,w=o(this),M=s(e),x=arguments.length,S=x>1?arguments[1]:void 0,_=void 0!==S,k=l(M);if(k&&!c(k))for(v=(b=u(M,k)).next,M=[];!(y=i(v,b)).done;)M.push(y.value);for(_&&x>2&&(S=n(S,arguments[2])),r=a(M),p=new(d(w))(r),m=h(p),t=0;r>t;t++)g=_?S(M[t],t):M[t],p[t]=m?f(g):+g;return p}},{"../internals/a-constructor":109,"../internals/array-buffer-view-core":117,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-big-int-array":202,"../internals/length-of-array-like":219,"../internals/to-big-int":280,"../internals/to-object":285}],298:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/species-constructor"),o=n.aTypedArrayConstructor,s=n.getTypedArrayConstructor;t.exports=function(e){return o(i(e,s(e)))}},{"../internals/array-buffer-view-core":117,"../internals/species-constructor":270}],299:[function(e,t,r){"use strict";
2var n=e("../internals/function-uncurry-this"),i=0,o=Math.random(),s=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},{"../internals/function-uncurry-this":181}],300:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":274}],301:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":153,"../internals/fails":171}],302:[function(e,t,r){"use strict";var n=TypeError;t.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},{}],303:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-callable"),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":188,"../internals/is-callable":203}],304:[function(e,t,r){"use strict";var n=e("../internals/path"),i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/path":247,"../internals/well-known-symbol-wrapped":305}],305:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":306}],306:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),u=e("../internals/use-symbol-as-uid"),l=n.Symbol,c=i("wks"),h=u?l.for||l:l&&l.withoutSetter||s;t.exports=function(e){return o(c,e)||(c[e]=a&&o(l,e)?l[e]:h("Symbol."+e)),c[e]}},{"../internals/global":188,"../internals/has-own-property":189,"../internals/shared":269,"../internals/symbol-constructor-detection":274,"../internals/uid":299,"../internals/use-symbol-as-uid":300}],307:[function(e,t,r){"use strict";t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},{}],308:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/array-buffer"),s=e("../internals/set-species"),a=o.ArrayBuffer;n({global:!0,constructor:!0,forced:i.ArrayBuffer!==a},{ArrayBuffer:a}),s("ArrayBuffer")},{"../internals/array-buffer":118,"../internals/export":170,"../internals/global":188,"../internals/set-species":265}],309:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/fails"),s=e("../internals/array-buffer"),a=e("../internals/an-object"),u=e("../internals/to-absolute-index"),l=e("../internals/to-length"),c=e("../internals/species-constructor"),h=s.ArrayBuffer,d=s.DataView,f=d.prototype,p=i(h.prototype.slice),m=i(f.getUint8),g=i(f.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(a(this),e);for(var r=a(this).byteLength,n=u(e,r),i=u(void 0===t?r:t,r),o=new(c(this,h))(l(i-n)),s=new d(this),f=new d(o),y=0;n<i;)g(f,y++,m(s,n++));return o}})},{"../internals/an-object":114,"../internals/array-buffer":118,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/species-constructor":270,"../internals/to-absolute-index":279,"../internals/to-length":284}],310:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/fails"),o=e("../internals/is-array"),s=e("../internals/is-object"),a=e("../internals/to-object"),u=e("../internals/length-of-array-like"),l=e("../internals/does-not-exceed-safe-integer"),c=e("../internals/create-property"),h=e("../internals/array-species-create"),d=e("../internals/array-method-has-species-support"),f=e("../internals/well-known-symbol"),p=e("../internals/engine-v8-version"),m=f("isConcatSpreadable"),g=p>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(e){var t,r,n,i,o,s=a(this),d=h(s,0),f=0;for(t=-1,n=arguments.length;t<n;t++)if(y(o=-1===t?s:arguments[t]))for(i=u(o),l(f+i),r=0;r<i;r++,f++)r in o&&c(d,f,o[r]);else l(f+1),c(d,f++,o);return d.length=f,d}})}
2,{"../internals/array-method-has-species-support":127,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/does-not-exceed-safe-integer":155,"../internals/engine-v8-version":167,"../internals/export":170,"../internals/fails":171,"../internals/is-array":201,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/well-known-symbol":306}],311:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-fill"),o=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:i}),o("fill")},{"../internals/add-to-unscopables":111,"../internals/array-fill":120,"../internals/export":170}],312:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").filter;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),s=!0;"find"in[]&&Array(1).find((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-from");n({target:"Array",stat:!0,forced:!e("../internals/check-correctness-of-iteration")((function(e){Array.from(e)}))},{from:i})},{"../internals/array-from":123,"../internals/check-correctness-of-iteration":136,"../internals/export":170}],315:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-includes").includes,o=e("../internals/fails"),s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":111,"../internals/array-includes":124,"../internals/export":170,"../internals/fails":171}],316:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/object-define-property").f,u=e("../internals/iterator-define"),l=e("../internals/create-iter-result-object"),c=e("../internals/is-pure"),h=e("../internals/descriptors"),d=s.set,f=s.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var p=o.Arguments=o.Array;
2if(i("keys"),i("values"),i("entries"),!c&&h&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(m){}},{"../internals/add-to-unscopables":111,"../internals/create-iter-result-object":144,"../internals/descriptors":153,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/iterator-define":216,"../internals/iterators":218,"../internals/object-define-property":231,"../internals/to-indexed-object":282}],317:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-indexed-object"),a=e("../internals/array-method-is-strict"),u=i([].join);n({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(e){return u(s(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":128,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/to-indexed-object":282}],318:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],319:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-array"),o=e("../internals/is-constructor"),s=e("../internals/is-object"),a=e("../internals/to-absolute-index"),u=e("../internals/length-of-array-like"),l=e("../internals/to-indexed-object"),c=e("../internals/create-property"),h=e("../internals/well-known-symbol"),d=e("../internals/array-method-has-species-support"),f=e("../internals/array-slice"),p=d("slice"),m=h("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var r,n,h,d=l(this),p=u(d),b=a(e,p),v=a(void 0===t?p:t,p);if(i(d)&&(r=d.constructor,(o(r)&&(r===g||i(r.prototype))||s(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return f(d,b,v);for(n=new(void 0===r?g:r)(y(v-b,0)),h=0;b<v;b++,h++)b in d&&c(n,h,d[b]);return n.length=h,n}})},{"../internals/array-method-has-species-support":127,"../internals/array-slice":131,"../internals/create-property":147,"../internals/export":170,"../internals/is-array":201,"../internals/is-constructor":204,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-indexed-object":282,"../internals/well-known-symbol":306}],320:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/a-callable"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),u=e("../internals/delete-property-or-throw"),l=e("../internals/to-string"),c=e("../internals/fails"),h=e("../internals/array-sort"),d=e("../internals/array-method-is-strict"),f=e("../internals/engine-ff-version"),p=e("../internals/engine-is-ie-or-edge"),m=e("../internals/engine-v8-version"),g=e("../internals/engine-webkit-version"),y=[],b=i(y.sort),v=i(y.push),w=c((function(){y.sort(void 0)})),M=c((function(){y.sort(null)})),x=d("sort"),S=!c((function(){if(m)return m<70;if(!(f&&f>3)){if(p)return!0;if(g)return g<603;var e,t,r,n,i="";for(e=65;e<76;
vendor: 4,523 bytes, line 2
2e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;n<y.length;n++)t=y[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:w||!M||!x||!S},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(S)return void 0===e?b(t):b(t,e);var r,n,i=[],c=a(t);for(n=0;n<c;n++)n in t&&v(i,t[n]);for(h(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),r=a(i),n=0;n<r;)t[n]=i[n++];for(;n<c;)u(t,n++);return t}})},{"../internals/a-callable":108,"../internals/array-method-is-strict":128,"../internals/array-sort":132,"../internals/delete-property-or-throw":152,"../internals/engine-ff-version":158,"../internals/engine-is-ie-or-edge":161,"../internals/engine-v8-version":167,"../internals/engine-webkit-version":168,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/to-string":291}],321:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/to-absolute-index"),s=e("../internals/to-integer-or-infinity"),a=e("../internals/length-of-array-like"),u=e("../internals/array-set-length"),l=e("../internals/does-not-exceed-safe-integer"),c=e("../internals/array-species-create"),h=e("../internals/create-property"),d=e("../internals/delete-property-or-throw"),f=e("../internals/array-method-has-species-support")("splice"),p=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var r,n,f,g,y,b,v=i(this),w=a(v),M=o(e,w),x=arguments.length;for(0===x?r=n=0:1===x?(r=0,n=w-M):(r=x-2,n=m(p(s(t),0),w-M)),l(w+r-n),f=c(v,n),g=0;g<n;g++)(y=M+g)in v&&h(f,g,v[y]);if(f.length=n,r<n){for(g=M;g<w-n;g++)b=g+r,(y=g+n)in v?v[b]=v[y]:d(v,b);for(g=w;g>w-n+r;g--)d(v,g-1)}else if(r>n)for(g=w-n;g>M;g--)b=g+r-1,(y=g+n-1)in v?v[b]=v[y]:d(v,b);for(g=0;g<r;g++)v[g+M]=arguments[g+2];return u(v,w-n+r),f}})},{"../internals/array-method-has-species-support":127,"../internals/array-set-length":130,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/delete-property-or-throw":152,"../internals/does-not-exceed-safe-integer":155,"../internals/export":170,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-integer-or-infinity":283,"../internals/to-object":285}],322:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-name").EXISTS,o=e("../internals/function-uncurry-this"),s=e("../internals/define-built-in-accessor"),a=Function.prototype,u=o(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec);n&&!i&&s(a,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(e){return""}}})},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/function-name":178,"../internals/function-uncurry-this":181}],323:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/function-apply"),s=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),u=e("../internals/fails"),l=e("../internals/is-callable"),c=e("../internals/is-symbol"),h=e("../internals/array-slice"),d=e("../internals/get-json-replacer-function"),f=e("../internals/symbol-constructor-detection"),p=String,m=i("JSON","stringify"),g=a(/./.exec),y=a("".charAt),b=a("".charCodeAt),v=a("".replace),w=a(1..toString),M=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,_=!f||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),k=u((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),A=function(e,t){var r=h(arguments),n=d(t);if(l(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(l(n)&&(t=s(n,this,p(e),t)),!c(t))return t},o(m,null,r)},j=function(e,t,r){var n=y(r,t-1),i=y(r,t+1);return g(x,e)&&!g(S,i)||g(S,e)&&!g(x,n)?"\\u"+w(b(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:_||k},{stringify:function(e,t,r){var n=h(arguments),i=o(_?A:m,null,n);return k&&"string"==typeof i?v(i,M,j):i}})},{"../internals/array-slice":131,"../internals/export":170,"../internals/fails":171,"../internals/function-apply":174,"../internals/function-call":1
277,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/get-json-replacer-function":185,"../internals/is-callable":203,"../internals/is-symbol":212,"../internals/symbol-constructor-detection":274}],324:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/descriptors"),s=e("../internals/global"),a=e("../internals/path"),u=e("../internals/function-uncurry-this"),l=e("../internals/is-forced"),c=e("../internals/has-own-property"),h=e("../internals/inherit-if-required"),d=e("../internals/object-is-prototype-of"),f=e("../internals/is-symbol"),p=e("../internals/to-primitive"),m=e("../internals/fails"),g=e("../internals/object-get-own-property-names").f,y=e("../internals/object-get-own-property-descriptor").f,b=e("../internals/object-define-property").f,v=e("../internals/this-number-value"),w=e("../internals/string-trim").trim,M=s.Number,x=a.Number,S=M.prototype,_=s.TypeError,k=u("".slice),A=u("".charCodeAt),j=function(e){var t=p(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,r,n,i,o,s,a,u,l=p(e,"number");if(f(l))throw new _("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=w(l),43===(t=A(l,0))||45===t){if(88===(r=A(l,2))||120===r)return NaN}else if(48===t){switch(A(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=k(l,2)).length,a=0;a<s;a++)if((u=A(o,a))<48||u>i)return NaN;return parseInt(o,n)}return+l},T=l("Number",!M(" 0o1")||!M("0b1")||M("+0x1")),C=function(e){return d(S,e)&&m((function(){v(e)}))},O=function(e){var t=arguments.length<1?0:M(j(e));return C(this)?h(Object(t),this,O):t};O.prototype=S,T&&!i&&(S.constructor=O),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:O});var R=function(e,t){for(var r,n=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)c(t,r=n[i])&&!c(e,r)&&b(e,r,y(t,r))};i&&x&&R(a.Number,x),(T||i)&&R(a.Number,M)},{"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/is-symbol":212,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/path":247,"../internals/string-trim":273,"../internals/this-number-value":278,"../internals/to-primitive":288}],325:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":170,"../internals/object-assign":228}],326:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},{"../internals/export":170,"../internals/object-to-array":243}],327:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object");n({target:"Object",stat:!0,forced:!i||o((function(){s.f(1)}))},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-get-own-property-symbols":235,"../internals/symbol-constructor-detection":274,"../internals/to-object":285}],328:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")((function(){o(1)}))},{keys:function(e){return o(i(e))}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-keys":240,"../internals/to-object":285}],329:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),i=e("../internals/define-built-in"),o=e("../internals/object-to-string");n||i(Object.prototype,"toString",o,{unsafe:!0})},{"../internals/define-built-in":149,"../internals/object-to-string":244,"../internals/to-string-tag-support":290}],330:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),u=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=s.f(t),n=r.resolve,l=r.reject,c=a((function(){var r=o(t.resolve),s=[],a=0,
vendor: 4,740 bytes, line 2
2c=1;u(e,(function(e){var o=a++,u=!1;c++,i(r,t,e).then((function(e){u||(u=!0,s[o]=e,--c||n(s))}),l)})),--c||n(s)}));return c.error&&l(c.value),r.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],331:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),u=e("../internals/is-callable"),l=e("../internals/define-built-in"),c=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)){var h=a("Promise").prototype.catch;c.catch!==h&&l(c,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":149,"../internals/export":170,"../internals/get-built-in":182,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],332:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/export"),a=e("../internals/is-pure"),u=e("../internals/engine-is-node"),l=e("../internals/global"),c=e("../internals/function-call"),h=e("../internals/define-built-in"),d=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),g=e("../internals/is-callable"),y=e("../internals/is-object"),b=e("../internals/an-instance"),v=e("../internals/species-constructor"),w=e("../internals/task").set,M=e("../internals/microtask"),x=e("../internals/host-report-errors"),S=e("../internals/perform"),_=e("../internals/queue"),k=e("../internals/internal-state"),A=e("../internals/promise-native-constructor"),j=e("../internals/promise-constructor-detection"),E=e("../internals/new-promise-capability"),T=j.CONSTRUCTOR,C=j.REJECTION_EVENT,O=j.SUBCLASSING,R=k.getterFor("Promise"),I=k.set,B=A&&A.prototype,P=A,N=B,D=l.TypeError,U=l.document,L=l.process,F=E.f,q=F,z=!!(U&&U.createEvent&&l.dispatchEvent),V=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},H=function(e,t){var r,n,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,u=e.resolve,l=e.reject,h=e.domain;try{a?(s||(2===t.rejection&&Z(t),t.rejection=1),!0===a?r=o:(h&&h.enter(),r=a(o),h&&(h.exit(),i=!0)),r===e.promise?l(new D("Promise-chain cycle")):(n=V(r))?c(n,r,u,l):u(r)):l(o)}catch(d){h&&!i&&h.exit(),l(d)}},K=function(e,t){e.notified||(e.notified=!0,M((function(){for(var r,n=e.reactions;r=n.get();)H(r,e);e.notified=!1,t&&!e.rejection&&W(e)})))},G=function(e,t,r){var n,i;z?((n=U.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!C&&(i=l["on"+e])?i(n):"unhandledrejection"===e&&x("Unhandled promise rejection",r)},W=function(e){c(w,l,(function(){var t,r=e.facade,n=e.value;if(X(e)&&(t=S((function(){u?L.emit("unhandledRejection",n,r):G("unhandledrejection",r,n)})),e.rejection=u||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){c(w,l,(function(){var t=e.facade;u?L.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Y=function(e,t,r){return function(n){e(t,n,r)}},J=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,K(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new D("Promise can't be resolved itself");var n=V(t);n?M((function(){var r={done:!1};try{c(n,t,Y(Q,r,e),Y(J,r,e))}catch(i){J(r,i,e)}})):(e.value=t,e.state=1,K(e,!1))}catch(i){J({done:!1},i,e)}}};if(T&&(N=(P=function(e){b(this,N),m(e),c(n,this);var t=R(this);try{e(Y(Q,t),Y(J,t))}catch(r){J(t,r)}}).prototype,(n=function(e){I(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=h(N,"then",(function(e,t){var r=R(this),n=F(v(this,P));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=u?L.domain:void 0,0===r.state?r.reactions.add(n):M((function(){H(n,r)})),n.promise})),i=function(){var e=new n,t=R(e);this.promise=e,this.resolve=Y(Q,t),this.reject=Y(J,t)},E.f=F=function(e){return e===P||void 0===e?new i(e):q(e)},!a&&g(A)&&B!==Object.prototype)){o=B.then,O||h(B,"then",(function(e,t){var r=this;return new P((function(e,t){c(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete B.constructor}catch($){}d&&d(B,N)}s({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:P}),f(P,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":108,"../internals/an-instance":113,"../internals/define-built-in":149,"../internals/engine-is-node":164,"../internals/export":170,"../internals/function-call":1
277,"../internals/global":188,"../internals/host-report-errors":191,"../internals/internal-state":199,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/microtask":225,"../internals/new-promise-capability":226,"../internals/object-set-prototype-of":242,"../internals/perform":248,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/queue":254,"../internals/set-species":265,"../internals/set-to-string-tag":266,"../internals/species-constructor":270,"../internals/task":277}],333:[function(e,t,r){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":330,"../modules/es.promise.catch":331,"../modules/es.promise.constructor":332,"../modules/es.promise.race":334,"../modules/es.promise.reject":335,"../modules/es.promise.resolve":336}],334:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),u=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=s.f(t),n=r.reject,l=a((function(){var s=o(t.resolve);u(e,(function(e){i(s,t,e).then(r.resolve,n)}))}));return l.error&&n(l.value),r.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],335:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},{"../internals/export":170,"../internals/new-promise-capability":226,"../internals/promise-constructor-detection":249}],336:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),l=i("Promise"),c=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(c&&this===l?s:this,e)}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/promise-resolve":251}],337:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/global"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-forced"),a=e("../internals/inherit-if-required"),u=e("../internals/create-non-enumerable-property"),l=e("../internals/object-create"),c=e("../internals/object-get-own-property-names").f,h=e("../internals/object-is-prototype-of"),d=e("../internals/is-regexp"),f=e("../internals/to-string"),p=e("../internals/regexp-get-flags"),m=e("../internals/regexp-sticky-helpers"),g=e("../internals/proxy-accessor"),y=e("../internals/define-built-in"),b=e("../internals/fails"),v=e("../internals/has-own-property"),w=e("../internals/internal-state").enforce,M=e("../internals/set-species"),x=e("../internals/well-known-symbol"),S=e("../internals/regexp-unsupported-dot-all"),_=e("../internals/regexp-unsupported-ncg"),k=x("match"),A=i.RegExp,j=A.prototype,E=i.SyntaxError,T=o(j.exec),C=o("".charAt),O=o("".replace),R=o("".indexOf),I=o("".slice),B=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,N=/a/g,D=new A(P)!==P,U=m.MISSED_STICKY,L=m.UNSUPPORTED_Y,F=n&&(!D||U||S||_||b((function(){return N[k]=!1,A(P)!==P||A(N)===N||"/a/i"!==String(A(P,"i"))})));if(s("RegExp",F)){for(var q=function(e,t){var r,n,i,o,s,c,m=h(j,this),g=d(e),y=void 0===t,b=[],M=e;if(!m&&g&&y&&e.constructor===q)return e;if((g||h(j,e))&&(e=e.source,y&&(t=p(M))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),M=e,S&&"dotAll"in P&&(n=!!t&&R(t,"s")>-1)&&(t=O(t,/s/g,"")),r=t,U&&"sticky"in P&&(i=!!t&&R(t,"y")>-1)&&L&&(t=O(t,/y/g,"")),_&&(e=(o=function(e){for(var t,r=e.length,n=0,i="",o=[],s=l(null),a=!1,u=!1,
2c=0,h="";n<=r;n++){if("\\"===(t=C(e,n)))t+=C(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:T(B,I(e,n+1))&&(n+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===h||v(s,h))throw new E("Invalid capture group name");s[h]=!0,o[o.length]=[h,c],u=!1,h="";continue}u?h+=t:i+=t}return[i,o]}(e))[0],b=o[1]),s=a(A(e,t),m?this:j,q),(n||i||b.length)&&(c=w(s),n&&(c.dotAll=!0,c.raw=q(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=C(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+C(e,++n);return i}(e),r)),i&&(c.sticky=!0),b.length&&(c.groups=b)),e!==M)try{u(s,"source",""===M?"(?:)":M)}catch(x){}return s},z=c(A),V=0;z.length>V;)g(q,A,z[V++]);j.constructor=q,q.prototype=j,y(i,"RegExp",q,{constructor:!0})}M("RegExp")},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/is-forced":205,"../internals/is-regexp":211,"../internals/object-create":229,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/proxy-accessor":253,"../internals/regexp-get-flags":258,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/set-species":265,"../internals/to-string":291,"../internals/well-known-symbol":306}],338:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":170,"../internals/regexp-exec":256}],339:[function(e,t,r){"use strict";var n=e("../internals/function-name").PROPER,i=e("../internals/define-built-in"),o=e("../internals/an-object"),s=e("../internals/to-string"),a=e("../internals/fails"),u=e("../internals/regexp-get-flags"),l=RegExp.prototype,c=l.toString,h=a((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),d=n&&"toString"!==c.name;(h||d)&&i(l,"toString",(function(){var e=o(this);return"/"+s(e.source)+"/"+s(u(e))}),{unsafe:!0})},{"../internals/an-object":114,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-name":178,"../internals/regexp-get-flags":258,"../internals/to-string":291}],340:[function(e,t,r){"use strict";e("../internals/collection")("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),e("../internals/collection-strong"))},{"../internals/collection":140,"../internals/collection-strong":139}],341:[function(e,t,r){"use strict";e("../modules/es.set.constructor")},{"../modules/es.set.constructor":340}],342:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),a=e("../internals/to-string"),u=e("../internals/correct-is-regexp-logic"),l=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/not-a-regexp":227,"../internals/require-object-coercible":262,"../internals/to-string":291}],343:[function(e,t,r){"use strict";var n=e("../internals/string-multibyte").charAt,i=e("../internals/to-string"),o=e("../internals/internal-state"),s=e("../internals/iterator-define"),a=e("../internals/create-iter-result-object"),u=o.set,l=o.getterFor("String Iterator");s(String,"String",(function(e){u(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=l(this),r=t.string,i=t.index;return i>=r.length?a(void 0,!0):(e=n(r,i),t.index+=e.length,a(e,!1))}))},{"../internals/create-iter-result-object":144,"../internals/internal-state":199,"../internals/iterator-define":216,"../internals/string-multibyte":271,"../internals/to-string":291}],344:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),s=e("../internals/is-null-or-undefined"),a=e("../internals/to-length"),u=e("../internals/to-string"),l=e("../internals/require-object-coercible"),c=e("../internals/get-method"),h=e("../internals/a
2dvance-string-index"),d=e("../internals/regexp-exec-abstract");i("match",(function(e,t,r){return[function(t){var r=l(this),i=s(t)?void 0:c(t,e);return i?n(i,t,r):new RegExp(t)[e](u(r))},function(e){var n=o(this),i=u(e),s=r(t,n,i);if(s.done)return s.value;if(!n.global)return d(n,i);var l=n.unicode;n.lastIndex=0;for(var c,f=[],p=0;null!==(c=d(n,i));){var m=u(c[0]);f[p]=m,""===m&&(n.lastIndex=h(i,a(n.lastIndex),l)),p++}return 0===p?null:f}]}))},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],345:[function(e,t,r){"use strict";var n=e("../internals/function-apply"),i=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/fails"),u=e("../internals/an-object"),l=e("../internals/is-callable"),c=e("../internals/is-null-or-undefined"),h=e("../internals/to-integer-or-infinity"),d=e("../internals/to-length"),f=e("../internals/to-string"),p=e("../internals/require-object-coercible"),m=e("../internals/advance-string-index"),g=e("../internals/get-method"),y=e("../internals/get-substitution"),b=e("../internals/regexp-exec-abstract"),v=e("../internals/well-known-symbol")("replace"),w=Math.max,M=Math.min,x=o([].concat),S=o([].push),_=o("".indexOf),k=o("".slice),A="$0"==="a".replace(/./,"$0"),j=!!/./[v]&&""===/./[v]("a","$0");s("replace",(function(e,t,r){var o=j?"$":"$0";return[function(e,r){var n=p(this),o=c(e)?void 0:g(e,v);return o?i(o,e,n,r):i(t,f(n),e,r)},function(e,i){var s=u(this),a=f(e);if("string"==typeof i&&-1===_(i,o)&&-1===_(i,"$<")){var c=r(t,s,a,i);if(c.done)return c.value}var p=l(i);p||(i=f(i));var g,v=s.global;v&&(g=s.unicode,s.lastIndex=0);for(var A,j=[];null!==(A=b(s,a))&&(S(j,A),v);)""===f(A[0])&&(s.lastIndex=m(a,d(s.lastIndex),g));for(var E,T="",C=0,O=0;O<j.length;O++){for(var R,I=f((A=j[O])[0]),B=w(M(h(A.index),a.length),0),P=[],N=1;N<A.length;N++)S(P,void 0===(E=A[N])?E:String(E));var D=A.groups;if(p){var U=x([I],P,B,a);void 0!==D&&S(U,D),R=f(n(i,void 0,U))}else R=y(I,a,B,P,D,i);B>=C&&(T+=k(a,C,B)+R,C=B+I.length)}return T+k(a,C)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!A||j)},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fails":171,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-method":186,"../internals/get-substitution":187,"../internals/is-callable":203,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-length":284,"../internals/to-string":291,"../internals/well-known-symbol":306}],346:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),s=e("../internals/is-null-or-undefined"),a=e("../internals/require-object-coercible"),u=e("../internals/same-value"),l=e("../internals/to-string"),c=e("../internals/get-method"),h=e("../internals/regexp-exec-abstract");i("search",(function(e,t,r){return[function(t){var r=a(this),i=s(t)?void 0:c(t,e);return i?n(i,t,r):new RegExp(t)[e](l(r))},function(e){var n=o(this),i=l(e),s=r(t,n,i);if(s.done)return s.value;var a=n.lastIndex;u(a,0)||(n.lastIndex=0);var c=h(n,i);return u(n.lastIndex,a)||(n.lastIndex=a),null===c?-1:c.index}]}))},{"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/same-value":264,"../internals/to-string":291}],347:[function(e,t,r){"use strict";var n=e("../internals/function-apply"),i=e("../internals/function-call"),o=e("../internals/function-uncurr
2y-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/an-object"),u=e("../internals/is-null-or-undefined"),l=e("../internals/is-regexp"),c=e("../internals/require-object-coercible"),h=e("../internals/species-constructor"),d=e("../internals/advance-string-index"),f=e("../internals/to-length"),p=e("../internals/to-string"),m=e("../internals/get-method"),g=e("../internals/array-slice"),y=e("../internals/regexp-exec-abstract"),b=e("../internals/regexp-exec"),v=e("../internals/regexp-sticky-helpers"),w=e("../internals/fails"),M=v.UNSUPPORTED_Y,x=Math.min,S=[].push,_=o(/./.exec),k=o(S),A=o("".slice);s("split",(function(e,t,r){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=p(c(this)),s=void 0===r?4294967295:r>>>0;if(0===s)return[];if(void 0===e)return[o];if(!l(e))return i(t,o,e,s);for(var a,u,h,d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,f+"g");(a=i(b,y,o))&&!((u=y.lastIndex)>m&&(k(d,A(o,m,a.index)),a.length>1&&a.index<o.length&&n(S,d,g(a,1)),h=a[0].length,m=u,d.length>=s));)y.lastIndex===a.index&&y.lastIndex++;return m===o.length?!h&&_(y,"")||k(d,""):k(d,A(o,m)),d.length>s?g(d,0,s):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=c(this),s=u(t)?void 0:m(t,e);return s?i(s,t,n,r):i(o,p(n),t,r)},function(e,n){var i=a(this),s=p(e),u=r(o,i,s,n,o!==t);if(u.done)return u.value;var l=h(i,RegExp),c=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(M?"g":"y"),g=new l(M?"^(?:"+i.source+")":i,m),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===s.length)return null===y(g,s)?[s]:[];for(var v=0,w=0,S=[];w<s.length;){g.lastIndex=M?0:w;var _,j=y(g,M?A(s,w):s);if(null===j||(_=x(f(g.lastIndex+(M?w:0)),s.length))===v)w=d(s,w,c);else{if(k(S,A(s,v,w)),S.length===b)return S;for(var E=1;E<=j.length-1;E++)if(k(S,j[E]),S.length===b)return S;w=v=_}}return k(S,A(s,v)),S}]}),!!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),M)},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/array-slice":131,"../internals/fails":171,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/is-regexp":211,"../internals/regexp-exec":256,"../internals/regexp-exec-abstract":255,"../internals/regexp-sticky-helpers":259,"../internals/require-object-coercible":262,"../internals/species-constructor":270,"../internals/to-length":284,"../internals/to-string":291}],348:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/to-length"),a=e("../internals/to-string"),u=e("../internals/not-a-regexp"),l=e("../internals/require-object-coercible"),c=e("../internals/correct-is-regexp-logic"),h=e("../internals/is-pure"),d=i("".slice),f=Math.min,p=c("startsWith");n({target:"String",proto:!0,forced:!(!h&&!p&&function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}())&&!p},{startsWith:function(e){var t=a(l(this));u(e);var r=s(f(arguments.length>1?arguments[1]:void 0,t.length)),n=a(e);return d(t,r,r+n.length)===n}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this-clause":180,"../internals/is-pure":210,"../internals/not-a-regexp":227,"../internals/object-get-own-property-descriptor":232,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],349:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/string-trim").trim;n({target:"String",proto:!0,forced:e("../internals/string-trim-forced")("trim")},{trim:function(){return i(this)}})},{"../internals/export":170,"../internals/string-trim":273,"../internals/string-trim-forced":272}],350:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/function-uncurr
2y-this"),a=e("../internals/is-pure"),u=e("../internals/descriptors"),l=e("../internals/symbol-constructor-detection"),c=e("../internals/fails"),h=e("../internals/has-own-property"),d=e("../internals/object-is-prototype-of"),f=e("../internals/an-object"),p=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),g=e("../internals/to-string"),y=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),v=e("../internals/object-keys"),w=e("../internals/object-get-own-property-names"),M=e("../internals/object-get-own-property-names-external"),x=e("../internals/object-get-own-property-symbols"),S=e("../internals/object-get-own-property-descriptor"),_=e("../internals/object-define-property"),k=e("../internals/object-define-properties"),A=e("../internals/object-property-is-enumerable"),j=e("../internals/define-built-in"),E=e("../internals/define-built-in-accessor"),T=e("../internals/shared"),C=e("../internals/shared-key"),O=e("../internals/hidden-keys"),R=e("../internals/uid"),I=e("../internals/well-known-symbol"),B=e("../internals/well-known-symbol-wrapped"),P=e("../internals/well-known-symbol-define"),N=e("../internals/symbol-define-to-primitive"),D=e("../internals/set-to-string-tag"),U=e("../internals/internal-state"),L=e("../internals/array-iteration").forEach,F=C("hidden"),q=U.set,z=U.getterFor("Symbol"),V=Object.prototype,H=i.Symbol,K=H&&H.prototype,G=i.RangeError,W=i.TypeError,X=i.QObject,Z=S.f,Y=_.f,J=M.f,Q=A.f,$=s([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!X||!X.prototype||!X.prototype.findChild,ie=function(e,t,r){var n=Z(V,t);n&&delete V[t],Y(e,t,r),n&&e!==V&&Y(V,t,n)},oe=u&&c((function(){return 7!==b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?ie:Y,se=function(e,t){var r=ee[e]=b(K);return q(r,{type:"Symbol",tag:e,description:t}),u||(r.description=t),r},ae=function(e,t,r){e===V&&ae(te,t,r),f(e);var n=m(t);return f(r),h(ee,n)?(r.enumerable?(h(e,F)&&e[F][n]&&(e[F][n]=!1),r=b(r,{enumerable:y(0,!1)})):(h(e,F)||Y(e,F,y(1,b(null))),e[F][n]=!0),oe(e,n,r)):Y(e,n,r)},ue=function(e,t){f(e);var r=p(t),n=v(r).concat(de(r));return L(n,(function(t){u&&!o(le,r,t)||ae(e,t,r[t])})),e},le=function(e){var t=m(e),r=o(Q,this,t);return!(this===V&&h(ee,t)&&!h(te,t))&&(!(r||!h(this,t)||!h(ee,t)||h(this,F)&&this[F][t])||r)},ce=function(e,t){var r=p(e),n=m(t);if(r!==V||!h(ee,n)||h(te,n)){var i=Z(r,n);return!i||!h(ee,n)||h(r,F)&&r[F][n]||(i.enumerable=!0),i}},he=function(e){var t=J(p(e)),r=[];return L(t,(function(e){h(ee,e)||h(O,e)||$(r,e)})),r},de=function(e){var t=e===V,r=J(t?te:p(e)),n=[];return L(r,(function(e){!h(ee,e)||t&&!h(V,e)||$(n,ee[e])})),n};l||(j(K=(H=function(){if(d(K,this))throw new W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=R(e),r=function(e){var n=void 0===this?i:this;n===V&&o(r,te,e),h(n,F)&&h(n[F],t)&&(n[F][t]=!1);var s=y(1,e);try{oe(n,t,s)}catch(a){if(!(a instanceof G))throw a;ie(n,t,s)}};return u&&ne&&oe(V,t,{configurable:!0,set:r}),se(t,e)}).prototype,"toString",(function(){return z(this).tag})),j(H,"withoutSetter",(function(e){return se(R(e),e)})),A.f=le,_.f=ae,k.f=ue,S.f=ce,w.f=M.f=he,x.f=de,B.f=function(e){return se(I(e),e)},u&&(E(K,"description",{configurable:!0,get:function(){return z(this).description}}),a||j(V,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),L(v(re),(function(e){P(e)})),n({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?b(e):ue(b(e),t)},defineProperty:ae,defineProperties:ue,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),N(),D(H,"Symbol"),O[F]=!0},{"../internals/an-object":114,"../internals/array-iteration":125,"../internals/create-property-descriptor":146,"../internals/define-built-in":149,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-call":1
277,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-define-properties":230,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-names-external":233,"../internals/object-get-own-property-symbols":235,"../internals/object-is-prototype-of":238,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/set-to-string-tag":266,"../internals/shared":269,"../internals/shared-key":267,"../internals/symbol-constructor-detection":274,"../internals/symbol-define-to-primitive":275,"../internals/to-indexed-object":282,"../internals/to-property-key":289,"../internals/to-string":291,"../internals/uid":299,"../internals/well-known-symbol":306,"../internals/well-known-symbol-define":304,"../internals/well-known-symbol-wrapped":305}],351:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/descriptors"),o=e("../internals/global"),s=e("../internals/function-uncurry-this"),a=e("../internals/has-own-property"),u=e("../internals/is-callable"),l=e("../internals/object-is-prototype-of"),c=e("../internals/to-string"),h=e("../internals/define-built-in-accessor"),d=e("../internals/copy-constructor-properties"),f=o.Symbol,p=f&&f.prototype;if(i&&u(f)&&(!("description"in p)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};d(g,f),g.prototype=p,p.constructor=g;var y="Symbol(description detection)"===String(f("description detection")),b=s(p.valueOf),v=s(p.toString),w=/^Symbol\((.*)\)[^)]+$/,M=s("".replace),x=s("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this);if(a(m,e))return"";var t=v(e),r=y?x(t,7,-1):M(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},{"../internals/copy-constructor-properties":141,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/object-is-prototype-of":238,"../internals/to-string":291}],352:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/has-own-property"),s=e("../internals/to-string"),a=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),l=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=s(e);if(o(l,t))return l[t];var r=i("Symbol")(t);return l[t]=r,c[r]=t,r}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/has-own-property":189,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/to-string":291}],353:[function(e,t,r){"use strict";e("../internals/well-known-symbol-define")("iterator")},{"../internals/well-known-symbol-define":304}],354:[function(e,t,r){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":323,"../modules/es.object.get-own-property-symbols":327,"../modules/es.symbol.constructor":350,"../modules/es.symbol.for":352,"../modules/es.symbol.key-for":355}],355:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/has-own-property"),o=e("../internals/is-symbol"),s=e("../internals/try-to-string"),a=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw new TypeError(s(e)+" is not a symbol");if(i(l,e))return l[e]}})},{"../internals/export":170,"../internals/has-own-property":189,"../internals/is-symbol":212,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/try-to-string":293}],356:[function(e,t,r){"use strict";
2var n=e("../internals/function-uncurry-this"),i=e("../internals/array-buffer-view-core"),o=n(e("../internals/array-copy-within")),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-copy-within":119,"../internals/function-uncurry-this":181}],357:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],358:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-fill"),o=e("../internals/to-big-int"),s=e("../internals/classof"),a=e("../internals/function-call"),u=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=n.aTypedArray,h=n.exportTypedArrayMethod,d=u("".slice);h("fill",(function(e){var t=arguments.length;c(this);var r="Big"===d(s(this),0,3)?o(e):+e;return a(i,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},{"../internals/array-buffer-view-core":117,"../internals/array-fill":120,"../internals/classof":138,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/to-big-int":280}],359:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").filter,o=e("../internals/typed-array-from-species-and-list"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=i(s(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-from-species-and-list":296}],360:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],361:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],362:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],363:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],364:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],365:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/array-buffer-view-core"),a=e("../modules/es.array.iterator"),u=e("../internals/well-known-symbol")("iterator"),l=n.Uint8Array,c=o(a.values),h=o(a.keys),d=o(a.entries),f=s.aTypedArray,p=s.exportTypedArrayMethod,m=l&&l.prototype,g=!i((function(){m[u].call([1])})),y=!!m&&m.values&&m[u]===m.values&&"values"===m.values.name,b=function(){return c(f(this))};p("entries",(function(){return d(f(this))}),g),p("keys",(function(){return h(f(this))}),g),p("values",b,g||!y,{name:"values"}),p(u,b,g||!y,{name:"values"})},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurr
2y-this":181,"../internals/global":188,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],366:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/function-uncurry-this"),o=n.aTypedArray,s=n.exportTypedArrayMethod,a=i([].join);s("join",(function(e){return a(o(this),e)}))},{"../internals/array-buffer-view-core":117,"../internals/function-uncurry-this":181}],367:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/function-apply"),o=e("../internals/array-last-index-of"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,s(this),t>1?[e,arguments[1]]:[e])}))},{"../internals/array-buffer-view-core":117,"../internals/array-last-index-of":126,"../internals/function-apply":174}],368:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").map,o=e("../internals/typed-array-species-constructor"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-species-constructor":298}],369:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],370:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],371:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=n.aTypedArray,o=n.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var e,t=i(this).length,r=s(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}))},{"../internals/array-buffer-view-core":117}],372:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/function-call"),o=e("../internals/array-buffer-view-core"),s=e("../internals/length-of-array-like"),a=e("../internals/to-offset"),u=e("../internals/to-object"),l=e("../internals/fails"),c=n.RangeError,h=n.Int8Array,d=h&&h.prototype,f=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!l((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),y=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){p(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(g)return i(f,this,r,t);var n=this.length,o=s(r),l=0;if(o+t>n)throw new c("Wrong length");for(;l<o;)this[t+l]=r[l++]}),!g||y)},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-call":177,"../internals/global":188,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/to-offset":286}],373:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/typed-array-species-constructor"),o=e("../internals/fails"),s=e("../internals/array-slice"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=s(a(this),e,t),n=i(this),o=0,u=r.length,l=new n(u);u>o;)l[o]=r[o++];return l}),o((function(){new Int8Array(1).slice()})))},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/typed-array-species-constructor":298}],374:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],375:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/function-uncurr
2y-this-clause"),o=e("../internals/fails"),s=e("../internals/a-callable"),a=e("../internals/array-sort"),u=e("../internals/array-buffer-view-core"),l=e("../internals/engine-ff-version"),c=e("../internals/engine-is-ie-or-edge"),h=e("../internals/engine-v8-version"),d=e("../internals/engine-webkit-version"),f=u.aTypedArray,p=u.exportTypedArrayMethod,m=n.Uint16Array,g=m&&i(m.prototype.sort),y=!!g&&!(o((function(){g(new m(2),null)}))&&o((function(){g(new m(2),{})}))),b=!!g&&!o((function(){if(h)return h<74;if(l)return l<67;if(c)return!0;if(d)return d<602;var e,t,r=new m(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(g(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));p("sort",(function(e){return void 0!==e&&s(e),b?g(this,e):a(f(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!==r?-1:t!==t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!b||y)},{"../internals/a-callable":108,"../internals/array-buffer-view-core":117,"../internals/array-sort":132,"../internals/engine-ff-version":158,"../internals/engine-is-ie-or-edge":161,"../internals/engine-v8-version":167,"../internals/engine-webkit-version":168,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/global":188}],376:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/to-length"),o=e("../internals/to-absolute-index"),s=e("../internals/typed-array-species-constructor"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=a(this),n=r.length,u=o(e,n);return new(s(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-u))}))},{"../internals/array-buffer-view-core":117,"../internals/to-absolute-index":279,"../internals/to-length":284,"../internals/typed-array-species-constructor":298}],377:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/function-apply"),o=e("../internals/array-buffer-view-core"),s=e("../internals/fails"),a=e("../internals/array-slice"),u=n.Int8Array,l=o.aTypedArray,c=o.exportTypedArrayMethod,h=[].toLocaleString,d=!!u&&s((function(){h.call(new u(1))}));c("toLocaleString",(function(){return i(h,d?a(l(this)):l(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])})))},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/function-apply":174,"../internals/global":188}],378:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core").exportTypedArrayMethod,i=e("../internals/fails"),o=e("../internals/global"),s=e("../internals/function-uncurry-this"),a=o.Uint8Array,u=a&&a.prototype||{},l=[].toString,c=s([].join);i((function(){l.call({})}))&&(l=function(){return c(this)});var h=u.toString!==l;n("toString",l,h)},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188}],379:[function(e,t,r){"use strict";e("../internals/typed-array-constructor")("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},{"../internals/typed-array-constructor":294}],380:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../internals/array-for-each"),a=e("../internals/create-non-enumerable-property"),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var l in i)i[l]&&u(n[l]&&n[l].prototype);u(o)},{"../internals/array-for-each":121,"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188}],381:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),u=e("../internals/set-to-string-tag"),l=e("../internals/well-known-symbol")("iterator"),c=s.values,h=function(e,t){if(e){if(e[l]!==c)try{a(e,l,c)}catch(n){e[l]=c}if(u(e,t,!0),i[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(n){e[r]=s[r]}}};for(var d in i)h(n[d]&&n[d].prototype,d);h(o,"DOMTokenList")},{"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],382:[function(e,t,r){function n(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},r.isBoolean=function(e){return"boolean"===typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"===typeof e},r.isString=function(e){return"string"===typeof e}
2,r.isSymbol=function(e){return"symbol"===typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===n(e)},r.isObject=function(e){return"object"===typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===n(e)},r.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},r.isFunction=function(e){return"function"===typeof e},r.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:103}],383:[function(e,t,r){!function(e){"use strict";var n=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g;return function(u,l,c,h){if(1!==arguments.length||"string"!==a(u)||/\d/.test(u)||(l=u,u=void 0),(u=u||new Date)instanceof Date||(u=new Date(u)),isNaN(u))throw TypeError("Invalid date");var d=(l=String(n.masks[l]||l||n.masks.default)).slice(0,4);"UTC:"!==d&&"GMT:"!==d||(l=l.slice(4),c=!0,"GMT:"===d&&(h=!0));var f=c?"getUTC":"get",p=u[f+"Date"](),m=u[f+"Day"](),g=u[f+"Month"](),y=u[f+"FullYear"](),b=u[f+"Hours"](),v=u[f+"Minutes"](),w=u[f+"Seconds"](),M=u[f+"Milliseconds"](),x=c?0:u.getTimezoneOffset(),S=o(u),_=s(u),k={d:p,dd:i(p),ddd:n.i18n.dayNames[m],dddd:n.i18n.dayNames[m+7],m:g+1,mm:i(g+1),mmm:n.i18n.monthNames[g],mmmm:n.i18n.monthNames[g+12],yy:String(y).slice(2),yyyy:y,h:b%12||12,hh:i(b%12||12),H:b,HH:i(b),M:v,MM:i(v),s:w,ss:i(w),l:i(M,3),L:i(Math.round(M/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:h?"GMT":c?"UTC":(String(u).match(t)||[""]).pop().replace(r,""),o:(x>0?"-":"+")+i(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][p%10>3?0:(p%100-p%10!=10)*p%10],W:S,N:_};return l.replace(e,(function(e){return e in k?k[e]:e.slice(1,e.length-1)}))}}();function i(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function o(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var r=new Date(t.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var n=t.getTimezoneOffset()-r.getTimezoneOffset();t.setHours(t.getHours()-n);var i=(t-r)/6048e5;return 1+Math.floor(i)}function s(e){var t=e.getDay();return 0===t&&(t=7),t}function a(e){return null===e?"null":void 0===e?"undefined":"object"!==typeof e?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}n.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},n.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},"object"===typeof r?t.exports=n:e.dateFormat=n}(this)},{}],384:[function(e,t,r){"use strict";var n=e("has-property-descriptors")(),i=e("get-intrinsic"),o=n&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(l){o=!1}var s=i("%SyntaxError%"),a=i("%TypeError%"),u=e("gopd");t.exports=function(e,t,r){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new a("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!u&&u(e,t);if(o)o(e,t,{configurable:null===l&&h?h.configurable:!l,enumerable:null===n&&h?h.enumerable:!n,value:r,writable:null===i&&h?h.writable:!i});else{if(!c&&(n||i||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}}
2,{"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],385:[function(e,t,r){"use strict";var n=/["'&<>]/;t.exports=function(e){var t,r=""+e,i=n.exec(r);if(!i)return r;var o="",s=0,a=0;for(s=i.index;s<r.length;s++){switch(r.charCodeAt(s)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==s&&(o+=r.substring(a,s)),a=s+1,o+=t}return a!==s?o+r.substring(a,s):o}},{}],386:[function(e,t,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&y(e,"error",t,r)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,s,a;if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"===typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=g(u,l);for(r=0;r<l;++r)o(c[r],this,t)}return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,s;if(l(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
2("removeListener",e,r.listener||t));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],387:[function(e,t,r){"use strict";var n=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},u=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};t.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(e)?s(e,t,o):"string"===typeof e?a(e,t,o):u(e,t,o)}},{"is-callable":410}],388:[function(e,t,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,s=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},u=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};t.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==i.apply(t))throw new TypeError(n+t);for(var r,l=a(arguments,1),c=function(){if(this instanceof r){var n=t.apply(this,s(l,arguments));return Object(n)===n?n:this}return t.apply(e,s(l,arguments))},h=o(0,t.length-l.length),d=[],f=0;f<h;f++)d[f]="$"+f;if(r=Function("binder","return function ("+u(d,",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var p=function(){};p.prototype=t.prototype,r.prototype=new p,p.prototype=null}return r}},{}],389:[function(e,t,r){"use strict";var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":388}],390:[function(e,t,r){"use strict";var n=SyntaxError,i=Function,o=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(T){a=null}var u=function(){throw new o},l=a?function(){try{return u}catch(e){try{return a(arguments,"callee").get}catch(t){return u}}}():u,c=e("has-symbols")(),h=e("has-proto")(),d=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),f={},p="undefined"!==typeof Uint8Array&&d?d(Uint8Array):void 0,m={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":c&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&c&&d?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&c&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet};if(d)try{null.error}catch(T){var g=d(d(T));m["%Error.prototype%"]=g}var y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=e("function-bind"),v=e("hasown"),w=b.call(Function.call,Array.prototype.concat),M=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),S=b.call(Function.call,String.prototype.slice),_=b.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,j=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return x(e,k,(function(e,t,r,n){i[i.length]=r?x(n,A,"$1"):t||e})),i},E=function(e,t){var r,i=e;if(v(y,i)&&(i="%"+(r=y[i])[0]+"%"),v(m,i)){var a=m[i];if(a===f&&(a=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(r=d(i.prototype))}return m[t]=r,r}(i)),"undefined"===typeof a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new n("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),i=r.length>0?r[0]:"",s=E("%"+i+"%",t),u=s.name,l=s.value,c=!1,h=s.alias;h&&(i=h[0],M(r,w([0,1],h)));for(var d=1,f=!0;d<r.length;d+=1){var p=r[d],g=S(p,0,1),y=S(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new n("property names with quotes must have matching quotes");if("constructor"!==p&&f||(c=!0),v(m,u="%"+(i+="."+p)+"%"))l=m[u];else if(null!=l){if(!(p in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(a&&d+1>=r.length){var b=a(l,p);l=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[p]}else f=v(l,p),l=l[p];f&&!c&&(m[u]=l)}}return l}},{"function-bind":389,"has-proto":393,"has-symbols":394,hasown:397}],391:[function(e,t,r){"use strict";var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(i){n=null}t.exports=n},{"get-intrinsic":390}],392:[function(e,t,r){"use strict";var n=e("get-intrinsic")("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"get-intrinsic":390}],393:[function(e,t,r){"use strict";var n={foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof i)}},{}],394:[function(e,t,r){"use strict";var n="undefined"!==typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"===typeof n&&"function"===typeof Symbol&&"symbol"===typeof n("foo")&&"symbol"===typeof Symbol("bar")&&i()}},{"./shams":395}],395:[function(e,t,r){"use strict";
2t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],396:[function(e,t,r){"use strict";var n=e("has-symbols/shams");t.exports=function(){return n()&&!!Symbol.toStringTag}},{"has-symbols/shams":395}],397:[function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(n,i)},{"function-bind":389}],398:[function(e,t,r){var n=e("http"),i=e("url"),o=t.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"===typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},{http:539,url:543}],399:[function(e,t,r){"use strict";var n=e("util"),i=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=i(e);if(void 0===t){var r=new Error(n.format("humanize-ms(%j) result undefined",e));console.warn(r.stack)}return t}},{ms:432,util:489}],400:[function(e,t,r){r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=l}return(f?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+f]=255&s,f+=p,s/=256,l-=8);e[r+f-p]|=128*m}},{}],401:[function(e,t,r){"use strict";var n,i,o,s=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,u=[],l=!1;function c(){n&&i&&(n=!1,i.length?u=i.concat(u):a=-1,u.length&&h())}function h(){if(!n){l=!1,n=!0;for(var e=u.length,t=setTimeout(c);e;){for(i=u,u=[];i&&++a<e;)i[a].run();a=-1,e=u.length}i=null,a=-1,n=!1,clearTimeout(t)}}for(var d=-1,f=s.length;++d<f;)if(s[d]&&s[d].test&&s[d].test()){o=s[d].install(h);break}function p(e,t){this.fun=e,this.array=t}p.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},t.exports=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),l||n||(l=!0,o())}},{"./messageChannel":402,"./mutation.js":403,"./nextTick":102,"./queueMicrotask":404,"./stateChange":405,"./timeout":406}],402:[function(e,t,r){(function(e){(function(){"use strict";r.test=function(){return!e.setImmediate&&"undefined"!==typeof e.MessageChannel},r.install=function(t){var r=new e.MessageChannel;return r.port1.onmessage=t,function(){r.port2.postMessage(0)}}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],403:[function(e,t,r){(function(e){(function(){"use strict";var t=e.MutationObserver||e.WebKitMutationObserver;r.test=function(){return t},r.install=function(r){var n=0,i=new t(r),o=e.document.createTextNode("");return i.observe(o,{characterData:!0}
2),function(){o.data=n=++n%2}}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],404:[function(e,t,r){(function(e){(function(){"use strict";r.test=function(){return"function"===typeof e.queueMicrotask},r.install=function(t){return function(){e.queueMicrotask(t)}}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],405:[function(e,t,r){(function(e){(function(){"use strict";r.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},r.install=function(t){return function(){var r=e.document.createElement("script");return r.onreadystatechange=function(){t(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},e.document.documentElement.appendChild(r),t}}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],406:[function(e,t,r){"use strict";r.test=function(){return!0},r.install=function(e){return function(){setTimeout(e,0)}}},{}],407:[function(e,t,r){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],408:[function(e,t,r){"use strict";var n=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},{"call-bind/callBound":105,"has-tostringtag/shams":396}],409:[function(e,t,r){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],410:[function(e,t,r){"use strict";var n,i,o=Function.prototype.toString,s="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof s&&"function"===typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s((function(){throw 42}),null,n)}catch(m){m!==i&&(s=null)}else s=null;var a=/^\s*class\b/,u=function(e){try{var t=o.call(e);return a.test(t)}catch(r){return!1}},l=function(e){try{return!u(e)&&(o.call(e),!0)}catch(t){return!1}},c=Object.prototype.toString,h="function"===typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(f=function(e){if((d||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}t.exports=s?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{s(e,null,n)}catch(t){if(t!==i)return!1}return!u(e)&&l(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(h)return l(e);if(u(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},{}],411:[function(e,t,r){"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=e("has-tostringtag/shams")(),u=Object.getPrototypeOf;t.exports=function(e){if("function"!==typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if("undefined"===typeof n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},{"has-tostringtag/shams":396}],412:[function(e,t,r){"use strict";var n=e("which-typed-array");t.exports=function(e){return!!n(e)}},{"which-typed-array":490}],413:[function(e,t,r){(function(e){(function(){!function(e,n){"object"===typeof r&&"undefined"!==typeof t?t.exp
2orts=n(e):n(e)}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:this,(function(e){"use strict";var r,n=(e=e||{}).Base64,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),s=String.fromCharCode,a=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?s(192|t>>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(e){return e.replace(u,a)},c=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},h=e.btoa&&"function"==typeof e.btoa?function(t){return e.btoa(t)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,c)},d=function(e){return h(l(String(e)))},f=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},p=function(e,t){return t?f(d(e)):d(e)};e.Uint8Array&&(r=function(e,t){for(var r="",n=0,o=e.length;n<o;n+=3){var s=e[n],a=e[n+1],u=e[n+2],l=s<<16|a<<8|u;r+=i.charAt(l>>>18)+i.charAt(l>>>12&63)+("undefined"!=typeof a?i.charAt(l>>>6&63):"=")+("undefined"!=typeof u?i.charAt(63&l):"=")}return t?f(r):r});var m,g=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(g,y)},v=function(e){var t=e.length,r=t%4,n=(t>0?o[e.charAt(0)]<<18:0)|(t>1?o[e.charAt(1)]<<12:0)|(t>2?o[e.charAt(2)]<<6:0)|(t>3?o[e.charAt(3)]:0),i=[s(n>>>16),s(n>>>8&255),s(255&n)];return i.length-=[0,0,2,1][r],i.join("")},w=e.atob&&"function"==typeof e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/\S{1,4}/g,v)},M=function(e){return w(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},x=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(e){return function(e){return b(w(e))}(x(e))};if(e.Uint8Array&&(m=function(e){return Uint8Array.from(M(x(e)),(function(e){return e.charCodeAt(0)}))}),e.Base64={VERSION:"2.6.4",atob:M,btoa:h,fromBase64:S,toBase64:p,utob:l,encode:p,encodeURI:function(e){return p(e,!0)},btou:b,decode:S,noConflict:function(){var t=e.Base64;return e.Base64=n,t},fromUint8Array:r,toUint8Array:m},"function"===typeof Object.defineProperty){var _=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};e.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",_((function(){return S(this)}))),Object.defineProperty(String.prototype,"toBase64",_((function(e){return p(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",_((function(){return p(this,!0)})))}}return e.Meteor&&(Base64=e.Base64),"undefined"!==typeof t&&t.exports&&(t.exports.Base64=e.Base64),{Base64:e.Base64}}))}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],414:[function(e,t,r){var n=e("./_root").Symbol;t.exports=n},{"./_root":421}],415:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},{}],416:[function(e,t,r){var n=e("./_Symbol"),i=e("./_getRawTag"),o=e("./_objectToString"),s=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},{"./_Symbol":414,"./_getRawTag":419,"./_objectToString":420}],417:[function(e,t,r){var n=e("./_Symbol"),i=e("./_arrayMap"),o=e("./isArray"),s=e("./isSymbol"),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},{"./_Symbol":414,"./_arrayMap":415,"./isArray":422,"./isSymbol":426}],418:[function(e,t,r){(function(e){(function(){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],419:[function(e,t,r){var n=e("./_Symbol"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(u){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},{"./_Symbol":414}],420:[function(e,t,r){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}},{}],421:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},{"./_freeGlobal":418}],422:[function(e,t,r){var n=Array.isArray;t.exports=n},{}],423:[function(e,t,r){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},{}],424:[function(e,t,r){t.exports=function(e){return null!=e&&"object"==typeof e}},{}],425:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isArray"),o=e("./isObjectLike");t.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},{"./_baseGetTag":416,"./isArray":422,"./isObjectLike":424}],426:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike");t.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},{"./_baseGetTag":416,"./isObjectLike":424}],427:[function(e,t,r){var n=e("./_baseToString");t.exports=function(e){return null==e?"":n(e)}},{"./_baseToString":417}],428:[function(e,t,r){"use strict";
2t.exports=function(e,t,r){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===r&&(r=!0),Object.getOwnPropertyNames(t).forEach((function(i){if(r||!n.call(e,i)){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o)}})),e};var n=Object.prototype.hasOwnProperty},{}],429:[function(e,t,r){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.regexp.constructor.js"),e("core-js/modules/es.regexp.to-string.js"),n.prototype.define=function(e,t){for(var r in e){var n=e[r].map((function(e){return e.toLowerCase()}));r=r.toLowerCase();for(var i=0;i<n.length;i++){var o=n[i];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(t||!this._extensions[r]){var s=n[0];this._extensions[r]="*"!==s[0]?s:s.substr(1)}}},n.prototype.getType=function(e){var t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),n=t.length<e.length;return(r.length<t.length-1||!n)&&this._types[r]||null},n.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},t.exports=n},{"core-js/modules/es.array.map.js":318,"core-js/modules/es.regexp.constructor.js":337,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345}],430:[function(e,t,r){"use strict";var n=e("./Mime");t.exports=new n(e("./types/standard"))},{"./Mime":429,"./types/standard":431}],431:[function(e,t,r){"use strict";t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
2off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],432:[function(e,t,r){var n=1e3,i=6e4,o=60*i,s=24*o;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*s;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=s?a(e,t,s,"day"):t>=o?a(e,t,o,"hour"):t>=i?a(e,t,i,"minute"):t>=n?a(e,t,n,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=o?Math.round(e/o)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],433:[function(e,t,r){(function(r){(function(){var n="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"===typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&u&&"function"===typeof u.get?u.get:null,c=a&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,M=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,_=Array.prototype.join,k=Array.prototype.slice,A=Math.floor,j="function"===typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,I=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var P=e("./util.inspect"),N=P.custom,D=z(N)?N:null;function U(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,""")}function F(e){return"[object Array]"===K(e)&&(!O||!("object"===typeof e&&O in e))}function q(e){return"[object RegExp]"===K(e)&&(!O||!("object"===typeof e&&O in e))}function z(e){if(C)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;
2if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}t.exports=function e(t,n,i,a){var u=n||{};if(H(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(u,"customInspect")||u.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return e(b.call(t,0,r.maxStringLength),r)+i}return U(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",r)}(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?B(t,x):x}if("bigint"===typeof t){var A=String(t)+"n";return w?B(t,A):A}var E="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof i&&(i=0),i>=E&&E>0&&"object"===typeof t)return F(t)?"[Array]":"[Object]";var N,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(u,i);if("undefined"===typeof a)a=[];else if(G(a,t)>=0)return"[Circular]";function $(t,r,n){if(r&&(a=k.call(a)).push(r),n){var o={depth:u.depth};return H(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,a)}return e(t,u,i+1,a)}if("function"===typeof t&&!q(t)){var ee=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Q(t,$);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+_.call(te,", ")+" }":"")}if(z(t)){var re=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||C?re:X(re)}if((N=t)&&"object"===typeof N&&("undefined"!==typeof HTMLElement&&N instanceof HTMLElement||"string"===typeof N.nodeName&&"function"===typeof N.getAttribute)){for(var ne="<"+M.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)ne+=" "+ie[oe].name+"="+U(L(ie[oe].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+M.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var se=Q(t,$);return V&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(se)?"["+J(se,V)+"]":"[ "+_.call(se,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!O||!("object"===typeof e&&O in e))}(t)){var ae=Q(t,$);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ae,", ")+" }":"{ ["+String(t)+"] "+_.call(S.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(D&&"function"===typeof t[D]&&P)return P(t,{depth:E-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return s&&s.call(t,(function(e,r){ue.push($(r,t,!0)+" => "+$(e,t))})),Y("Map",o.call(t),ue,V)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push($(e,t))})),Y("Set",l.call(t),le,V)}if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X($(Number(t)));if(function(e){if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}(t))return X($(j.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(p.call(t));if(function(e){return"[object String]"===K(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X($(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!O||!("object"===typeof e&&O in e))}(t)&&!q(t)){var ce=Q(t,$),he=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!he&&O&&Object(t)===t&&O in t?b.call(K(t),8,-1):de?"Object":"",pe=(he||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+_.call(S.call([],fe||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":V?pe+"{"+J(ce,V)+"}":pe+"{ "+_.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?J(r,n):_.call(r,", "))+"}"}function J(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=F(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=H(e,i)?t(e[i],e):""}var o,s="function"===typeof E?E(e):[];if(C){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var u in e)H(e,u)&&(r&&String(Number(u))===u&&u<e.length||C&&o["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"===typeof E)for(var l=0;l<s.length;l++)R.call(e,s[l])&&n.push("["+t(s[l])+"]: "+t(e[s[l]],e));return n}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./util.inspect":102}],434:[function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=e("./isArguments"),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),l=a.call((function(){}
2),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{h(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=l&&r;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var y in e)p&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var b=function(e){if("undefined"===typeof window||!f)return h(e);try{return h(e)}catch(t){return!1}}(e),v=0;v<c.length;++v)b&&"constructor"===c[v]||!i.call(e,c[v])||d.push(c[v]);return d}}t.exports=n},{"./isArguments":436}],435:[function(e,t,r){"use strict";var n=Array.prototype.slice,i=e("./isArguments"),o=Object.keys,s=o?function(e){return o(e)}:e("./implementation"),a=Object.keys;s.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)}):Object.keys=s,Object.keys||s},t.exports=s},{"./implementation":434,"./isArguments":436}],436:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},{}],437:[function(e,t,r){"use strict";var n=e("object-keys"),i=e("has-symbols/shams")(),o=e("call-bind/callBound"),s=Object,a=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),l=i?Object.getOwnPropertySymbols:null;t.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=s(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var c=s(arguments[o]),h=n(c),d=i&&(Object.getOwnPropertySymbols||l);if(d)for(var f=d(c),p=0;p<f.length;++p){var m=f[p];u(c,m)&&a(h,m)}for(var g=0;g<h.length;++g){var y=h[g];if(u(c,y)){var b=c[y];r[y]=b}}}return r}},{"call-bind/callBound":105,"has-symbols/shams":395,"object-keys":435}],438:[function(e,t,r){"use strict";var n=e("./implementation");t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},{"./implementation":437}],439:[function(e,t,r){(function(e){(function(){"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var a;s>=0?a=arguments[s]:(void 0===t&&(t=e.cwd()),a=t),r(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCo
2deAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,s=o-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var u=t.length-a,l=s<u?s:u,c=-1,h=0;h<=l;++h){if(h===l){if(u>l){if(47===t.charCodeAt(a+h))return t.slice(a+h+1);if(0===h)return t.slice(a+h)}else s>l&&(47===e.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var d=e.charCodeAt(n+h);if(d!==t.charCodeAt(a+h))break;47===d&&(c=h)}var f="";for(h=n+c+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,i=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!s){i=n+1;break}}else-1===u&&(s=!1,u=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),o=47===i;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,u=-1,l=!0,c=e.length-1,h=0;c>=n;--c)if(47!==(i=e.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===i?-1===s?s=c:1!==h&&(h=1):-1!==s&&(h=-1);else if(!l){a=c+1;break}return-1===s||-1===u||0===h||1===h&&s===u-1&&s===a+1?-1!==u&&(t.base=t.name=0===a&&o?e.slice(1,u):e.slice(a,u)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,u)):(t.name=e.slice(a,s),t.base=e.slice(a,u)),t.ext=e.slice(s,u)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this)}).call(this,e("_process"))},{_process:538}],440:[function(e,t,r){(function(e){(function(){(function(){"use strict";var n={function:!0,object:!0},i=n[typeof window]&&window||this,o=n[typeof r]&&r,s=n[typeof t]&&t&&!t.nodeType&&t,a=o&&s&&"object"==typeof e&&e;!a||a.global!==a&&a.window!==a&&a.self!==a||(i=a);var u=Math.pow(2,53)-1,l=/\bOpera/,c=Object.prototype,h=c.hasOwnProperty,d=c.toString;function f(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function p(e){return e=v(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:f(e)}function m(e,t){for(var r in e)h.call(e,r)&&t(e[r],r,e)}function g(e){return null==e?f(e):d.call(e).slice(8,-1)}function y(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function b(e,t){var r=null;return function(e,t){var r=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=u)for(;++r<n;)t(e[r],r,e);else m(e,t)}(e,(function(n,i){r=t(r,n,i,e)})),r}function v(e){return String(e).replace(/^ +| +$/g,"")}var w=function e(t){var r=i,n=t&&"object"==typeof t&&"String"!=g(t);n&&(r=t,t=null);var o=r.navigator||{},s=o.userAgent||"";t||(t=s);var a,u,c=n?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(d.toString()),h=n?"Object":"ScriptBridgingProxyObject",f=n?"Object":"Environment",w=n&&r.java?"JavaPackage":g(r.java),M=n?"Object":"RuntimeObject",x=/\bJava/.test(w)&&r.java,S=x&&g(r.environment)==f,_=x?"a":"\u03b1",k=x?"b":"\u03b2",A=r.document||{},j=r.operamini||r.opera,E=l.test(E=n&&j?j["[[Class]]"]:g(j))?E:j=null,T=t,C=[],O=null,R=t==s,I=R&&j&&"function"==typeof j.version&&j.version(),B=b([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,r){return e||RegExp("\\b"+(r.pattern||y(r))+"\\b","i").exec(t)&&(r.label||r)})),P=function(e){return b(e,(function(e,r){return e||RegExp("\\b"+(r.pattern||y(r))+"\\b","i").exec(t)&&(r.label||r)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","Green
2Browser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),N=L([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),D=function(e){return b(e,(function(e,r,n){return e||(r[N]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(N)]||RegExp("\\b"+y(n)+"(?:\\b|\\w*\\d)","i").exec(t))&&n}))}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),U=function(e){return b(e,(function(e,r){var n=r.pattern||y(r);return!e&&(e=RegExp("\\b"+n+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&r&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(n=n[/[\d.]+$/.exec(e)])&&(e="Windows "+n),e=String(e),t&&r&&(e=e.replace(RegExp(t,"i"),r)),e=p(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,n,r.label||r)),e}))}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function L(e){return b(e,(function(e,r){var n=r.pattern||y(r);return!e&&(e=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(r.label&&!RegExp(n,"i").test(r.label)?r.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),r=r.label||r,e=p(e[0].replace(RegExp(n,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}function F(e){return b(e,(function(e,r){return e||(RegExp(r+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}if(B&&(B=[B]),/\bAndroid\b/.test(U)&&!N&&(a=/\bAndroid[^;]*;
vendor: 7,375 bytes, line 2
2(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(N=v(a[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),D&&!N?N=L([D]):D&&N&&(N=N.replace(RegExp("^("+y(D)+")[-_.\\s]","i"),D+" ").replace(RegExp("^("+y(D)+")[-_.]?(\\w)","i"),D+" $2")),(a=/\bGoogle TV\b/.exec(N))&&(N=a[0]),/\bSimulator\b/i.test(t)&&(N=(N?N+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(t)&&C.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(t)?(D=(a=e(t.replace(/like iPhone OS/,""))).manufacturer,N=a.product):/^iP/.test(N)?(P||(P="Safari"),U="iOS"+((a=/ OS ([\d_]+)/i.exec(t))?" "+a[1].replace(/_/g,"."):"")):"Konqueror"==P&&/^Linux\b/i.test(U)?U="Kubuntu":D&&"Google"!=D&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(N))||/\bAndroid\b/.test(U)&&/^Chrome/.test(P)&&/\bVersion\//i.test(t)?(P="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==P?(/\bMobi/i.test(t)||(U="Android",C.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&C.unshift("accelerated")):"UC Browser"==P&&/\bUCWEB\b/.test(t)?C.push("speed mode"):"PaleMoon"==P&&(a=/\bFirefox\/([\d.]+)\b/.exec(t))?C.push("identifying as Firefox "+a[1]):"Firefox"==P&&(a=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),N||(N=a[1])):!P||(a=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!N&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(a+"/")+8))&&(P=null),(a=N||D||U)&&(N||D||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:a)+" Browser")):"Electron"==P&&(a=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&C.push("Chromium "+a),I||(I=F(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",y(P),"(?:Firefox|Minefield|NetFront)"])),(a=("iCab"==B&&parseFloat(I)>3?"WebKit":/\bOpera\b/.test(P)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(B)&&"WebKit"||!B&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==B&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(B=[a]),"IE"==P&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(P+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),C.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(P="IE Mobile",U="Windows Phone 8.x",C.unshift("desktop mode"),I||(I=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=P&&"Trident"==B&&(a=/\brv:([\d.]+)/.exec(t))&&(P&&C.push("identifying as "+P+(I?" "+I:"")),P="IE",I=a[1]),R){if(function(e,t){var r=null!=e?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(r)&&("object"!=r||!!e[t])}(r,"global"))if(x&&(T=(a=x.lang.System).getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),S){try{I=r.require("ringo/engine").version.join("."),P="RingoJS"}catch(z){(a=r.system)&&a.global.system==r.system&&(P="Narwhal",U||(U=a[0].os||null))}P||(P="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(a=r.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(C.push("Node "+a.versions.node),P="Electron",I=a.versions.electron):"string"==typeof a.versions.nw&&(C.push("Chromium "+I,"Node "+a.versions.node),P="NW.js",I=a.versions.nw)),P||(P="Node.js",T=a.arch,U=a.platform,I=(I=/[\d.]+/.exec(a.version))?I[0]:null));else g(a=r.runtime)==h?(P="Adobe AIR",U=a.flash.system.Capabilities.os):g(a=r.phantom)==M?(P="PhantomJS",I=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof A.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?(I=[I,A.documentMode],(a=+a[1]+4)!=I[1]&&(C.push("IE "+I[1]+" mode"),B&&(B[1]=""),I[1]=a),I="IE"==P?String(I[1].toFixed(1)):I[0]):"number"==typeof A.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(C.push("masking as "+P+" "+I),P="IE",I="11.0",B=["Trident"],U="Windows");U=U&&p(U)}if(I&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(I)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(R&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(O=/b/i.test(a)?"beta":"alpha",I=I.replace(RegExp(a+"\\+?$"),"")+("beta"==O?k:_)+(/\d+\+?/.exec(a)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))P="Firefox Mobile";else if("Maxthon"==P&&I)I=I.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(N))"Xbox 360"==N&&(U=null),"Xbox 360"==N&&/\bIEMobile\b/.test(t)&&C.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(P)&&(!P||N||/Browser|Mobi/.test(P))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==P&&R)try{null===r.external&&C.unshift("platform preview")}catch(z){C.unshift("embedded")}else(/\bBlackBerry\b/.test(N)||/\bBB10\b/.test(t))&&(a=(RegExp(N.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||I)?(U=((a=[a,/BB10/.test(t)])[1]?(N=null,D="BlackBerry"):"Device Software")+" "+a[0],I=null):this!=m&&"Wii"!=N&&(R&&j||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==P&&(U&&!/^Win/.test(U)&&I>5.5||/\bWindows XP\b/.test(U)&&I>8||8==I&&!/\bTrident\b/.test(t)))&&!l.test(a=e.call(m,t.replace(l,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),l.test(P)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,P=E?p(E.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),R||(I=null)),B=["Presto"],C.push(a));else P+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==P&&"+"==a[1].slice(-1)?(P="WebKit Nightly",O="alpha",I=a[1].slice(0,-1)):I!=a[1]&&I!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(I=null),a[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==B&&(B=["Blink"]),R&&(c||a[1])?(B&&(B[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=B?"27":"28")):(B&&(B[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:a<602?9:a<604?10:a<606?11:a<608?12:"12"),B&&(B[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==P&&(!I||parseInt(I)>45)?I=a:"Chrome"==P&&/\bHeadlessChrome/i.test(t)&&C.unshift("headless")),"Opera"==P&&(a=/\bzbov|zvav$/.exec(U))?(P+=" ",C.unshift("desktop mode"),"zvav"==a?(P+="Mini",I=null):P+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(B&&B[1])?(C.unshift("desktop mode"),P="Chrome Mobile",I=null,/\bOS X\b/.test(U)?(D="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(P)&&!I&&(I=F("Chrome")),I&&0==I.indexOf(a=/[\d.]+$/.exec(U))&&t.indexOf("/"+a+"-")>-1&&(U=v(U.replace(a,""))),U&&-1!=U.indexOf(P)&&!RegExp(P+" OS").test(U)&&(U=U.replace(RegExp(" *"+y(P)+" *"),"")),B&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(U)&&/\bSafari\b/.test(B[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(P)&&B[1])&&(a=B[B.length-1])&&C.push(a),C.length&&(C=["("+C.join("; ")+")"]),D&&N&&N.indexOf(D)<0&&C.push("on "+D),N&&C.push((/^on /.test(C[C.length-1])?"":"on ")+N),U&&(a=/ ([\d.+]+)$/.exec(U),u=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&
2!u?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!u?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(T))&&!/\bi686\b/i.test(T)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),P&&(/\bWOW64\b/i.test(t)||R&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&C.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==P&&parseFloat(I)>=39&&(U.architecture=64),t||(t=null);var q={};return q.description=t,q.layout=B&&B[0],q.manufacturer=D,q.name=P,q.prerelease=O,q.product=N,q.ua=t,q.version=P&&I,q.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},q.parse=e,q.toString=function(){return this.description||""},q.version&&C.unshift(I),q.name&&C.unshift(P),U&&P&&(U!=String(U).split(" ")[0]||U!=P.split(" ")[0]&&!N)&&C.push(N?"("+U+")":"on "+U),C.length&&(q.description=C.join(" ")),q}();o&&s?m(w,(function(e,t){o[t]=e})):i.platform=w}).call(this)}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],441:[function(e,t,r){(function(e){(function(){"use strict";"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:538}],442:[function(e,t,r){var n,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"===typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,c=[],h=!1,d=-1;function f(){h&&l&&(h=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!h){var e=u(f);h=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||h||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],443:[function(e,t,r){(function(e){(function(){!function(n){var i="object"==typeof r&&r&&!r.nodeType&&r,o="object"==typeof t&&t&&!t.nodeType&&t,s="object"==typeof e&&e;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var a,u,l=2147483647,c=/^xn--/,h=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(f[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function b(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function w(e){return y(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function M(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function S(e){var t,r,n,i,o,s,a,u,c,h,d,f=[],m=e.length,y=0,b=128,v=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&g("not-basic"),f.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=y,s=1,a=36;i>=m&&g("invalid-input"),((u=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||u>p((l-y)/s))&&g("overflow"),y+=u*s,!(u<(c=a<=v?1:a>=v+26?26:a-v));a+=36)s>p(l/(h=36-c))&&g("overflow"),s*=h;v=x(y-o,t=f.length+1,0==o),p(y/t)>l-b&&g("overflow"),b+=p(y/t),y%=t,f.splice(y++,0,b)}return w(f)}function _(e){var t,r,n,i,o,s,a,u,c,h,d,f,y,b,w,S=[];for(f=(e=v(e)).length,t=128,r=0,o=72,s=0;s<f;++s)(d=e[s])<128&&S.push(m(d));for(n=i=S.length,i&&S.push("-");n<f;){for(a=l,s=0;s<f;++s)(d=e[s])>=t&&d<a&&(a=d);for(a-t>
2p((l-r)/(y=n+1))&&g("overflow"),r+=(a-t)*y,t=a,s=0;s<f;++s)if((d=e[s])<t&&++r>l&&g("overflow"),d==t){for(u=r,c=36;!(u<(h=c<=o?1:c>=o+26?26:c-o));c+=36)w=u-h,b=36-h,S.push(m(M(h+w%b,0))),u=p(w/b);S.push(m(M(u,0))),o=x(r,y,n==i),r=0,++n}++r,++t}return S.join("")}if(a={version:"1.4.1",ucs2:{decode:v,encode:w},decode:S,encode:_,toASCII:function(e){return b(e,(function(e){return h.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return b(e,(function(e){return c.test(e)?S(e.slice(4).toLowerCase()):e}))}},i&&o)if(t.exports==i)o.exports=a;else for(u in a)a.hasOwnProperty(u)&&(i[u]=a[u]);else n.punycode=a}(this)}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],444:[function(e,t,r){"use strict";var n=String.prototype.replace,i=/%20/g,o="RFC1738",s="RFC3986";t.exports={default:s,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:s}},{}],445:[function(e,t,r){"use strict";var n=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:n}},{"./formats":444,"./parse":446,"./stringify":447}],446:[function(e,t,r){"use strict";var n=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,c=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var h=0;r.depth>0&&null!==(a=s.exec(o))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var i=n?t:u(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[])[c]=i:"__proto__"!==l&&(s[l]=i):s={0:i}}i=s}return i}(c,t,r,n)}};t.exports=function(e,t){var r=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var r,l={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,h),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?p="utf-8":"utf8=%26%2310003%3B"===d[r]&&(p="iso-8859-1"),f=r,r=d.length);for(r=0;r<d.length;++r)if(r!==f){var m,g,y=d[r],b=y.indexOf("]="),v=-1===b?y.indexOf("="):b+1;-1===v?(m=t.decoder(y,s.decoder,p,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,v),s.decoder,p,"key"),g=n.maybeMap(u(y.slice(v+1),t),(function(e){return t.decoder(e,s.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=a(g)),y.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(l,m)?l[m]=n.combine(l[m],g):l[m]=g}return l}(e,r):e,h=r.plainObjects?Object.create(null):{},d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],m=l(p,c[p],r,"string"===typeof e);
2h=n.merge(h,m,r)}return!0===r.allowSparse?h:n.compact(h)}},{"./utils":448}],447:[function(e,t,r){"use strict";var n=e("side-channel"),i=e("./utils"),o=e("./formats"),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},h=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,r,o,s,a,l,h,d,m,g,y,b,v,w,M,x){for(var S,_=t,k=x,A=0,j=!1;void 0!==(k=k.get(p))&&!j;){var E=k.get(t);if(A+=1,"undefined"!==typeof E){if(E===A)throw new RangeError("Cyclic object value");j=!0}"undefined"===typeof k.get(p)&&(A=0)}if("function"===typeof d?_=d(r,_):_ instanceof Date?_=y(_):"comma"===o&&u(_)&&(_=i.maybeMap(_,(function(e){return e instanceof Date?y(e):e}))),null===_){if(a)return h&&!w?h(r,f.encoder,M,"key",b):r;_=""}if("string"===typeof(S=_)||"number"===typeof S||"boolean"===typeof S||"symbol"===typeof S||"bigint"===typeof S||i.isBuffer(_))return h?[v(w?r:h(r,f.encoder,M,"key",b))+"="+v(h(_,f.encoder,M,"value",b))]:[v(r)+"="+v(String(_))];var T,C=[];if("undefined"===typeof _)return C;if("comma"===o&&u(_))w&&h&&(_=i.maybeMap(_,h)),T=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(d))T=d;else{var O=Object.keys(_);T=m?O.sort(m):O}for(var R=s&&u(_)&&1===_.length?r+"[]":r,I=0;I<T.length;++I){var B=T[I],P="object"===typeof B&&"undefined"!==typeof B.value?B.value:_[B];if(!l||null!==P){var N=u(_)?"function"===typeof o?o(R,B):R:R+(g?"."+B:"["+B+"]");x.set(t,A);var D=n();D.set(p,x),c(C,e(P,N,o,s,a,l,"comma"===o&&w&&u(_)?null:h,d,m,g,y,b,v,w,M,D))}}return C};t.exports=function(e,t){var r,i=e,l=function(e){if(!e)return f;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if("undefined"!==typeof e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=f.filter;return("function"===typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"===typeof l.filter?i=(0,l.filter)("",i):u(l.filter)&&(r=l.filter);var h,d=[];if("object"!==typeof i||null===i)return"";h=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[h];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===p&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),l.sort&&r.sort(l.sort);for(var y=n(),b=0;b<r.length;++b){var v=r[b];l.skipNulls&&null===i[v]||c(d,m(i[v],v,p,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var w=d.join(l.delimiter),M=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?M+="utf8=%26%2310003%3B&":M+="utf8=%E2%9C%93&"),w.length>0?M+w:""}},{"./formats":444,"./utils":448,"side-channel":467}],448:[function(e,t,r){"use strict";var n=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var l=a[u],c=s[l];"object"===typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
2if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var a=e;if("symbol"===typeof e?a=Symbol.prototype.toString.call(e):"string"!==typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<a.length;++l){var c=a.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===n.RFC1738&&(40===c||41===c)?u+=a.charAt(l):c<128?u+=s[c]:c<2048?u+=s[192|c>>6]+s[128|63&c]:c<55296||c>=57344?u+=s[224|c>>12]+s[128|c>>6&63]+s[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(l)),u+=s[240|c>>18]+s[128|c>>12&63]+s[128|c>>6&63]+s[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==typeof r){if(o(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var s=t[o];s&&"object"===typeof s&&r&&"object"===typeof r?t[o]=e(s,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var s=r[o];return i.call(t,o)?t[o]=e(t[o],s,n):t[o]=s,t}),s)}}},{"./formats":444}],449:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!==typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var h,d,f,p,m=e[c].replace(a,"%20"),g=m.indexOf(r);g>=0?(h=m.substr(0,g),d=m.substr(g+1)):(h=m,d=""),f=decodeURIComponent(h),p=decodeURIComponent(d),n(s,f)?i(s[f])?s[f].push(p):s[f]=[s[f],p]:s[f]=p}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],450:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?o(s(e),(function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[s]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],451:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":449,"./encode":450}],452:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=h;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(h,s);for(var u=i(a.prototype),l=0;l<u.length;l++){var c=u[l];h.prototype[c]||(h.prototype[c]=a.prototype[c])}function h(e){if(!(this instanceof h))return new h(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":454,"./_stream_writable":456,"core-util-is":382,inherits:407,"process-nextick-args":441}],453:[function(e,t,r){"use strict";
vendor: 6,712 bytes, line 2
2t.exports=o;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":455,"core-util-is":382,inherits:407}],454:[function(e,t,r){(function(r,n){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,s=e("isarray");v.ReadableState=b,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,c=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){},h=Object.create(e("core-util-is"));h.inherits=e("inherits");var d=e("util"),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),g=e("./internal/streams/destroy");h.inherits(v,u);var y=["error","close","destroy","pause","resume"];function b(t,r){t=t||{};var n=r instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}}(e,s)):(i||(o=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof c||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):M(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):k(e,s)):M(e,s,t,!1))):n||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function M(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),k(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(_,e):_(e))}function _(e){f("emit readable"),e.emit("readable"),T(e)}function k(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){f("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},v.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):S(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,i=t.needReadable;
vendor: 2,033 bytes, line 2
2return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===r.stdout||e===r.stderr?v:c;function l(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",v),n.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function c(){f("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",l);var h=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",h);var d=!1,p=!1;function m(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!d&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function g(t){f("onerror",t),v(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),v()}function b(){f("onfinish"),e.removeListener("close",y),v()}function v(){f("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,r){if("function"===typeof e.prependListener)return e.prepe
vendor: 5,137 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",b),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=I(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(j,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(E,e,t))}(this,e)),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=C}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./_stream_duplex":452,"./internal/streams/BufferList":457,"./internal/streams/destroy":458,"./internal/streams/stream":459,_process:538,"core-util-is":382,events:386,inherits:407,isarray:460,"process-nextick-args":441,"safe-buffer":461,"string_decoder/":462,util:102}],455:[function(e,t,r){"use strict";t.exports=s;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"===typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":452,"core-util-is":382,inherits:407}],456:[function(e,t,r){(function(r,n,i){(function(){"use strict";var o=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=b;
vendor: 4,158 bytes, line 2
2var a,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;b.WritableState=y;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var c,h={deprecate:e("util-deprecate")},d=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,p=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){},m=e("./internal/streams/destroy");function g(){}function y(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),_(e,t))}(e,r,n,t,i);else{var s=x(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||M(e,r),n?u(w,e,r,s,i):w(e,r,s,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(t){if(a=a||e("./_stream_duplex"),!c.call(b,this)&&!(this instanceof a))return new b(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),d.call(this)}function v(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),_(e,t)}function M(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,u=!0;r;)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,h=r.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),_(e,t)}))}function _(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(b,d),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===b&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this}
vendor: 6,942 bytes, line 2
2,b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,a=!i.objectMode&&(n=e,f.isBuffer(n)||n instanceof p);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,n,i,o);return u}(this,i,a,e,t,r)),s},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||M(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,_(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":452,"./internal/streams/destroy":458,"./internal/streams/stream":459,_process:538,"core-util-is":382,inherits:407,"process-nextick-args":441,"safe-buffer":461,timers:484,"util-deprecate":486}],457:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,o=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=o,i=a,t.copy(r,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":461,util:102}],458:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":441}],459:[function(e,t,r){t.exports=e("events").EventEmitter},{events:386}],460:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],461:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:103}],462:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
vendor: 14,125 bytes, line 2
2case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":461}],463:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":452,"./lib/_stream_passthrough.js":453,"./lib/_stream_readable.js":454,"./lib/_stream_transform.js":455,"./lib/_stream_writable.js":456}],464:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:103}],465:[function(e,t,r){(function(t){(function(){!function(r){r.parser=function(e,t){return new o(e,t)},r.SAXParser=o,r.SAXStream=a,r.createStream=function(e,t){return new a(e,t)},r.MAX_BUFFER_LENGTH=65536;var n,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,t){if(!(this instanceof o))return new o(e,t);!function(e){for(var t=0,r=i.length;t<r;t++)e[i[t]]=""}(this),this.q=this.c="",this.bufferCheckPosition=r.MAX_BUFFER_LENGTH,this.opt=t||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!e,this.noscript=!(!e&&!this.opt.noscript),this.state=v.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(l)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),M(this,"onready")}r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),o.prototype={end:function(){A(this)},write:function(e){if(this.error)throw this.error;if(this.closed)return k(this,"Cannot write after close. Assign an onready handler.");if(null===e)return A(this);"object"===typeof e&&(e=e.toString());for(var t=0,n="";n=P(e,t++),this.c=n,n;)switch(this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++),this.state){case v.BEGIN:if(this.state=v.BEGIN_WHITESPACE,"\ufeff"===n)continue;B(this,n);continue;case v.BEGIN_WHITESPACE:B(this,n);continue;case v.TEXT:if(this.sawRoot&&!this.closedRoot){for(var o=t-1;n&&"<"!==n&&"&"!==n;)(n=P(e,t++))&&this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++);this.textNode+=e.substring(o,t-1)}"<"!==n||this.sawRoot&&this.closedRoot&&!this.strict?(p(n)||this.sawRoot&&!this.closedRoot||j(this,"Text data outside of root node."),"&"===n?this.state=v.TEXT_ENTITY:this.textNode+=n):(this.state=v.OPEN_WAKA,this.startTagPosition=this.position);continue;case v.SCRIPT:"<"===n?this.state=v.SCRIPT_ENDING:this.script+=n;continue;case v.SCRIPT_ENDING:"/"===n?this.state=v.CLOSE_TAG:(this.script+="<"+n,this.state=v.SCRIPT);continue;case v.OPEN_WAKA:if("!"===n)this.state=v.SGML_DECL,this.sgmlDecl="";else if(p(n));else if(y(c,n))this.state=v.OPEN_TAG,this.tagName=n;else if("/"===n)this.state=v.CLOSE_TAG,this.tagName="";else if("?"===n)this.state=v.PROC_INST,this.procInstName=this.procInstBody="";else{if(j(this,"Unencoded <"),this.startTagPosition+1<this.position){var s=this.position-this.startTagPosition;n=new Array(s).join(" ")+n}this.textNode+="<"+n,this.state=v.TEXT}continue;case v.SGML_DECL:"[CDATA["===(this.sgmlDecl+n).toUpperCase()?(x(this,"onopencdata"),this.state=v.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+n==="--"?(this.state=v.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+n).toUpperCase()?(this.state=v.DOCTYPE,(this.doctype||this.sawRoot)&&j(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===n?(x(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=v.TEXT):m(n)?(this.state=v.SGML_DECL_QUOTED,this.sgmlDecl+=n):this.sgmlDecl+=n;continue;case v.SGML_DECL_QUOTED:n===this.q&&(this.state=v.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case v.DOCTYPE:">"===n?(this.state=v.TEXT,x(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=v.DOCTYPE_DTD:m(n)&&(this.state=v.DOCTYPE_QUOTED,this.q=n));continue;case v.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=v.DOCTYPE);continue;case v.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=v.DOCTYPE:m(n)&&(this.state=v.DOCTYPE_DTD_QUOTED,this.q=n);continue;case v.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=v.DOCTYPE_DTD,this.q="");continue;case v.COMMENT:"-"===n?this.state=v.COMMENT_ENDING:this.comment+=n;continue;case v.COMMENT_ENDING:"-"===n?(this.state=v.COMMENT_ENDED,this.comment=_(this.opt,this.comment),this.comment&&x(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=v.COMMENT);continue;case v.COMMENT_ENDED:">"!==n?(j(this,"Malformed comment"),this.comment+="--"+n,this.state=v.COMMENT):this.state=v.TEXT;continue;case v.CDATA:"]"===n?this.state=v.CDATA_ENDING:this.cdata+=n;continue;case v.CDATA_ENDING:"]"===n?this.state=v.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=v.CDATA);continue;case v.CDATA_ENDING_2:">"===n?(this.cdata&&x(this,"oncdata",this.cdata),x(this,"onclosecdata"),this.cdata="",this.state=v.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=v.CDATA);continue;case v.PROC_INST:"?"===n?this.state=v.PROC_INST_ENDING:p(n)?this.state=v.PROC_INST_BODY:this.procInstName+=n;continue;case v.PROC_INST_BODY:if(!this.procInstBody&&p(n))continue;"?"===n?this.state=v.PROC_INST_ENDING:this.procInstBody+=n;continue;case v.PROC_INST_ENDING:">"===n?(x(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=v.TEXT):(this.procInstBody+="?"+n,this.state=v.PROC_INST_BODY);continue;case v.OPEN_TAG:y(h,n)?this.tagName+=n:(E(this),">"===n?O(this):"/"===n?this.state=v.OPEN_TAG_SLASH:(p(n)||j(this,"Invalid character in tag name"),this.state=v.ATTRIB));continue;case v.OPEN_TAG_SLASH:">"===n?(O(this,!0),R(this)):(j(this,"Forward-slash in opening tag not followed by >"),this.state=v.ATTRIB);continue;case v.ATTRIB:if(p(n))continue;">"===n?O(this):"/"===n?this.state=v.OPEN_TAG_SLASH:y(c,n)?(this.attribName=n,this.attribValue="",this.state=v.ATTRIB_NAME):j(this,"Invalid attribute name");continue;case v.ATTRIB_NAME:"="===n?this.state=v.ATTRIB_VALUE:">"===n?(j(this,"Attribute without value"),this.attribValue=this.attribName,C(this),O(this)):p(n)?this.state=v.ATTRIB_NAME_SAW_WHITE:y(h,n)?this.attribName+=n:j(this,"Invalid attribute name");continue;case v.ATTRIB_NAME_SAW_WHITE:if("="===n)this.state=v.ATTRIB_VALUE;else{if(p(n))continue;j(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",x(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?O(this):y(c,n)?(this.attribName=n,this.state=v.ATTRIB_NAME):(j(this,"Invalid attribute name"),this.state=v.ATTRIB)}continue;case v.ATTRIB_VALUE:if(p(n))continue;m(n)?(this.q=n,this.state=v.ATTRIB_VALUE_QUOTED):(j(this,"Unquoted attribute value"),this.state=v.ATTRIB_VALUE_UNQUOTED,this.attribValue=n);continue;case v.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=v.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}C(this),this.q="",this.state=v.ATTRIB_VALUE_CLOSED;continue;case v.ATTRIB_VALUE_CLOSED:p(n)?this.state=v.ATTRIB:">"===n?O(this):"/"===n?this.state=v.OPEN_TAG_SLASH:y(c,n)?(j(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=v.ATTRIB_NAME):j(this,"Invalid attribute name");continue;case v.ATTRIB_VALUE_UNQUOTED:if(!g(n)){"&"===n?this.state=v.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}C(this),">"===n?O(this):this.state=v.ATTRIB;continue;case v.CLOSE_TAG:if(this.tagName)">"===n?R(this):y(h,n)?this.tagName+=n:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=v.SCRIPT):(p(n)||j(this,"Invalid tagname in closing tag"),this.state=v.CLOSE_TAG_SAW_WHITE);else{if(p(n))continue;b(c,n)?this.script?(this.script+="</"+n,this.state=v.SCRIPT):j(this,"Invalid tagname in closing tag."):this.tagName=n}continue;case v.CLOSE_TAG_SAW_WHITE:if(p(n))continue;">"===n?R(this):j(this,"Invalid characters in closing tag");continue;case v.TEXT_ENTITY:case v.ATTRIB_VALUE_ENTITY_Q:case v.ATTRIB_VALUE_ENTITY_U:var a,u;switch(this.state){case v.TEXT_ENTITY:a=v.TEXT,u="textNode";break;case v.ATTRIB_VALUE_ENTITY_Q:a=v.ATTRIB_VALUE_QUOTED,u="attribValue";break;case v.ATTRIB_VALUE_ENTITY_U:a=v.ATTRIB_VALUE_UNQUOTED,u="attribValue"}if(";"===n)if(this.opt.unparsedEntities){var l=I(this);this.entity="",this.state=a,this.write(l)}else this[u]+=I(this),this.entity="",this.state=a;else y(this.entity.length?f:d,n)?this.entity+=n:(j(this,"Invalid character in entity name"),this[u]+="&"+this.entity+n,this.entity="",this.state=a);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var t=Math.max(r.MAX_BUFFER_LENGTH,10),n=0,o=0,s=i.length;o<s;o++){var a=e[i[o]].length;if(a>t)switch(i[o]){case"textNode":S(e);break;case"cdata":x(e,"oncdata",e.cdata),e.cdata="";break;case"script":x(e,"onscript",e.script),e.script="";break;default:k(e,"Max buffer length exceeded: "+i[o])}n=Math.max(n,a)}var u=r.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=u+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;S(e=this),""!==e.cdata&&(x(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(x(e,"onscript",e.script),e.script="")}};try{n=e("stream").Stream}catch(N){n=function(){}}n||(n=function(){});var s=r.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function a(e,t){if(!(this instanceof a))return new a(e,t);n.apply(this),this._parser=new o(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null}
vendor: 3,335 bytes, line 2
2,this._decoder=null,s.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}a.prototype=Object.create(n.prototype,{constructor:{value:a}}),a.prototype.write=function(r){if("function"===typeof t&&"function"===typeof t.isBuffer&&t.isBuffer(r)){if(!this._decoder){var n=e("string_decoder").StringDecoder;this._decoder=new n("utf8")}r=this._decoder.write(r)}return this._parser.write(r.toString()),this.emit("data",r),!0},a.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},a.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===s.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),n.prototype.on.call(r,e,t)};var u="http://www.w3.org/XML/1998/namespace",l={xml:u,xmlns:"http://www.w3.org/2000/xmlns/"},c=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function p(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function m(e){return'"'===e||"'"===e}function g(e){return">"===e||p(e)}function y(e,t){return e.test(t)}function b(e,t){return!y(e,t)}var v=0;for(var w in r.STATE={BEGIN:v++,BEGIN_WHITESPACE:v++,TEXT:v++,TEXT_ENTITY:v++,OPEN_WAKA:v++,SGML_DECL:v++,SGML_DECL_QUOTED:v++,DOCTYPE:v++,DOCTYPE_QUOTED:v++,DOCTYPE_DTD:v++,DOCTYPE_DTD_QUOTED:v++,COMMENT_STARTING:v++,COMMENT:v++,COMMENT_ENDING:v++,COMMENT_ENDED:v++,CDATA:v++,CDATA_ENDING:v++,CDATA_ENDING_2:v++,PROC_INST:v++,PROC_INST_BODY:v++,PROC_INST_ENDING:v++,OPEN_TAG:v++,OPEN_TAG_SLASH:v++,ATTRIB:v++,ATTRIB_NAME:v++,ATTRIB_NAME_SAW_WHITE:v++,ATTRIB_VALUE:v++,ATTRIB_VALUE_QUOTED:v++,ATTRIB_VALUE_CLOSED:v++,ATTRIB_VALUE_UNQUOTED:v++,ATTRIB_VALUE_ENTITY_Q:v++,ATTRIB_VALUE_ENTITY_U:v++,CLOSE_TAG:v++,CLOSE_TAG_SAW_WHITE:v++,SCRIPT:v++,SCRIPT_ENDING:v++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
vendor: 4,150 bytes, line 2
274,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach((function(e){var t=r.ENTITIES[e],n="number"===typeof t?String.fromCharCode(t):t;r.ENTITIES[e]=n})),r.STATE)r.STATE[r.STATE[w]]=w;function M(e,t,r){e[t]&&e[t](r)}function x(e,t,r){e.textNode&&S(e),M(e,t,r)}function S(e){e.textNode=_(e.opt,e.textNode),e.textNode&&M(e,"ontext",e.textNode),e.textNode=""}function _(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function k(e,t){return S(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,M(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&j(e,"Unclosed root tag"),e.state!==v.BEGIN&&e.state!==v.BEGIN_WHITESPACE&&e.state!==v.TEXT&&k(e,"Unexpected end"),S(e),e.c="",e.closed=!0,M(e,"onend"),o.call(e,e.strict,e.opt),e}function j(e,t){if("object"!==typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&k(e,t)}function E(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,x(e,"onopentagstart",r)}function T(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function C(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=T(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==u)j(e,"xml: prefix must be bound to "+u+"\nActual: "+e.attribValue);else if("xmlns"===n&&"http://www.w3.org/2000/xmlns/"!==e.attribValue)j(e,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,x(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function O(e,t){if(e.opt.xmlns){var r=e.tag,n=T(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(j(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;
2r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){x(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var o=0,s=e.attribList.length;o<s;o++){var a=e.attribList[o],u=a[0],l=a[1],c=T(u,!0),h=c.prefix,d=c.local,f=""===h?"":r.ns[h]||"",p={name:u,value:l,prefix:h,local:d,uri:f};h&&"xmlns"!==h&&!f&&(j(e,"Unbound namespace prefix: "+JSON.stringify(h)),p.uri=h),e.tag.attributes[u]=p,x(e,"onattribute",p)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),x(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=v.TEXT:e.state=v.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function R(e){if(!e.tagName)return j(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=v.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=v.SCRIPT);x(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--&&e.tags[t].name!==n;)j(e,"Unexpected close tag");if(t<0)return j(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=v.TEXT);e.tagName=r;for(var i=e.tags.length;i-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,x(e,"onclosetag",e.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach((function(t){var r=o.ns[t];x(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=v.TEXT}function I(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(j(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function B(e,t){"<"===t?(e.state=v.OPEN_WAKA,e.startTagPosition=e.position):p(t)||(j(e,"Non-whitespace before first tag."),e.textNode=t,e.state=v.TEXT)}function P(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}v=r.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,r=function(){var r,n,i=16384,o=[],s=-1,a=arguments.length;if(!a)return"";for(var u="";++s<a;){var l=Number(arguments[s]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?o.push(l):(r=55296+((l-=65536)>>10),n=l%1024+56320,o.push(r,n)),(s+1===a||o.length>i)&&(u+=e.apply(null,o),o.length=0)}return u};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r}()}("undefined"===typeof r?this.sax={}:r)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,stream:468,string_decoder:483}],466:[function(e,t,r){"use strict";var n=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),s=e("gopd"),a=n("%TypeError%"),u=n("%Math.floor%");t.exports=function(e,t){if("function"!==typeof e)throw new a("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":384,"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],467:[function(e,t,r){"use strict";var n=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),s=n("%TypeError%"),a=n("%WeakMap%",!0),u=n("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},get:function(n){if(a&&n&&("object"===typeof n||"function"===typeof n)){if(e)return l(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"===typeof n||"function"===typeof n)){if(e)return h(e,n)}else if(u){if(t)return p(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,i){a&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new a),c(e,n,i)):u?(t||(t=new u),f(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},{"call-bind/callBound":105,"get-intrinsic":390,"object-inspect":433}
vendor: 11,551 bytes, line 2
2],468:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/lib/_stream_readable.js"),i.Writable=e("readable-stream/lib/_stream_writable.js"),i.Duplex=e("readable-stream/lib/_stream_duplex.js"),i.Transform=e("readable-stream/lib/_stream_transform.js"),i.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),i.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),i.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{events:386,inherits:407,"readable-stream/lib/_stream_duplex.js":470,"readable-stream/lib/_stream_passthrough.js":471,"readable-stream/lib/_stream_readable.js":472,"readable-stream/lib/_stream_transform.js":473,"readable-stream/lib/_stream_writable.js":474,"readable-stream/lib/internal/streams/end-of-stream.js":478,"readable-stream/lib/internal/streams/pipeline.js":480}],469:[function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"===typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,s,a;if("string"===typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var u=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],470:[function(e,t,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(l,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":472,"./_stream_writable":474,_process:538,inherits:407}],471:[function(e,t,r){"use strict";t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":473,inherits:407}],472:[function(e,t,r){(function(r,n){(function(){"use strict";var i;t.exports=k,k.ReadableState=_,e("events").EventEmitter;var o,s=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),u=e("buffer").Buffer,l=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){},c=e("util");o=c&&c.debuglog?c.debuglog("stream"):function(){};var h,d,f,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,y=e("../errors").codes,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,M=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(k,a);var x=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function _(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!==typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function k(t){if(i=i||e("./_stream_duplex"),!(this instanceof k))return new k(t);var r=this instanceof i;this._readableState=new _(t,this,r),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(e,t,r,n,i){o("readableAddChunk",t);var s,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,a);else if(i||(s=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof l||"string"===typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),s)x(e,s);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)a.endEmitted?x(e,new M):j(e,a,t,!0);else if(a.ended)x(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?j(e,a,t,!1):O(e,a)):j(e,a,t,!1)}else n||(a.reading=!1,O(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),O(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(C,e))}function C(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function O(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){o("readable nexttick read 0"),e.read(0)}function P(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(L,t,e))}function L(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},k.prototype.unshift=function(e){return A(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var r=new h(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 2,637 bytes, line 2
2for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},k.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):T(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){x(this,new w("_read()"))},k.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===r.stdout||e===r.stderr?g:l;function u(t,r){o("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",d),h=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){o("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",u);var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",c);var h=!1;function d(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!h&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function f(t){o("onerror",t),g(),e.removeListener("error",f),0===s(e,"error")&&x(e,t)}function p(){e.removeListener("finish",m),g()}function m(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"===typeof e.prependListener)return e.prepe
vendor: 9,154 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",m),e.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},k.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?T(this):i.reading||r.nextTick(B,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(I,this),n},k.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(P,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<S.length;s++)e.on(S[s],this.emit.bind(this,S[s]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"===typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=D,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(k.from=function(t,r){return void 0===f&&(f=e("./internal/streams/from")),f(k,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../errors":469,"./_stream_duplex":470,"./internal/streams/async_iterator":475,"./internal/streams/buffer_list":476,"./internal/streams/destroy":477,"./internal/streams/from":479,"./internal/streams/state":481,"./internal/streams/stream":482,_process:538,buffer:103,events:386,inherits:407,"string_decoder/":483,util:102}],473:[function(e,t,r){"use strict";t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":469,"./_stream_duplex":470,inherits:407}],474:[function(e,t,r){(function(r,n){(function(){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=k,k.WritableState=_;var s,a={deprecate:e("util-deprecate")},u=e("./internal/streams/stream"),l=e("buffer").Buffer,c=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){},h=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,f=e("../errors").codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,M=f.ERR_UNKNOWN_ENCODING,x=h.errorOrDestroy;function S(){}function _(t,n,s){o=o||e("./_stream_duplex"),t=t||{},"boolean"!==typeof s&&(s=n instanceof o),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(O,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),O(e,t))}(e,n,i,t,o);else{var s=T(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),i?r.nextTick(j,e,n,s,o):j(e,n,s,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!s.call(k,this))return new k(t);this._writableState=new _(t,this,r),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),u.call(this)}function A(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,
2s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,h=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(k,u),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===k&&e&&e._writableState instanceof _}})):s=function(e){return e instanceof this},k.prototype.pipe=function(){x(this,new y)},k.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof c);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"===typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof n&&(n=S),o.ending?function(e,t){var n=new w;x(e,n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var o;return null===n?o=new v:"string"===typeof n||t.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(x(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,a,n,i,o);return u}(this,o,a,e,t,n)),s},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}
vendor: 2,481 bytes, line 2
2,{"../errors":469,"./_stream_duplex":470,"./internal/streams/destroy":477,"./internal/streams/state":481,"./internal/streams/stream":482,_process:538,buffer:103,inherits:407,"util-deprecate":486}],475:[function(e,t,r){(function(r){(function(){"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(f(r,!1)))}}function m(e){r.nextTick(p,e)}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[u]?n(e[u]):t(f(void 0,!0))}))}));var n,i=this[c];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[l]?r(f(void 0,!0)):t[h](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[h])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),g);t.exports=function(e){var t,r=Object.create(y,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[s]=null,r[a]=null,e(f(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(f(void 0,!0))),r[l]=!0})),e.on("readable",m.bind(null,r)),r}}
vendor: 7,576 bytes, line 2
2).call(this)}).call(this,e("_process"))},{"./end-of-stream":478,_process:538}],476:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var u=e("buffer").Buffer,l=e("util").inspect,c=l&&l.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,u.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:103,util:102}],477:[function(e,t,r){(function(e){(function(){"use strict";function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:538}],478:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"===typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){a=!1,l=!0,s||o.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,h=!0,a||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"===typeof e.abort}(t)?(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)):a&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",c),!1!==r.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",f),t.removeListener("close",p)}}},{"../../../errors":469}],479:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],480:[function(e,t,r){"use strict";var n,i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"===typeof e.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function l(e){e()}function c(e,t){return e.pipe(t)}function h(e){return e.length?"function"!==typeof e[e.length-1]?a:e.pop():a}t.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>
20,(function(e){n||(n=e),e&&s.forEach(l),o||(s.forEach(l),i(n))}))}));return t.reduce(c)}},{"../../../errors":469,"./end-of-stream":478}],481:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":469}],482:[function(e,t,r){arguments[4][459][0].apply(r,arguments)},{dup:459,events:386}],483:[function(e,t,r){arguments[4][462][0].apply(r,arguments)},{dup:462,"safe-buffer":464}],484:[function(e,t,r){(function(t,n){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},u=0;function l(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=u++,n=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,i((function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":442,timers:484}],485:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:103}],486:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],487:[function(e,t,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],488:[function(e,t,r){"use strict";var n=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),s=e("is-typed-array");function a(e){return e.call.bind(e)}var u="undefined"!==typeof BigInt,l="undefined"!==typeof Symbol,c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(u)var p=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function y(e){return"[object Map]"===c(e)}function b(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function M(e){return"[object ArrayBuffer]"===c(e)}function x(e){return"undefined"!==typeof ArrayBuffer&&(M.working?M(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function _(e){return"undefined"!==typeof DataView&&(S.working?S(e):e instanceof DataView)}r.isArgumentsObject=n,r.isGeneratorFunction=i,r.isTypedArray=s,r.isPromise=function(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch},r.isArrayBufferView=function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||_(e)},r.isUint8Array=function(e){return"Uint8Array"===o(e)},r.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},r.isUint16Array=function(e){return"Uint16Array"===o(e)},r.isUint32Array=function(e){return"Uint32Array"===o(e)},r.isInt8Array=function(e){return"Int8Array"===o(e)},r.isInt16Array=function(e){return"Int16Array"===o(e)},r.isInt32Array=function(e){return"Int32Array"===o(e)},r.isFloat32Array=function(e){return"Float32Array"===o(e)},r.isFloat64Array=function(e){return"Float64Array"===o(e)},r.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},r.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!==typeof Map&&y(new Map),r.isMap=function(e){return"undefined"!==typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!==typeof Set&&b(new Set),r.isSet=function(e){return"undefined"!==typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!==typeof WeakMap&&v(new WeakMap),r.isWeakMap=function(e){return"undefined"!==typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),r.isWeakSet=function(e){return w(e)},M.working="undefined"!==typeof ArrayBuffer&&M(new ArrayBuffer),r.isArrayBuffer=x,S.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=_;var k="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function j(e){return"undefined"!==typeof k&&("undefined"===typeof A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function E(e){return g(e,h)}function T(e){return g(e,d)}function C(e){return g(e,f)}function O(e){return u&&g(e,p)}function R(e){return l&&g(e,m)}r.isSharedArrayBuffer=j,r.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},r.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},r.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},r.isGeneratorObject=function(e){return"[object Generator]"===c(e)},r.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},r.isNumberObject=E,r.isStringObject=T,r.isBooleanObject=C,r.isBigIntObject=O,r.isSymbolObject=R,r.isBoxedPrimitive=function(e){return E(e)||T(e)||C(e)||O(e)||R(e)},r.isAnyArrayBuffer=function(e){return"undefined"!==typeof Uint8Array&&(x(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(r,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},{"is-arguments":408,"is-generator-function":411,"is-typed-array":412,"which-typed-array":490}],489:[function(e,t,r){(function(t){(function(){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])g(a)||!M(a)?s+=" "+a:s+=" "+u(a);return s},r.deprecate=function(e,n){if("undefined"!==typeof t&&!0===t.noDeprecation)return e;if("undefined"===typeof t)return function(){return r.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(t.env.NODE_DEBUG){var a=t.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function c(e,t){return e}function h(e,t,n){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=h(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
2return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),S(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(t);if(0===s.length){if(_(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var l,c="",M=!1,k=["{","}"];return p(t)&&(M=!0,k=["[","]"]),_(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(c=" "+RegExp.prototype.toString.call(t)),x(t)&&(c=" "+Date.prototype.toUTCString.call(t)),S(t)&&(c=" "+d(t)),0!==s.length||M&&0!=t.length?n<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=M?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)T(t,String(s))?o.push(f(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,r,n,i,!0))})),o}(e,t,n,a,s):s.map((function(r){return f(e,t,n,a,r,M)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(l,c,k)):k[0]+c+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=g(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function g(e){return null===e}function y(e){return"number"===typeof e}function b(e){return"string"===typeof e}function v(e){return void 0===e}function w(e){return M(e)&&"[object RegExp]"===k(e)}function M(e){return"object"===typeof e&&null!==e}function x(e){return M(e)&&"[object Date]"===k(e)}function S(e){return M(e)&&("[object Error]"===k(e)||e instanceof Error)}function _(e){return"function"===typeof e}function k(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var n=t.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else o[e]=function(){};return o[e]},r.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("./support/types"),r.isArray=p,r.isBoolean=m,r.isNull=g,r.isNullOrUndefined=function(e){return null==e},r.isNumber=y,r.isString=b,r.isSymbol=function(e){return"symbol"===typeof e},r.isUndefined=v,r.isRegExp=w,r.types.isRegExp=w,r.isObject=M,r.isDate=x,r.types.isDate=x,r.isError=S,r.types.isNativeError=S,r.isFunction=_,r.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},r.isBuffer=e("./support/isBuffer");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",E(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!M(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!==typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,
2configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},r.promisify.custom=C,r.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(s.bind(null,null,e))}),(function(e){t.nextTick(O.bind(null,e,s))}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":487,"./support/types":488,_process:538,inherits:407}],490:[function(e,t,r){(function(r){(function(){"use strict";var n=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),s=e("call-bind/callBound"),a=e("gopd"),u=s("Object.prototype.toString"),l=e("has-tostringtag/shams")(),c="undefined"===typeof globalThis?r:globalThis,h=i(),d=s("String.prototype.slice"),f=Object.getPrototypeOf,p=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(h,l&&a&&f?function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=f(t),n=a(r,Symbol.toStringTag);if(!n){var i=f(r);n=a(i,Symbol.toStringTag)}m["$"+e]=o(n.get)}}:function(e){var t=new c[e],r=t.slice||t.set;r&&(m["$"+e]=o(r))}),t.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!l){var t=d(u(e),8,-1);return p(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=d(n,1)}catch(i){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(i){}})),t}(e):null}}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"available-typed-arrays":99,"call-bind":106,"call-bind/callBound":105,"for-each":387,gopd:391,"has-tostringtag/shams":396}],491:[function(e,t,r){(function(){"use strict";r.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(this)},{}],492:[function(e,t,r){(function(){"use strict";var t,n,i,o,s,a={}.hasOwnProperty;t=e("xmlbuilder"),n=e("./defaults").defaults,o=function(e){return"string"===typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},s=function(e){return"<![CDATA["+i(e)+"]]>"},i=function(e){return e.replace("]]>","]]]]><![CDATA[>")},r.Builder=function(){function e(e){var t,r,i;for(t in this.options={},r=n[.2])a.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)a.call(e,t)&&(i=e[t],this.options[t]=i)}return e.prototype.buildObject=function(e){var r,i,u,l,c,h;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n[.2].rootName?e=e[c=Object.keys(e)[0]]:c=this.options.rootName,h=this,u=function(e,t){var n,l,c,d,f,p;if("object"!==typeof t)h.options.cdata&&o(t)?e.raw(s(t)):e.txt(t);else if(Array.isArray(t)){for(d in t)if(a.call(t,d))for(f in l=t[d])c=l[f],e=u(e.ele(f),c).up()}else for(f in t)if(a.call(t,f))if(l=t[f],f===r){if("object"===typeof l)for(n in l)p=l[n],e=e.att(n,p)}else if(f===i)e=h.options.cdata&&o(l)?e.raw(s(l)):e.txt(l);else if(Array.isArray(l))for(d in l)a.call(l,d)&&(e="string"===typeof(c=l[d])?h.options.cdata&&o(c)?e.ele(f).raw(s(c)).up():e.ele(f,c).up():u(e.ele(f),c).up());else"object"===typeof l?e=u(e.ele(f),l).up():"string"===typeof l&&h.options.cdata&&o(l)?e=e.ele(f).raw(s(l)).up():(null==l&&(l=""),e=e.ele(f,l.toString()).up());return e},l=t.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(l,e).end(this.options.renderOpts)},e}()}).call(this)},{"./defaults":493,xmlbuilder:529}],493:[function(e,t,r){(function(){r.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],494:[function(e,t,r){(function(){"use strict";var t,n,i,o,s,a,u,l,c,h=function(e,t){return function(){return e.apply(t,arguments)}},d={}.hasOwnProperty;l=e("sax"),o=e("events"),t=e("./bom"),u=e("./processors"),c=e("timers").setImmediate,n=e("./defaults").defaults,s=function(e){return"object"===typeof e&&null!=e&&0===Object.keys(e).length},a=function(e,t,r){var n,i;for(n=0,i=e.length;n<i;n++)t=(0,e[n])(t,r);return t},i=function(e,t,r){var n;return(n=Object.create(null)).value=r,n.writable=!0,n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)},r.Parser=function(e){function o(e){var t,i,o;if(this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this),!(this instanceof r.Parser))return new r.Parser(e);for(t in this.options={},i=n[.2])d.call(i,t)&&(o=i[t],this.options[t]=o);for(t in e)d.call(e,t)&&(o=e[t],this.options[t]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(o,e),o.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),c(this.processAsync))}catch(r){if(t=r,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit
2(t)}},o.prototype.assignOrPush=function(e,t,r){return t in e?(e[t]instanceof Array||i(e,t,[e[t]]),e[t].push(r)):this.options.explicitArray?i(e,t,[r]):i(e,t,r)},o.prototype.reset=function(){var e,t,r,n,o;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(o=this,function(e){if(o.saxParser.resume(),!o.saxParser.errThrown)return o.saxParser.errThrown=!0,o.emit("error",e)}),this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit("end",e.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=function(r){return function(o){var s,u,l,c,h;if((l={})[t]="",!r.options.ignoreAttrs)for(s in h=o.attributes)d.call(h,s)&&(e in l||r.options.mergeAttrs||(l[e]={}),u=r.options.attrValueProcessors?a(r.options.attrValueProcessors,o.attributes[s],s):o.attributes[s],c=r.options.attrNameProcessors?a(r.options.attrNameProcessors,s):s,r.options.mergeAttrs?r.assignOrPush(l,c,u):i(l[e],c,u));return l["#name"]=r.options.tagNameProcessors?a(r.options.tagNameProcessors,o.name):o.name,r.options.xmlns&&(l[r.options.xmlnskey]={uri:o.uri,local:o.local}),n.push(l)}}(this),this.saxParser.onclosetag=function(e){return function(){var r,o,u,l,c,h,f,p,m,g;if(h=n.pop(),c=h["#name"],e.options.explicitChildren&&e.options.preserveChildrenOrder||delete h["#name"],!0===h.cdata&&(r=h.cdata,delete h.cdata),m=n[n.length-1],h[t].match(/^\s*$/)&&!r?(o=h[t],delete h[t]):(e.options.trim&&(h[t]=h[t].trim()),e.options.normalize&&(h[t]=h[t].replace(/\s{2,}/g," ").trim()),h[t]=e.options.valueProcessors?a(e.options.valueProcessors,h[t],c):h[t],1===Object.keys(h).length&&t in h&&!e.EXPLICIT_CHARKEY&&(h=h[t])),s(h)&&(h="function"===typeof e.options.emptyTag?e.options.emptyTag():""!==e.options.emptyTag?e.options.emptyTag:o),null!=e.options.validator&&(g="/"+function(){var e,t,r;for(r=[],e=0,t=n.length;e<t;e++)l=n[e],r.push(l["#name"]);return r}().concat(c).join("/"),function(){var t;try{h=e.options.validator(g,m&&m[c],h)}catch(r){return t=r,e.emit("error",t)}}()),e.options.explicitChildren&&!e.options.mergeAttrs&&"object"===typeof h)if(e.options.preserveChildrenOrder){if(m){for(u in m[e.options.childkey]=m[e.options.childkey]||[],f={},h)d.call(h,u)&&i(f,u,h[u]);m[e.options.childkey].push(f),delete h["#name"],1===Object.keys(h).length&&t in h&&!e.EXPLICIT_CHARKEY&&(h=h[t])}}else l={},e.options.attrkey in h&&(l[e.options.attrkey]=h[e.options.attrkey],delete h[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in h&&(l[e.options.charkey]=h[e.options.charkey],delete h[e.options.charkey]),Object.getOwnPropertyNames(h).length>0&&(l[e.options.childkey]=h),h=l;return n.length>0?e.assignOrPush(m,c,h):(e.options.explicitRoot&&(p=h,i(h={},c,p)),e.resultObject=h,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),r=function(e){return function(r){var i,o;if(o=n[n.length-1])return o[t]+=r,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==r.replace(/\\n
2/g,"").trim())&&(o[e.options.childkey]=o[e.options.childkey]||[],(i={"#name":"__text__"})[t]=r,e.options.normalize&&(i[t]=i[t].replace(/\s{2,}/g," ").trim()),o[e.options.childkey].push(i)),o}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(e){var t;if(t=r(e))return t.cdata=!0}},o.prototype.parseString=function(e,r){var n;null!=r&&"function"===typeof r&&(this.on("end",(function(e){return this.reset(),r(null,e)})),this.on("error",(function(e){return this.reset(),r(e)})));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,c(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(i){if(n=i,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},o.prototype.parseStringPromise=function(e){return new Promise((t=this,function(r,n){return t.parseString(e,(function(e,t){return e?n(e):r(t)}))}));var t},o}(o),r.parseString=function(e,t,n){var i,o;return null!=n?("function"===typeof n&&(i=n),"object"===typeof t&&(o=t)):("function"===typeof t&&(i=t),o={}),new r.Parser(o).parseString(e,i)},r.parseStringPromise=function(e,t){var n;return"object"===typeof t&&(n=t),new r.Parser(n).parseStringPromise(e)}}).call(this)},{"./bom":491,"./defaults":493,"./processors":495,events:386,sax:465,timers:484}],495:[function(e,t,r){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),r.normalize=function(e){return e.toLowerCase()},r.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},r.stripPrefix=function(t){return t.replace(e,"")},r.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},r.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(this)},{}],496:[function(e,t,r){(function(){"use strict";var t,n,i,o,s={}.hasOwnProperty;n=e("./defaults"),t=e("./builder"),i=e("./parser"),o=e("./processors"),r.defaults=n.defaults,r.processors=o,r.ValidationError=function(e){function t(e){this.message=e}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,Error),t}(),r.Builder=t.Builder,r.Parser=i.Parser,r.parseString=i.parseString,r.parseStringPromise=i.parseStringPromise}).call(this)},{"./builder":492,"./defaults":493,"./parser":494,"./processors":495}],497:[function(e,t,r){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],498:[function(e,t,r){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],499:[function(e,t,r){(function(){var e,r,n,i,o,s,a,u=[].slice,l={}.hasOwnProperty;e=function(){var e,t,r,n,i,s;if(s=arguments[0],i=2<=arguments.length?u.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(e=0,r=i.length;e<r;e++)if(null!=(n=i[e]))for(t in n)l.call(n,t)&&(s[t]=n[t]);return s},o=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},s=function(e){var t;return!!e&&("function"===(t=typeof e)||"object"===t)},n=function(e){return o(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(n(e))return!e.length;for(t in e)if(l.call(e,t))return!1;return!0},a=function(e){var t,r;return s(e)&&(r=Object.getPrototypeOf(e))&&(t=r.constructor)&&"function"===typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},r=function(e){return o(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=s,t.exports.isArray=n,t.exports.isEmpty=i,t.exports.isPlainObject=a,t.exports.getValue=r}).call(this)},{}],500:[function(e,t,r){(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],501:[function(e,t,r){(function(){var r;r=e("./NodeType"),e("./XMLNode"),t.exports=function(){function e(e,t,n){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));this.name=this.stringify.name(t),this.value=this.stringify.attValue(n),this.type=r.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value},e}()}).call(this)},{"./NodeType":498,"./XMLNode":520}],502:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;
2r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=r.CData,this.value=this.stringify.cdata(n)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],503:[function(e,t,r){(function(){var r,n={}.hasOwnProperty;r=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(r)}).call(this)},{"./XMLNode":520}],504:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=r.Comment,this.value=this.stringify.comment(n)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],505:[function(e,t,r){(function(){var r,n;r=e("./XMLDOMErrorHandler"),n=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new r,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(this)},{"./XMLDOMErrorHandler":506,"./XMLDOMStringList":508}],506:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(this)},{}],507:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],508:[function(e,t,r){(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(this)},{}],509:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i,o,s,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=r.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],510:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=r.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],511:[function(e,t,r){(function(){var r,n,i,o={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,o,s){if
2(t.__super__.constructor.call(this,e),null==o)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=r.EntityDeclaration,i(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],512:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=r.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],513:[function(e,t,r){(function(){var r,n,i,o={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,o,s){var a;t.__super__.constructor.call(this,e),i(n)&&(n=(a=n).version,o=a.encoding,s=a.standalone),n||(n="1.0"),this.type=r.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],514:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l,c={}.hasOwnProperty;l=e("./Utility").isObject,u=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLDTDAttList"),o=e("./XMLDTDEntity"),i=e("./XMLDTDElement"),s=e("./XMLDTDNotation"),a=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var o,s,a,u,c,h;if(t.__super__.constructor.call(this,e),this.type=r.DocType,e.children)for(s=0,a=(u=e.children).length;s<a;s++)if((o=u[s]).type===r.Element){this.name=o.name;break}this.documentObject=e,l(n)&&(n=(c=n).pubID,i=c.sysID),null==i&&(i=(h=[n,i])[0],n=h[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"entities",{get:function(){var e,t,n,i,o;for(i={},t=0,n=(o=this.children).length;t<n;t++)(e=o[t]).type!==r.EntityDeclaration||e.pe||(i[e.name]=e);return new a(i)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var e,t,n,i,o;for(i={},t=0,n=(o=this.children).length;t<n;t++)(e=o[t]).type===r.NotationDeclaration&&(i[e.name]=e);return new a(i)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(e,t){var r;return r=new i(this,e,t),this.children.push(r),this},t.prototype.attList=function(e,t,r,i,o){var s;return s=new n(this,e,t,r,i,o),this.children.push(s),this},t.prototype.entity=function(e,t){var r;return r=new o(this,!1,e,t),this.children.push(r),this},t.prototype.pEntity=function(e,t){var r;return r=new o(this,!0,e,t),this.children.push(r),this},t.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},t.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))}
2,t.prototype.ele=function(e,t){return this.element(e,t)},t.prototype.att=function(e,t,r,n,i){return this.attList(e,t,r,n,i)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.name===this.name&&e.publicId===this.publicId&&e.systemId===this.systemId},t}(u)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLNamedNodeMap":519,"./XMLNode":520}],515:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l={}.hasOwnProperty;u=e("./Utility").isPlainObject,i=e("./XMLDOMImplementation"),n=e("./XMLDOMConfiguration"),o=e("./XMLNode"),r=e("./NodeType"),a=e("./XMLStringifier"),s=e("./XMLStringWriter"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="#document",this.type=r.Document,this.documentURI=null,this.domConfig=new n,e||(e={}),e.writer||(e.writer=new s),this.options=e,this.stringify=new a(e)}return function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"implementation",{value:new i}),Object.defineProperty(t.prototype,"doctype",{get:function(){var e,t,n,i;for(t=0,n=(i=this.children).length;t<n;t++)if((e=i[t]).type===r.DocType)return e;return null}}),Object.defineProperty(t.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration?this.children[0].encoding:null}}),Object.defineProperty(t.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(t.prototype,"origin",{get:function(){return null}}),Object.defineProperty(t.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(t.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(t.prototype,"contentType",{get:function(){return null}}),t.prototype.end=function(e){var t;return t={},e?u(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},t.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},t.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(o)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLDOMConfiguration":505,"./XMLDOMImplementation":507,"./XMLNode":520,"./XMLStringWriter"
2:525,"./XMLStringifier":526}],516:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,b,v,w,M,x,S,_,k={}.hasOwnProperty;_=e("./Utility"),x=_.isObject,M=_.isFunction,S=_.isPlainObject,w=_.getValue,r=e("./NodeType"),f=e("./XMLDocument"),p=e("./XMLElement"),o=e("./XMLCData"),s=e("./XMLComment"),g=e("./XMLRaw"),v=e("./XMLText"),m=e("./XMLProcessingInstruction"),h=e("./XMLDeclaration"),d=e("./XMLDocType"),a=e("./XMLDTDAttList"),l=e("./XMLDTDEntity"),u=e("./XMLDTDElement"),c=e("./XMLDTDNotation"),i=e("./XMLAttribute"),b=e("./XMLStringifier"),y=e("./XMLStringWriter"),n=e("./WriterState"),t.exports=function(){function e(e,t,n){var i;this.name="?xml",this.type=r.Document,e||(e={}),i={},e.writer?S(e.writer)&&(i=e.writer,e.writer=new y):e.writer=new y,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new b(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(e){var t,n,i,o,s,a,u,l;switch(e.type){case r.CData:this.cdata(e.value);break;case r.Comment:this.comment(e.value);break;case r.Element:for(n in i={},u=e.attribs)k.call(u,n)&&(t=u[n],i[n]=t.value);this.node(e.name,i);break;case r.Dummy:this.dummy();break;case r.Raw:this.raw(e.value);break;case r.Text:this.text(e.value);break;case r.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(s=0,a=(l=e.children).length;s<a;s++)o=l[s],this.createChildNode(o),o.type===r.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(e,t,r){var n;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=w(e),null==t&&(t={}),t=w(t),x(t)||(r=(n=[t,r])[0],t=n[1]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},e.prototype.element=function(e,t,n){var i,o,s,a,u,l;if(this.currentNode&&this.currentNode.type===r.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(e)||x(e)||M(e))for(a=this.options.noValidation,this.options.noValidation=!0,(l=new f(this.options).element("TEMP_ROOT")).element(e),this.options.noValidation=a,o=0,s=(u=l.children).length;o<s;o++)i=u[o],this.createChildNode(i),i.type===r.Element&&this.up();else this.node(e,t,n);return this},e.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=w(e)),x(e))for(r in e)k.call(e,r)&&(n=e[r],this.attribute(r,n));else M(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.currentNode.attribs[e]=new i(this,e,""):null!=t&&(this.currentNode.attribs[e]=new i(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new o(this,e),this.onData(this.writer.cd
vendor: 5,105 bytes, line 2
2ata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new s(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new g(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var r,n,i,o,s;if(this.openCurrent(),null!=e&&(e=w(e)),null!=t&&(t=w(t)),Array.isArray(e))for(r=0,o=e.length;r<o;r++)n=e[r],this.instruction(n);else if(x(e))for(n in e)k.call(e,n)&&(i=e[n],this.instruction(n,i));else M(t)&&(t=t.apply()),s=new m(this,e,t),this.onData(this.writer.processingInstruction(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,r){var n;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return n=new h(this,e,t,r),this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,r){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,t,r),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var r;return this.openCurrent(),r=new u(this,e,t),this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,r,n,i){var o;return this.openCurrent(),o=new a(this,e,t,r,n,i),this.onData(this.writer.dtdAttList(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var r;return this.openCurrent(),r=new l(this,!1,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var r;return this.openCurrent(),r=new l(this,!0,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var r;return this.openCurrent(),r=new c(this,e,t),this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,i,o,s;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==r.Element||(this.root=e),i="",e.type===r.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,s=e.attribs)k.call(s,o)&&(t=s[o],i+=this.writer.attribute(t,this.writerOptions,this.currentLevel));i+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.children?(i+=" [",this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=">"),i+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=n.CloseTag,t=e.type===r.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,r){return this.node(e,t,r)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)}
2,e.prototype.e=function(e,t,r){return this.element(e,t,r)},e.prototype.n=function(e,t,r){return this.node(e,t,r)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLAttribute":501,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDocument":515,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLStringWriter":525,"./XMLStringifier":526,"./XMLText":527}],517:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=r.Dummy}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],518:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l,c={}.hasOwnProperty;l=e("./Utility"),u=l.isObject,a=l.isFunction,s=l.getValue,o=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var o,s,a,u;if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=r.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),e.type===r.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(s=0,a=(u=e.children).length;s<a;s++)if((o=u[s]).type===r.DocType){o.name=this.name;break}}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new i(this.attribs)),this.attributeMap}}),t.prototype.clone=function(){var e,t,r,n;for(t in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attribs={},n=this.attribs)c.call(n,t)&&(e=n[t],r.attribs[t]=e.clone());return r.children=[],this.children.forEach((function(e){var t;return(t=e.clone()).parent=r,r.children.push(t)})),r},t.prototype.attribute=function(e,t){var r,i;if(null!=e&&(e=s(e)),u(e))for(r in e)c.call(e,r)&&(i=e[r],this.attribute(r,i));else a(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.attribs[e]=new n(this,e,""):null!=t&&(this.attribs[e]=new n(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,r,n;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=s(e),Array.isArray(e))for(r=0,n=e.length;r<n;r++)t=e[r],delete this.attribs[t];else delete this.attribs[e];return this},t.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},t.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},t.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNodeNS=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},t.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},t.prototype.setIdAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttributeNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var r,n,i;if(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e))return!1;if(e.namespaceURI!==this.namespaceURI)return!1;if(e.prefix!==this.prefix)return!1;if(e.localName!==this.localName)return!1;if(e.attribs.length!==this.attribs.length)return!1;for(r=n=0,i=this.attribs.length-1;0<=i?n<=i:n>=i;r=0<=i?++n:--n)if(!this.attribs[r].isEqualNode(e.attribs[r]))return!1;return!0},t}(o)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLAttribute":501,"./XMLNamedNodeMap":519,"./XMLNode":520}],519:[function(e,t,r){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],520:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,b,v={}.hasOwnProperty;b=e("./Utility"),y=b.isObject,g=b.isFunction,m=b.isEmpty,p=b.getValue,l=null,i=null,o=null,s=null,a=null,d=null,f=null,h=null,u=null,n=null,c=null,r=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=e("./XMLElement"),i=e("./XMLCData"),o=e("./XMLComment"),s=e("./XMLDeclaration"),a=e("./XMLDocType"),d=e("./XMLRaw"),f=e("./XMLText"),h=e("./XMLProcessingInstruction"),u=e("./XMLDummy"),n=e("./NodeType"),c=e("./XMLNodeList"),e("./XMLNamedNodeMap"),r=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new c(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,r,i,o;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(o="",t=0,r=(i=this.children).length;t<r;t++)(e=i[t]).textContent&&(o+=e.textContent);return o}return null},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.setParent=function(e){var t,r,n,i,o;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),o=[],r=0,n=(i=this.children).length;r<n;r++)t=i[r],o.push(t.setParent(this));return o},t.prototype.element=function(e,t,r){var n,i,o,s,a,u,l,c,h,d,f;if(u=null,null===t&&null==r&&(t=(h=[{},null])[0],r=h[1]),null==t&&(t={}),t=p(t),y(t)||(r=(d=[t,r])[0],t=d[1]),null!=e&&(e=p(e)),Array.isArray(e))for(o=0,l=e.length;o<l;
2o++)i=e[o],u=this.element(i);else if(g(e))u=this.element(e.apply());else if(y(e)){for(a in e)if(v.call(e,a))if(f=e[a],g(f)&&(f=f.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))u=this.attribute(a.substr(this.stringify.convertAttKey.length),f);else if(!this.options.separateArrayItems&&Array.isArray(f)&&m(f))u=this.dummy();else if(y(f)&&m(f))u=this.element(a);else if(this.options.keepNullNodes||null!=f)if(!this.options.separateArrayItems&&Array.isArray(f))for(s=0,c=f.length;s<c;s++)i=f[s],(n={})[a]=i,u=this.element(n);else y(f)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?u=this.element(f):(u=this.element(a)).element(f):u=this.element(a,f);else u=this.dummy()}else u=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),r):this.node(e,t,r):this.dummy();if(null==u)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return u},t.prototype.insertBefore=function(e,t,r){var n,i,o,s,a;if(null!=e?e.type:void 0)return s=t,(o=e).setParent(this),s?(i=children.indexOf(s),a=children.splice(i),children.push(o),Array.prototype.push.apply(children,a)):children.push(o),o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,a),n},t.prototype.insertAfter=function(e,t,r){var n,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,o),n},t.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},t.prototype.node=function(e,t,r){var n,i;return null!=e&&(e=p(e)),t||(t={}),t=p(t),y(t)||(r=(i=[t,r])[0],t=i[1]),n=new l(this,e,t),null!=r&&n.text(r),this.children.push(n),n},t.prototype.text=function(e){var t;return y(e)&&this.element(e),t=new f(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new i(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new o(this,e),this.children.push(t),this},t.prototype.commentBefore=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.commentAfter=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.raw=function(e){var t;return t=new d(this,e),this.children.push(t),this},t.prototype.dummy=function(){return new u(this)},t.prototype.instruction=function(e,t){var r,n,i,o,s;if(null!=e&&(e=p(e)),null!=t&&(t=p(t)),Array.isArray(e))for(o=0,s=e.length;o<s;o++)r=e[o],this.instruction(r);else if(y(e))for(r in e)v.call(e,r)&&(n=e[r],this.instruction(r,n));else g(t)&&(t=t.apply()),i=new h(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.instructionAfter=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.declaration=function(e,t,r){var i,o;return i=this.document(),o=new s(i,e,t,r),0===i.children.length?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},t.prototype.dtd=function(e,t){var r,i,o,s,u,l,c,h,d;for(r=this.document(),i=new a(r,e,t),o=s=0,l=(h=r.children).length;s<l;o=++s)if(h[o].type===n.DocType)return r.children[o]=i,i;for(o=u=0,c=(d=r.children).length;u<c;o=++u)if(d[o].isRoot)return r.children.splice(o,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;
2for(e=this;e;){if(e.type===n.Document)return e.rootObject;if(e.isRoot)return e;e=e.parent}},t.prototype.document=function(){var e;for(e=this;e;){if(e.type===n.Document)return e;e=e.parent}},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e;if((e=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){var e;if(-1===(e=this.parent.children.indexOf(this))||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t;return(t=e.root().clone()).parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){var t,r;return null!=(e=e||this.name)||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(r=this.parent)?r.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,r){return this.element(e,t,r)},t.prototype.nod=function(e,t,r){return this.node(e,t,r)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},t.prototype.e=function(e,t,r){return this.element(e,t,r)},t.prototype.n=function(e,t,r){return this.node(e,t,r)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t;return this===e?0:this.document()!==e.document()?(t=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?t|=r.Preceding:t|=r.Following,t):this.isAncestor(e)?r.Contains|r.Preceding:this.isDescendant(e)?r.Contains|r.Following:this.isPreceding(e)?r.Preceding:r.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++){if(e===(t=i[r]))return!0;
2if(t.isDescendant(e))return!0}return!1},t.prototype.isAncestor=function(e){return e.isDescendant(this)},t.prototype.isPreceding=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t<r},t.prototype.isFollowing=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t>r},t.prototype.treePosition=function(e){var t,r;return r=0,t=!1,this.foreachTreeNode(this.document(),(function(n){if(r++,!t&&n===e)return t=!0})),t?r:-1},t.prototype.foreachTreeNode=function(e,t){var r,n,i,o,s;for(e||(e=this.document()),n=0,i=(o=e.children).length;n<i;n++){if(s=t(r=o[n]))return s;if(s=this.foreachTreeNode(r,t))return s}},t}()}).call(this)},{"./DocumentPosition":497,"./NodeType":498,"./Utility":499,"./XMLCData":502,"./XMLComment":504,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDummy":517,"./XMLElement":518,"./XMLNamedNodeMap":519,"./XMLNodeList":521,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLText":527}],521:[function(e,t,r){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e}()}).call(this)},{}],522:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.type=r.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.target===this.target},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],523:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.type=r.Raw,this.value=this.stringify.raw(n)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],524:[function(e,t,r){(function(){var r,n,i,o={}.hasOwnProperty;r=e("./NodeType"),i=e("./XMLWriterBase"),n=e("./WriterState"),t.exports=function(e){function t(e,r){this.stream=e,t.__super__.constructor.call(this,r)}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.endline=function(e,r,i){return e.isLastRootNode&&r.state===n.CloseTag?"":t.__super__.endline.call(this,e,r,i)},t.prototype.document=function(e,t){var r,n,i,o,s,a,u,l,c;for(n=i=0,s=(u=e.children).length;i<s;n=++i)(r=u[n]).isLastRootNode=n===e.children.length-1;for(t=this.filterOptions(t),c=[],o=0,a=(l=e.children).length;o<a;o++)r=l[o],c.push(this.writeChildNode(r,t,0));return c},t.prototype.attribute=function(e,r,n){return this.stream.write(t.__super__.attribute.call(this,e,r,n))},t.prototype.cdata=function(e,r,n){return this.stream.write(t.__super__.cdata.call(this,e,r,n))},t.prototype.comment=function(e,r,n){return this.stream.write(t.__super__.comment.call(this,e,r,n))},t.prototype.declaration=function(e,r,n){return this.stream.write(t.__super__.declaration.call(this,e,r,n))},t.prototype.docType=function(e,t,r){var i,o,s,a;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,o=0,s=(a=e.children).length;o<s;o++)i=a[o],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write("]")}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+">"),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)},t.prototype.element=function(e,t,i){var s,a,u,l,c,h,d,f,p;for(d in i||(i=0),this.openNode(e,t,i),t.state=n.OpenTag,this.stream.write(this.indent(e,t,i)+"<"+e.name),f=e.attribs)o.call(f,d)&&(s=f[d],this.attribute(s,t,i));if(l=0===(u=e.children.length)?null:e.children[0],0===u||e.children.every((function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=n.CloseTag,this.stream.write("</"+e.name+">")):(t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==u||l.type!==r.Text&&l.type!==r.Raw||null==l.value){for(this.stream.write(">"+this.endline(e,t,i)),t.state=n.InsideTag,c=0,h=(p=e.children).length;c<h;c++)a=p[c],this.writeChildNode(a,t,i+1);t.state=n.CloseTag,this.stream.write(this.indent(e,t,i)+"</"+e.name+">")}else this.stream.write(">"),t.state=n.InsideTag,t.suppressPrettyCount++,this.writeChildNode(l,t,i+1),t.suppressPrettyCount--,t.state=n.CloseTag,this.stream.write("</"+e.name+">");return this.stream.write(this.endline(e,t,i)),t.state=n.None,this.closeNode(e,t,i)},t.prototype.processingInstruction=function(e,r,n){return this.stream.write(t.__super__.processingInstruction.call(this,e,r,n))},t.prototype.raw=function(e,r,n){return this.stream.write(t.__super__.raw.call(this,e,r,n))},t.prototype.text=function(e,r,n){return this.stream.write(t.__super__.text.call(this,e,r,n))},t.prototype.dtdAttList=function(e,r,n){return this.stream.write(t.__super__.dtdAttList.call(this,e,r,n))},t.prototype.dtdElement=function(e,r,n){return this.stream.write(t.__super__.dtdElement.call(this,e,r,n))},t.prototype.dtdEntity=function(e,r,n){return this.stream.write(t.__super__.dtdEntity.call(this,e,r,n))},t.prototype.dtdNotation=function(e,r,n){return this.stream.write(t.__super__.dtdNotation.call(this,e,r,n))},t}(i)}).call(this)},{"./NodeType":498,"./WriterState":500,"./XMLWriterBase":528}],525:[function(e,t,r){(function(){var r,n={}.hasOwnProperty;r=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.document=function(e,t){var r,n,i,o,s;for(t=this.filterOptions(t),o="",n=0,i=(s=e.children).length;n<i;n++)r=s[n],o+=this.writeChildNode(r,t,0);return t.pretty&&o.slice(-t.newline.length)===t.newline&&(o=o.slice(0,-t.newline.length)),o},t}(r)}
2).call(this)},{"./XMLWriterBase":528}],526:[function(e,t,r){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;t.exports=function(){function t(t){var n,i,o;for(n in this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.options=t,this.options.version||(this.options.version="1.0"),i=t.stringify||{})r.call(i,n)&&(o=i[n],this[n]=o)}return t.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},t.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},t.prototype.cdata=function(e){return this.options.noValidation?e:(e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+r.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+r.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},t}()}).call(this)},{}],527:[function(e,t,r){(function(){var r,n,i={}.hasOwnProperty;
2r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=r.Text,this.value=this.stringify.text(n)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"wholeText",{get:function(){var e,t,r;for(r="",t=this.previousSibling;t;)r=t.data+r,t=t.previousSibling;for(r+=this.data,e=this.nextSibling;e;)r+=e.data,e=e.nextSibling;return r}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},t.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],528:[function(e,t,r){(function(){var r,n,i,o={}.hasOwnProperty;i=e("./Utility").assign,r=e("./NodeType"),e("./XMLDeclaration"),e("./XMLDocType"),e("./XMLCData"),e("./XMLComment"),e("./XMLElement"),e("./XMLRaw"),e("./XMLText"),e("./XMLProcessingInstruction"),e("./XMLDummy"),e("./XMLDTDAttList"),e("./XMLDTDElement"),e("./XMLDTDEntity"),e("./XMLDTDNotation"),n=e("./WriterState"),t.exports=function(){function e(e){var t,r,n;for(t in e||(e={}),this.options=e,r=e.writer||{})o.call(r,t)&&(n=r[t],this["_"+t]=this[t],this[t]=n)}return e.prototype.filterOptions=function(e){var t,r,o,s,a,u,l,c;return e||(e={}),e=i({},this.options,e),(t={writer:this}).pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=null!=(r=e.indent)?r:" ",t.newline=null!=(o=e.newline)?o:"\n",t.offset=null!=(s=e.offset)?s:0,t.dontPrettyTextNodes=null!=(a=null!=(u=e.dontPrettyTextNodes)?u:e.dontprettytextnodes)?a:0,t.spaceBeforeSlash=null!=(l=null!=(c=e.spaceBeforeSlash)?c:e.spacebeforeslash)?l:"",!0===t.spaceBeforeSlash&&(t.spaceBeforeSlash=" "),t.suppressPrettyCount=0,t.user={},t.state=n.None,t},e.prototype.indent=function(e,t,r){var n;return!t.pretty||t.suppressPrettyCount?"":t.pretty&&(n=(r||0)+t.offset+1)>0?new Array(n).join(t.indent):""},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,r){var n;return this.openAttribute(e,t,r),n=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),n},e.prototype.cdata=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<![CDATA[",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+="]]>"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.comment=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"\x3c!-- ",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=" --\x3e"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.declaration=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?xml",t.state=n.InsideTag,i+=' version="'+e.version+'"',null!=e.encoding&&(i+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(i+=' standalone="'+e.standalone+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.docType=function(e,t,r){var i,o,s,a,u;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,a=this.indent(e,t,r),a+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(a+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(a+=" [",a+=this.endline(e,t,r),t.state=n.InsideTag,o=0,s=(u=e.children).length;o<s;o++)i=u[o],a+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,a+="]"}return t.state=n.CloseTag,a+=t.spaceBeforeSlash+">",a+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),a},e.prototype.element=function(e,t,i){var s,a,u,l,c,h,d,f,p,m,g,y,b,v;for(p in i||(i=0),m=!1,g="",this.openNode(e,t,i),t.state=n.OpenTag,g+=this.indent(e,t,i)+"<"+e.name,y=e.attribs)o.call(y,p)&&(s=y[p],g+=this.attribute(s,t,i));if(l=0===(u=e.children.length)?null:e.children[0],0===u||e.children.every((function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value})))t.allowEmpty?(g+=">",t.state=n.CloseTag,g+="</"+e.name+">"+this.endline(e,t,i)):(t.state=n.CloseTag,g+=t.spaceBeforeSlash+"/>"+this.endline(e,t,i));else if(!t.pretty||1!==u||l.type!==r.Text&&l.type!==r.Raw||null==l.value){if(t.dontPrettyTextNodes)for(c=0,d=(b=e.children).length;c<d;c++)if(((a=b[c]).type===r.Text||a.type===r.Raw)&&null!=a.value){t.suppressPrettyCount++,m=!0;break}for(g+=">"+this.endline(e,t,i),t.state=n.InsideTag,h=0,f=(v=e.children).length;h<f;h++)a=v[h],g+=this.writeChildNode(a,t,i+1);t.state=n.CloseTag,g+=this.indent(e,t,i)+"</"+e.name+">",m&&t.suppressPrettyCount--,g+=this.endline(e,t,i),t.state=n.None}else g+=">",t.state=n.InsideTag,t.suppressPrettyCount++,m=!0,g+=this.writeChildNode(l,t,i+1),t.suppressPrettyCount--,m=!1,t.state=n.CloseTag,g+="</"+e.name+">"+this.endline(e,t,i);return this.closeNode(e,t,i),g},e.prototype.writeChildNode=function(e,t,n){switch(e.type){case r.CData:return this.cdata(e,t,n);case r.Comment:return this.comment(e,t,n);
2case r.Element:return this.element(e,t,n);case r.Raw:return this.raw(e,t,n);case r.Text:return this.text(e,t,n);case r.ProcessingInstruction:return this.processingInstruction(e,t,n);case r.Dummy:return"";case r.Declaration:return this.declaration(e,t,n);case r.DocType:return this.docType(e,t,n);case r.AttributeDeclaration:return this.dtdAttList(e,t,n);case r.ElementDeclaration:return this.dtdElement(e,t,n);case r.EntityDeclaration:return this.dtdEntity(e,t,n);case r.NotationDeclaration:return this.dtdNotation(e,t,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?",t.state=n.InsideTag,i+=e.target,e.value&&(i+=" "+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.raw=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.text=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdAttList=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ATTLIST",t.state=n.InsideTag,i+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(i+=" "+e.defaultValueType),e.defaultValue&&(i+=' "'+e.defaultValue+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdElement=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ELEMENT",t.state=n.InsideTag,i+=" "+e.name+" "+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdEntity=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ENTITY",t.state=n.InsideTag,e.pe&&(i+=" %"),i+=" "+e.name,e.value?i+=' "'+e.value+'"':(e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.nData&&(i+=" NDATA "+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdNotation=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!NOTATION",t.state=n.InsideTag,i+=" "+e.name,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?i+=' PUBLIC "'+e.pubID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDummy":517,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLText":527}],529:[function(e,t,r){(function(){var r,n,i,o,s,a,u,l,c,h;h=e("./Utility"),l=h.assign,c=h.isFunction,i=e("./XMLDOMImplementation"),o=e("./XMLDocument"),s=e("./XMLDocumentCB"),u=e("./XMLStringWriter"),a=e("./XMLStreamWriter"),r=e("./NodeType"),n=e("./WriterState"),t.exports.create=function(e,t,r,n){var i,s;if(null==e)throw new Error("Root element needs a name.");return n=l({}
2,t,r,n),s=(i=new o(n)).element(e),n.headless||(i.declaration(n),null==n.pubID&&null==n.sysID||i.dtd(n)),s},t.exports.begin=function(e,t,r){var n;return c(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t?new s(e,t,r):new o(e)},t.exports.stringWriter=function(e){return new u(e)},t.exports.streamWriter=function(e,t){return new a(e,t)},t.exports.implementation=new i,t.exports.nodeType=r,t.exports.writerState=n}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLDOMImplementation":507,"./XMLDocument":515,"./XMLDocumentCB":516,"./XMLStreamWriter":524,"./XMLStringWriter":525}],530:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},{}],531:[function(e,t,r){"use strict";e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.slice.js");var n=e("buffer").Buffer,i={sha1:e("./sha"),sha256:e("./sha256"),md5:e("./md5")},o=n.alloc(64);function s(e,t){var r=i[e=e||"sha1"],s=[];return r||a("algorithm:",e,"is not yet supported"),{update:function(e){return n.isBuffer(e)||(e=n.from(e)),s.push(e),e.length,this},digest:function(e){var i=n.concat(s),a=t?function(e,t,r){n.isBuffer(t)||(t=n.from(t)),n.isBuffer(r)||(r=n.from(r)),t.length>64?t=e(t):t.length<64&&(t=n.concat([t,o],64));for(var i=n.alloc(64),s=n.alloc(64),a=0;a<64;a++)i[a]=54^t[a],s[a]=92^t[a];var u=e(n.concat([i,r]));return e(n.concat([s,u]))}(r,t,i):r(i);return s=null,e?a.toString(e):a}}}function a(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}o.fill(0),r.createHash=function(e){return s(e)},r.createHmac=function(e,t){return s(e,t)},r.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},r.createCipher=function(){a("sorry,createCipher is not implemented yet")},r.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},r.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},r.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},r.createSign=function(){a("sorry,createSign is not implemented yet")},r.createVerify=function(){a("sorry,createVerify is not implemented yet")},r.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},r.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":533,"./sha":534,"./sha256":535,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],532:[function(e,t,r){"use strict";e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js");var n=e("buffer").Buffer,i=n.alloc(4);i.fill(0),t.exports={hash:function(e,t,r,o){return n.isBuffer(e)||(e=n.from(e)),function(e,t,r){for(var i=n.alloc(t),o=r?i.writeInt32BE:i.writeInt32LE,s=0;s<e.length;s++)o.call(i,e[s],4*s,!0);return i}(t(function(e,t){if(e.length%4!==0){var r=e.length+(4-e.length%4);e=n.concat([e,i],r)}for(var o=[],s=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=4)o.push(s.call(e,a));return o}(e,o),8*e.length),r,o)}}},{buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311}],533:[function(e,t,r){"use strict";var n=e("./helpers");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,h=0;h<e.length;h+=16){var d=r,f=n,p=i,m=o;r=s(r,n,i,o,e[h+0],7,-680876936),o=s(o,r,n,i,e[h+1],12,-389564586),i=s(i,o,r,n,e[h+2],17,606105819),n=s(n,i,o,r,e[h+3],22,-1044525330),r=s(r,n,i,o,e[h+4],7,-176418897),o=s(o,r,n,i,e[h+5],12,1200080426),i=s(i,o,r,n,e[h+6],17,-1473231341),n=s(n,i,o,r,e[h+7],22,-45705983),r=s(r,n,i,o,e[h+8],7,1770035416),o=s(o,r,n,i,e[h+9],12,-1958414417),i=s(i,o,r,n,e[h+10],17,-42063),n=s(n,i,o,r,e[h+11],22,-1990404162),r=s(r,n,i,o,e[h+12],7,1804603682),o=s(o,r,n,i,e[h+13],12,-40341101),i=s(i,o,r,n,e[h+14],17,-1502002290),r=a(r,n=s(n,i,o,r,e[h+15],22,1236535329),i,o,e[h+1],5,-165796510),o=a(o,r,n,i,e[h+6],9,-1069501632),i=a(i,o,r,n,e[h+11],14,643717713),n=a(n,i,o,r,e[h+0],20,-373897302),r=a(r,n,i,o,e[h+5],5,-701558691),o=a(o,r,n,i,e[h+10],9,38016083),i=a(i,o,r,n,e[h+15],14,-660478335),n=a(n,i,o,r,e[h+4],20,-405537848),r=a(r,n,i,o,e[h+9],5,568446438),o=a(o,r,n,i,e[h+14],9,-1019803690),i=a(i,o,r,n,e[h+3],14,-187363961),n=a(n,i,o,r,e[h+8],20,1163531501),r=a(r,n,i,o,e[h+13],5,-1444681467),o=a(o,r,n,i,e[h+2],9,-51403784),i=a(i,o,r,n,e[h+7],14,1735328473),r=u(r,n=a(n,i,o,r,e[h+12],20,-1926607734),i,o,e[h+5],4,-378558),o=u(o,r,n,i,e[h+8],11,-2022574463),i=u(i,o,r,n,e[h+11],16,1839030562),n=u(n,i,o,r,e[h+14],23,-35309556),r=u(r,n,i,o,e[h+1],4,-1530992060),o=u(o,r,n,i,e[h+4],11,1272893353),i=u(i,o,r,n,e[h+7],16,-155497632),n=u(n,i,o,r,e[h+10],23,-1094730640),r=u(r,n,i,o,e[h+13],4,681279174),o=u(o,r,n,i,e[h+0],11,-358537222),i=u(i,o,r,n,e[h+3],16,-722521979),n=u(n,i,o,r,e[h+6],23,76029189),r=u(r,n,i,o,e[h+9],4,-640364487),o=u(o,r,n,i,e[h+12],11,-421815835),i=u(i,o,r,n,e[h+15],16,530742520),r=l(r,n=u(n,i,o,r,e[h+2],23,-995338651),i,o,e[h+0],6,-198630844),o=l(o,r,n,i,e[h+7],10,1126891415),i=l(i,o,r,n,e[h+14],15,-1416354905),n=l(n,i,o,r,e[h+
25],21,-57434055),r=l(r,n,i,o,e[h+12],6,1700485571),o=l(o,r,n,i,e[h+3],10,-1894986606),i=l(i,o,r,n,e[h+10],15,-1051523),n=l(n,i,o,r,e[h+1],21,-2054922799),r=l(r,n,i,o,e[h+8],6,1873313359),o=l(o,r,n,i,e[h+15],10,-30611744),i=l(i,o,r,n,e[h+6],15,-1560198380),n=l(n,i,o,r,e[h+13],21,1309151649),r=l(r,n,i,o,e[h+4],6,-145523070),o=l(o,r,n,i,e[h+11],10,-1120210379),i=l(i,o,r,n,e[h+2],15,718787259),n=l(n,i,o,r,e[h+9],21,-343485551),r=c(r,d),n=c(n,f),i=c(i,p),o=c(o,m)}return Array(r,n,i,o)}function o(e,t,r,n,i,o){return c((s=c(c(t,e),c(n,o)))<<(a=i)|s>>>32-a,r);var s,a}function s(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function u(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function l(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}function c(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n.hash(e,i,16)}},{"./helpers":532}],534:[function(e,t,r){"use strict";var n=e("./helpers");function i(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r=Array(80),n=1732584193,i=-271733879,l=-1732584194,c=271733878,h=-1009589776,d=0;d<e.length;d+=16){for(var f=n,p=i,m=l,g=c,y=h,b=0;b<80;b++){r[b]=b<16?e[d+b]:u(r[b-3]^r[b-8]^r[b-14]^r[b-16],1);var v=a(a(u(n,5),o(b,i,l,c)),a(a(h,r[b]),s(b)));h=c,c=l,l=u(i,30),i=n,n=v}n=a(n,f),i=a(i,p),l=a(l,m),c=a(c,g),h=a(h,y)}return Array(n,i,l,c,h)}function o(e,t,r,n){return e<20?t&r|~t&n:e<40?t^r^n:e<60?t&r|t&n|r&n:t^r^n}function s(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function a(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function u(e,t){return e<<t|e>>>32-t}t.exports=function(e){return n.hash(e,i,20,!0)}},{"./helpers":532}],535:[function(e,t,r){"use strict";var n=e("./helpers"),i=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},o=function(e,t){return e>>>t|e<<32-t},s=function(e,t){return e>>>t},a=function(e,t,r){return e&t^~e&r},u=function(e,t,r){return e&t^e&r^t&r},l=function(e){return o(e,2)^o(e,13)^o(e,22)},c=function(e){return o(e,6)^o(e,11)^o(e,25)},h=function(e){return o(e,7)^o(e,18)^s(e,3)},d=function(e,t){var r,n,d,f,p,m,g,y,b,v,w,M=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),x=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),S=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var _=0;_<e.length;_+=16){r=x[0],n=x[1],d=x[2],f=x[3],p=x[4],m=x[5],g=x[6],y=x[7];for(var k=0;k<64;k++)S[k]=k<16?e[k+_]:i(i(i((w=S[k-2],o(w,17)^o(w,19)^s(w,10)),S[k-7]),h(S[k-15])),S[k-16]),b=i(i(i(i(y,c(p)),a(p,m,g)),M[k]),S[k]),v=i(l(r),u(r,n,d)),y=g,g=m,m=p,p=i(f,b),f=d,d=n,n=r,r=i(b,v);x[0]=i(r,x[0]),x[1]=i(n,x[1]),x[2]=i(d,x[2]),x[3]=i(f,x[3]),x[4]=i(p,x[4]),x[5]=i(m,x[5]),x[6]=i(g,x[6]),x[7]=i(y,x[7])}return x};t.exports=function(e){return n.hash(e,d,32,!0)}},{"./helpers":532}],536:[function(e,t,r){"use strict";t.exports=function(){return function(){}}},{}],537:[function(e,t,r){(function(r){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof")),i=e("stream").Stream,o=e("../lib/common/utils/isArray").isArray;t.exports.string=function(e){return"string"===typeof e},t.exports.array=o,t.exports.buffer=r.isBuffer,t.exports.writableStream=function(e){return function(e){return e instanceof i}(e)&&"function"===typeof e._write&&"object"===(0,n.default)(e._writableState)}}).call(this)}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":67,"../node_modules/is-buffer/index.js":409,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,stream:468}],538:[function(e,t,r){"use strict";var n=e("immediate"),i=t.exports={};function o(){}i.nextTick=n,i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=o,i.addListener=o,i.once=o,i.off=o,i.removeListener=o,i.removeAllListeners=o,i.emit=o,i.prependListener=o,i.prependOnceListener=o,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{immediate:401}],539:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js");var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),s=e("builtin-status-codes"),a=e("url"),u=r;u.request=function(e,r){e="string"===typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,u=e.hostname||e.host,l=e.port,c=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?s+"//"+u:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new n(e);return r&&h.on("response",r),h},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){}
2,u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/request":541,"./lib/response":542,"builtin-status-codes":104,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.search.js":346,url:543,xtend:530}],540:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array-buffer.constructor.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.array.slice.js"),r.fetch=u(t.fetch)&&u(t.ReadableStream),r.writableStream=u(t.WritableStream),r.abortController=u(t.AbortController),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(l){}var n;function i(){if(void 0!==n)return n;if(t.XMLHttpRequest){n=new t.XMLHttpRequest;try{n.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(l){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(l){}return!1}var s="undefined"!==typeof t.ArrayBuffer,a=s&&u(t.ArrayBuffer.prototype.slice);function u(e){return"function"===typeof e}r.arraybuffer=r.fetch||s&&o("arraybuffer"),r.msstream=!r.fetch&&a&&o("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&s&&o("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!i()&&u(i().overrideMimeType),r.vbArray=u(t.VBArray),n=null}).call(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":308,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333}],541:[function(e,t,r){(function(r,n,i){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.promise.js");var o=e("./capability"),s=e("inherits"),a=e("./response"),u=e("readable-stream"),l=e("to-arraybuffer"),c=a.IncomingMessage,h=a.readyStates,d=t.exports=function(e){var t,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}(t,n),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};s(d,u.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===f.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,s=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=o.arraybuffer?l(i.concat(e._body)):o.blobConstructor?new n.Blob(e._body.map((function(e){return l(e)})),{type:(s["content-type"]||{}).value||""}):i.concat(e._body).toString());var u=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach((function(e){u.push([t,e])})):u.push([t,r])})),"fetch"===e._mode){var c=null;if(o.abortController){var d=new AbortController;c=d.signal,e._fetchAbortController=d,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:c}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(p){return void r.nextTick((function(){e.emit("error",p)}))}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain;
2 charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case h.LOADING:case h.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(p){return void r.nextTick((function(){e.emit("error",p)}))}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,n.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,r){"function"===typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":540,"./response":542,_process:538,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380,inherits:407,"readable-stream":463,"to-arraybuffer":485}],542:[function(e,t,r){(function(t,n,i){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js"),e("core-js/modules/es.array.slice.js");var o=e("./capability"),s=e("inherits"),a=e("readable-stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=r.IncomingMessage=function(e,r,s,u){var l=this;if(a.Readable.call(l),l._mode=s,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){t.nextTick((function(){l.emit("close")}))})),"fetch"===s){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEac
2h((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return new Promise((function(t,r){l._destroyed?r():l.push(new i(e))?t():l._resumeFetch=t}))},close:function(){n.clearTimeout(u),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void r.body.pipeTo(c).catch((function(e){n.clearTimeout(u),l._destroyed||l.emit("error",e)}))}catch(p){}}var h=r.body.getReader();!function e(){h.read().then((function(t){if(!l._destroyed){if(t.done)return n.clearTimeout(u),void l.push(null);l.push(new i(t.value)),e()}})).catch((function(e){n.clearTimeout(u),l._destroyed||l.emit("error",e)}))}()}else if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var f=d.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}};s(l,a.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(c){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(c){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new i(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);e.push(s)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;r=t.response,e.push(new i(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(new i(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var l=new n.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":540,_process:538,buffer:103,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.split.js":347,"core-js/modules/es.typed-array.copy-within.js":356,"core-js/modules/es.typed-array.every.js":357,"core-js/modules/es.typed-array.fill.js":358,"core-js/modules/es.typed-array.filter.js":359,"core-js/modules/es.typed-array.find-index.js":360,"core-js/modules/es.typed-array.find.js":361,"core-js/modules/es.typed-array.for-each.js":362,"core-js/modules/es.typed-array.includes.js":363,"core-js/modules/es.typed-array.index-of.js":364,"core-js/modules/es.typed-array.iterator.js":365,"core-js/modules/es.typed-array.join.js":366,"core-js/modules/es.typed-array.last-index-of.js":367,"core-js/modules/es.typed-array.map.js":368,"core-js/modules/es.typed-array.reduce-right.js":369,"core-js/modules/es.typed-array.reduce.js":370,"core-js/modules/es.typed-array.reverse.js":371,"core-js/modules/es.typed-array.set.js":372,"core-js/modules/es.typed-array.slice.js":373,"core-js/modules/es.typed-array.some.js":374,"core-js/modules/es.typed-array.sort.js":375,"core-js/modules/es.typed-array.subarray.js":376,"core-js/modules/es.typed-array.to-locale-string.js":377,"core-js/modules/es.typed-array.to-string.js":378,"core-js/modules/es.typed-array.uint8-array.js":379,"core-js/modules/web.dom-collections.for-each.js":380,inherits:407,"readable-stream":463}],543:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.
vendor: 4,304 bytes, line 2
2concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js");var i=e("punycode"),o=e("./util");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=w,r.resolve=function(e,t){return w(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?w(e,!1,!0).resolveObject(t):t},r.format=function(e){return o.isString(e)&&(e=w(e)),e instanceof s?e.format():s.prototype.format.call(e)},r.Url=s;var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("querystring");function w(e,t,r){if(e&&o.isObject(e)&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,n.default)(e));var s=e.indexOf("?"),u=-1!==s&&s<e.indexOf("#")?"?":"#",c=e.split(u);c[0]=c[0].replace(/\\/g,"/");var w=e=c.join(u);if(w=w.trim(),!r&&1===e.split("#").length){var M=l.exec(w);if(M)return this.path=w,this.href=w,this.pathname=M[1],M[2]?(this.search=M[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=a.exec(w);if(x){var S=(x=x[0]).toLowerCase();this.protocol=S,w=w.substr(x.length)}if(r||x||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===w.substr(0,2);!_||x&&y[x]||(w=w.substr(2),this.slashes=!0)}if(!y[x]&&(_||x&&!b[x])){for(var k,A,j=-1,E=0;E<f.length;E++)-1!==(T=w.indexOf(f[E]))&&(-1===j||T<j)&&(j=T);for(-1!==(A=-1===j?w.lastIndexOf("@"):w.lastIndexOf("@",j))&&(k=w.slice(0,A),w=w.slice(A+1),this.auth=decodeURIComponent(k)),j=-1,E=0;E<d.length;E++){var T;-1!==(T=w.indexOf(d[E]))&&(-1===j||T<j)&&(j=T)}-1===j&&(j=w.length),this.host=w.slice(0,j),w=w.slice(j),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var O=this.hostname.split("."),R=(E=0,O.length);E<R;E++){var I=O[E];if(I&&!I.match(p)){for(var B="",P=0,N=I.length;P<N;P++)I.charCodeAt(P)>127?B+="x":B+=I[P];if(!B.match(p)){var D=O.slice(0,E),U=O.slice(E+1),L=I.match(m);L&&(D.push(L[1]),U.unshift(L[2])),U.length&&(w="/"+U.join(".")+w),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=i.toASCII(this.hostname));var F=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[S])for(E=0,R=h.length;E<R;E++){var z=h[E];if(-1!==w.indexOf(z)){var V=encodeURIComponent(z);V===z&&(V=escape(z)),w=w.split(z).join(V)}}var H=w.indexOf("#");-1!==H&&(this.hash=w.substr(H),w=w.slice(0,H));var K=w.indexOf("?");if(-1!==K?(this.search=w.substr(K),this.query=w.substr(K+1),t&&(this.query=v.parse(this.query)),w=w.slice(0,K)):t&&(this.search="",this.query={}),w&&(this.pathname=w),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var G=this.search||"";this.path=F+G}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=v.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&
2!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(o.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var a=n[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(r[c]=e[c])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var f=h[d];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",g=r.search||"";r.path=m+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),M=w||v||r.host&&e.pathname,x=M,S=r.pathname&&r.pathname.split("/")||[],_=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),M=M&&(""===p[0]||""===S[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search))return _&&(r.hostname=r.host=S.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift())),r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,j=0,E=S.length;E>=0;E--)"."===(k=S[E])?S.splice(E,1):".."===k?(S.splice(E,1),j++):j&&(S.splice(E,1),j--);if(!M&&!x)for(;j--;j)S.unshift("..");!M||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var T,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);return _&&(r.hostname=r.host=C?"":S.length?S.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift())),(M=M||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":544,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.array.splice.js":321,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.search.js":346,"core-js/modules/es.string.split.js":347,"core-js/modules/es.string.trim.js":349,punycode:443,querystring:451}],544:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===(0,n.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91}],545:[function(e,t,r){"use strict";e("core-js/modules/es.number.constructor.js"),r.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},r.escape=e("escape-html"),r.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":324,"escape-html":385}],546:[function(e,t,r){(function(t,n){(function(){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.
2concat.js");var o=e("util"),s=e("url"),a=e("http"),u=e("https"),l=e("debug")("urllib"),c=e("humanize-ms"),h=0,d=Math.pow(2,31)-10,f=/^https?:\/\//i;function p(e,t){return void 0===e?t:e}function m(e){return e?e.split(";")[0].trim().toLowerCase():""}function g(e,t){return function(r,n,i){if(r)return t(r);e({data:n,status:i.statusCode,headers:i.headers,res:i})}}r.TIMEOUTS=[c("300s"),c("300s")];var y=["json","text"];r.request=function(e,t,n){return 2===arguments.length&&"function"===typeof t&&(n=t,t=null),"function"===typeof n?r.requestWithCallback(e,t,n):new Promise((function(n,i){r.requestWithCallback(e,t,g(n,i))}))},r.requestWithCallback=function(e,g,b){if(!e||"string"!==typeof e&&"object"!==(0,i.default)(e)){var v=o.format("expect request url to be a string or a http request options, but got %j",e);throw new Error(v)}2===arguments.length&&"function"===typeof g&&(b=g,g=null),h>=d&&(h=0);var w=++h;(g=g||{}).requestUrls=g.requestUrls||[];var M={requestId:w,url:e,args:g,ctx:g.ctx};g.emitter&&g.emitter.emit("request",M),g.timeout=g.timeout||r.TIMEOUTS,g.maxRedirects=g.maxRedirects||10,g.streaming=g.streaming||g.customResponse;var x,S=Date.now();"string"===typeof e?(f.test(e)||(e="https://"+e),x=s.parse(e)):x=e;var _=(g.type||g.method||x.method||"GET").toUpperCase(),k=x.port||80,A=a,j=p(g.agent,r.agent),E=g.fixJSONCtlChars;"https:"===x.protocol&&(A=u,j=p(g.httpsAgent,r.httpsAgent),x.port||(k=443));var T={host:x.hostname||x.host||"localhost",path:x.path||"/",method:_,port:k,agent:j,headers:g.headers||{},lookup:g.lookup};Array.isArray(g.timeout)?T.requestTimeout=g.timeout[g.timeout.length-1]:"undefined"!==typeof g.timeout&&(T.requestTimeout=g.timeout);var C=g.auth||x.auth;C&&(T.auth=C);var O=g.content||g.data,R="GET"===_||"HEAD"===_||g.dataAsQueryString;if(!g.content&&O&&"string"!==typeof O&&!n.isBuffer(O))if(R)O=g.nestedQuerystring?qs.stringify(O):querystring.stringify(O);else{var I=T.headers["Content-Type"]||T.headers["content-type"];I||(I="json"===g.contentType?"application/json":"application/x-www-form-urlencoded",T.headers["Content-Type"]=I),O="application/json"===m(I)?JSON.stringify(O):g.nestedQuerystring?qs.stringify(O):querystring.stringify(O)}R&&O&&(T.path+=(x.query?"&":"?")+O,O=null);var B=0;if(O){var P=O.length;n.isBuffer(O)||(P=n.byteLength(O)),B=T.headers["Content-Length"]=P}"json"===g.dataType&&(T.headers.Accept="application/json"),"function"===typeof g.beforeRequest&&g.beforeRequest(T);var N=null,D=null,U=null,L=!1,F=!1,q=0,z=-1,V=!1,H="",K="",G=null;function W(){N&&(clearTimeout(N),N=null)}function X(){D&&(clearTimeout(D),D=null)}function Z(r,n,i){if(X(),!b)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,t.pid,T.method,e),void(r&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),w,t.pid,r.name,r.message,r.stack));var o=b;b=null;var s={};i&&(z=i.statusCode,s=i.headers);var a=Date.now()-S;G&&(G.contentDownload=a),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",a,q,z,T.method,T.host,T.path,F,G);var u={status:z,statusCode:z,headers:s,size:q,aborted:V,rt:a,keepAliveSocket:F,data:n,requestUrls:g.requestUrls,timing:G,remoteAddress:H,remotePort:K};if(r){var c="";j&&"function"===typeof j.getCurrentStatus&&(c=", agent status: "+JSON.stringify(j.getCurrentStatus())),r.message+=", "+T.method+" "+e+" "+z+" (connected: "+L+", keepalive socket: "+F+c+")\nheaders: "+JSON.stringify(s),r.data=n,r.path=T.path,r.status=z,r.headers=s,r.res=u}o(r,n,g.streaming?i:u),g.emitter&&(M.url=e,M.socket=ee&&ee.connection,M.options=T,M.size=B,g.emitter.emit("response",{requestId:w,error:r,ctx:g.ctx,req:M,res:u}))}function Y(t){var n=null;if(g.followRedirect&&statuses.redirect[t.statusCode]){g._followRedirectCount=(g._followRedirectCount||0)+1;var i=t.headers.location;if(i){if(!(g._followRedirectCount>g.maxRedirects)){var o=g.formatRedirectUrl?g.formatRedirectUrl(e,i):s.resolve(e,i);l("Request#%d %s: `redirected` from %s to %s",w,T.path,e,o),X(),g.headers&&g.headers.Host&&f.test(i)&&(g.headers.Host=null);var a=b;return b=null,r.requestWithCallback(o,g,a),{redirect:!0,error:null}}(n=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+e)).name="MaxRedirectError"}else(n=new Error("Got statusCode "+t.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:n}}function J(e,t,r){return r(null,t,e.headers["content-encoding"])}
2g.timing&&(G={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),g.gzip&&(T.headers["Accept-Encoding"]||T.headers["accept-encoding"]||(T.headers["Accept-Encoding"]="gzip"));var Q,$,ee,te=g.writeStream;function re(t){if(G&&(G.waiting=Date.now()-S),l("Request#%d %s `req response` event emit: status %d, headers: %j",w,e,t.statusCode,t.headers),g.streaming){var r=Y(t);return r.redirect?void t.resume():r.error?(t.resume(),Z(r.error,null,t)):Z(null,null,t)}if(t.on("close",(function(){l("Request#%d %s: `res close` event emit, total size %d",w,e,q)})),t.on("error",(function(){l("Request#%d %s: `res error` event emit, total size %d",w,e,q)})),t.on("aborted",(function(){V=!0,l("Request#%d %s: `res aborted` event emit, total size %d",w,e,q)})),te){var i=Y(t);return i.redirect?void t.resume():i.error?(t.resume(),te.end(),Z(i.error,null,t)):(!1===g.consumeWriteStream?t.on("end",Z.bind(null,null,null,t)):te.on("close",(function(){l("Request#%d %s: writeStream close event emitted",w,e),Z(U||null,null,t)})),t.pipe(te))}var o=[];t.on("data",(function(t){l("Request#%d %s: `res data` event emit, size %d",w,e,t.length),q+=t.length,o.push(t)})),t.on("end",(function(){var r=n.concat(o,q);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,e,q,t._dumped),U)return Z(U,r,t);var i=Y(t);if(i.error)return Z(i.error,r,t);i.redirect||J(t,r,(function(n,i,o){if(n)return Z(n,r,t);if(!o&&y.indexOf(g.dataType)>=0){try{i=decodeBodyByCharset(i,t)}catch(a){return l("decodeBodyByCharset error: %s",a),Z(null,i,t)}if("json"===g.dataType)if(0===q)i=null;else{var s=parseJSON(i,E);s.error?n=s.error:i=s.data}}V&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,e),Z(n,i,t)}))}))}function ne(){l("Connect timer ticking, timeout: %d",Q),N=setTimeout((function(){N=null,-1===z&&(z=-2);var t="Connect timeout for "+Q+"ms",r="ConnectionTimeoutError";ee.socket||(r="SocketAssignTimeoutError",t+=", working sockets is full"),(U=new Error(t)).name=r,U.requestId=w,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,e,U.name,t,L),oe()}),Q)}function ie(){l("Response timer ticking, timeout: %d",$),D=setTimeout((function(){D=null;var t="Response timeout for "+$+"ms";(U=new Error(t)).name="ResponseTimeoutError",U.requestId=w,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,e,U.name,t,L),oe()}),$)}l("Request#%d %s %s with headers %j, options.path: %s",w,_,e,T.headers,T.path),g.requestUrls.push(e),Array.isArray(g.timeout)?(Q=c(g.timeout[0]),$=c(g.timeout[1])):Q=$=c(g.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",Q,$),T.mode=g.mode?g.mode:"";try{ee=A.request(T,re)}catch(se){return Z(se)}function oe(){l("Request#%d %s abort, connected: %s",w,e,L),ee.socket||(U.noSocket=!0,Z(U)),ee.abort()}return"undefined"===typeof window?ne():ee.on("requestTimeout",(function(){-1===z&&(z=-2),(U=new Error("Connect timeout for "+Q+"ms")).name="ConnectionTimeoutError",U.requestId=w,oe()})),G&&ee.on("finish",(function(){G.requestSent=Date.now()-S})),ee.once("socket",(function(t){G&&(G.queuing=Date.now()-S);var r=t.readyState;if("opening"===r)return t.once("lookup",(function(t,r,n){l("Request#%d %s lookup: %s, %s, %s",w,e,t,r,n),G&&(G.dnslookup=Date.now()-S),r&&(H=r)})),void t.once("connect",(function(){G&&(G.connected=Date.now()-S),W(),ie(),l("Request#%d %s new socket connected",w,e),L=!0,H||(H=t.remoteAddress),K=t.remotePort}));l("Request#%d %s reuse socket connected, readyState: %s",w,e,r),L=!0,F=!0,H||(H=t.remoteAddress),K=t.remotePort,W(),ie()})),ee.on("error",(function(t){"Error"!==t.name&&"TypeError"!==t.name||(t.name=L?"ResponseError":"RequestError"),t.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",w,e,t.name,t.message),Z(U||t)})),te&&te.once("error",(function(t){t.message+=' (writeStream "error")',U=t,l("Request#%d %s `writeStream error` event emit, %s: %s",w,e,t.name,t.message),oe()})),g.stream?(g.stream.pipe(ee),g.stream.once("error",(function(t){t.message+=' (stream "error")',U=t,l("Request#%d %s `readStream error` event emit, %s: %s",w,e,t.name,t.message),oe()}))):ee.end(O),ee.requestId=w,ee}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,_process:538,buffer:103,"core-js/modules/es.array.
2concat.js":310,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.trim.js":349,debug:536,http:539,https:398,"humanize-ms":399,url:543,util:489}]},{},[1])(1)},1407:function(e,t,r){e.exports=r.p+"static/media/uploadIcon.66f08517.svg"},1423:function(e,t,r){"use strict";r.d(t,"a",(function(){return O}));var n=r(1),i=r.n(n),o=r(1552),s=r.n(o),a=r(1405),u=r(4),l=r(49),c=(r(1605),r(140)),h=r(151),d=r(1245),f=r.n(d),p=r(1302),m=r.n(p),g=r(1303),y=r.n(g),b=r(11),v=r.n(b),w=r(1191),M=r.n(w),x=r(1406),S=r.n(x),_=r(1606),k=r.n(_);const A={QUEUED:"QUEUED",UPLOADING:"UPLOADING",PAUSED:"PAUSED",COMPLETED:"COMPLETED",FAILED:"FAILED"};class j{constructor(e,t,r,n,i){this.totalParts=0,this.concurrentParts=5,this.maxChunkSize=0,this.initUploadRes=null,this.persistedData=null,this.setSessionUrl=null,this.fileData=null,this.isSdmcDRM=null,this.aliBabaUploadData=t,this.directUpload=r,this.destinationType=n,this.persistedData=e,this.cos=i}getHeader(e){var t;const r=e||this.initUploadRes,n=Date.now(),i=n+"|E0CnImkXprTDJ6Om0kcV";let o=M.a.createHash("md5").update(i).digest("hex"),s={};return null!==r&&void 0!==r&&r.endPoint&&(s={endPoint:null===r||void 0===r?void 0:r.endPoint,accessKeyId:null===r||void 0===r?void 0:r.accessKeyId,accessKeySecret:null===r||void 0===r?void 0:r.accessKeySecret,securityToken:null===r||void 0===r?void 0:r.securityToken,bucket:null===r||void 0===r?void 0:r.bucket}),{"Content-Type":"application/json",signature:o,ex:n,"Api-Version":u.a,"x-access-token":null===(t=this.persistedData)||void 0===t?void 0:t.token,...s}}async getSignedUrl(e){return this.uploadURLsArray.find(t=>t.partNumber===e).signedKey}async refreshSignedUrl(e){var t,r;let n=await v.a.get(u.B.API_BASE_URL+"/cams/uploader/video/drm/getSignedUrl",{headers:{"X-Requested-With":"XMLHttpRequest",...this.getHeader()},params:{partNumber:e,key:null===(t=this.initUploadRes)||void 0===t?void 0:t.fileName,uploadId:this.initUploadRes.uploadId}});return this.uploadURLsArray.find(t=>t.partNumber===e).signedKey=null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.signedKey,this.uploadURLsArray}async initiateUploadImplementation(e,t){let r=`${null===t||void 0===t?void 0:t.type}_#$#_${e}__${null===t||void 0===t?void 0:t.name}`;this.fileData=t;let n=t.size;return this.destinationType===l.f.DRM_ENABLED?v()({method:"GET",url:"/cams/uploader/video/drm/initiateMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()},params:{uuid:r,fileSizeInBytes:n,isDirectUpload:this.directUpload}}).then(e=>{var t,n;return this.setInitUploadRes(r,null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.response),null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.response}):this.destinationType===l.f.TENCENT_ENABLED?v()({method:"GET",url:"/cams/uploader/video/tencent/initiateMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()},params:{uuid:r,fileSizeInBytes:n,isDirectUpload:this.directUpload}}).then(e=>{var t,n;return this.cos=new k.a({getAuthorization:function(t,r){var n,i;r({Authorization:null===e||void 0===e||null===(n=e.data)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.authorizationKey})}}),this.setInitUploadRes(r,null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.response),null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.response}):this.destinationType===l.f.SDMC_ENABLED||this.destinationType===l.f.GOOGLE?v()({method:"GET",url:"/cams/uploader/video/gcp/initiateMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()},params:{uuid:r,fileSizeInBytes:n,isDirectUpload:this.directUpload,isSdmcDRM:this.destinationType===l.f.SDMC_ENABLED}}).then(e=>{var t,n;return v()({method:"POST",url:null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.response)||void 0===n?void 0:n.endPoint,headers:{"Content-Type":"application/octet-stream","X-Goog-Resumable":"start"},data:{}}).then(t=>{var n,i;return this.setSessionUrl=t.headers.location,this.setInitUploadRes(r,null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.response),null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.response})}).catch(e=>{throw console.error("Error during GCP multipart upload initiation:",e),e}):this.destinationType===l.f.AZURE?v()({method:"GET",url:"/cams/uploader/video/azure/initiateMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()},params:{uuid:r,fileSizeInBytes:n,isDirectUpload:this.directUpload}}).then(e=>{var t;const n=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.response;return this.setSessionUrl=null===n||void 0===n?void 0:n.endPoint,this.setInitUploadRes(r,n),n}).catch(e=>{throw console.error("Error during Azure multipart upload initiation:",e),e}):v()({method:"GET",url:"/cams/uploader/video/initiateMultipartUpload?uuid="+r,baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}}).then(e=>{var t,n;return this.setInitUploadRes(r,null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.response),null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.response})}async uploadSuccessCall(e,t){var r,n,i,o,s,a,c,h,d,f,p,m,g,y,b,w,M,x,S,_,k,A,j,E,T,C;return this.destinationType===l.f.DRM_ENABLED?v()({method:"POST",data:{...e,PartNumberWithEtag:t,uploadId:null===(a=this.initUploadRes)||void 0===a?void 0:a.uploadId,fileKey:null===(c=this.initUploadRes)||void 0===c?void 0:c.fileName,uuid:null===(h=this.initUploadRes)||void 0===h?void 0:h.uuid,videoId:null===(d=this.initUploadRes)||void 0===d?void 0:d.videoId,fileSize:null===(f=this.fileData)||void 0===f?void 0:f.size,duration:"00:00:00"},url:"cams/uploader/video/drm/completeMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}}):this.destinationType===l.f.TENCENT_ENABLED?v()({method:"POST",data:{...e,PartNumberWithEtag:t,uploadId:null===(p=this.initUploadRes)||void 0===p?void 0:p.uploadId,ossFileName:null===(m=this.initUploadRes)||void 0===m?void 0:m.filePath,uuid:null===(g=this.initUploadRes)||void 0===g?void 0:g.uuid,videoId:null===(y=this.initUploadRes)||void 0===y?void 0:y.videoId,fileSize:null===(b=this.fileData)||void 0===b?void 0:b.size},url:"cams/uploader/video/tencent/completeMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}}):this.destinationType===l.f.SDMC_ENABLED||this.destinationType===l.f.GOOGLE?v()({method:"POST",data:{...e,PartNumberWithEtag:t,uploadId:null===(w=this.initUploadRes)||void 0===w?void 0:w.uploadId,gcpFilePath:null===(M=this.initUploadRes)||void 0===M?void 0:M.filePath,uuid:null===(x=this.initUploadRes)||void 0===x?void 0:x.uuid,videoId:null===(S=this.initUploadRes)||void 0===S?void 0:S.videoId,fileSize:null===(_=this.fileData)||void 0===_?void 0:_.size,...this.destinationType===l.f.SDMC_ENABLED?{isSdmcDrm:!0}:{isSdmcDrm:!1}},url:"cams/uploader/video/gcp/completeMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}}):this.destinationType===l.f.AZURE?v()({method:"POST",data:{...e,PartNumberWithEtag:t,uploadId:null===(k=this.initUploadRes)||void 0===k?void 0:k.uploadId,fileKey:null===(A=this.initUploadRes)||void 0===A?void 0:A.fileName,uuid:null===(j=this.initUploadRes)||void 0===j?void 0:j.uuid,videoId:null===(E=this.initUploadRes)||void 0===E?void 0:E.videoId,fileSize:null===(T=this.fileData)||void 0===T?void 0:T.size,azureFilePath:null===(C=this.initUploadRes)||void 0===C?void 0:C.filePath},url:"cams/uploader/video/azure/completeMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}}):v()({method:"POST",data:{...e,PartNumberWithEtag:t,uploadId:null===(r=this.initUploadRes)||void 0===r?void 0:r.uploadId,ossFileName:null===(n=this.initUploadRes)||void 0===n?void 0:n.filePath,uuid:null===(i=this.initUploadRes)||void 0===i?void 0:i.uuid,videoId:null===(o=this.initUploadRes)||void 0===o?void 0:o.videoId,fileSize:null===(s=this.fileData)||void 0===s?void 0:s.size},url:"/cams/uploader/video/completeMultipartUpload",baseURL:u.B.API_BASE_URL,headers:{...this.getHeader()}})}async uploadPartImplementation(e,t){var r;let n=(t-1)*this.maxChunkSize;const i=this.totalParts===t?null===(r=this.fileData)||void 0===r?void 0:r.size:t*this.maxChunkSize,o=this.fileData.slice(n,i),s=this.initUploadRes.uploadId,a=new FormData;a.append("file",o),a.append("uploadId",s),a.append("partNumber",t);
2const c=v.a.CancelToken.source();if(e[t-1].cancellationToken=c,this.destinationType===l.f.DRM_ENABLED){var h;const e=null===(h=this.initUploadRes)||void 0===h?void 0:h.fileName;if(a.append("fileName",e),!e||!s)return;if(this.directUpload){let e=await this.getSignedUrl(t);return v.a.put(e,o,{onUploadProgress:()=>{},cancelToken:c.token})}return v.a.post(u.B.API_BASE_URL+"/cams/uploader/video/drm/uploadPart",a,{onUploadProgress:()=>{},cancelToken:c.token,headers:{"X-Requested-With":"XMLHttpRequest","Content-Range":`bytes=${n}-${i}/${this.fileData.size}`,...this.getHeader(this.initUploadRes)}})}if(this.destinationType===l.f.TENCENT_ENABLED){var d,f,p,m,g;let e=null===(d=this.initUploadRes)||void 0===d?void 0:d.filePath,r=null===(f=this.initUploadRes)||void 0===f?void 0:f.bucket,n=null===(p=this.initUploadRes)||void 0===p?void 0:p.region,i=null===(m=this.initUploadRes)||void 0===m?void 0:m.uploadId;if(null===(g=this.initUploadRes)||void 0===g||!g.filePath)return;return(e=>new Promise((t,r)=>{this.cos.multipartUpload(e,(function(e,n){e?(console.error("Error occurred during multipart upload:",e),r(e)):(console.log("Upload successful:",n),t(n))}))}))({Bucket:r,Region:n,Key:e,UploadId:i,PartNumber:t,Body:o})}if(this.destinationType===l.f.SDMC_ENABLED||this.destinationType===l.f.GOOGLE)return v()({onUploadProgress:e=>{},validateStatus:function(e){return e<400},url:this.setSessionUrl,method:"PUT",headers:{"X-Upload-Content-Length":i-n,"Content-Range":`bytes ${n}-${i-1}/${this.fileData.size}`,"Content-Type":"application/octet-stream"},data:o}).then(e=>({etag:t}));if(this.destinationType===l.f.AZURE){if(!this.setSessionUrl)return console.error("Azure SAS session URL is not initialized"),Promise.reject(new Error("Azure SAS session URL is not initialized"));const e=btoa(String(t).padStart(6,"0"));let r;try{const t=new URL(this.setSessionUrl);t.searchParams.set("comp","block"),t.searchParams.set("blockid",e),r=t.toString()}catch(M){return Promise.reject(M)}return v.a.put(r,o,{headers:{"Content-Type":"application/octet-stream","x-ms-version":"2020-10-02"},maxContentLength:1/0,maxBodyLength:1/0}).then(()=>({etag:e}))}var y,b,w;return null!==(y=this.initUploadRes)&&void 0!==y&&y.filePath?(a.append("ossFileName",null===(b=this.initUploadRes)||void 0===b?void 0:b.filePath),this.directUpload&&this.alibabaOSS?this.alibabaOSS.uploadPart(null===(w=this.initUploadRes)||void 0===w?void 0:w.filePath,s,t,o,0,o.length):v.a.post(u.B.API_BASE_URL+"/cams/uploader/video/uploadPart",a,{onUploadProgress:()=>{},cancelToken:c.token,headers:{"X-Requested-With":"XMLHttpRequest","Content-Range":`bytes=${n}-${i}/${this.fileData.size}`,...this.getHeader(this.initUploadRes)}})):void 0}async errorUploadImplementation(e){return!this.directUpload||this.destinationType!==l.f.DRM_ENABLED||this.refreshSignedUrl(e)}pauseUploadImplementation(e){Object.values(e).filter(e=>e.status!==A.COMPLETED&&e.status!==A.QUEUED).forEach(e=>{e.cancellationToken&&e.cancellationToken.cancel("video_pause")})}finalizeUploadImplementation(e){let t;if(this.destinationType===l.f.DRM_ENABLED)t=Object.values(e).map(e=>({PartNumber:e.partNumber+1,ETag:e.etag}));else if(this.destinationType===l.f.TENCENT_ENABLED)t=Object.values(e).map(e=>({number:e.partNumber+1,etag:e.etag}));else{if(this.destinationType===l.f.AZURE){const t=Object.values(e).sort((e,t)=>e.partNumber-t.partNumber),n=`<?xml version="1.0" encoding="utf-8"?><BlockList>${t.map(e=>e.etag).map(e=>`<Latest>${e}</Latest>`).join("")}</BlockList>`;let i;try{const e=new URL(this.setSessionUrl);e.searchParams.set("comp","blocklist"),i=e.toString()}catch(r){return Promise.reject(r)}return v.a.put(i,n,{headers:{"Content-Type":"application/xml","x-ms-version":"2020-10-02"}}).then(()=>{const e=t.map(e=>({number:e.partNumber+1,etag:e.etag}));return this.uploadSuccessCall(this.aliBabaUploadData,e)})}t=Object.values(e).map(e=>({number:e.partNumber+1,etag:e.etag}))}return this.uploadSuccessCall(this.aliBabaUploadData,t)}setInitUploadRes(e,t){var r;const n=this.destinationType===l.f.AZURE,i=n&&!0,o=this.destinationType===l.f.GOOGLE||this.destinationType===l.f.SDMC_ENABLED,s=(null===t||void 0===t?void 0:t.parallelChunkCount)||5;this.totalParts=Math.ceil((null===(r=this.fileData)||void 0===r?void 0:r.size)/(null===t||void 0===t?void 0:t.chunkSizeInBytes)),this.maxChunkSize=null===t||void 0===t?void 0:t.chunkSizeInBytes,this.concurrentParts=o?1:n?i?s:1:s,this.directUpload&&(this.destinationType===l.f.CP_BACKEND&&(this.alibabaOSS=new S.a({region:(null===t||void 0===t?void 0:t.regi
2on)||"oss-ap-south-1",accessKeyId:null===t||void 0===t?void 0:t.accessKeyId,accessKeySecret:null===t||void 0===t?void 0:t.accessKeySecret,stsToken:null===t||void 0===t?void 0:t.securityToken,bucket:null===t||void 0===t?void 0:t.bucket})),this.destinationType===l.f.DRM_ENABLED&&(this.uploadURLsArray=null===t||void 0===t?void 0:t.signedKeys)),this.initUploadRes={uuid:e,...t}}destroy(){this.aliBabaUploadData=void 0,this.directUpload=void 0,this.destinationType=void 0,this.persistedData=void 0,this.fileData=void 0}}class E{constructor(e,t){if(this.state={progressPercent:0,status:""},this.parts={},this.isOffline=!1,this.backendUploader=null,this.isPaused=!1,!e)throw new Error("No Backend Uploader supplied.");this.backendUploader=e,this.progressCallback=t,this.onlineListener=()=>this.onlineStatus(!0),this.offlineListener=()=>this.onlineStatus(!1),window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}onlineStatus(e){e?this.resumeUpload():this.pauseUpload()}get completedParts(){return Object.values(this.parts).filter(e=>e.status===A.COMPLETED).length}get ongoingParts(){return Object.values(this.parts).filter(e=>e.status===A.UPLOADING).length}get partsToUpload(){return Object.values(this.parts).filter(e=>e.status!==A.COMPLETED&&e.status!==A.UPLOADING)}uploadNextPart(){if(this.isPaused||this.state.status===A.PAUSED||this.state.status===A.COMPLETED)return;let e=this.partsToUpload;if(e.length>0){let t=e[0];this.uploadPart(t.partNumber)}}onError(e){const t=this.parts[e];if(t){if(t.retryCount=(t.retryCount||0)+1,t.status=A.FAILED,t.retryCount>=3)return this.state.status=A.FAILED,this.state.err={response:{data:{message:"Video upload failed after retries"}}},void this.updateProgress();this.backendUploader.errorUploadImplementation(e).then(()=>{t.status=A.QUEUED,this.uploadNextPart()})}}pauseUpload(){this.state.status!==A.COMPLETED&&(this.state.status=A.PAUSED,this.isPaused=!0,this.backendUploader.pauseUploadImplementation(this.parts))}resumeUpload(){if(this.state.status!==A.COMPLETED){this.state.status=A.UPLOADING,this.isPaused=!1;for(let e=0;e<this.backendUploader.concurrentParts;e++)this.uploadNextPart()}}updateProgress(){this.state.progressPercent=100*this.completedParts/this.backendUploader.totalParts,this.progressCallback({...this.state})}initParts(){for(var e=0;e<this.backendUploader.totalParts;e++)this.parts[e]={partNumber:e,status:A.QUEUED}}initiateUpload(e,t){return this.backendUploader.initiateUploadImplementation(e,t).then(e=>(this.initParts(),this.state.status=A.UPLOADING,this.resumeUpload(),e))}uploadPart(e){this.parts[e].status=A.UPLOADING,this.backendUploader.uploadPartImplementation(this.parts,e+1).then(t=>{var r,n,i,o,s,a,u;this.parts[e].status=A.COMPLETED,this.parts[e].etag=(null===t||void 0===t||null===(r=t.headers)||void 0===r?void 0:r.etag)||(null===t||void 0===t||null===(n=t.data)||void 0===n||null===(i=n.response)||void 0===i||null===(o=i.chunkEtag)||void 0===o?void 0:o.etag)||(null===t||void 0===t||null===(s=t.data)||void 0===s||null===(a=s.response)||void 0===a||null===(u=a.chunkEtag)||void 0===u?void 0:u.ETag)||(null===t||void 0===t?void 0:t.etag),this.updateProgress(),this.completedParts<this.backendUploader.totalParts?this.uploadNextPart():this.finalizeUpload()}).catch(t=>{this.parts[e].status=A.FAILED,this.onError(e,t)})}finalizeUpload(){this.backendUploader.finalizeUploadImplementation(this.parts).then(e=>{this.state.status=A.COMPLETED,this.state.res=e}).catch(e=>{this.state.status=A.FAILED,this.state.err=e}).finally(()=>{this.updateProgress()})}destroy(){window.removeEventListener("offline",this.onlineListener),window.removeEventListener("online",this.offlineListener),this.pauseUpload(),this.backendUploader&&(this.backendUploader.destroy(),this.backendUploader=null)}}var T=r(2249);var C=Object(c.connect)((function(e){return{persistedData:null===e||void 0===e?void 0:e.persistedData}}),{makeApiCall:h.b})((function(e){const{t:t}=Object(T.a)(),{fileData:r,aliBabaUploadData:o,onAlibabaOrTextBookDrmUploadComplete:s,onAlibabaOrTextBookDrmUploadFailure:a,index:u,onUpload:l,persistedData:c,getInitUploadData:h,fileNamePrefix:d,destinationType:p,directUpload:g}=e,[b,v]=Object(n.useState)(A.UPLOADING),[w,M]=Object(n.useState)(0),[x,S]=Object(n.useState)(null);return Object(n.useEffect)(()=>{let e=new j(c,o,g,p),t=new E(e,e=>{var t,r,n,i;(M(()=>e.progressPercent),v(()=>e.status),e.status===A.COMPLETED)&&s(null===(t=e.res)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.response,u);e.status===(null===A||void 0===A?void 0:A.FAILED)&&a(null===(n=e.err)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.data,u)});return t.initiateUpload(d,r).then(e=>{l(),h(e,u)}),S(t),()=>{t&&t.destroy()}},[]),i.a.createElement("div",{className:""},i.a.createElement("div",{className:"multipartProgressContainer"},i.a.createElement("div",{style:{width:w+"%"},className:"multipartProgress"})),i.a.createElement("div",{className:"multipartActionContainer"},i.a.createElement("div",{className:"multipartStatusContainer"},i.a.createElement("div",{className:"multipartStatusImage"},b==A.COMPLETED?i.a.createElement("img",{src:f.a}):null),i.a.createElement(i.a.Fragment,null,b==A.FAILED?i.a.createElement("div",{style:{color:"#ff3333"}},t("src.components._custom.BackEndMultipartVideoUpload.failed","Failed")):i.a.createElement("div",null,b==A.COMPLETED?t("src.components._custom.BackEndMultipartVideoUpload.completed","Completed"):b==A.PAUSED?t("src.components._custom.BackEndMultipartVideoUpload.paused","Paused"):t("src.components._custom.BackEndMultipartVideoUpload.uploading","Uploading"),": ",parseInt(w),"%"))),b==A.COMPLETED||b==A.FAILED?null:i.a.createElement("div",null,i.a.createElement("img",{className:"multipartActionButton",onClick:()=>{b===A.UPLOADING?x.pauseUpload():b===A.PAUSED&&x.resumeUpload()},src:b==A.PAUSED?y.a:m.a}))))}));r(47);function O(e){let{title:t,description:r,setTitle:n,setDescription:o,onComplete:c,onRestrictionFail:h,onUploadError:d,onUploadSuccess:f,onUpload:p,onCancel:m,file:g,onFileRemove:y,onError:b,meta:v,fileNamePrefix:w,directUpload:M,uploadVideoFlow:x,aliB
2abaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,showVideoTags:E}=e;const{t:O}=Object(T.a)();function R(e){"function"===typeof p&&p(e,v.fileIndex)}return i.a.createElement("div",{className:s.a.PreviewContainer},i.a.createElement(i.a.Fragment,null,i.a.createElement("img",{src:v.thumbnail}),i.a.createElement("div",{className:s.a.PreviewDetails},i.a.createElement("div",null,i.a.createElement("label",null,O("components.contentStore.addContent.components.preview.previewTitle","Title")),i.a.createElement("input",{style:{paddingLeft:"16px"},className:s.a.PreviewTitle,value:t,onChange:e=>n(v.fileIndex,e.target.value)})),i.a.createElement("div",null,i.a.createElement("label",null,O("components.contentStore.addContent.components.preview.previewDescription","Description")),i.a.createElement("input",{style:{paddingLeft:"16px"},className:s.a.PreviewDescription,value:r,onChange:e=>o(v.fileIndex,e.target.value),placeholder:O("components.contentStore.addContent.components.preview.previewDescriptionPlaceholder","Description ...")})),i.a.createElement("div",{style:{display:"block",margin:"16px 0 0 0"}},v.error&&i.a.createElement("p",{className:"fileError",style:{textAlign:"left",color:"#ff4b23"}},O("components.contentStore.addContent.components.preview.metaErrorText",v.error)),x==(null===l.f||void 0===l.f?void 0:l.f.CP_BACKEND)&&i.a.createElement(C,{directUpload:M,fileData:g,onUpload:R,aliBabaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,fileNamePrefix:w,destinationType:null===l.f||void 0===l.f?void 0:l.f.CP_BACKEND}),x==(null===l.f||void 0===l.f?void 0:l.f.DRM_ENABLED)&&i.a.createElement(C,{directUpload:M,fileData:g,onUpload:R,aliBabaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,fileNamePrefix:w,destinationType:null===l.f||void 0===l.f?void 0:l.f.DRM_ENABLED}),x==(null===l.f||void 0===l.f?void 0:l.f.TENCENT_ENABLED)&&i.a.createElement(C,{directUpload:M,fileData:g,onUpload:R,aliBabaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,fileNamePrefix:w,destinationType:null===l.f||void 0===l.f?void 0:l.f.TENCENT_ENABLED}),(x==(null===l.f||void 0===l.f?void 0:l.f.GOOGLE)||x===l.f.SDMC_ENABLED)&&i.a.createElement(C,{directUpload:M,fileData:g,onUpload:R,aliBabaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,fileNamePrefix:w,destinationType:x==(null===l.f||void 0===l.f?void 0:l.f.GOOGLE)?null===l.f||void 0===l.f?void 0:l.f.GOOGLE:null===l.f||void 0===l.f?void 0:l.f.SDMC_ENABLED}),x==(null===l.f||void 0===l.f?void 0:l.f.AZURE)&&i.a.createElement(C,{directUpload:M,fileData:g,onUpload:R,aliBabaUploadData:S,onAlibabaOrTextBookDrmUploadComplete:_,onAlibabaOrTextBookDrmUploadFailure:k,index:A,getInitUploadData:j,fileNamePrefix:w,destinationType:null===l.f||void 0===l.f?void 0:l.f.AZURE}),x==(null===l.f||void 0===l.f?void 0:l.f.S3_DIRECT)&&i.a.createElement(a.a,{companionUrl:u.u,onUploadError:function(e){"function"===typeof d&&d(e,v.fileIndex)},onError:function(e){"function"===typeof b&&b(e,v.fileIndex)},onUploadSuccess:function(e,t){"function"===typeof f&&f(e,t,v.fileIndex)},onRestrictionFail:function(e,t){"function"===typeof h&&h(e,t,v.fileIndex)},onComplete:function(e){"function"===typeof c&&c(e,v.fileIndex)},autoProceed:!0,onUpload:R,fileNamePrefix:w,maxFileSize:524288e4,file:g,onFileRemove:function(e){"function"===typeof y&&y(e,v.fileIndex)},allowedFileTypes:["video/*","audio/*"]})))),"uploaded"!=v.status&&i.a.createElement("button",{className:s.a.CloseBtn,onClick:()=>m(v.fileIndex)},"x"))}},1481:function(e,t,r){"use strict";var n,i=r(1),o=r.n(i),s=r(1086);t.a=(n=function(e){return o.a.createElement("img",e)},e=>{let t=Object(s.a)(e.fileString);return o.a.createElement(n,Object.assign({src:t},e))})},1483:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACdSURBVHgB7ZKxDYAgEEWRgjlYxU2oCCNRsomjyBiEgsgZbIzx7qBTXkJojv/gDiEmn2fBCqy1O+w55zWEEAUTSazTSqnNGKMFE1QgpVzrFnslaIsA55wupWwgARmnXSTBiIQs6JVQh3zivY/3mWBnWAIgpcSqZwngB7Vb67qu17xCnsFTOLQ
2MO0cS9IaTBCPhADqDkXCSoNEVPvkJBzt4Vy7UFgjnAAAAAElFTkSuQmCC"},1541:function(e,t,r){e.exports=r.p+"static/media/SVGProcessing.fced55e6.svg"},1551:function(e,t,r){e.exports={Uploader:"Uploader_Uploader__16DAv",Uploader__button:"Uploader_Uploader__button__38BP5",FileList:"Uploader_FileList__A-ryJ",Uploader__Action:"Uploader_Uploader__Action__19Dzo",Uploader__Action__button:"Uploader_Uploader__Action__button__1o6iK","Uploader__Action__button--disabled":"Uploader_Uploader__Action__button--disabled__JCMpS",ui:"Uploader_ui__1rAmJ",modal:"Uploader_modal__2InQK",actions:"Uploader_actions__xjuSf"}},1552:function(e,t,r){e.exports={Preview:"Preview_Preview__3nopk",ThumbContainer:"Preview_ThumbContainer__2YBl0",Thumb:"Preview_Thumb__3K_h_",Close:"Preview_Close__1C8M5",PreviewContainer:"Preview_PreviewContainer__1nM-e",CloseBtn:"Preview_CloseBtn__3w6d2",PreviewDetails:"Preview_PreviewDetails__sVIQ4",PreviewTitle:"Preview_PreviewTitle__CuUaM",PreviewDescription:"Preview_PreviewDescription__2LaHL"}},1553:function(e,t,r){},1554:function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},1555:function(e,t,r){var n=r(1556),i=r(1296),o=r(1557),s=0,a=Math.pow(36,4);function u(){return i((o()*a<<0).toString(36),4)}function l(){return s=s<a?s:0,++s-1}function c(){return"c"+(new Date).getTime().toString(36)+i(l().toString(36),4)+n()+(u()+u())}c.slug=function(){var e=(new Date).getTime().toString(36),t=l().toString(36).slice(-4),r=n().slice(0,1)+n().slice(-1),i=u().slice(-2);return e.slice(-2)+t+r+i},c.isCuid=function(e){return"string"===typeof e&&!!e.startsWith("c")},c.isSlug=function(e){if("string"!==typeof e)return!1;var t=e.length;return t>=7&&t<=10},c.fingerprint=n,e.exports=c},1556:function(e,t,r){var n=r(1296),i="object"===typeof window?window:self,o=Object.keys(i).length,s=n(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+o.toString(36),4);e.exports=function(){return s}},1557:function(e,t){var r,n="undefined"!==typeof window&&(window.crypto||window.msCrypto)||"undefined"!==typeof self&&self.crypto;if(n){var i=Math.pow(2,32)-1;r=function(){return Math.abs(n.getRandomValues(new Uint32Array(1))[0]/i)}}else r=Math.random;e.exports=r},1558:function(e,t,r){var n=r(1559),i=/[\/\+\.]/;e.exports=function(e,t){function r(t){var r=n(t,e,i);return r&&r.length>=2}return t?r(t.split(";")[0]):r}},1559:function(e,t,r){"use strict";function n(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}n.prototype.match=function(e){var t,r,n=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<o;t++)"*"!==i[t]&&(n=t<r.length&&i[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var s in n={},e)this.match(s)&&(n[s]=e[s]);return n},e.exports=function(e,t,r){var i=new n(e,r||/[\/\.]/);return"undefined"!=typeof t?i.match(t):i}},1560:function(e,t){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var n=function(){function e(){this.state={},this.callbacks=[]}var t=e.prototype;return t.getState=function(){return this.state},t.setState=function(e){var t=r({},this.state),n=r({},this.state,e);this.state=n,this._publish(t,n,e)},t.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){t.callbacks.splice(t.callbacks.indexOf(e),1)}},t._publish=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach((function(e){e.apply(void 0,t)}))},e}();n.VERSION="1.2.7",e.exports=function(){return new n}},1561:function(e,t,r){var n=r(1298),i=r(1562);e.exports=function(e){var t=e.name?n(e.name).extension:null;return t=t?t.toLowerCase():null,e.type?e.type:t&&i[t]?i[t]:"application/octet-stream"}},1562:function(e,t){e.exports={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"}},1563:function(e,t){function r(e){var t="";return e.replace(/[^A-Z0-9]/gi,(function(e){return t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"}))+t}e.exports=function(e){var t="uppy";return"string"===typeof e.name&&(t+="-"+r(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"===typeof e.meta.relativePath&&(t+="-"+r(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}},1564:function(e,t){e.exports=function(e){if(null==e&&(e="undefined"!==typeof navigator?navigator.userAgent:null),!e)return!0;var t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;var r=t[1].split("."),n=r[0],i=r[1];return n=parseInt(n,10),i=parseInt(i,10),n<15||15===n&&i<15063||(n>18||18===n&&i>=18218)}},1565:function(e,t,r){var n=r(1566),i={debug:function(){},warn:function(){},error:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=console).error.apply(e,["[Uppy] ["+n()+"]"].concat(r))}},o={debug:function(){for(var e=console.debug||console.log,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.call.apply(e,[console,"[Uppy] ["+n()+"]"].concat(r))},warn:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=console).warn.apply(e,["[Uppy] ["+n()+"]"].concat(r))},error:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=console).error.apply(e,["[Uppy] ["+n()+"]"].concat(r))}};e.exports={justErrorsLogger:i,debugLogger:o}},1566:function(e,t){function r(e){return 2!==e.length?0+e:e}e.exports=function(){var e=new Date;return r(e.getHours().toString())+":"+r(e.getMinutes().toString())+":"+r(e.getSeconds().toString())}},1567:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=r(1189),o=r(1568);e.exports=function(){function e(e,t){this.uppy=e,this.opts=t||{},this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.install=this.install.bind(this),this.uninstall=this.uninstall.bind(this)}var t=e.prototype;return t.getPluginState=function(){return this.uppy.getState().plugins[this.id]||{}},t.setPluginState=function(e){var t,r=this.uppy.getState().plugins;this.uppy.setState({plugins:n({},r,(t={},t[this.id]=n({},r[this.id],e),t))})},t.setOptions=function(e){this.opts=n({},this.opts,e),this.setPluginState()},t.update=function(e){"undefined"!==typeof this.el&&this._updateUI&&this._updateUI(e)},t.afterUpdate=function(){},t.onMount=function(){},t.mount=function(t,r){var n,s=this,a=r.id,u=o(t);if(u)return this.isTargetDOMEl=!0,this.rerender=function(e){s.uppy.getPlugin(s.id)&&(s.el=i.render(s.render(e),u,s.el),s.afterUpdate())},this._updateUI=function(e){var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=i,t||(t=Promise.resolve().then((function(){return t=null,e.apply(void 0,r)}))),t}}(this.rerender),this.uppy.log("Installing "+a+" to a DOM element '"+t+"'"),this.opts.replaceTargetContent&&(u.innerHTML=""),this.el=i.render(this.render(this.uppy.getState()),u),this.onMount(),this.el;if("object"===typeof t&&t instanceof e)n=t;else if("function"===typeof t){var l=t;this.uppy.iteratePlugins((function(e){if(e instanceof l)return n=e,!1}))}
2if(n)return this.uppy.log("Installing "+a+" to "+n.id),this.parent=n,this.el=n.addTarget(r),this.onMount(),this.el;this.uppy.log("Not installing "+a);var c="Invalid target option given to "+a+".";throw c+="function"===typeof t?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(c)},t.render=function(e){throw new Error("Extend the render method to add your plugin to a DOM element")},t.addTarget=function(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},t.unmount=function(){this.isTargetDOMEl&&this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},t.install=function(){},t.uninstall=function(){this.unmount()},e}()},1568:function(e,t,r){var n=r(1569);e.exports=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):n(e)?e:void 0}},1569:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&e.nodeType===Node.ELEMENT_NODE}},1570:function(e,t,r){var n,i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=r(1115).Plugin,l=r(1571),c=r(1187),h=r(1189).h;e.exports=(i=n=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).id=n.opts.id||"FileInput",n.title="File Input",n.type="acquirer",n.defaultLocale={strings:{chooseFiles:"Choose files"}};return n.opts=o({},{target:null,pretty:!0,inputName:"files[]"},r),n.i18nInit(),n.render=n.render.bind(s(n)),n.handleInputChange=n.handleInputChange.bind(s(n)),n.handleClick=n.handleClick.bind(s(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,a(t,r);var i=n.prototype;return i.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},i.i18nInit=function(){this.translator=new c([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},i.addFiles=function(e){var t=this,r=e.map((function(e){return{source:t.id,name:e.name,type:e.type,data:e}}));try{this.uppy.addFiles(r)}catch(n){this.uppy.log(n)}},i.handleInputChange=function(e){this.uppy.log("[FileInput] Something selected through input...");var t=l(e.target.files);this.addFiles(t),e.target.value=null},i.handleClick=function(e){this.input.click()},i.render=function(e){var t=this,r=this.uppy.opts.restrictions,n=r.allowedFileTypes?r.allowedFileTypes.join(","):null;return h("div",{className:"uppy-Root uppy-FileInput-container"},h("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==r.maxNumberOfFiles,accept:n,ref:function(e){t.input=e}}),this.opts.pretty&&h("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))},i.install=function(){var e=this.opts.target;e&&this.mount(e,this)},i.uninstall=function(){this.unmount()},n}(u),n.VERSION="1.5.2",i)},1571:function(e,t){e.exports=function(e){return Array.prototype.slice.call(e||[],0)}},1572:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=r(1),s=r(8),a=r(1573),u=r(1580).uppy,l=r(1581),c=o.createElement,h=function(e){var t,r;function o(t){var r;return(r=e.call(this,t)||this).validProps=l(t),r}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var s=o.prototype;return s.componentDidMount=function(){this.installPlugin()},s.componentDidUpdate=function(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())},s.componentWillUnmount=function(){this.uninstallPlugin()},s.installPlugin=function(){var e=this.props.uppy,t=n({id:"react:StatusBar"},this.props,{target:this.container});delete t.uppy,e.use(a,t),this.plugin=e.getPlugin(t.id)},s.uninstallPlugin=function(e){void 0===e&&(e=this.props),e.uppy.removePlugin(this.plugin)},s.render=function(){var e=this;return c("div",n({ref:function(t){e.container=t}},this.validProps))},o}(o.Component);h.propTypes={uppy:u,hideAfterFinish:s.bool,showProgressDetails:s.bool},h.defaultProps={},e.exports=h},1573:function(e,t,r){var n,i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=r(1115).Plugin,l=r(1187),c=r(1574),h=r(1300),d=r(1577),f=r(1578),p=r(1579);e.exports=(i=n=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).startUpload=function(){if(!n.uppy.getState().recoveredState)return n.uppy.upload().catch((function(){}));n.uppy.emit("restore-confirmed")},n.id=n.opts.id||"StatusBar",n.title="StatusBar",n.type="progressindicator",n.defaultLocale={strings:{uploading:"Uploading",upload:"Upload",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",retryUpload:"Retry upload",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"}}};return n.opts=o({},{target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null},r),n.i18nInit(),n.render=n.render.bind(s(n)),n.install=n.install.bind(s(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,a(t,r);var i=n.prototype;return i.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},i.i18nInit=function(){this.translator=new l([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},i.getTotalSpeed=function(e){var t=0;return e.forEach((function(e){t+=d(e.progress)})),t},i.getTotalETA=function(e){var t=this.getTotalSpeed(e);if(0===t)return 0;var r=e.reduce((function(e,t){return e+f(t.progress)}),0);return Math.round(r/t*10)/10},i.getUploadingState=function(e,t,r,n){if(e)return h.STATE_ERROR;if(t)return h.STATE_COMPLETE;if(r)return h.STATE_WAITING;for(var i=h.STATE_WAITING,o=Object.keys(n),s=0;s<o.length;s++){var a=n[o[s]].progress;if(a.uploadStarted&&!a.uploadComplete)return h.STATE_UPLOADING;a.preprocess&&i!==h.STATE_UPLOADING&&(i=h.STATE_PREPROCESSING),a.postprocess&&i!==h.STATE_UPLOADING&&i!==h.STATE_PREPROCESSING&&(i=h.STATE_POSTPROCESSING)}return i},i.render=function(e){var t=e.capabilities,r=e.files,n=e.allowNewUpload,i=e.totalProgress,o=e.error,s=e.recoveredState,a=Object.keys(r).map((function(e){return r[e]})),u=a.filter((function(e){return!e.progress.uploadStarted&&!e.progress.preprocess&&!e.progress.postprocess}
2));s&&(u=a);var l=a.filter((function(e){return e.progress.uploadStarted})).filter((function(e){return e.isPaused})),h=a.filter((function(e){return e.progress.uploadComplete})),d=a.filter((function(e){return e.error})),f=a.filter((function(e){return!e.progress.uploadComplete&&e.progress.uploadStarted})),p=f.filter((function(e){return!e.isPaused})),m=a.filter((function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess})),g=a.filter((function(e){return e.progress.preprocess||e.progress.postprocess})),y=this.getTotalETA(p),b=0,v=0;m.forEach((function(e){b+=e.progress.bytesTotal||0,v+=e.progress.bytesUploaded||0}));var w=m.length>0,M=100===i&&h.length===Object.keys(r).length&&0===g.length,x=o&&d.length===a.length,S=0!==f.length&&l.length===f.length,_=f.length>0,k=t.resumableUploads||!1,A=!1!==t.uploadProgress,j=a.some((function(e){return e.isGhost}));return c({error:o,uploadState:this.getUploadingState(x,M,s,e.files||{}),allowNewUpload:n,totalProgress:i,totalSize:b,totalUploadedSize:v,isAllComplete:M,isAllPaused:S,isAllErrored:x,isUploadStarted:w,isUploadInProgress:_,isSomeGhost:j,recoveredState:s,complete:h.length,newFiles:u.length,numUploads:m.length,totalETA:y,files:r,i18n:this.i18n,pauseAll:this.uppy.pauseAll,resumeAll:this.uppy.resumeAll,retryAll:this.uppy.retryAll,cancelAll:this.uppy.cancelAll,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:k,supportsUploadProgress:A,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})},i.onMount=function(){var e=this.el;p(e)||(e.dir="ltr")},i.install=function(){var e=this.opts.target;e&&this.mount(e,this)},i.uninstall=function(){this.unmount()},n}(u),n.VERSION="1.9.6",i)},1574:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=r(1188),o=r(10),s=r(1300),a=r(1297),u=r(1575),l=r(1189).h;e.exports=function(e){var t,r,i=e=e||{},a=i.newFiles,u=i.allowNewUpload,m=i.isUploadInProgress,y=i.isAllPaused,b=i.resumableUploads,v=i.error,S=i.hideUploadButton,_=i.hidePauseResumeButton,k=i.hideCancelButton,A=i.hideRetryButton,j=i.recoveredState,E=e.uploadState,T=e.totalProgress;if(E===s.STATE_PREPROCESSING||E===s.STATE_POSTPROCESSING){var C=function(e){var t=[];Object.keys(e).forEach((function(r){var n=e[r].progress;n.preprocess&&t.push(n.preprocess),n.postprocess&&t.push(n.postprocess)}));var r=t[0];return{mode:r.mode,message:r.message,value:t.filter((function(e){return"determinate"===e.mode})).reduce((function(e,t,r,n){return e+t.value/n.length}),0)}}(e.files);"determinate"===(t=C.mode)&&(T=100*C.value),r=g(C)}else E===s.STATE_COMPLETE?r=M(e):E===s.STATE_UPLOADING?(e.supportsUploadProgress||(t="indeterminate",T=null),r=w(e)):E===s.STATE_ERROR&&(T=void 0,r=x(e));var O="number"===typeof T?T:100,R=E===s.STATE_WAITING&&e.hideUploadButton||E===s.STATE_WAITING&&!e.newFiles>0||E===s.STATE_COMPLETE&&e.hideAfterFinish,I=!v&&a&&!m&&!y&&u&&!S;j&&(R=!1,I=!0);var B=!k&&E!==s.STATE_WAITING&&E!==s.STATE_COMPLETE,P=b&&!_&&E===s.STATE_UPLOADING,N=v&&!A,D=e.doneButtonHandler&&E===s.STATE_COMPLETE,U="uppy-StatusBar-progress\n "+(t?"is-"+t:""),L=o({"uppy-Root":e.isTargetDOMEl},"uppy-StatusBar","is-"+E,{"has-ghosts":e.isSomeGhost});return l("div",{className:L,"aria-hidden":R},l("div",{className:U,style:{width:O+"%"},role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":T}),r,l("div",{className:"uppy-StatusBar-actions"},I?l(c,n({},e,{uploadState:E}
2)):null,N?l(h,e):null,P?l(f,e):null,B?l(d,e):null,D?l(p,e):null))};var c=function(e){var t=o("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":e.uploadState===s.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":e.isSomeGhost}),r=e.newFiles&&e.isUploadStarted&&!e.recoveredState?e.i18n("uploadXNewFiles",{smart_count:e.newFiles}):e.i18n("uploadXFiles",{smart_count:e.newFiles});return l("button",{type:"button",className:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onClick:e.startUpload,disabled:e.isSomeGhost,"data-uppy-super-focusable":!0},r)},h=function(e){return l("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":e.i18n("retryUpload"),onClick:e.retryAll,"data-uppy-super-focusable":!0},l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},l("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),e.i18n("retry"))},d=function(e){return l("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:e.i18n("cancel"),"aria-label":e.i18n("cancel"),onClick:e.cancelAll,"data-uppy-super-focusable":!0},l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},l("g",{fill:"none",fillRule:"evenodd"},l("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),l("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},f=function(e){var t=e.isAllPaused,r=e.i18n,n=r(t?"resume":"pause");return l("button",{title:n,"aria-label":n,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return function(e){if(!e.isAllComplete)return e.resumableUploads?e.isAllPaused?e.resumeAll():e.pauseAll():e.cancelAll()}(e)},"data-uppy-super-focusable":!0},l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},l("g",{fill:"none",fillRule:"evenodd"},l("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),l("path",t?{fill:"#FFF",d:"M6 4.25L11.5 8 6 11.75z"}:{d:"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z",fill:"#FFF"}))))},p=function(e){var t=e.i18n;return l("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:e.doneButtonHandler,"data-uppy-super-focusable":!0},t("done"))},m=function(){return l("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},l("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))},g=function(e){var t=Math.round(100*e.value);return l("div",{className:"uppy-StatusBar-content"},l(m,null),"determinate"===e.mode?t+"% \xb7 ":"",e.message)},y=function(e){return l("div",{className:"uppy-StatusBar-statusSecondary"},e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}))},b=function(e){var t=o("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return l("div",{className:"uppy-StatusBar-statusSecondary"},l("div",{className:"uppy-StatusBar-statusSecondaryHint"},e.i18n("xMoreFilesAdded",{smart_count:e.newFiles})),l("button",{type:"button",className:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onClick:e.startUpload},e.i18n("upload")))},v=i((function(e){var t=e.numUploads>1;return l("div",{className:"uppy-StatusBar-statusSecondary"},t&&e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}),l("span",{className:"uppy-StatusBar-additionalInfo"},t&&" \xb7 ",e.i18n("dataUploadedOfTotal",{complete:a(e.totalUploadedSize),total:a(e.totalSize)})," \xb7 ",e.i18n("xTimeLeft",{time:u(e.totalETA)})))}),500,{leading:!0,trailing:!0}),w=function(e){if(!e.isUploadStarted||e.isAllComplete)return null;var t=e.isAllPaused?e.i18n("paused"):e.i18n("uploading"),r=e.newFiles&&e.isU
2ploadStarted;return l("div",{className:"uppy-StatusBar-content","aria-label":t,title:t},e.isAllPaused?null:l(m,null),l("div",{className:"uppy-StatusBar-status"},l("div",{className:"uppy-StatusBar-statusPrimary"},e.supportsUploadProgress?t+": "+e.totalProgress+"%":t),e.isAllPaused||r||!e.showProgressDetails?null:e.supportsUploadProgress?l(v,e):l(y,e),r?l(b,e):null))},M=function(e){e.totalProgress;var t=e.i18n;return l("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},l("div",{className:"uppy-StatusBar-status"},l("div",{className:"uppy-StatusBar-statusPrimary"},l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},l("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},x=function(e){var t=e.error,r=(e.retryAll,e.hideRetryButton,e.i18n);return l("div",{className:"uppy-StatusBar-content",role:"alert",title:r("uploadFailed")},l("div",{className:"uppy-StatusBar-status"},l("div",{className:"uppy-StatusBar-statusPrimary"},l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},l("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),r("uploadFailed"))),l("span",{className:"uppy-StatusBar-details","aria-label":t,"data-microtip-position":"top-right","data-microtip-size":"medium",role:"tooltip",onClick:function(){var e=r("uploadFailed")+" \n\n "+t;alert(e)}},"?"))}},1575:function(e,t,r){var n=r(1576);e.exports=function(e){var t=n(e),r=t.hours?t.hours+"h ":"",i=t.hours?("0"+t.minutes).substr(-2):t.minutes,o=i?i+"m":"",s=i?("0"+t.seconds).substr(-2):t.seconds;return""+r+o+(t.hours?"":i?" "+s+"s":s+"s")}},1576:function(e,t){e.exports=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}},1577:function(e,t){e.exports=function(e){if(!e.bytesUploaded)return 0;var t=new Date-e.uploadStarted;return e.bytesUploaded/(t/1e3)}},1578:function(e,t){e.exports=function(e){return e.bytesTotal-e.bytesUploaded}},1579:function(e,t){e.exports=function(e){for(;e&&!e.dir;)e=e.parentNode;return e?e.dir:void 0}},1580:function(e,t,r){var n=r(8),i=r(1115).Uppy,o=n.instanceOf(i).isRequired,s=n.arrayOf(n.string),a=n.shape({strings:n.object,pluralize:n.func}),u=n.shape({id:n.string.isRequired,name:n.string.isRequired,placeholder:n.string}),l=n.oneOfType([n.arrayOf(u),n.func]),c=n.oneOfType([n.string,n.number]),h={uppy:o,inline:n.bool,plugins:s,width:c,height:c,showProgressDetails:n.bool,hideUploadButton:n.bool,hideProgressAfterFinish:n.bool,note:n.string,metaFields:l,proudlyDisplayPoweredByUppy:n.bool,disableStatusBar:n.bool,disableInformer:n.bool,disableThumbnailGenerator:n.bool,thumbnailWidth:n.number,locale:a};e.exports={uppy:o,locale:a,dashboard:h}},1581:function(e,t){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var n=["accept","acceptCharset","acceptCharset","accessKey","action","allowFullScreen","alt","as","async","autoCapitalize","autoComplete","autoCorrect","autoFocus","autoPlay","autoSave","capture","cellPadding","cellSpacing","challenge","charSet","checked","children","cite","className","classID","className","cols","colSpan","content","contentEditable","contextMenu","controls","controlsList","coords","crossOrigin","dangerouslySetInnerHTML","data","dateTime","default","defaultChecked","defaultValue","defer","dir","disabled","disablePictureInPicture","disableRemotePlayback","download","draggable","encType","enterKeyHint","htmlFor","form","formMethod","formAction","formEncType","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","htmlFor","httpEquiv","httpEquiv","icon","id","innerHTML","inputMode","integrity","is","itemID","itemProp","itemRef","itemScope","itemType","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginWidth","marginHeight","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noModule","nonce","noValidate","o
2pen","optimum","pattern","placeholder","playsInline","poster","preload","profile","radioGroup","readOnly","referrerPolicy","rel","required","reversed","role","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","title","type","useMap","value","wmode","wrap"];e.exports=function(e){var t;return(t=e,Object.entries?Object.entries(t):Object.keys(t).map((function(e){return[e,t[e]]}))).reduce((function(e,t){var i,o=t[0],s=t[1];return n.includes(o)?r({},e,((i={})[o]=s,i)):e}),{})}},1582:function(e,t,r){},1583:function(e,t,r){},1584:function(e,t,r){},1585:function(e,t,r){var n,i;function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=r(1115).Plugin,l=r(1586),c=l.Socket,h=l.Provider,d=l.RequestClient,f=r(1598),p=r(1599),m=r(1600),g=r(1601),y=r(1602);function b(e){if(e&&e.error){var t=new Error(e.message);throw a(t,e.error),t}return e}e.exports=(i=n=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"AwsS3Multipart",n.title="AW
2S S3 Multipart",n.client=new d(t,r);var i={timeout:3e4,limit:0,retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:n.createMultipartUpload.bind(o(n)),listParts:n.listParts.bind(o(n)),prepareUploadPart:n.prepareUploadPart.bind(o(n)),abortMultipartUpload:n.abortMultipartUpload.bind(o(n)),completeMultipartUpload:n.completeMultipartUpload.bind(o(n))};return n.opts=a({},i,r),n.upload=n.upload.bind(o(n)),n.requests=new g(n.opts.limit),n.uploaders=Object.create(null),n.uploaderEvents=Object.create(null),n.uploaderSockets=Object.create(null),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var i=n.prototype;return i.resetUploaderReferences=function(e,t){void 0===t&&(t={}),this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)},i.assertHost=function(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address, or if you are not using Companion, a custom `"+e+"` implementation.")},i.createMultipartUpload=function(e){this.assertHost("createMultipartUpload");var t={};return Object.keys(e.meta).map((function(r){null!=e.meta[r]&&(t[r]=e.meta[r].toString())})),this.client.post("s3/multipart",{filename:e.name,type:e.type,metadata:t}).then(b)},i.listParts=function(e,t){var r=t.key,n=t.uploadId;this.assertHost("listParts");var i=encodeURIComponent(r);return this.client.get("s3/multipart/"+n+"?key="+i).then(b)},i.prepareUploadPart=function(e,t){var r=t.key,n=t.uploadId,i=t.number;this.assertHost("prepareUploadPart");var o=encodeURIComponent(r);return this.client.get("s3/multipart/"+n+"/"+i+"?key="+o).then(b)},i.completeMultipartUpload=function(e,t){var r=t.key,n=t.uploadId,i=t.parts;this.assertHost("completeMultipartUpload");var o=encodeURIComponent(r),s=encodeURIComponent(n);return this.client.post("s3/multipart/"+s+"/complete?key="+o,{parts:i}).then(b)},i.abortMultipartUpload=function(e,t){var r=t.key,n=t.uploadId;this.assertHost("abortMultipartUpload");var i=encodeURIComponent(r),o=encodeURIComponent(n);return this.client.delete("s3/multipart/"+o+"?key="+i).then(b)},i.uploadFile=function(e){var t=this;return new Promise((function(r,n){var i=new y(e.data,a({createMultipartUpload:t.opts.createMultipartUpload.bind(t,e),listParts:t.opts.listParts.bind(t,e),prepareUploadPart:t.opts.prepareUploadPart.bind(t,e),completeMultipartUpload:t.opts.completeMultipartUpload.bind(t,e),abortMultipartUpload:t.opts.abortMultipartUpload.bind(t,e),getChunkSize:t.opts.getChunkSize?t.opts.getChunkSize.bind(t):null,onStart:function(r){var n=t.uppy.getFile(e.id);t.uppy.setFileState(e.id,{s3Multipart:a({},n.s3Multipart,{key:r.key,uploadId:r.uploadId})})},onProgress:function(r,n){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:r,bytesTotal:n})},onError:function(r){t.uppy.log(r),t.uppy.emit("upload-error",e,r),o.done(),t.resetUploaderReferences(e.id),n(r)},onSuccess:function(n){var s={body:a({},n),uploadURL:n.location};o.done(),t.resetUploaderReferences(e.id);var u=t.uppy.getFile(e.id);t.uppy.emit("upload-success",u||e,s),n.location&&t.uppy.log("Download "+i.file.name+" from "+n.location),r(i)},onPartComplete:function(r){var n=t.uppy.getFile(e.id);n&&t.uppy.emit("s3-multipart:part-uploaded",n,r)},limit:t.opts.limit||5,retryDelays:t.opts.retryDelays||[]},e.s3Multipart));t.uploaders[e.id]=i,t.uploaderEvents[e.id]=new f(t.uppy);var o=t.requests.run((function(){return e.isPaused||i.start(),function(){}}));t.onFileRemove(e.id,(function(n){o.abort(),t.resetUploaderReferences(e.id,{abort:!0}),r("upload "+n.id+" was removed")})),t.onCancelAll(e.id,(function(){o.abort(),t.resetUploaderReferences(e.id,{abort:!0}),r("upload "+e.id+" was canceled")})),t.onFilePause(e.id,(function(e){e?(o.abort(),i.pause()):(o.abort(),o=t.requests.run((function(){return i.start(),function(){}})))})),t.onPauseAll(e.id,(function(){o.abort(),i.pause()})),t.onResumeAll(e.id,(function(){o.abort(),e.error&&i.abort(),o=t.requests.run((function(){return i.start(),function(){}}))})),e.progress.uploadStarted&&e.isRestored||t.uppy.emit("upload-started",e)}))},i.uploadRemote=function(e){var t=this;return this.resetUploaderReferences(e.id),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e),e.serverToken?this.connectToServerSocket(e):new Promise((function(r,n){new(e.remote.providerOptions.provider?h:d)(t.uppy,e.remote.providerOptions).post(e.remote.url,a({},e.remote.body,{protocol:"s3-multipart",size:e.data.size,metadata:e.meta})).then((function(r){return t.uppy.setFileState(e.id,{serverToken:r.token}),e=t.uppy.getFile(e.id)})).then((function(e){return t.connectToServerSocket(e)})).then((function(){r()})).catch((function(r){t.uppy.emit("upload-error",e,r),n(r)}))}
2))},i.connectToServerSocket=function(e){var t=this;return new Promise((function(r,n){var i=e.serverToken,o=m(e.remote.companionUrl),s=new c({target:o+"/api/"+i,autoOpen:!1});t.uploaderSockets[e.id]=s,t.uploaderEvents[e.id]=new f(t.uppy),t.onFileRemove(e.id,(function(n){a.abort(),s.send("pause",{}),t.resetUploaderReferences(e.id,{abort:!0}),r("upload "+e.id+" was removed")})),t.onFilePause(e.id,(function(e){e?(a.abort(),s.send("pause",{})):(a.abort(),a=t.requests.run((function(){return s.send("resume",{}),function(){}})))})),t.onPauseAll(e.id,(function(){a.abort(),s.send("pause",{})})),t.onCancelAll(e.id,(function(){a.abort(),s.send("pause",{}),t.resetUploaderReferences(e.id),r("upload "+e.id+" was canceled")})),t.onResumeAll(e.id,(function(){a.abort(),e.error&&s.send("pause",{}),a=t.requests.run((function(){s.send("resume",{})}))})),t.onRetry(e.id,(function(){s.isOpen&&(s.send("pause",{}),s.send("resume",{}))})),t.onRetryAll(e.id,(function(){s.isOpen&&(s.send("pause",{}),s.send("resume",{}))})),s.on("progress",(function(r){return p(t,r,e)})),s.on("error",(function(r){t.uppy.emit("upload-error",e,new Error(r.error)),t.resetUploaderReferences(e.id),a.done(),n(new Error(r.error))})),s.on("success",(function(n){var i={uploadURL:n.url};t.uppy.emit("upload-success",e,i),t.resetUploaderReferences(e.id),a.done(),r()}));
2var a=t.requests.run((function(){return s.open(),e.isPaused&&s.send("pause",{}),function(){}}))}))},i.upload=function(e){var t=this;if(0===e.length)return Promise.resolve();var r=e.map((function(e){var r=t.uppy.getFile(e);return r.isRemote?t.uploadRemote(r):t.uploadFile(r)}));return Promise.all(r)},i.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",(function(r){e===r.id&&t(r.id)}))},i.onFilePause=function(e,t){this.uploaderEvents[e].on("upload-pause",(function(r,n){e===r&&t(n)}))},i.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",(function(r){e===r&&t()}))},i.onRetryAll=function(e,t){var r=this;this.uploaderEvents[e].on("retry-all",(function(n){r.uppy.getFile(e)&&t()}))},i.onPauseAll=function(e,t){var r=this;this.uploaderEvents[e].on("pause-all",(function(){r.uppy.getFile(e)&&t()}))},i.onCancelAll=function(e,t){var r=this;this.uploaderEvents[e].on("cancel-all",(function(){r.uppy.getFile(e)&&t()}))},i.onResumeAll=function(e,t){var r=this;this.uploaderEvents[e].on("resume-all",(function(){r.uppy.getFile(e)&&t()}))},i.install=function(){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:a({},e,{resumableUploads:!0})}),this.uppy.addUploader(this.upload)},i.uninstall=function(){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:a({},e,{resumableUploads:!1})}),this.uppy.removeUploader(this.upload)},n}(u),n.VERSION="1.8.18",i)},1586:function(e,t,r){"use strict";var n=r(1190),i=r(1590),o=r(1596),s=r(1597);e.exports={RequestClient:n,Provider:i,SearchProvider:o,Socket:s}},1587:function(e,t,r){"use strict";function n(e){var t="function"===typeof Map?new Map:void 0;return(n=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)})(e)}function i(e,t,r){return(i=o()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&s(i,r.prototype),i}).apply(null,arguments)}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){var t,r;function n(){var t;return(t=e.call(this,"Authorization required")||this).name="AuthError",t.isAuthError=!0,t}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(n(Error));e.exports=u},1588:function(e,t,r){var n=r(1589);e.exports=function(){return fetch.apply(void 0,arguments).catch((function(e){throw"AbortError"===e.name?e:new n(e)}))}},1589:function(e,t){function r(e){var t="function"===typeof Map?new Map:void 0;return(r=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return n(e,arguments,s(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,e)})(e)}function n(e,t,r){return(n=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&o(i,r.prototype),i}).apply(null,arguments)}function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}
2function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=function(e){var t,r;function n(t,r){var n;return void 0===r&&(r=null),(n=e.call(this,"This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.\n\nSource error: ["+t+"]")||this).isNetworkError=!0,n.request=r,n}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r),n}(r(Error));e.exports=a},1590:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=r(1591),s=r(1592),a=r(1190),u=r(1595);e.exports=function(e){var t,r;function a(t,r){var n;return(n=e.call(this,t,r)||this).provider=r.provider,n.id=n.provider,n.name=n.opts.name||n.id.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" "),n.pluginId=n.opts.pluginId,n.tokenKey="companion-"+n.pluginId+"-auth-token",n.companionKeysParams=n.opts.companionKeysParams,n.preAuthToken=null,n}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var l=a.prototype;return l.headers=function(){var t=this;return Promise.all([e.prototype.headers.call(this),this.getAuthToken()]).then((function(e){var r=e[0],i=e[1],o={};return i&&(o["uppy-auth-token"]=i),t.companionKeysParams&&(o["uppy-credentials-params"]=btoa(JSON.stringify({params:t.companionKeysParams}))),n({},r,o)}))},l.onReceiveResponse=function(t){t=e.prototype.onReceiveResponse.call(this,t);var r=this.uppy.getPlugin(this.pluginId),n=r.getPluginState().authenticated?401!==t.status:t.status<400;return r.setPluginState({authenticated:n}),t}
2,l.setAuthToken=function(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)},l.getAuthToken=function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)},l.authUrl=function(e){void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken);var t=o(e);return t=t?"?"+t:t,this.hostname+"/"+this.id+"/connect"+t},l.fileUrl=function(e){return this.hostname+"/"+this.id+"/get/"+e},l.fetchPreAuthToken=function(){var e=this;return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then((function(t){e.preAuthToken=t.token})).catch((function(t){e.uppy.log("[CompanionClient] unable to fetch preAuthToken "+t,"warning")})):Promise.resolve()},l.list=function(e){return this.get(this.id+"/list/"+(e||""))},l.logout=function(){var e=this;return this.get(this.id+"/logout").then((function(t){return Promise.all([t,e.uppy.getPlugin(e.pluginId).storage.removeItem(e.tokenKey)])})).then((function(e){return e[0]}))},a.initPlugin=function(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts=n({},r,t)),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){var i=t.companionAllowedHosts;if("string"!==typeof i&&!Array.isArray(i)&&!(i instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=i}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new s(t.companionUrl).origin;e.storage=e.opts.storage||u},a}(a)},1591:function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function e(t,n){var i=[];for(var o in t)if(r.call(t,o)){var s,a=t[o],u=encodeURIComponent(o);s="object"===typeof a?e(a,n?n+"["+u+"]":u):(n?n+"["+u+"]":u)+"="+encodeURIComponent(a),i.push(s)}return i.join("&")}},1592:function(e,t,r){"use strict";(function(t){var n=r(1593),i=r(1594),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function h(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(e){var r,n=("undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{}).location||{},i={},o=typeof(e=e||n);if("blob:"===e.protocol)i=new y(unescape(e.pathname),{});else if("string"===o)for(r in i=new y(e,{}),f)delete i[r];else if("object"===o){for(r in e)r in f||(i[r]=e[r]);void 0===i.slashes&&(i.slashes=a.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=h(e)).replace(s,""),t=t||{};var r,n=l.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],u=0;return o?a?(r=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(r=n[2]+n[4],u=n[2].length):a?(r=n[3]+n[4],u=n[3].length):r=n[4],"file:"===i?u>=2&&(r=r.slice(2)):m(i)?r=n[4]:i?o&&(r=r.slice(2)):u>=2&&m(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||m(i),slashesCount:u,rest:r}}function y(e,t,r){if(e=(e=h(e)).replace(s,""),!(this instanceof y))return new y(e,t,r);var o,a,u,l,f,b,v=d.slice(),w=typeof t,M=this,x=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!==typeof r&&(r=i.parse),o=!(a=g(e||"",t=p(t))).protocol&&!a.slashes,M.slashes=a.slashes||o&&t.slashes,M.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||c.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(M.protocol)))&&(v[3]=[/(.*)/,"pathname"]);x<v.length;x++)"function"!==typeof(l=v[x])?(u=l[0],b=l[1],u!==u?M[b]=e:"string"===typeof u?~(f="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"===typeof l[2]?(M[b]=e.slice(0,f),e=e.slice(f+l[2])):(M[b]=e.slice(f),e=e.slice(0,f))):(f=u.exec(e))&&(M[b]=f[1],e=e.slice(0,f.index)),M[b]=M[b]||o&&l[3]&&t[b]||"",l[4]&&(M[b]=M[b].toLowerCase())):e=l(e,M);
2r&&(M.query=r(M.query)),o&&t.slashes&&"/"!==M.pathname.charAt(0)&&(""!==M.pathname||""!==t.pathname)&&(M.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],o=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(o=!0),r.splice(n,1),s--);return o&&r.unshift(""),"."!==i&&".."!==i||r.push(""),r.join("/")}(M.pathname,t.pathname)),"/"!==M.pathname.charAt(0)&&m(M.protocol)&&(M.pathname="/"+M.pathname),n(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(~(f=M.auth.indexOf(":"))?(M.username=M.auth.slice(0,f),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(f+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin="file:"!==M.protocol&&m(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}y.prototype={set:function(e,t,r){var o=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(r||i.parse)(t)),o[e]=t;break;case"port":o[e]=t,n(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,u.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(o.username=t.slice(0,a),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(a+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<d.length;l++){var c=d[l];c[4]&&(o[c[1]]=o[c[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"===typeof e||(e=i.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&m(r.protocol)&&!n&&"/"!==r.pathname&&(s+="@"),(":"===n[n.length-1]||u.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,(t="object"===typeof r.query?e(r.query):r.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(s+=r.hash),s}},y.extractProtocol=g,y.location=p,y.trimLeft=h,y.qs=i,e.exports=y}).call(this,r(251))},1593:function(e,t,r){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},1594:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function o(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var r,i,s=[];for(i in"string"!==typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!==r&&void 0!==r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;s.push(i+"="+r)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),s=i(t[2]);null===o||null===s||o in n||(n[o]=s)}return n}},1595:function(e,t,r){"use strict";e.exports.setItem=function(e,t){return new Promise((function(r){localStorage.setItem(e,t),r()}))},e.exports.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},e.exports.removeItem=function(e){return new Promise((function(t){localStorage.removeItem(e),t()}))}},1596:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=r(1190);e.exports=function(e){var t,r;function i(t,r){var n;return(n=e.call(this,t,r)||this).provider=r.provider,n.id=n.provider,n.name=n.opts.name||n.id.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" "),n.pluginId=n.opts.pluginId,n}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r);var o=i.prototype;return o.fileUrl=function(e){return this.hostname+"/search/"+this.id+"/get/"+e},o.search=function(e,t){return t=t?"&"+t:"",this.get("search/"+this.id+"/list?q="+encodeURIComponent(e)+t)},i}(i)},1597:function(e,t,r){var n=r(1295);e.exports=function(){function e(e){this.opts=e,this._queued=[],this.isOpen=!1,this.emitter=n(),this._handleMessage=this._handleMessage.bind(this),this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this),e&&!1===e.autoOpen||this.open()}var t=e.prototype;return t.open=function(){var e=this;this.socket=new WebSocket(this.opts.target),this.socket.onopen=function(t){for(e.isOpen=!0;e._queued.length>0&&e.isOpen;){var r=e._queued[0];e.send(r.action,r.payload),e._queued=e._queued.slice(1)}},this.socket.onclose=function(t){e.isOpen=!1},this.socket.onmessage=this._handleMessage},t.close=function(){this.socket&&this.socket.close()},t.send=function(e,t){this.isOpen?this.socket.send(JSON.stringify({action:e,payload:t})):this._queued.push({action:e,payload:t})},t.on=function(e,t){this.emitter.on(e,t)},t.emit=function(e,t){this.emitter.emit(e,t)},t.once=function(e,t){this.emitter.once(e,t)},t._handleMessage=function(e){try{var t=JSON.parse(e.data);
2this.emit(t.action,t.payload)}catch(r){console.log(r)}},e}()},1598:function(e,t){e.exports=function(){function e(e){this._events=[],this._emitter=e}var t=e.prototype;return t.on=function(e,t){return this._events.push([e,t]),this._emitter.on(e,t)},t.remove=function(){var e=this;this._events.forEach((function(t){var r=t[0],n=t[1];e._emitter.off(r,n)}))},e}()},1599:function(e,t,r){var n=r(1188);e.exports=n((function(e,t,r){var n=t.progress,i=t.bytesUploaded,o=t.bytesTotal;n&&(e.uppy.log("Upload progress: "+n),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:i,bytesTotal:o}))}),300,{leading:!0,trailing:!0})},1600:function(e,t){e.exports=function(e){var t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return(/^http:\/\//i.test(e)?"ws":"wss")+"://"+t}},1601:function(e,t,r){var n=r(1299);function i(){return new Error("Cancelled")}e.exports=function(){function e(e){this.limit="number"!==typeof e||0===e?1/0:e,this.activeRequests=0,this.queuedHandlers=[]}var t=e.prototype;return t._call=function(e){var t=this;this.activeRequests+=1;var r,n=!1;try{r=e()}catch(i){throw this.activeRequests-=1,i}return{abort:function(){n||(n=!0,t.activeRequests-=1,r(),t._queueNext())},done:function(){n||(n=!0,t.activeRequests-=1,t._queueNext())}}},t._queueNext=function(){var e=this;Promise.resolve().then((function(){e._next()}))},t._next=function(){if(!(this.activeRequests>=this.limit)&&0!==this.queuedHandlers.length){var e=this.queuedHandlers.shift(),t=this._call(e.fn);e.abort=t.abort,e.done=t.done}},t._queue=function(e,t){var r=this;void 0===t&&(t={});var i={fn:e,priority:t.priority||0,abort:function(){r._dequeue(i)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=n(this.queuedHandlers,(function(e){return i.priority>e.priority}));return-1===o?this.queuedHandlers.push(i):this.queuedHandlers.splice(o,0,i),i},t._dequeue=function(e){var t=this.queuedHandlers.indexOf(e);-1!==t&&this.queuedHandlers.splice(t,1)},t.run=function(e,t){return this.activeRequests<this.limit?this._call(e):this._queue(e,t)},t.wrapPromiseFunction=function(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var a,u=new Promise((function(n,s){a=r.run((function(){var t,r;try{r=Promise.resolve(e.apply(void 0,o))}catch(u){r=Promise.reject(u)}return r.then((function(e){t?s(t):(a.done(),n(e))}),(function(e){t?s(t):(a.done(),s(e))})),function(){t=i()}}),t)}));return u.abort=function(){a.abort()},u}},e}()},1602:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=r(1301),o=i.AbortController,s=i.createAbortError,a=r(1604),u={limit:1,retryDelays:[0,1e3,3e3,5e3],getChunkSize:function(e){return Math.ceil(e.size/1e4)},onStart:function(){},onProgress:function(){},onPartComplete:function(){},onSuccess:function(){},onError:function(e){throw e}};function l(e){if("string"===typeof e)return parseInt(e,10);if("number"===typeof e)return e;throw new TypeError("Expected a number")}var c=function(){function e(e,t){this.options=n({},u,t),this.options.getChunkSize||(this.options.getChunkSize=u.getChunkSize),this.file=e,this.abortController=new o,this.key=this.options.key||null,this.uploadId=this.options.uploadId||null,this.parts=[],this.createdPromise=Promise.reject(),this.isPaused=!1,this.partsInProgress=0,this.chunks=null,this.chunkState=null,this._initChunks(),this.createdPromise.catch((function(){}))}var t=e.prototype;return t._aborted=function(){return this.abortController.signal.aborted},t._initChunks=function(){var e=[],t=this.options.getChunkSize(this.file),r=Math.max(5242880,Math.ceil(this.file.size/1e4)),n=Math.max(t,r);if(0===this.file.size)e.push(this.file);else for(var i=0;i<this.file.size;i+=n){var o=Math.min(this.file.size,i+n);e.push(this.file.slice(i,o))}this.chunks=e,this.chunkState=e.map((function(){return{uploaded:0,busy:!1,done:!1}}))},t._createUpload=function(){var e=this;return this.createdPromise=Promise.resolve().then((function(){return e.options.createMultipartUpload()})),this.createdPromise.then((function(t){if(e._aborted())throw s();if(!("object"===typeof t&&t&&"string"===typeof t.uploadId&&"string"===typeof t.key))throw new TypeError("AwsS3/Multipart: Got incorrect result from `createMultipartUpload()`, expected an object `{ uploadId, key }`.");e.key=t.key,e.uploadId=t.uploadId,e.options.onStart(t),e._uploadParts()})).catch((function(t){e._onError(t)}))},t._resumeUpload=function(){var e=this;return Promise.resolve().then((function(){return e.options.listParts({uploadId:e.uploadId,key:e.key})})).then((function(t){if(e._aborted())throw s();t.forEach((function(t){var r=t.PartNumber-1;e.chunkState[r]={uploaded:l(t.Size),etag:t.ETag,done:!0},e.parts.some((function(e){return e.PartNumber===t.PartNumber}))||e.parts.push({PartNumber:t.PartNumber,ETag:t.ETag})})),e._uploadParts()})).catch((function(t){e._onError(t)}))},t._uploadParts=function(){var e=this;if(!this.isPaused){var t=this.options.limit-this.partsInProgress;if(0!==t)if(this.chunkState.every((function(e){return e.done})))this._completeUpload();else{for(var r=[],n=0;n<this.chunkState.length;n++){var i=this.chunkState[n];if(!i.done&&!i.busy&&(r.push(n),r.length>=t))break}r.forEach((function(t){e._uploadPartRetryable(t).then((function(){e._uploadParts()}),(function(t){e._onError(t)}))}
2))}}},t._retryable=function(e){var t=this,r=e.before,n=e.attempt,i=e.after,o=this.options.retryDelays,u=this.abortController.signal;r&&r();return function e(r){return n().catch((function(n){if(t._aborted())throw s();if(function(e){if(e.source&&"number"===typeof e.source.status){var t=e.source.status;return 0===t||409===t||423===t||t>=500&&t<600}return!1}(n)&&r<o.length)return a(o[r],{signal:u}).then((function(){return e(r+1)}));throw n}))}(0).then((function(e){return i&&i(),e}),(function(e){throw i&&i(),e}))},t._uploadPartRetryable=function(e){var t=this;return this._retryable({before:function(){t.partsInProgress+=1},attempt:function(){return t._uploadPart(e)},after:function(){t.partsInProgress-=1}})},t._uploadPart=function(e){var t=this,r=this.chunks[e];return this.chunkState[e].busy=!0,Promise.resolve().then((function(){return t.options.prepareUploadPart({key:t.key,uploadId:t.uploadId,body:r,number:e+1})})).then((function(e){if(!("object"===typeof e&&e&&"string"===typeof e.url))throw new TypeError("AwsS3/Multipart: Got incorrect result from `prepareUploadPart()`, expected an object `{ url }`.");return e})).then((function(r){var n=r.url,i=r.headers;if(t._aborted())throw t.chunkState[e].busy=!1,s();return t._uploadPartBytes(e,n,i)}))},t._onPartProgress=function(e,t,r){this.chunkState[e].uploaded=l(t);var n=this.chunkState.reduce((function(e,t){return e+t.uploaded}),0);this.options.onProgress(n,this.file.size)},t._onPartComplete=function(e,t){this.chunkState[e].etag=t,this.chunkState[e].done=!0;var r={PartNumber:e+1,ETag:t};this.parts.push(r),this.options.onPartComplete(r)},t._uploadPartBytes=function(e,t,r){var n,i=this,o=this.chunks[e],a=this.abortController.signal,u=new Promise((function(e,t){n={resolve:e,reject:t}})),l=new XMLHttpRequest;function c(){a.removeEventListener("abort",h)}function h(){l.abort()}return l.open("PUT",t,!0),r&&Object.keys(r).map((function(e){l.setRequestHeader(e,r[e])})),l.responseType="text",a.addEventListener("abort",h),l.upload.addEventListener("progress",(function(t){t.lengthComputable&&i._onPartProgress(e,t.loaded,t.total)})),l.addEventListener("abort",(function(t){c(),i.chunkState[e].busy=!1,n.reject(s())})),l.addEventListener("load",(function(t){if(c(),i.chunkState[e].busy=!1,t.target.status<200||t.target.status>=300){var r=new Error("Non 2xx");return r.source=t.target,void n.reject(r)}i._onPartProgress(e,o.size,o.size);var s=t.target.getResponseHeader("ETag");null!==s?(i._onPartComplete(e,s),n.resolve()):n.reject(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."))})),l.addEventListener("error",(function(t){c(),i.chunkState[e].busy=!1;var r=new Error("Unknown error");r.source=t.target,n.reject(r)})),l.send(o),u},t._completeUpload=function(){var e=this;return this.parts.sort((function(e,t){return e.PartNumber-t.PartNumber})),Promise.resolve().then((function(){return e.options.completeMultipartUpload({key:e.key,uploadId:e.uploadId,parts:e.parts})})).then((function(t){e.options.onSuccess(t)}),(function(t){e._onError(t)}))},t._abortUpload=function(){var e=this;this.abortController.abort(),this.createdPromise.then((function(){e.options.abortMultipartUpload({key:e.key,uploadId:e.uploadId})}),(function(){}))},t._onError=function(e){e&&"AbortError"===e.name||this.options.onError(e)},t.start=function(){this.isPaused=!1,this.uploadId?this._resumeUpload():this._createUpload()},t.pause=function(){this.abortController.abort(),this.abortController=new o,this.isPaused=!0},t.abort=function(e){if(void 0===e&&(e={}),!(e.really||!1))return this.pause();this._abortUpload()},e}();e.exports=c},1603:function(e,t,r){"use strict";(function(e){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t,r){return t=l(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=h(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AbortSignal,e.AbortController}("undefined"!==typeof self?self:e);var f=function(){return s((function e(){i(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}),[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,i=r.length;n<i;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type in this.listeners){for(var r=this.listeners[e.type].slice(),n=function(){var n=r[i];try{n.callback.call(t,e)}catch(o){Promise.resolve().then((function(){throw o}))}n.options&&n.options.once&&t.removeEventListener(e.type,n.callback)},i=0,o=r.length;i<o;i++)n();return!e.defaultPrevented}}}])}(),p=function(e){function t(){var e;return i(this,t),(e=n(this,t)).listeners||f.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),s(t,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"===typeof this.onabort&&this.onabort.call(this,e)),function(e,t,r,n){var i=u(l(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}(t,"dispatchEvent",this,3)([e])}},{key:"throwIfAborted",value:function(){var e=this.aborted,t=this.reason;if(e)throw void 0===t?"Aborted":t}}],[{key:"timeout",value:function(e){var t=new m;return setTimeout((function(){return t.abort(new DOMException("This signal is timeout in ".concat(e,"ms"),"TimeoutError"))}),e),t.signal}},{key:"any",value:function(e){var t=new m;function r(){t.abort(this.reason),function(){var t,n=a(e);try{for(n.s();!(t=n.n()).done;){t.value.removeEventListener("abort",r)}}catch(i){n.e(i)}finally{n.f()}}()}var n,i=a(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.aborted){t.abort(o.reason);break}o.addEventListener("abort",r)}}catch(s){i.e(s)}finally{i.f()}return t.signal}}])}(f),m=function(){return s((function e(){i(this,e),Object.defineProperty(this,"signal",{value:new p,writable:!0,configurable:!0})}),[{key:"abort",value:function(e){var t=function(e){if(void 0===e)if("undefined"===typeof document)(e=new Error("This operation was aborted")).name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(t){(e=new Error("This operation was aborted")).name="AbortError"}return e}(e),r=function(e){var t;try{t=new Event("abort")}catch(r){"undefined"!==typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}return t.reason=e,t}(t);
2this.signal.reason=t,this.signal.dispatchEvent(r)}},{key:"toString",value:function(){return"[object AbortController]"}}])}();"undefined"!==typeof Symbol&&Symbol.toStringTag&&(m.prototype[Symbol.toStringTag]="AbortController",p.prototype[Symbol.toStringTag]="AbortSignal"),t.AbortController=m,t.AbortSignal=p,t.default=m}).call(this,r(251))},1604:function(e,t,r){var n=r(1301).createAbortError;e.exports=function(e,t){return new Promise((function(r,i){if(t&&t.signal&&t.signal.aborted)return i(n());function o(){clearTimeout(s),a(),i(n())}var s=setTimeout((function(){a(),r()}),e);function a(){t&&t.signal&&t.signal.removeEventListener("abort",o)}t&&t.signal&&t.signal.addEventListener("abort",o)}))}},1605:function(e,t,r){},1606:function(e,t,r){var n;n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s="./index.js")}({
2"./index.js":function(e,t,r){var n=r("./src/cos.js");e.exports=n},
vendor: 7,749 bytes, line 2
2"./lib/base64.js":function(e,t){var r=function(e){var t=(e=e||{}).Base64,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(r),i=String.fromCharCode,o=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?i(192|t>>>6)+i(128|63&t):i(224|t>>>12&15)+i(128|t>>>6&63)+i(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return i(240|t>>>18&7)+i(128|t>>>12&63)+i(128|t>>>6&63)+i(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(e){return e.replace(s,o)},u=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[r.charAt(n>>>18),r.charAt(n>>>12&63),t>=2?"=":r.charAt(n>>>6&63),t>=1?"=":r.charAt(63&n)].join("")},l=e.btoa?function(t){return e.btoa(t)}:function(e){return e.replace(/[\s\S]{1,3}/g,u)},c=function(e){return l(a(e))},h=function(e,t){return t?c(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):c(String(e))},d=new RegExp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),f=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return i(55296+(t>>>10))+i(56320+(1023&t));case 3:return i((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return i((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},p=function(e){return e.replace(d,f)},m=function(e){var t=e.length,r=t%4,o=(t>0?n[e.charAt(0)]<<18:0)|(t>1?n[e.charAt(1)]<<12:0)|(t>2?n[e.charAt(2)]<<6:0)|(t>3?n[e.charAt(3)]:0),s=[i(o>>>16),i(o>>>8&255),i(255&o)];return s.length-=[0,0,2,1][r],s.join("")},g=e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/[\s\S]{1,4}/g,m)},y=function(e){return p(g(e))},b=function(e){return y(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};return{VERSION:"2.1.9",atob:g,btoa:l,fromBase64:b,toBase64:h,utob:a,encode:h,encodeURI:function(e){return h(e,!0)},btou:p,decode:b,noConflict:function(){var r=e.Base64;return e.Base64=t,r}}}();e.exports=r},"./lib/crypto.js":function(e,t,r){(function(e){var t=r("./node_modules/@babel/runtime/helpers/typeof.js"),n=n||function(e,t){var r={},n=r.lib={},i=function(){},o=n.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var i=0;i<e;i++)t[n+i>>>2]|=(r[i>>>2]>>>24-i%4*8&255)<<24-(n+i)%4*8;else if(65535<r.length)for(i=0;i<e;i+=4)t[n+i>>>2]=r[i>>>2];else t.push.apply(t,r);return this.sigBytes+=e,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r=[],n=0;n<t;n+=4)r.push(4294967296*e.random()|0);return new s.init(r,t)}}),a=r.enc={},u=a.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var r=[],n=0;n<e;n++){var i=t[n>>>2]>>>24-n%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(r,t/2)}},l=a.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var r=[],n=0;n<e;n++)r.push(String.fromCharCode(t[n>>>2]>>>24-n%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(r,t)}},c=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,a=i/(4*o);if(t=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,i=e.min(4*t,i),t){for(var u=0;u<t;u+=o)this._doProcessBlock(n,u);u=n.splice(0,t),r.sigBytes-=i}return new s.init(u,i)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=r.algo={};return r}(Math);!function(){var e=n,t=(o=e.lib).WordArray,r=o.Hasher,i=[],o=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],s=r[2],a=r[3],u=r[4],l=0;80>l;l++){if(16>l)i[l]=0|e[t+l];else{var c=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=c<<1|c>>>31}c=(n<<5|n>>>27)+u+i[l],c=20>l?c+(1518500249+(o&s|~o&a)):40>l?c+(1859775393+(o^s^a)):60>l?c+((o&s|o&a|s&a)-1894007588):c+((o^s^a)-899497514),u=a,a=s,s=o<<30|o>>>2,o=n,n=c}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(o),e.HmacSHA1=r._createHmacHelper(o)}(),function(){var e=n,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,r){e=this._hasher=new e.init,"string"==typeof r&&(r=t.parse(r));var n=e.blockSize,i=4*n;r.sigBytes>i&&(r=e.finalize(r)),r.clamp();for(var o=this._oKey=r.clone(),s=this._iKey=r.clone(),a=o.words,u=s.words,l=0;l<n;l++)a[l]^=1549556828,u[l]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=n,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var r=e.length,n=this._map,i=n.charAt(64);if(i){var o=e.indexOf(i);-1!=o&&(r=o)}for(var s=[],a=0,u=0;u<r;u++)if(u%4){var l=n.indexOf(e.charAt(u-1))<<u%4*2,c=n.indexOf(e.charAt(u))>>>6-u%4*2;s[a>>>2]|=(l|c)<<24-a%4*8,a++}return t.create(s,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/="}}(),"object"===t(e)?e.exports=n:window.CryptoJS=n}).call(this,r("./node_modules/webpack/buildin/module.js")(e))},
2"./lib/md5.js":function(e,t,r){(function(e){var t,n=r("./node_modules/@babel/runtime/helpers/typeof.js");!function(){"use strict";var i="object"===("undefined"===typeof window?"undefined":n(window)),o=i?window:{};o.JS_MD5_NO_WINDOW&&(i=!1),!i&&"object"===("undefined"===typeof self?"undefined":n(self))&&(o=self);var s,a=!o.JS_MD5_NO_COMMON_JS&&"object"===n(e)&&e.exports,u=r("./node_modules/webpack/buildin/amd-options.js"),l=!o.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,c="0123456789abcdef".split(""),h=[128,32768,8388608,-2147483648],d=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),m=[];if(l){var g=new ArrayBuffer(68);s=new Uint8Array(g),m=new Uint32Array(g)}!o.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!l||!o.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===n(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var y=function(e){return function(t,r){return new b(!0).update(t,r)[e]()}};function b(e){if(e)m[0]=m[16]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=0,this.blocks=m,this.buffer8=s;else if(l){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}b.prototype.update=function(e,t){if(!this.finalized){for(var r,n,i=0,o=e.length,s=this.blocks,a=this.buffer8;i<o;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),l)for(n=this.start;i<o&&n<64;++i)r=e.charCodeAt(i),t||r<128?a[n++]=r:r<2048?(a[n++]=192|r>>6,a[n++]=128|63&r):r<55296||r>=57344?(a[n++]=224|r>>12,a[n++]=128|r>>6&63,a[n++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),a[n++]=240|r>>18,a[n++]=128|r>>12&63,a[n++]=128|r>>6&63,a[n++]=128|63&r);else for(n=this.start;i<o&&n<64;++i)r=e.charCodeAt(i),t||r<128?s[n>>2]|=r<<d[3&n++]:r<2048?(s[n>>2]|=(192|r>>6)<<d[3&n++],s[n>>2]|=(128|63&r)<<d[3&n++]):r<55296||r>=57344?(s[n>>2]|=(224|r>>12)<<d[3&n++],s[n>>2]|=(128|r>>6&63)<<d[3&n++],s[n>>2]|=(128|63&r)<<d[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),s[n>>2]|=(240|r>>18)<<d[3&n++],s[n>>2]|=(128|r>>12&63)<<d[3&n++],s[n>>2]|=(128|r>>6&63)<<d[3&n++],s[n>>2]|=(128|63&r)<<d[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=h[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},b.prototype.hash=function(){var e,t,r,n,i,o,s=this.blocks;this.first?t=((t=((e=((e=s[0]-680876937)<<7|e>>>25)-271733879<<0)^(r=((r=(-271733879^(n=((n=(-1732584194^2004318071&e)+s[1]-117830708)<<12|n>>>20)+e<<0)&(-271733879^e))+s[2]-1126478375)<<17|r>>>15)+n<<0)&(n^e))+s[3]-1316259209)<<22|t>>>10)+r<<0:(e=this.h0,t=this.h1,r=this.h2,t=((t+=((e=((e+=((n=this.h3)^t&(r^n))+s[0]-680876936)<<7|e>>>25)+t<<0)^(r=((r+=(t^(n=((n+=(r^e&(t^r))+s[1]-389564586)<<12|n>>>20)+e<<0)&(e^t))+s[2]+606105819)<<17|r>>>15)+n<<0)&(n^e))+s[3]-1044525330)<<22|t>>>10)+r<<0),t=((t+=((e=((e+=(n^t&(r^n))+s[4]-176418897)<<7|e>>>25)+t<<0)^(r=((r+=(t^(n=((n+=(r^e&(t^r))+s[5]+1200080426)<<12|n>>>20)+e<<0)&(e^t))+s[6]-1473231341)<<17|r>>>15)+n<<0)&(n^e))+s[7]-45705983)<<22|t>>>10)+r<<0,t=((t+=((e=((e+=(n^t&(r^n))+s[8]+1770035416)<<7|e>>>25)+t<<0)^(r=((r+=(t^(n=((n+=(r^e&(t^r))+s[9]-1958414417)<<12|n>>>20)+e<<0)&(e^t))+s[10]-42063)<<17|r>>>15)+n<<0)&(n^e))+s[11]-1990404162)<<22|t>>>10)+r<<0,t=((t+=((e=((e+=(n^t&(r^n))+s[12]+1804603682)<<7|e>>>25)+t<<0)^(r=((r+=(t^(n=((n+=(r^e&(t^r))+s[13]-40341101)<<12|n>>>20)+e<<0)&(e^t))+s[14]-1502002290)<<17|r>>>15)+n<<0)&(n^e))+s[15]+1236535329)<<22|t>>>10)+r<<0,t=((t+=((n=((n+=(t^r&((e=((e+=(r^n&(t^r))+s[1]-165796510)<<5|e>>>27)+t<<0)^t))+s[6]-1069501632)<<9|n>>>23)+e<<0)^e&((r=((r+=(e^t&(n^e))+s[11]+643717713)<<14|r>>>18)+n<<0)^n))+s[0]-373897302)<<20|t>>>12)+r<<0,t=((t+=((n=((n+=(t^r&((e=((e+=(r^n&(t^r))+s[5]-701558691)<<5|e>>>27)+t<<0)^t))+s[10]+38016083)<<9|n>>>23)+e<<0)^e&((r=((r+=(e^t&(n^e))+s[15]-660478335)<<14|r>>>18)+n<<0)^n))+s[4]-405537848)<<20|t>>>12)+r<<0,t=((t+=((n=((n+=(t^r&((e=((e+=(r^n&(t^r))+s[9]+568446438)<<5|e>>>27)+t<<0)^t))+s[14]-1019803690)<<9|n>>>23)+e<<0)^e&((r=((r+=(e^t&(n^e))+s[3]-187363961)<<14|r>>>18)+n<<0)^n))+s[8]+1163531501)<<20|t>>>12)+r<<0,t=((t+=((n=((n+=(t^r&((e=((e+=(r^n&(t^r))+s[13]-1444681467)<<5|e>>>27)+t<<0)^t))+s[2]-51403784)<<9|n>>>23)+e<<0)^e&((r=((r+=(e^t&(n^e))+s[7]+1735328473)<<14|r>>>18)+n<<0)^n))+s[12]-1926607734)<<20|t>>>
212)+r<<0,t=((t+=((o=(n=((n+=((i=t^r)^(e=((e+=(i^n)+s[5]-378558)<<4|e>>>28)+t<<0))+s[8]-2022574463)<<11|n>>>21)+e<<0)^e)^(r=((r+=(o^t)+s[11]+1839030562)<<16|r>>>16)+n<<0))+s[14]-35309556)<<23|t>>>9)+r<<0,t=((t+=((o=(n=((n+=((i=t^r)^(e=((e+=(i^n)+s[1]-1530992060)<<4|e>>>28)+t<<0))+s[4]+1272893353)<<11|n>>>21)+e<<0)^e)^(r=((r+=(o^t)+s[7]-155497632)<<16|r>>>16)+n<<0))+s[10]-1094730640)<<23|t>>>9)+r<<0,t=((t+=((o=(n=((n+=((i=t^r)^(e=((e+=(i^n)+s[13]+681279174)<<4|e>>>28)+t<<0))+s[0]-358537222)<<11|n>>>21)+e<<0)^e)^(r=((r+=(o^t)+s[3]-722521979)<<16|r>>>16)+n<<0))+s[6]+76029189)<<23|t>>>9)+r<<0,t=((t+=((o=(n=((n+=((i=t^r)^(e=((e+=(i^n)+s[9]-640364487)<<4|e>>>28)+t<<0))+s[12]-421815835)<<11|n>>>21)+e<<0)^e)^(r=((r+=(o^t)+s[15]+530742520)<<16|r>>>16)+n<<0))+s[2]-995338651)<<23|t>>>9)+r<<0,t=((t+=((n=((n+=(t^((e=((e+=(r^(t|~n))+s[0]-198630844)<<6|e>>>26)+t<<0)|~r))+s[7]+1126891415)<<10|n>>>22)+e<<0)^((r=((r+=(e^(n|~t))+s[14]-1416354905)<<15|r>>>17)+n<<0)|~e))+s[5]-57434055)<<21|t>>>11)+r<<0,t=((t+=((n=((n+=(t^((e=((e+=(r^(t|~n))+s[12]+1700485571)<<6|e>>>26)+t<<0)|~r))+s[3]-1894986606)<<10|n>>>22)+e<<0)^((r=((r+=(e^(n|~t))+s[10]-1051523)<<15|r>>>17)+n<<0)|~e))+s[1]-2054922799)<<21|t>>>11)+r<<0,t=((t+=((n=((n+=(t^((e=((e+=(r^(t|~n))+s[8]+1873313359)<<6|e>>>26)+t<<0)|~r))+s[15]-30611744)<<10|n>>>22)+e<<0)^((r=((r+=(e^(n|~t))+s[6]-1560198380)<<15|r>>>17)+n<<0)|~e))+s[13]+1309151649)<<21|t>>>11)+r<<0,t=((t+=((n=((n+=(t^((e=((e+=(r^(t|~n))+s[4]-145523070)<<6|e>>>26)+t<<0)|~r))+s[11]-1120210379)<<10|n>>>22)+e<<0)^((r=((r+=(e^(n|~t))+s[2]+718787259)<<15|r>>>17)+n<<0)|~e))+s[9]-343485551)<<21|t>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=r-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0)},b.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3;return c[e>>4&15]+c[15&e]+c[e>>12&15]+c[e>>8&15]+c[e>>20&15]+c[e>>16&15]+c[e>>28&15]+c[e>>24&15]+c[t>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15]+c[r>>4&15]+c[15&r]+c[r>>12&15]+c[r>>8&15]+c[r>>20&15]+c[r>>16&15]+c[r>>28&15]+c[r>>24&15]+c[n>>4&15]+c[15&n]+c[n>>12&15]+c[n>>8&15]+c[n>>20&15]+c[n>>16&15]+c[n>>28&15]+c[n>>24&15]},b.prototype.toString=b.prototype.hex,b.prototype.digest=function(e){if("hex"===e)return this.hex();this.finalize();var t=this.h0,r=this.h1,n=this.h2,i=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255]},b.prototype.array=b.prototype.digest,b.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.base64=function(){for(var e,t,r,n="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],r=i[o++],n+=p[e>>>2]+p[63&(e<<4|t>>>4)]+p[63&(t<<2|r>>>6)]+p[63&r];return e=i[o],n+=p[e>>>2]+p[e<<4&63]+"=="};var v=function(){var e=y("hex");e.getCtx=e.create=function(){return new b},e.update=function(t){return e.create().update(t)};for(var t=0;t<f.length;++t){var r=f[t];e[r]=y(r)}return e}();a?e.exports=v:(o.md5=v,u&&(void 0===(t=function(){return v}.call(v,r,v,e))||(e.exports=t)))}()}).call(this,r("./node_modules/webpack/buildin/module.js")(e))},
vendor: 1,861 bytes, line 2
2"./lib/request.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js"),i=function(e){switch(n(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},o=function(e,t,r){var n={},i=t.getAllResponseHeaders();return i&&i.length>0&&i.trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),r=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();n[r]=i}})),{error:e,statusCode:t.status,statusMessage:t.statusText,headers:n,body:r}},s=function(e,t){return t||"text"!==t?e.response:e.responseText};e.exports=function(e,t){var r,a,u,l,c=(e.method||"GET").toUpperCase(),h=e.url;if(e.qs){var d=(r=e.qs,a=a||"&",u=u||"=",null===r&&(r=void 0),"object"===n(r)?Object.keys(r).map((function(e){var t=encodeURIComponent(i(e))+u;return Array.isArray(r[e])?r[e].map((function(e){return t+encodeURIComponent(i(e))})).join(a):t+encodeURIComponent(i(r[e]))})).filter(Boolean).join(a):l?encodeURIComponent(i(l))+u+encodeURIComponent(i(r)):"");d&&(h+=(-1===h.indexOf("?")?"?":"&")+d)}var f=new XMLHttpRequest;if(f.open(c,h,!0),f.responseType=e.dataType||"text",e.xhrFields)for(var p in e.xhrFields)f[p]=e.xhrFields[p];var m=e.headers;if(m)for(var g in m)m.hasOwnProperty(g)&&"content-length"!==g.toLowerCase()&&"user-agent"!==g.toLowerCase()&&"origin"!==g.toLowerCase()&&"host"!==g.toLowerCase()&&f.setRequestHeader(g,m[g]);return e.onProgress&&f.upload&&(f.upload.onprogress=e.onProgress),e.onDownloadProgress&&(f.onprogress=e.onDownloadProgress),e.timeout&&(f.timeout=e.timeout),f.ontimeout=function(e){var r=new Error("timeout");t(o(r,f))},f.onload=function(){t(o(null,f,s(f,e.dataType)))},f.onerror=function(r){var n=s(f,e.dataType);if(n)t(o(null,f,n));else{var i=f.statusText;i||0!==f.status||(i=new Error("CORS blocked or network error")),t(o(i,f,n))}},f.send(e.body||""),f}},
vendor: 228 bytes, line 2
2"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 476 bytes, line 2
2"./node_modules/@babel/runtime/helpers/createClass.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 327 bytes, line 2
2"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/toPropertyKey.js");e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 452 bytes, line 2
2"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 324 bytes, line 2
2"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default,i=r("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 421 bytes, line 2
2"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 317 bytes, line 2
2"./node_modules/fast-xml-parser/src/fxp.js":function(e,t,r){"use strict";const n=r("./node_modules/fast-xml-parser/src/validator.js"),i=r("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),o=r("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");e.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},
vendor: 255 bytes, line 2
2"./node_modules/fast-xml-parser/src/ignoreAttributes.js":function(e,t){e.exports=function(e){return"function"===typeof e?e:Array.isArray(e)?t=>{for(const r of e){if("string"===typeof r&&t===r)return!0;if(r instanceof RegExp&&r.test(t))return!0}}:()=>!1}},
vendor: 1,096 bytes, line 2
2"./node_modules/fast-xml-parser/src/util.js":function(e,t,r){"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+i+"$");t.isExist=function(e){return"undefined"!==typeof e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,r){if(t){const n=Object.keys(t),i=n.length;for(let o=0;o<i;o++)e[n[o]]="strict"===r?[t[n[o]]]:t[n[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){const t=o.exec(e);return!(null===t||"undefined"===typeof t)},t.getAllMatches=function(e,t){const r=[];let n=t.exec(e);for(;n;){const i=[];i.startIndex=t.lastIndex-n[0].length;const o=n.length;for(let e=0;e<o;e++)i.push(n[e]);r.push(i),n=t.exec(e)}return r},t.nameRegexp=i},
vendor: 4,864 bytes, line 2
2"./node_modules/fast-xml-parser/src/validator.js":function(e,t,r){"use strict";const n=r("./node_modules/fast-xml-parser/src/util.js"),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const n=e.substr(r,t-r);if(t>5&&"xml"===n)return d("InvalidXml","XML declaration allowed only at the start of the document.",p(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}function u(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){i=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:i}}t.validate=function(e,t){t=Object.assign({},i,t);const r=[];let l=!1,f=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i<e.length;i++)if("<"===e[i]&&"?"===e[i+1]){if(i+=2,i=s(e,i),i.err)return i}else{if("<"!==e[i]){if(o(e[i]))continue;return d("InvalidChar","char '"+e[i]+"' is not expected.",p(e,i))}{let g=i;if(i++,"!"===e[i]){i=a(e,i);continue}{let y=!1;"/"===e[i]&&(y=!0,i++);let b="";for(;i<e.length&&">"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)b+=e[i];if(b=b.trim(),"/"===b[b.length-1]&&(b=b.substring(0,b.length-1),i--),m=b,!n.isName(m)){let t;return t=0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",d("InvalidTag",t,p(e,i))}const v=u(e,i);if(!1===v)return d("InvalidAttr","Attributes for '"+b+"' have open quote.",p(e,i));let w=v.value;if(i=v.index,"/"===w[w.length-1]){const r=i-w.length;w=w.substring(0,w.length-1);const n=c(w,t);if(!0!==n)return d(n.err.code,n.err.msg,p(e,r+n.err.line));l=!0}else if(y){if(!v.tagClosed)return d("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",p(e,i));if(w.trim().length>0)return d("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",p(e,g));if(0===r.length)return d("InvalidTag","Closing tag '"+b+"' has not been opened.",p(e,g));{const t=r.pop();if(b!==t.tagName){let r=p(e,t.tagStartPos);return d("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+b+"'.",p(e,g))}0==r.length&&(f=!0)}}else{const n=c(w,t);if(!0!==n)return d(n.err.code,n.err.msg,p(e,i-w.length+n.err.line));if(!0===f)return d("InvalidXml","Multiple possible root nodes found.",p(e,i));-1!==t.unpairedTags.indexOf(b)||r.push({tagName:b,tagStartPos:g}),l=!0}for(i++;i<e.length;i++)if("<"===e[i]){if("!"===e[i+1]){i++,i=a(e,i);continue}if("?"!==e[i+1])break;if(i=s(e,++i),i.err)return i}else if("&"===e[i]){const t=h(e,i);if(-1==t)return d("InvalidChar","char '&' is not expected.",p(e,i));i=t}else if(!0===f&&!o(e[i]))return d("InvalidXml","Extra text at the end",p(e,i));"<"===e[i]&&i--}}}var m;return l?1==r.length?d("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",p(e,r[0].tagStartPos)):!(r.length>0)||d("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function c(e,t){const r=n.getAllMatches(e,l),i={};for(let n=0;n<r.length;n++){if(0===r[n][1].length)return d("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",m(r[n]));if(void 0!==r[n][3]&&void 0===r[n][4])return d("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",m(r[n]));if(void 0===r[n][3]&&!t.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",m(r[n]));const e=r[n][2];if(!f(e))return d("InvalidAttr","Attribute '"+e+"' is an invalid name.",m(r[n]));if(i.hasOwnProperty(e))return d("InvalidAttr","Attribute '"+e+"' is repeated.",m(r[n]));i[e]=1}return!0}function h(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function d(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function f(e){return n.isName(e)}function p(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function m(e){return e.startIndex+e[1].length}},
vendor: 5,317 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(e,t,r){"use strict";const n=r("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),i=r("./node_modules/fast-xml-parser/src/ignoreAttributes.js"),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(e){this.options=Object.assign({},o,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,r,n){const i=this.j2x(e,r+1,n.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,r):this.buildObjectNode(i.val,t,i.attrStr,r)}function u(e){return this.options.indentBy.repeat(e)}function l(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}s.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},s.prototype.j2x=function(e,t,r){let n="",i="";const o=r.join(".");for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if("undefined"===typeof e[s])this.isAttribute(s)&&(i+="");else if(null===e[s])this.isAttribute(s)?i+="":"?"===s[0]?i+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)i+=this.buildTextValNode(e[s],s,"",t);else if("object"!==typeof e[s]){const r=this.isAttribute(s);if(r&&!this.ignoreAttributesFn(r,o))n+=this.buildAttrPairStr(r,""+e[s]);else if(!r)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){const n=e[s].length;let o="",a="";for(let u=0;u<n;u++){const n=e[s][u];if("undefined"===typeof n);else if(null===n)"?"===s[0]?i+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"===typeof n)if(this.options.oneListGroup){const e=this.j2x(n,t+1,r.concat(s));o+=e.val,this.options.attributesGroupName&&n.hasOwnProperty(this.options.attributesGroupName)&&(a+=e.attrStr)}else o+=this.processTextOrObjNode(n,s,t,r);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,n);e=this.replaceEntitiesValue(e),o+=e}else o+=this.buildTextValNode(n,s,"",t)}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,a,t)),i+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[s][t[i]])}else i+=this.processTextOrObjNode(e[s],s,t,r);return{attrStr:n,val:i}},s.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},s.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",i=""),!r&&""!==r||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(n)+"<"+t+r+o+this.tagEndChar+e+this.indentate(n)+i:this.indentate(n)+"<"+t+r+o+">"+e+i}},s.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":"></"+e,t},s.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+i+"</"+t+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=s},
vendor: 1,861 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(e,t){function r(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(e.hasOwnProperty(n)&&":@"!==n)return n}}function n(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){if(!e.hasOwnProperty(n))continue;let i=t.attributeValueProcessor(n,e[n]);i=o(i,t),!0===i&&t.suppressBooleanAttributes?r+=" "+n.substr(t.attributeNamePrefix.length):r+=` ${n.substr(t.attributeNamePrefix.length)}="${i}"`}return r}function i(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function o(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}e.exports=function(e,t){let s="";return t.format&&t.indentBy.length>0&&(s="\n"),function e(t,s,a,u){let l="",c=!1;for(let h=0;h<t.length;h++){const d=t[h],f=r(d);if(void 0===f)continue;let p="";if(p=0===a.length?f:`${a}.${f}`,f===s.textNodeName){let e=d[f];i(p,s)||(e=s.tagValueProcessor(f,e),e=o(e,s)),c&&(l+=u),l+=e,c=!1;continue}if(f===s.cdataPropName){c&&(l+=u),l+=`<![CDATA[${d[f][0][s.textNodeName]}]]>`,c=!1;continue}if(f===s.commentPropName){l+=u+`\x3c!--${d[f][0][s.textNodeName]}--\x3e`,c=!0;continue}if("?"===f[0]){const e=n(d[":@"],s),t="?xml"===f?"":u;let r=d[f][0][s.textNodeName];r=0!==r.length?" "+r:"",l+=t+`<${f}${r}${e}?>`,c=!0;continue}let m=u;""!==m&&(m+=s.indentBy);const g=n(d[":@"],s),y=u+`<${f}${g}`,b=e(d[f],s,p,m);-1!==s.unpairedTags.indexOf(f)?s.suppressUnpairedNode?l+=y+">":l+=y+"/>":b&&0!==b.length||!s.suppressEmptyNode?b&&b.endsWith(">")?l+=y+`>${b}${u}</${f}>`:(l+=y+">",b&&""!==u&&(b.includes("/>")||b.includes("</"))?l+=u+s.indentBy+b+u:l+=b,l+=`</${f}>`):l+=y+"/>",c=!0}return l}(e,t,"",s)}},
vendor: 1,729 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(e,t,r){const n=r("./node_modules/fast-xml-parser/src/util.js");function i(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(r=r.trim(),-1!==r.indexOf(" "))throw new Error("External entites are not supported");const n=e[t++];let i="";for(;t<e.length&&e[t]!==n;t++)i+=e[t];return[r,i,t]}function o(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function s(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(n.isName(e))return e;throw new Error("Invalid entity name "+e)}e.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let n=1,h=!1,d=!1,f="";for(;t<e.length;t++)if("<"!==e[t]||d)if(">"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,n--):n--,0===n)break}else"["===e[t]?h=!0:f+=e[t];else{if(h&&s(e,t))t+=7,[entityName,val,t]=i(e,t+1),-1===val.indexOf("&")&&(r[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(h&&a(e,t))t+=8;else if(h&&u(e,t))t+=8;else if(h&&l(e,t))t+=9;else{if(!o)throw new Error("Invalid DOCTYPE");d=!0}n++,f=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}},
vendor: 775 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(e,t){const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};t.buildOptions=function(e){return Object.assign({},r,e)},t.defaultOptions=r},
vendor: 8,803 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(e,t,r){"use strict";const n=r("./node_modules/fast-xml-parser/src/util.js"),i=r("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),o=r("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),s=r("./node_modules/strnum/strnum.js"),a=r("./node_modules/fast-xml-parser/src/ignoreAttributes.js");function u(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function l(e,t,r,n,i,o,s){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const n=this.options.tagValueProcessor(t,e,r,i,o);return null===n||void 0===n?e:typeof n!==typeof e||n!==e?n:this.options.trimValues||e.trim()===e?x(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function c(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}const h=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,r){if(!0!==this.options.ignoreAttributes&&"string"===typeof e){const r=n.getAllMatches(e,h),i=r.length,o={};for(let e=0;e<i;e++){const n=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(n,t))continue;let i=r[e][4],s=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const e=this.options.attributeValueProcessor(n,i,t);o[s]=null===e||void 0===e?i:typeof e!==typeof i||e!==i?e:x(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[s]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=o,e}return o}}const f=function(e){const t=new i("!xml");let r=t,n="",s="";for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=v(e,">",a,"Closing Tag is not closed.");let i=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),r&&(n=this.saveTextToParentTag(n,r,s));const o=s.substring(s.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);let u=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",a=t}else if("?"===e[a+1]){let t=w(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,s,t.tagName)),this.addChild(r,e,s)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=v(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(a+4,t-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=t}else if("!D"===e.substr(a+1,2)){const t=o(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=v(e,"]]>",a,"CDATA is not closed.")-2,i=e.substring(a+9,t);n=this.saveTextToParentTag(n,r,s);let o=this.parseTextData(i,r.tagname,s,!0,!1,!0,!0);void 0==o&&(o=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):r.add(this.options.textNodeName,o),a=t+2}else{let o=w(e,a,this.options.removeNSPrefix),u=o.tagName;const l=o.rawTagName;let c=o.tagExp,h=o.attrExpPresent,d=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,s,!1));const f=r;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==t.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===u[u.length-1]?(u=u.substr(0,u.length-1),s=s.substr(0,s.length-1),c=u):c=c.substr(0,c.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))a=o.closeIndex;else{const r=this.readStopNodeData(e,l,d+1);if(!r)throw new Error("Unexpected end of "+l);a=r.i,t=r.tagContent}const n=new i(u);u!==c&&h&&(n[":@"]=this.buildAttributesMap(c,s,u)),t&&(t=this.parseTextData(t,u,s,!0,h,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,s)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===u[u.length-1]?(u=u.substr(0,u.length-1),s=s.substr(0,s.length-1),c=u):c=c.substr(0,c.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));const e=new i(u);u!==c&&h&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),s=s.substr(0,s.lastIndexOf("."))}else{const e=new i(u);this.tagsNodeStack.push(r),u!==c&&h&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),r=e}n="",a=d}}else n+=e[a];return t.child};function p(e,t,r){const n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"===typeof n?(t.tagname=n,e.addChild(t)):e.addChild(t))}const m=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function g(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,r){const n="*."+r;for(const i in e){const r=e[i];if(n===r||t===r)return!0}return!1}function b(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",i="";for(let o=t;o<e.length;o++){let t=e[o];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:i,index:o};if(e[o+1]===n[1])return{data:i,index:o}}else"\t"===t&&(t=" ");i+=t}}function v(e,t,r,n){const i=e.indexOf(t,r);if(-1===i)throw new Error(n);return i+t.length-1}function w(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:">";const i=b(e,t+1,n);if(!i)return;let o=i.data;const s=i.index,a=o.search(/\s/);let u=o,l=!0;-1!==a&&(u=o.substring(0,a),o=o.substring(a+1).trimStart());const c=u;if(r){const e=u.indexOf(":");-1!==e&&(u=u.substr(e+1),l=u!==i.data.substr(e+1))}return{tagName:u,tagExp:o,closeIndex:s,attrExpPresent:l,rawTagName:c}}function M(e,t,r){const n=r;let i=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const o=v(e,">",r,t+" is not closed");if(e.substring(r+2,o).trim()===t&&(i--,0===i))return{tagContent:e.substring(n,r),i:o};r=o}else if("?"===e[r+1])r=v(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=v(e,"--\x3e",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=v(e,"]]>",r,"StopNode is not closed.")-2;else{const n=w(e,r,">");n&&((n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&i++,r=n.closeIndex)}}function x(e,t,r){if(t&&"string"===typeof e){const t=e.trim();return"true"===t||"false"!==t&&s(e,r)}return n.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"\u20ac"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"\u20b9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=f,this.parseTextData=l,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=y,this.replaceEntitiesValue=m,this.readStopNodeData=M,this.saveTextToParentTag=g,this.addChild=p,this.ignoreAttributesFn=a(this.options.ignoreAttributes)}}},
vendor: 1,170 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(e,t,r){const{buildOptions:n}=r("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),i=r("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:o}=r("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),s=r("./node_modules/fast-xml-parser/src/validator.js");e.exports=class{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"===typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=s.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new i(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:o(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},
vendor: 1,156 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(e,t,r){"use strict";function n(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const e=t[r];if(":@"!==e)return e}}function i(e,t,r,n){if(t){const i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){const o=i[s];n.isArray(o,r+"."+o,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function o(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!==typeof e[r]&&0!==e[r])}t.prettify=function(e,t){return function e(t,r,s){let a;const u={};for(let l=0;l<t.length;l++){const c=t[l],h=n(c);let d="";if(d=void 0===s?h:s+"."+h,h===r.textNodeName)void 0===a?a=c[h]:a+=""+c[h];else{if(void 0===h)continue;if(c[h]){let t=e(c[h],r,d);const n=o(t,r);c[":@"]?i(t,c[":@"],d,r):1!==Object.keys(t).length||void 0===t[r.textNodeName]||r.alwaysCreateTextNode?0===Object.keys(t).length&&(r.alwaysCreateTextNode?t[r.textNodeName]="":t=""):t=t[r.textNodeName],void 0!==u[h]&&u.hasOwnProperty(h)?(Array.isArray(u[h])||(u[h]=[u[h]]),u[h].push(t)):r.isArray(h,d,n)?u[h]=[t]:u[h]=t}}}return"string"===typeof a?a.length>0&&(u[r.textNodeName]=a):void 0!==a&&(u[r.textNodeName]=a),u}(e,t)}},
vendor: 424 bytes, line 2
2"./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js":function(e,t,r){"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},
vendor: 1,713 bytes, line 2
2"./node_modules/process/browser.js":function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"===typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,l=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++h<t;)u&&u[h].run();h=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},
vendor: 1,436 bytes, line 2
2"./node_modules/strnum/strnum.js":function(e,t){const r=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function o(e){return e&&-1!==e.indexOf(".")?("."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e):e}function s(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}e.exports=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=Object.assign({},i,t),!e||"string"!==typeof e)return e;let a=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(a))return e;if("0"===e)return 0;if(t.hex&&r.test(a))return s(a,16);if(-1!==a.search(/[eE]/)){const r=a.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(r){if(t.leadingZeros)a=(r[1]||"")+r[3];else if("0"!==r[2]||"."!==r[3][0])return e;return t.eNotation?Number(a):e}return e}{const r=n.exec(a);if(r){const n=r[1],i=r[2];let s=o(r[3]);if(!t.leadingZeros&&i.length>0&&n&&"."!==a[2])return e;if(!t.leadingZeros&&i.length>0&&!n&&"."!==a[1])return e;if(t.leadingZeros&&i===e)return 0;{const r=Number(a),o=""+r;return-1!==o.search(/[eE]/)?t.eNotation?r:e:-1!==a.indexOf(".")?"0"===o&&""===s||o===s||n&&o==="-"+s?r:e:i?s===o||n+s===o?r:e:a===o||a===n+o?r:e}}return e}}},
vendor: 104 bytes, line 2
2"./node_modules/webpack/buildin/amd-options.js":function(e,t){(function(t){e.exports=t}).call(this,{})},
vendor: 345 bytes, line 2
2"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},
2"./package.json":function(e){e.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.10.1","description":"JavaScript SDK for [\u817e\u8baf\u4e91\u5bf9\u8c61\u5b58\u50a8](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage","postinstall":"node scripts/patch-check.js"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"4.5.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"29.7.0","jest-environment-jsdom":"29.7.0","patch-package":"^8.0.0","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},
vendor: 12,534 bytes, line 2
2"./src/advance.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js"),i=r("./src/session.js"),o=r("./src/async.js"),s=r("./src/event.js").EventProxy,a=r("./src/util.js"),u=r("./src/tracker.js");function l(e,t){var r=e.TaskId,n=e.Bucket,u=e.Region,l=e.Key,d=e.StorageClass,f=this,p={},m=e.FileSize,g=e.SliceSize,y=Math.ceil(m/g),b=0,v=a.throttleOnProgress.call(f,m,e.onHashProgress),w=function(t,r){var n=t.length;if(0===n)return r(null,!0);if(n>y)return r(null,!1);if(n>1&&Math.max(t[0].Size,t[1].Size)!==g)return r(null,!1);var i=function(o){if(o<n){var s=t[o];!function(t,r){var n=g*(t-1),i=Math.min(n+g,m),o=i-n;p[t]?r(null,{PartNumber:t,ETag:p[t],Size:o}):a.fileSlice(e.Body,n,i,!1,(function(e){a.getFileMd5(e,(function(e,n){if(e)return r(a.error(e));var i='"'+n+'"';p[t]=i,v({loaded:b+=o,total:m}),r(null,{PartNumber:t,ETag:i,Size:o})}))}))}(s.PartNumber,(function(e,t){t&&t.ETag===s.ETag&&t.Size===s.Size?i(o+1):r(null,!1)}))}else r(null,!0)};i(0)},M=new s;M.on("error",(function(e){if(f._isRunningTask(r))return t(e)})),M.on("upload_id_available",(function(e){var r={},n=[];a.each(e.PartList,(function(e){r[e.PartNumber]=e}));for(var i=1;i<=y;i++){var o=r[i];o?(o.PartNumber=i,o.Uploaded=!0):o={PartNumber:i,ETag:null,Uploaded:!1},n.push(o)}e.PartList=n,t(null,e)})),M.on("no_available_upload_id",(function(){if(f._isRunningTask(r)){var i=a.extend({Bucket:n,Region:u,Key:l,Query:a.clone(e.Query),StorageClass:d,Body:e.Body,calledBySdk:"sliceUploadFile",tracker:e.tracker},e),o=a.clone(e.Headers);delete o["x-cos-mime-limit"],i.Headers=o,f.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u51c6\u5907\u521d\u59cb\u5316\u5206\u5757\u4e0a\u4f20")}),f.multipartInit(i,(function(n,i){if(f._isRunningTask(r)){if(n)return f.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u521d\u59cb\u5316\u5206\u5757\u4e0a\u4f20\u5931\u8d25, ").concat(JSON.stringify(n))}),M.emit("error",n);var o=i.UploadId;if(!o)return t(a.error(new Error("no such upload id")));f.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u521d\u59cb\u5316\u5206\u5757\u4e0a\u4f20\u6210\u529f")}),M.emit("upload_id_available",{UploadId:o,PartList:[]})}}))}})),M.on("has_and_check_upload_id",(function(t){t=t.reverse(),o.eachLimit(t,1,(function(t,o){f._isRunningTask(r)&&(i.using[t]?o():h.call(f,{Bucket:n,Region:u,Key:l,UploadId:t,tracker:e.tracker},(function(e,n){if(f._isRunningTask(r)){if(e)return i.removeUsing(t),M.emit("error",e);var s=n.PartList;s.forEach((function(e){e.PartNumber*=1,e.Size*=1,e.ETag=e.ETag||""})),w(s,(function(e,n){if(f._isRunningTask(r))return e?M.emit("error",e):void(n?o({UploadId:t,PartList:s}):o())}))}})))}),(function(e){f._isRunningTask(r)&&(v(null,!0),e&&e.UploadId?M.emit("upload_id_available",e):M.emit("no_available_upload_id"))}))})),M.on("seek_local_avail_upload_id",(function(t){var o=i.getFileId(e.Body,e.ChunkSize,n,l),s=i.getUploadIdList.call(f,o);if(o&&s){var c=function(o){if(o>=s.length)M.emit("has_and_check_upload_id",t);else{var d=s[o];if(!a.isInArray(t,d))return i.removeUploadId.call(f,d),void c(o+1);i.using[d]?c(o+1):h.call(f,{Bucket:n,Region:u,Key:l,UploadId:d,tracker:e.tracker},(function(e,t){f._isRunningTask(r)&&(e?(i.removeUploadId.call(f,d),c(o+1)):M.emit("upload_id_available",{UploadId:d,PartList:t.PartList}))}))}};c(0)}else M.emit("has_and_check_upload_id",t)})),M.on("get_remote_upload_id_list",(function(){c.call(f,{Bucket:n,Region:u,Key:l,tracker:e.tracker},(function(t,o){if(f._isRunningTask(r)){if(t)return M.emit("error",t);var s=a.filter(o.UploadList,(function(e){return e.Key===l&&(!d||e.StorageClass.toUpperCase()===d.toUpperCase())})).reverse().map((function(e){return e.UploadId||e.UploadID}));if(s.length)M.emit("seek_local_avail_upload_id",s);else{var u,c=i.getFileId(e.Body,e.ChunkSize,n,l);c&&(u=i.getUploadIdList.call(f,c))&&a.each(u,(function(e){i.removeUploadId.call(f,e)})),M.emit("no_available_upload_id")}}}))})),M.emit("get_remote_upload_id_list")}function c(e,t){var r=this,n=[],i={Bucket:e.Bucket,Region:e.Region,Prefix:e.Key,calledBySdk:e.calledBySdk||"sliceUploadFile",tracker:e.tracker},o=function(){r.multipartList(i,(function(e,r){if(e)return t(e);n.push.apply(n,r.Upload||[]),"true"===r.IsTruncated?(i.KeyMarker=r.NextKeyMarker,i.UploadIdMarker=r.NextUploadIdMarker,o()):t(null,{UploadList:n})}))};o()}function h(e,t){var r=this,n=[],i={Bucket:e.Bucket,Region:e.Region,Key:e.Key,UploadId:e.UploadId,calledBySdk:"sliceUploadFile",tracker:e.tracker},o=function(){r.multipartListPart(i,(function(e,r){if(e)return t(e);n.push.apply(n,r.Part||[]),"true"===r.IsTruncated?(i.PartNumberMarker=r.NextPartNumberMarker,o()):t(null,{PartList:n})}))};o()}function d(e,t){var r=this,n=e.TaskId,i=e.Bucket,s=e.Region,u=e.Key,l=e.UploadData,c=e.FileSize,h=e.SliceSize,d=Math.min(e.AsyncLimit||r.options.ChunkParallelLimit||1,256),p=e.Body,m=Math.ceil(c/h),g=0,y=e.ServerSideEncryption,b=e.Headers,v=a.filter(l.PartList,(function(e){return e.Uploaded&&(g+=e.PartNumber>=m&&c%h||h),!e.Uploaded})),w=e.onProgress;r.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5f00\u59cb\u5e76\u53d1\u4e0a\u4f20\u5404\u4e2a\u5206\u5757")}),o.eachLimit(v,d,(function(t,o){if(r._isRunningTask(n)){var a=t.PartNumber,d=Math.min(c,t.PartNumber*h)-(t.PartNumber-1)*h,m=0;r.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757").concat(a,"\u5f00\u59cb\u4e0a\u4f20")}),f.call(r,{TaskId:n,Bucket:i,Region:s,Key:u,SliceSize:h,FileSize:c,PartNumber:a,ServerSideEncryption:y,Body:p,UploadData:l,Headers:b,onProgress:function(e){g+=e.loaded-m,m=e.loaded,w({loaded:g,total:c})},tracker:e.tracker},(function(i,s){r._isRunningTask(n)&&(i||s.ETag||(i='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83b7\u53d6ETag\u5931\u8d25\uff0c\u8bf7\u5728CORS ExposeHeader\u8bbe\u7f6e\u4e2d\u6dfb\u52a0ETag\uff0c\u8bf7\u53c2\u8003\u6587\u6863\uff1ahttps://cloud.tencent.com/document/product/436/13318 )',r.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757").concat(a,"\u4e0a\u4f20\u8bf7\u6c42\u6210\u529f\uff0c\u4f46\u662f\u672a\u83b7\u53d6\u5230 eTag")})),i?(g-=m,r.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757").concat(a,"\u4e0a\u4f20\u5931\u8d25")})):(g+=d-m,t.ETag=s.ETag),r.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757").concat(a,"\u4e0a\u4f20\u6210\u529f")}),w({loaded:g,total:c}),o(i||null,s))}))}}),(function(e){if(r._isRunningTask(n))return e?t(e):void t(null,{UploadId:l.UploadId,SliceList:l.PartList})}))}function f(e,t){var r=this,n=e.TaskId,i=e.Bucket,s=e.Region,u=e.Key,l=e.FileSize,c=e.Body,h=1*e.PartNumber,d=e.SliceSize,f=e.ServerSideEncryption,p=e.UploadData,m=e.Headers||{},g=r.options.ChunkRetryTimes+1,y=d*(h-1),b=d,v=y+d;v>l&&(b=(v=l)-y);var w=["x-cos-traffic-limit","x-cos-mime-limit"],M={};a.each(m,(function(e,t){w.indexOf(t)>-1&&(M[t]=e)}));var x=p.PartList[h-1];o.retry(g,(function(t){r._isRunningTask(n)&&a.fileSlice(c,y,v,!0,(function(o){r.multipartUpload({TaskId:n,Bucket:i,Region:s,Key:u,ContentLength:b,PartNumber:h,UploadId:p.UploadId,ServerSideEncryption:f,Body:o,Headers:M,onProgress:e.onProgress,calledBySdk:"sliceUploadFile",tracker:e.tracker},(function(e,i){if(r._isRunningTask(n))return e?t(e):(x.Uploaded=!0,t(null,i))}))}))}),(function(e,i){if(r._isRunningTask(n))return t(e,i)}))}function p(e,t){var r=e.Bucket,n=e.Region,i=e.Key,s=e.UploadId,a=e.SliceList,u=this,l=this.options.ChunkRetryTimes+1,c=e.Headers,h=a.map((function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(l,(function(t){u.multipartComplete({Bucket:r,Region:n,Key:i,UploadId:s,Parts:h,Headers:c,calledBySdk:"sliceUploadFile",tracker:e.tracker},t)}),(function(e,r){t(e,r)}))}function m(e,t){var r=e.Bucket,n=e.Region,i=e.Key,s=e.AbortArray,a=e.AsyncLimit||1,u=this,l=0,c=new Array(s.length);o.eachLimit(s,a,(function(t,o){var s=l;if(i&&i!==t.Key)return c[s]={error:{KeyNotMatch:!0}},void o(null);var a=t.UploadId||t.UploadID;u.multipartAbort({Bucket:r,Region:n,Key:t.Key,Headers:e.Headers,UploadId:a},(function(e){var i={Bucket:r,Region:n,Key:t.Key,UploadId:a};c[s]={error:e,task:i},o(null)})),l++}),(function(e){if(e)return t(e);for(var r=[],n=[],i=0,o=c.length;i<o;i++){var s=c[i];s.task&&(s.error?n.push(s.task):r.push(s.task))}return t(null,{successList:r,errorList:n})}))}function g(e,t){var r=e.TaskId,n=e.Bucket,i=e.Region,s=e.Key,a=e.CopySource,u=e.UploadId,l=1*e.PartNumber,c=e.CopySourceRange,h=this.options.ChunkRetryTimes+1,d=this;o.retry(h,(function(t){d.uploadPartCopy({TaskId:r,Bucket:n,Region:i,Key:s,CopySource:a,UploadId:u,PartNumber:l,CopySourceRange:c,tracker:e.tracker,calledBySdk:e.calledBySdk},(function(e,r){t(e||null,r)}))}),(function(e,r){return t(e,r)}))}var y={sliceUploadFile:function(e,t){var r,n,o=this,u=new s,c=e.TaskId,h=e.Bucket,f=e.Region,m=e.Key,g=e.Body,y=e.ChunkSize||e.SliceSize||o.options.ChunkSize,b=e.AsyncLimit,v=e.StorageClass,w=e.ServerSideEncryption,M=e.onHashProgress,x=e.tracker;x&&x.setParams({chunkSize:y}),o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757\u4e0a\u4f20\u5f00\u59cb")}),u.on("error",(function(r){if(o._isRunningTask(c))return e.UploadData.UploadId&&i.removeUsing(e.UploadData.UploadId),r.UploadId=e.UploadData.UploadId||"",o.logger.error({cate:"RESULT",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757\u4e0a\u4f20\u5931\u8d25: ").concat(JSON.stringify(r))}),t(r)})),u.on("upload_complete",(function(r){var n=a.extend({UploadId:e.UploadData.UploadId||""},r);t(null,n)})),u.on("upload_slice_complete",(function(t){var s={};a.each(e.Headers,(function(e,t){var r=t.toLowerCase();(0===r.indexOf("x-cos-meta-")||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(r))&&(s[t]=e)})),o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5f00\u59cb\u5b8c\u6210\u5206\u5757\u8bf7\u6c42")}),p.call(o,{Bucket:h,Region:f,Key:m,UploadId:t.UploadId,SliceList:t.SliceList,Headers:s,tracker:x},(function(s,a){if(o._isRunningTask(c)){if(i.removeUsing(t.UploadId),s)return n(null,!0),o.logger.error({cate:"RESULT",tag:"upload",msg:"[key=".concat(e.Key,"] \u5b8c\u6210\u5206\u5757\u8bf7\u6c42\u5931\u8d25")}),u.emit("error",s);i.removeUploadId.call(o,t.UploadId),n({loaded:r,total:r},!0),o.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(e.Key,"] \u5b8c\u6210\u5206\u5757\u8bf7\u6c42\u6210\u529f")}),u.emit("upload_complete",a)}}))})),u.on("get_upload_data_finish",(function(t){var s=i.getFileId(g,e.ChunkSize,h,m);s&&i.saveUploadId.call(o,s,t.UploadId,o.options.UploadIdCacheLimit),i.setUsing(t.UploadId),n(null,!0),o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5f00\u59cb\u4e0a\u4f20\u5404\u4e2a\u5206\u5757")}),d.call(o,{TaskId:c,Bucket:h,Region:f,Key:m,Body:g,FileSize:r,SliceSize:y,AsyncLimit:b,ServerSideEncryption:w,UploadData:t,Headers:e.Headers,onProgress:n,tracker:x},(function(t,r){if(o._isRunningTask(c)){if(t)return n(null,!0),o.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5206\u5757\u4e0a\u4f20\u5931\u8d25")}),u.emit("error",t);o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u6240\u6709\u5206\u5757\u4e0a\u4f20\u5b8c\u6210")}),u.emit("upload_slice_complete",r)}}))})),u.on("get_file_size_finish",(function(){if(n=a.throttleOnProgress.call(o,r,e.onProgress),e.UploadData.UploadId)o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5df2\u7ecf\u83b7\u53d6\u5230 uploadId, ").concat(e.UploadData.UploadId)}),u.emit("get_upload_data_finish",e.UploadData);else{var t=a.extend({TaskId:c,Bucket:h,Region:f,Key:m,Headers:e.Headers,StorageClass:v,Body:g,FileSize:r,SliceSize:y,onHashProgress:M,tracker:x},e);o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u53bb\u83b7\u53d6 uploadId")}),l.call(o,t,(function(t,r){if(o._isRunningTask(c)){if(t)return u.emit("error",t);e.UploadData.UploadId=r.UploadId,e.UploadData.PartList=r.PartList,o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u83b7\u53d6\u5230 uploadId, ").concat(e.UploadData.UploadId)}),u.emit("get_upload_data_finish",e.UploadData)}}))}})),r=e.ContentLength,delete e.ContentLength,!e.Headers&&(e.Headers={}),a.each(e.Headers,(function(t,r){"content-length"===r.toLowerCase()&&delete e.Headers[r]})),function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],n=1048576,i=0;i<t.length&&!(r/(n=1024*t[i]*1024)<=o.options.MaxPartNumber);i++);e.ChunkSize=e.SliceSize=y=Math.max(y,n)}
2(),0===r?(e.Body="",e.ContentLength=0,e.SkipTask=!0,o.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u6587\u4ef6\u5927\u5c0f\u4e3a 0\uff0c\u6267\u884c\u7b80\u5355\u4e0a\u4f20")}),o.putObject(e,t)):u.emit("get_file_size_finish")},abortUploadTask:function(e,t){var r=e.Bucket,n=e.Region,i=e.Key,o=e.UploadId,u=e.Level||"task",l=e.AsyncLimit,h=this,d=new s;if(d.on("error",(function(e){return t(e)})),d.on("get_abort_array",(function(o){m.call(h,{Bucket:r,Region:n,Key:i,Headers:e.Headers,AsyncLimit:l,AbortArray:o},t)})),"bucket"===u)c.call(h,{Bucket:r,Region:n,calledBySdk:"abortUploadTask"},(function(e,r){if(e)return t(e);d.emit("get_abort_array",r.UploadList||[])}));else if("file"===u){if(!i)return t(a.error(new Error("abort_upload_task_no_key")));c.call(h,{Bucket:r,Region:n,Key:i,calledBySdk:"abortUploadTask"},(function(e,r){if(e)return t(e);d.emit("get_abort_array",r.UploadList||[])}))}else{if("task"!==u)return t(a.error(new Error("abort_unknown_level")));if(!o)return t(a.error(new Error("abort_upload_task_no_id")));if(!i)return t(a.error(new Error("abort_upload_task_no_key")));d.emit("get_abort_array",[{Key:i,UploadId:o}])}},uploadFile:function(e,t){var r=void 0===e.SliceSize?this.options.SliceSize:e.SliceSize,i=[],o=e.Body,s=o.size||o.length||0,l={TaskId:""};if(this.options.EnableReporter){var c=this.options.UseAccelerate||"string"===typeof this.options.Domain&&this.options.Domain.includes("accelerate."),h=s>r?"sliceUploadFile":"putObject";e.tracker=new u({Beacon:this.options.BeaconReporter,clsReporter:this.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFile",realApi:h,fileKey:e.Key,fileSize:s,accelerate:c,deepTracker:this.options.DeepTracker,customId:this.options.CustomId,delay:this.options.TrackerDelay})}a.each(e,(function(e,t){"object"!==n(e)&&"function"!==typeof e&&(l[t]=e)}));var d=e.onTaskReady;e.onTaskReady=function(e){l.TaskId=e,d&&d(e)};var f=s>r?"sliceUploadFile":"putObject",p=e.onFileFinish;i.push({api:f,params:e,callback:function(r,n){e.tracker&&e.tracker.report(r,n),p&&p(r,n,l),t&&t(r,n)}}),this._addTasks(i)},uploadFiles:function(e,t){var r=this,i=void 0===e.SliceSize?r.options.SliceSize:e.SliceSize,o=0,s=0,l=a.throttleOnProgress.call(r,s,e.onProgress),c=e.f
vendor: 17,351 bytes, line 2
2iles.length,h=e.onFileFinish,d=Array(c),f=function(e,r,n){l(null,!0),h&&h(e,r,n),d[n.Index]={options:n,error:e,data:r},--c<=0&&t&&t(null,{files:d})},p=[];a.each(e.files,(function(e,t){!function(){var c=e.Body,h=c.size||c.length||0,d={Index:t,TaskId:""};if(!r.options.UseRawKey&&e.Key&&"/"===e.Key.substr(0,1)&&(e.Key=e.Key.substr(1)),o+=h,r.options.EnableReporter){var m=r.options.UseAccelerate||"string"===typeof r.options.Domain&&r.options.Domain.includes("accelerate."),g=h>i?"sliceUploadFile":"putObject";e.tracker=new u({Beacon:r.options.BeaconReporter,clsReporter:r.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFiles",realApi:g,fileKey:e.Key,fileSize:h,accelerate:m,deepTracker:r.options.DeepTracker,customId:r.options.CustomId,delay:r.options.TrackerDelay})}a.each(e,(function(e,t){"object"!==n(e)&&"function"!==typeof e&&(d[t]=e)}));var y=e.onTaskReady;e.onTaskReady=function(e){d.TaskId=e,y&&y(e)};var b=0,v=e.onProgress;e.onProgress=function(e){s=s-b+e.loaded,b=e.loaded,v&&v(e),l({loaded:s,total:o})};var w=h>i?"sliceUploadFile":"putObject",M=e.onFileFinish;p.push({api:w,params:e,callback:function(t,r){e.tracker&&e.tracker.report(t,r),M&&M(t,r),f&&f(t,r,d)}})}()})),r._addTasks(p)},sliceCopyFile:function(e,t){var r=new s,n=this,u=e.Bucket,l=e.Region,c=e.Key,d=e.CopySource,f=a.getSourceParams.call(this,d);if(f){var p=f.Bucket,m=f.Region,y=decodeURIComponent(f.Key),b=void 0===e.CopySliceSize?n.options.CopySliceSize:e.CopySliceSize;b=Math.max(0,b);var v,w,M=e.CopyChunkSize||this.options.CopyChunkSize,x=this.options.CopyChunkParallelLimit,S=this.options.ChunkRetryTimes+1,_=0,k=0,A={},j={},E={};r.on("copy_slice_complete",(function(r){var s={};a.each(e.Headers,(function(e,t){0===t.toLowerCase().indexOf("x-cos-meta-")&&(s[t]=e)}));var h=a.map(r.PartList,(function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(S,(function(t){n.multipartComplete({Bucket:u,Region:l,Key:c,UploadId:r.UploadId,Parts:h,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,n){if(i.removeUsing(r.UploadId),e)return w(null,!0),t(e);i.removeUploadId(r.UploadId),w({loaded:v,total:v},!0),t(null,n)}))})),r.on("get_copy_data_finish",(function(s){var h=i.getCopyFileId(d,A,M,u,c);h&&i.saveUploadId(h,s.UploadId,n.options.UploadIdCacheLimit),i.setUsing(s.UploadId);var f=a.filter(s.PartList,(function(e){return e.Uploaded&&(k+=e.PartNumber>=_&&v%M||M),!e.Uploaded}));o.eachLimit(f,x,(function(t,r){var i=t.PartNumber,a=t.CopySourceRange,h=t.end-t.start;o.retry(S,(function(t){g.call(n,{Bucket:u,Region:l,Key:c,CopySource:d,UploadId:s.UploadId,PartNumber:i,CopySourceRange:a,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,n){if(e)return r(e);w({loaded:k+=h,total:v}),t.ETag=n.ETag,r(e||null,n)}))}),(function(e){if(e)return i.removeUsing(s.UploadId),w(null,!0),t(e);r.emit("copy_slice_complete",s)}))})),r.on("get_chunk_size_finish",(function(){var o=function(){n.multipartInit({Bucket:u,Region:l,Key:c,Headers:E,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(n,i){if(n)return t(n);e.UploadId=i.UploadId,r.emit("get_copy_data_finish",{UploadId:e.UploadId,PartList:e.PartList})}))},s=i.getCopyFileId(d,A,M,u,c),f=i.getUploadIdList(s);if(!s||!f)return o();var p=function(t){if(t>=f.length)return o();var s=f[t];if(i.using[s])return p(t+1);h.call(n,{Bucket:u,Region:l,Key:c,UploadId:s,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(n,o){if(n)i.removeUploadId(s),p(t+1);else{if(i.using[s])return p(t+1);var u={},l=0;a.each(o.PartList,(function(e){var t=parseInt(e.Size),r=l+t-1;u[e.PartNumber+"|"+l+"|"+r]=e.ETag,l+=t})),a.each(e.PartList,(function(e){var t=u[e.PartNumber+"|"+e.start+"|"+e.end];t&&(e.ETag=t,e.Uploaded=!0)})),r.emit("get_copy_data_finish",{UploadId:s,PartList:e.PartList})}}))};p(0)})),r.on("get_file_size_finish",(function(){if(function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],r=1048576,i=0;i<t.length&&!(v/(r=1024*t[i]*1024)<=n.options.MaxPartNumber);i++);e.ChunkSize=M=Math.max(M,r),_=Math.ceil(v/M);for(var o=[],s=1;s<=_;s++){var a=(s-1)*M,u=s*M<v?s*M-1:v-1,l={PartNumber:s,start:a,end:u,CopySourceRange:"bytes="+a+"-"+u};o.push(l)}e.PartList=o}(),(E="Replaced"===e.Headers["x-cos-metadata-directive"]?e.Headers:j)["x-cos-storage-class"]=e.Headers["x-cos-storage-class"]||j["x-cos-storage-class"],E=a.clearKey(E),"ARCHIVE"===j["x-cos-storage-class"]||"DEEP_ARCHIVE"===j["x-cos-storage-class"]){var i=j["x-cos-restore"];if(!i||'ongoing-request="true"'===i)return void t(a.error(new Error("Unrestored archive object is not allowed to be copied")))}delete E["x-cos-copy-source"],delete E["x-cos-metadata-directive"],delete E["x-cos-copy-source-If-Modified-Since"],delete E["x-cos-copy-source-If-Unmodified-Since"],delete E["x-cos-copy-source-If-Match"],delete E["x-cos-copy-source-If-None-Match"],r.emit("get_chunk_size_finish")})),n.headObject({Bucket:p,Region:m,Key:y,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(i,o){if(i)i.statusCode&&404===i.statusCode?t(a.error(i,{ErrorStatus:y+" Not Exist"})):t(i);else if(void 0!==(v=e.FileSize=o.headers["content-length"])&&v)if(e.tracker&&e.tracker.setParams({httpSize:v}),w=a.throttleOnProgress.call(n,v,e.onProgress),v<=b)e.Headers["x-cos-metadata-directive"]||(e.Headers["x-cos-metadata-directive"]="Copy"),n.putObjectCopy(Object.assign(e,{calledBySdk:"sliceCopyFile"}),(function(e,r){if(e)return w(null,!0),t(e);w({loaded:v,total:v},!0),t(e,r)}));else{var s=o.headers;A=s,j={"Cache-Control":s["cache-control"],"Content-Disposition":s["content-disposition"],"Content-Encoding":s["content-encoding"],"Content-Type":s["content-type"],Expires:s.expires,"x-cos-storage-class":s["x-cos-storage-class"]},a.each(s,(function(e,t){0===t.indexOf("x-cos-meta-")&&t.length>"x-cos-meta-".length&&(j[t]=e)})),r.emit("get_file_size_finish")}else t(a.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.\uff08 \u83b7\u53d6Content-Length\u5931\u8d25\uff0c\u8bf7\u5728CORS ExposeHeader\u8bbe\u7f6e\u4e2d\u6dfb\u52a0Content-Length\uff0c\u8bf7\u53c2\u8003\u6587\u6863\uff1ahttps://cloud.tencent.com/document/product/436/13318 \uff09')))}))}else t(a.error(new Error("CopySource format error")))}};e.exports.init=function(e,t){t.transferToTaskMethod(y,"sliceUploadFile"),a.each(y,(function(t,r){e.prototype[r]=a.apiWrapper(r,t)}))}},"./src/async.js":function(e,t){var r={eachLimit:function(e,t,r,n){if(n=n||function(){},!e.length||t<=0)return n();var i=0,o=0,s=0;!function a(){if(i>=e.length)return n();for(;s<t&&o<e.length;)s+=1,r(e[(o+=1)-1],(function(t){t?(n(t),n=function(){}):(s-=1,(i+=1)>=e.length?n():a())}))}()},retry:function(e,t,r){var n=function(i){t((function(t,o){t&&i<e?n(i+1):r(t,o)}))};e<1?r():n(1)}};e.exports=r},"./src/base.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=r("./node_modules/@babel/runtime/helpers/typeof.js");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a=r("./lib/request.js"),u=r("./src/util.js");function l(e,t,r){var n=u.clone(t.InventoryConfiguration);if(n.OptionalFields){var i=n.OptionalFields||[];n.OptionalFields={Field:i}}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var o=n.Destination.COSBucketDestination.Encryption;Object.keys(o).indexOf("SSECOS")>-1&&(o["SSE-COS"]=o.SSECOS,delete o.SSECOS)}var s=u.json2xml({InventoryConfiguration:n}),a=t.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=u.b64(u.md5(s));var l="PUT"===e?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";y.call(this,{Action:l,method:e,Bucket:t.Bucket,Region:t.Region,body:s,action:"inventory",qs:{id:t.Id},headers:a,tracker:t.tracker},(function(e,t){return e&&204===e.statusCode?r(null,{statusCode:e.statusCode}):e?r(e):void r(null,{statusCode:t.statusCode,headers:t.headers})}))}function c(e){var t={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},r={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},n=(e&&e.AccessControlList||{}).Grant;n&&(n=u.isArray(n)?n:[n]);var i={READ:0,WRITE:0,FULL_CONTROL:0};return n&&n.length&&u.each(n,(function(n){var o=n.Grantee.URI&&n.Grantee.URI.endsWith("/groups/global/AllUsers");"qcs::cam::anyone:anyone"===n.Grantee.ID||o?i[n.Permission]=1:n.Grantee.ID!==e.Owner.ID&&t[r[n.Permission]].push('id="'+n.Grantee.ID+'"')})),i.FULL_CONTROL||i.WRITE&&i.READ?t.ACL="public-read-write":i.READ?t.ACL="public-read":t.ACL="private",u.each(r,(function(e){t[e]=h(t[e].join(","))})),t}function h(e){var t,r,n=e.split(","),i={};for(t=0;t<n.length;)i[r=n[t].trim()]?n.splice(t,1):(i[r]=!0,n[t]=r,t++);return n.join(",")}function d(e){var t=e.region||"",r=e.bucket||"",n=r.substr(0,r.lastIndexOf("-")),o=r.substr(r.lastIndexOf("-")+1),s=e.domain,a=e.object;"function"===typeof s&&(s=s({Bucket:r,Region:t})),["http","https"].includes(e.protocol)&&(e.protocol=e.protocol+":");var l=e.protocol||(u.isBrowser&&"object"===("undefined"===typeof location?"undefined":i(location))&&"http:"===location.protocol?"http:":"https:");s||(s=["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(t)>-1?"{Region}.myqcloud.com":"cos.{Region}.myqcloud.com",e.ForcePathStyle||(s="{Bucket}."+s)),s=(s=s.replace(/\{\{AppId\}\}/gi,o).replace(/\{\{Bucket\}\}/gi,n).replace(/\{\{Region\}\}/gi,t).replace(/\{\{.*?\}\}/gi,"")).replace(/\{AppId\}/gi,o).replace(/\{BucketName\}/gi,n).replace(/\{Bucket\}/gi,r).replace(/\{Region\}/gi,t).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(s)||(s=l+"//"+s),"/"===s.slice(-1)&&(s=s.slice(0,-1));var c=s;return e.ForcePathStyle&&(c+="/"+r),c+="/",a&&(c+=u.camSafeUrlEncode(a).replace(/%2F/g,"/")),e.isLocation&&(c=c.replace(/^https?:\/\//,"")),c}var f=function(e){if(!(e.Url||e.Bucket&&e.Region))return"";var t=void 0===e.UseAccelerate?this.options.UseAccelerate:e.UseAccelerate;return(e.Url||d({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:t?"accelerate":e.Region})).replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1")};function p(e,t){var r=u.clone(e.Headers),n="";u.each(r,(function(e,t){(""===e||["content-type","cache-control","expires"].indexOf(t.toLowerCase())>-1)&&delete r[t],"host"===t.toLowerCase()&&(n=e)}));var i=!1!==e.ForceSignHost;!n&&e.SignHost&&i&&(r.Host=e.SignHost);var o=!1,s=function(e,r){o||(o=!0,r&&r.XCosSecurityToken&&!r.SecurityToken&&((r=u.clone(r)).SecurityToken=r.XCosSecurityToken,delete r.XCosSecurityToken),t&&t(e,r))},a=this,l=e.Bucket||"",c=e.Region||"",h=e.Key||"";a.options.ForcePathStyle&&l&&(h=l+"/"+h);var d="/"+h,f={},p=e.Scope;if(!p){var m=e.Action||"",g=e.ResourceKey||e.Key||"";p=e.Scope||[{action:m,bucket:l,region:c,prefix:g}]}var y=u.md5(JSON.stringify(p));a._StsCache=a._StsCache||[],function(){var e,t;for(e=a._StsCache.length-1;e>=0;e--){t=a._StsCache[e];var r=Math.round(u.getSkewTime(a.options.SystemClockOffset)/1e3)+30;if(t.StartTime&&r<t.StartTime||r>=t.ExpiredTime)a._StsCache.splice(e,1);else if(!t.ScopeLimit||t.ScopeLimit&&t.ScopeKey===y){f=t;break}}}();var b=function(){var t="";f.StartTime&&e.Expires?t=f.StartTime+";"+(f.StartTime+1*e.Expires):f.StartTime&&f.ExpiredTime&&(t=f.StartTime+";"+f.ExpiredTime);var n={Authorization:u.getAuth({SecretId:f.TmpSecretId,SecretKey:f.TmpSecretKey,Method:e.Method,Pathname:d,Query:e.Query,Headers:r,Expires:e.Expires,UseRawKey:a.options.UseRawKey,SystemClockOffset:a.options.SystemClockOffset,KeyTime:t,ForceSignHost:i}),SecurityToken:f.SecurityToken||f.XCosSecurityToken||"",Token:f.Token||"",ClientIP:f.ClientIP||"",ClientUA:f.ClientUA||"",SignFrom:"client"};s(null,n)},v=function(e){if(e.Authorization){var t=!1,r=e.Authorization;if(r)if(r.indexOf(" ")>-1)t=!1;else if(r.indexOf("q-sign-algorithm=")>-1&&r.indexOf("q-ak=")>-1&&r.indexOf("q-sign-time=")>-1&&r.indexOf("q-key-time=")>-1&&r.indexOf("q-url-param-list=")>-1)t=!0;else try{(r=atob(r)).indexOf("a=")>-1&&r.indexOf("k=")>-1&&r.indexOf("t=")>-1&&r.indexOf("r=")>-1&&r.indexOf("b=")>-1&&(t=!0)}catch(n){}if(!t)return u.error(new Error("getAuthorization callback params format error"))}else{if(!e.TmpSecretId)return u.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!e.TmpSecretKey)return u.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!e.SecurityToken&&!e.XCosSecurityToken)return u.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!e.ExpiredTime)return u.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(e.ExpiredTime&&10!==e.ExpiredTime.toString().length)return u.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(e.StartTime&&10!==e.StartTime.toString().length)return u.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(f.ExpiredTime&&f.ExpiredTime-u.getSkewTime(a.options.SystemClockOffset)/1e3>60)b();else if(a.options.getAuthorization)a.options.getAuthorization.call(a,{Bucket:l,Region:c,Method:e.Method,Key:h,Pathname:d,Query:e.Query,Headers:r,Scope:p,SystemClockOffset:a.options.SystemClockOffset,ForceSignHost:i},(function(e){"string"===typeof e&&(e={Authorization:e});var t=v(e);if(t)return s(t);e.Authorization?s(null,e):((f=e||{}).Scope=p,f.ScopeKey=y,a._StsCache.push(f),b())}));else{if(!a.options.getSTS)return function(){var t="";if(a.options.StartTime&&e.Expires){if(10!==a.options.StartTime.toString().length)return s(u.error(new Error('params "StartTime" should be 10 digits')));t=a.options.StartTime+";"+(a.options.StartTime+1*e.Expires)}else if(a.options.StartTime&&a.options.ExpiredTime){if(10!==a.options.StartTime.toString().length)return s(u.error(new Error('params "StartTime" should be 10 digits')));if(10!==a.options.ExpiredTime.toString().length)return s(u.error(new Error('params "ExpiredTime" should be 10 digits')));t=a.options.StartTime+";"+1*a.options.ExpiredTime}var n={Authorization:u.getAuth({SecretId:e.SecretId||a.options.SecretId,SecretKey:e.SecretKey||a.options.SecretKey,Method:e.Method,Pathname:d,Query:e.Query,Headers:r,Expires:e.Expires,KeyTime:t,UseRawKey:a.options.UseRawKey,SystemClockOffset:a.options.SystemClockOffset,ForceSignHost:i}),SecurityToken:a.options.SecurityToken||a.options.XCosSecurityToken,SignFrom:"client"};return s(null,n),n}();a.options.getSTS.call(a,{Bucket:l,Region:c},(function(e){(f=e||{}).Scope=p,f.ScopeKey=y,f.TmpSecretId||(f.TmpSecretId=f.SecretId),f.TmpSecretKey||(f.TmpSecretKey=f.SecretKey);var t=v(f);if(t)return s(t);a._StsCache.push(f),b()}))}return""}function m(e){var t=!1,r=!1,n=!1,i=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var o=e.error.Code,s=e.error.Message;("RequestTimeTooSkewed"===o||"AccessDenied"===o&&"Request has expired"===s)&&(r=!0)}catch(l){}if(e)if(r&&i){var a=Date.parse(i);this.options.CorrectClockSkew&&Math.abs(u.getSkewTime(this.options.SystemClockOffset)-a)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=a-Date.now(),t=!0)}else 5===Math.floor(e.statusCode/100)?(t=!0,n=!1):("timeout"===e.message||"CORS blocked or network error"===e.message)&&(t=!0,n=this.options.AutoSwitchHost);return{canRetry:t,networkError:n}}function g(e){var t=e.requestUrl,r=e.clientCalcSign,n=e.networkError;return!!this.options.AutoSwitchHost&&(!!t&&(!!r&&(!!n&&(/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/.test(t)&&!/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/.test(t)))))}function y(e,t){var r=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=u.clearKey(e.qs),e.headers&&(e.headers=u.clearKey(e.headers)),e.qs&&(e.qs=u.clearKey(e.qs));var n=u.clone(e.qs);e.action&&(n[e.action]="");var i=e.url||e.Url,o=e.SignHost||f.call(this,{Bucket:e.Bucket,Region:e.Region,Url:i}),a=e.tracker,l=function(i){var u=r.options.SystemClockOffset;a&&a.setParams({signStartTime:(new Date).getTime(),httpRetryTimes:i-1}),e.SwitchHost&&(o=o.replace(/myqcloud.com/,"tencentcos.cn"));var c=s(s({},e),{},{Query:n,SignHost:o,ForceSignHost:r.options.ForceSignHost});delete c.tracker,r.logger.debug({cate:"PROCESS",tag:"base",msg:"\u5f00\u59cb\u8ba1\u7b97\u7b7e\u540d, opt=".concat(JSON.stringify(c))}),p.call(r,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:n,Headers:e.headers,SignHost:o,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:r.options.ForceSignHost,SwitchHost:e.SwitchHost},(function(n,o){if(n)return r.logger.error({cate:"PROCESS",tag:"base",msg:"\u7b7e\u540d\u83b7\u53d6\u5931\u8d25, err=".concat(JSON.stringify(n.message))}),void t(n);a&&a.setParams({signEndTime:(new Date).getTime(),httpStartTime:(new Date).getTime()}),e.AuthData=o,r.logger.debug({cate:"PROCESS",tag:"base",msg:"\u7b7e\u540d\u83b7\u53d6\u62
210\u529f"}),r.logger.info({cate:"PROCESS",tag:"base",msg:"\u51c6\u5907\u53d1\u8d77\u8bf7\u6c42"}),b.call(r,e,(function(n,s){a&&a.setParams({httpEndTime:(new Date).getTime()});var c=!1,h=!1;if(n){var d=m.call(r,n);c=d.canRetry||u!==r.options.SystemClockOffset,h=d.networkError,r.logger.error({cate:"PROCESS",tag:"network",msg:"\u8bf7\u6c42\u5931\u8d25, err=".concat(JSON.stringify(n),", canRetry=").concat(c,", networkError=").concat(h,", tryTimes=").concat(i)})}if(n&&i<4&&c){e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]);var f=g.call(r,{requestUrl:(null===n||void 0===n?void 0:n.url)||"",clientCalcSign:"client"===o.SignFrom,networkError:h});e.SwitchHost=f,e.headers["x-cos-sdk-retry"]=!0,r.logger.info({cate:"PROCESS",tag:"base",msg:"\u91cd\u8bd5\u8bf7\u6c42, \u91cd\u8bd5\u7b2c".concat(i,"\u6b21")}),l(i+1)}else r.logger.info({cate:"PROCESS",tag:"base",msg:"\u8bf7\u6c42\u5b8c\u6210"}),t(n,s)}))}))};l(1)}function b(e,t){var r=this,n=e.TaskId;if(!n||r._isRunningTask(n)){var i=e.Bucket,o=e.Region,s=e.Key,l=e.method||"GET",c=e.Url||e.url,h=e.body,f=e.rawBody;r.options.UseAccelerate&&(o="accelerate"),c=c||d({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:i,region:o,object:s}),e.SwitchHost&&(c=c.replace(/myqcloud.com/,"tencentcos.cn"));var p=s?c:"";e.action&&(c=c+"?"+(u.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(c=c.indexOf("?")>-1?c+"&"+e.qsStr:c+"?"+e.qsStr);var m={method:l,url:c,headers:e.headers,qs:e.qs,body:h},g="x-cos-security-token";if(u.isCIHost(c)&&(g="x-ci-security-token"),m.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(m.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(m.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(m.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(m.headers[g]=e.AuthData.SecurityToken),e.Action&&(m.action=e.Action),m.key=e.Key||e.ResourceKey,m.headers&&(m.headers=u.clearKey(m.headers)),m=u.clearKey(m),e.onProgress&&"function"===typeof e.onProgress){var y=h&&(h.size||h.length)||0;m.onProgress=function(t){if(!n||r._isRunningTask(n)){var i=t?t.loaded:0;e.onProgress({loaded:i,total:y})}}}e.onDownloadProgress&&(m.onDownloadProgress=e.onDownloadProgress),e.DataType&&(m.dataType=e.DataType),this.options.Timeout&&(m.timeout=this.options.Timeout),r.options.ForcePathStyle&&(m.pathStyle=r.options.ForcePathStyle);var b=u.uuid();r.logger.info({cate:"PROCESS",tag:"network",msg:"[Request] ".concat(b,", requestOpt=").concat(JSON.stringify(m))}),r.emit("before-send",m);var v,w=m.url.includes("accelerate."),M=m.qs?Object.keys(m.qs).map((function(e){return"".concat(e,"=").concat(m.qs[e])})).join("&"):"",x=M?m.url+"?"+M:m.url;e.tracker&&(e.tracker.setParams({url:x,httpMethod:m.method,accelerate:w,httpSize:(null===(v=m.body)||void 0===v?void 0:v.size)||0}),e.tracker.parent&&!e.tracker.parent.params.url&&e.tracker.parent.setParams({url:p,accelerate:w}));var S=(r.options.Request||a)(m,(function(i){if(!i||"abort"!==i.error){var o={options:m,error:i&&i.error,statusCode:i&&i.statusCode||0,statusMessage:i&&i.statusMessage||"",headers:i&&i.headers||{},body:i&&i.body};r.emit("after-receive",o);var s,a=o.error,l=o.body,c={statusCode:o.statusCode,statusMessage:o.statusMessage,headers:o.headers},h=a?"[error]":"[success]";r.logger.info({cate:"PROCESS",tag:"network",msg:"[Response] ".concat(b,", ").concat(h,", response=").concat(JSON.stringify(c))});var d=function(i,o){if(n&&r.off("inner-kill-task",_),!s){s=!0;var a={};if(c&&c.statusCode&&(a.statusCode=c.statusCode),c&&c.headers&&(a.headers=c.headers),i)m.url&&(a.url=m.url),m.method&&(a.method=m.method),i=u.extend(i||{},a),t(i,null);else{if("name/cos:PutObject"===e.Action){var l={};for(var h in e.headers)l[h.toLowerCase()]=e.headers[h];l["x-cos-callback"]?o.Error?(o.CallbackError=u.clone(o.Error),delete o.Error):o.CallbackBody=u.clone(o):l["x-cos-return-body"]&&(o.Error?(o.ReturnError=u.clone(o.Error),delete o.Error):o.ReturnBody=u.clone(o))}o=u.extend(o||{},a),t(null,o)}S=null}};if(a)return d(u.error(a));var p=c.statusCode,g=2===Math.floor(p/100);if(f){if(g)return d(null,{body:l});if(l instanceof Blob)return void u.readAsBinaryString(l,(function(e){var t=u.parseResBody(e),r=t.Error||t;return d(u.error(new Error(r.Message||"response body error"),{code:r.Code,error:r}))}))}var y=u.parseResBody(l),v=y.Error||y;g?d(null,y):v?d(u.error(new Error(v.Message),{code:v.Code,error:v})):p?d(u.error(new Error(c.statusMessage),{code:""+p})):p&&d(u.error(new Error("statusCode error")))}})),_=function(e){e.TaskId===n&&(S&&S.abort&&S.abort(),r.off("inner
2-kill-task",_))};n&&r.on("inner-kill-task",_)}}var v={getService:function(e,t){var r=this.options.Protocol||(u.isBrowser&&"object"===("undefined"===typeof location?"undefined":i(location))&&"http:"===location.protocol?"http:":"https:"),n=this.options.ServiceDomain,o=e.AppId||this.options.appId,s=e.Region;n?(n=n.replace(/\{\{AppId\}\}/gi,o||"").replace(/\{\{Region\}\}/gi,s||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(n)||(n=r+"//"+n),"/"===n.slice(-1)&&(n=n.slice(0,-1))):n=s?r+"//cos."+s+".myqcloud.com":r+"//service.cos.myqcloud.com";var a="",l=s?"cos."+s+".myqcloud.com":"service.cos.myqcloud.com";l===n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1")&&(a=l),y.call(this,{Action:"name/cos:GetService",url:n,method:"GET",headers:e.Headers,SignHost:a,tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r&&r.ListAllMyBucketsResult&&r.ListAllMyBucketsResult.Buckets&&r.ListAllMyBucketsResult.Buckets.Bucket||[];n=u.isArray(n)?n:[n];var i=r&&r.ListAllMyBucketsResult&&r.ListAllMyBucketsResult.Owner||{};t(null,{Buckets:n,Owner:i,statusCode:r.statusCode,headers:r.headers})}))},putBucket:function(e,t){var r=this,n="";if(e.BucketAZConfig){var i={BucketAZConfig:e.BucketAZConfig};n=u.json2xml({CreateBucketConfiguration:i})}y.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,body:n,tracker:e.tracker},(function(n,i){if(n)return t(n);var o=d({protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:e.Region,isLocation:!0});t(null,{Location:o,statusCode:i.statusCode,headers:i.headers})}))},headBucket:function(e,t){y.call(this,{Action:"name/cos:HeadBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"HEAD",tracker:e.tracker},t)},getBucket:function(e,t){var r={};r.prefix=e.Prefix||"",r.delimiter=e.Delimiter,r.marker=e.Marker,r["max-keys"]=e.MaxKeys,r["encoding-type"]=e.EncodingType,y.call(this,{Action:"name/cos:GetBucket",ResourceKey:r.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:r,tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.ListBucketResult||{},i=n.Contents||[],o=n.CommonPrefixes||[];i=u.isArray(i)?i:[i],o=u.isArray(o)?o:[o];var s=u.clone(n);u.extend(s,{Contents:i,CommonPrefixes:o,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},deleteBucket:function(e,t){y.call(this,{Action:"name/cos:DeleteBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"DELETE",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketAcl:function(e,t){var r=e.Headers,n="";if(e.AccessControlPolicy){var i=u.clone(e.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=u.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},n=u.json2xml({AccessControlPolicy:i}),r["Content-Type"]="application/xml",r["Content-MD5"]=u.b64(u.md5(n))}u.each(r,(function(e,t){0===t.indexOf("x-cos-grant-")&&(r[t]=h(r[t]))})),y.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:r,action:"acl",body:n,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketAcl:function(e,t){y.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"acl",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.AccessControlPolicy||{},i=n.Owner||{},o=n.AccessControlList.Grant||[];o=u.isArray(o)?o:[o];var s=c(n);r.headers&&r.headers["x-cos-acl"]&&(s.ACL=r.headers["x-cos-acl"]),s=u.extend(s,{Owner:i,Grants:o,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},putBucketCors:function(e,t){var r=(e.CORSConfiguration||{}).CORSRules||e.CORSRules||[];r=u.clone(u.isArray(r)?r:[r]),u.each(r,(function(e){u.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var r=t+"s",n=e[r]||e[t]||[];delete e[r],e[t]=u.isArray(n)?n:[n]}))}));var n={CORSRule:r};e.ResponseVary&&(n.ResponseVary=e.ResponseVary);var i=u.json2xml({CORSConfiguration:n}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"cors",headers:o,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketCors:function(e,t){y.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors",tracker:e.tracker},(function(e,r){if(e)if(404===e.statusCode&&e.error&&"NoSuchCORSConfiguration"===e.error.Code){var n={CORSRules:[],statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=r.CORSConfiguration||{},o=i.CORSRules||i.CORSRule||[];o=u.clone(u.isArray(o)?o:[o]);var s=i.ResponseVary;u.each(o,(function(e){u.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var r=t+"s",n=e[r]||e[t]||[];delete e[t],e[r]=u.isArray(n)?n:[n]}))})),t(null,{CORSRules:o,ResponseVary:s,statusCode:r.statusCode,headers:r.headers})}}))},deleteBucketCors:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode||e.statusCode,headers:r.headers})}))},getBucketLocation:function(e,t){y.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"location",tracker:e.tracker},t)},getBucketPolicy:function(e,t){y.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy",rawBody:!0,tracker:e.tracker},(function(e,r){if(e)return e.statusCode&&403===e.statusCode?t(u.error(e,{ErrorStatus:"Access Denied"})):e.statusCode&&405===e.statusCode?t(u.error(e,{ErrorStatus:"Method Not Allowed"})):e.statusCode&&404===e.statusCode?t(u.error(e,{ErrorStatus:"Policy Not Found"})):t(e);var n={};try{n=JSON.parse(r.body)}catch(i){}t(null,{Policy:n,statusCode:r.statusCode,headers:r.headers})}))},putBucketPolicy:function(e,t){var r=e.Policy;try{"string"===typeof r&&(r=JSON.parse(r))}catch(o){}if(!r||"string"===typeof r)return t(u.error(new Error("Policy format error")));var n=JSON.stringify(r);r.version||(r.version="2.0");var i=e.Headers;i["Content-Type"]="application/json",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:e.Bucket,Region:e.Region,action:"policy",body:n,headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},deleteBucketPolicy:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode||e.statusCode,headers:r.headers})}))},putBucketTagging:function(e,t){var r=e.Tagging||{},n=r.TagSet||r.Tags||e.Tags||[];n=u.clone(u.isArray(n)?n:[n]);var i=u.json2xml({Tagging:{TagSet:{Tag:n}}}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"tagging",headers:o,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketTagging:function(e,t){y.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",tracker:e.tracker},(function(e,r){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var n={Tags:[],statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else{var i=[];try{i=r.Tagging.TagSet.Tag||[]}catch(o){}i=u.clone(u.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:r.statusCode,headers:r.headers})}}))},deleteBucketTagging:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketLifecycle:function(e,t){var r=(e.LifecycleConfiguration||{}).Rules||e.Rules||[];r=u.clone(r);var n=u.json2xml({LifecycleConfiguration:{Rule:r}}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"lifecycle",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketLifecycle:function(e,t){y.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle",tracker:e.tracker},(function(e,r){if(e)if(404===e.statusCode&&e.error&&"NoSuchLifecycleConfiguration"===e.error.Code){var n={Rules:[],statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=[];try{i=r.LifecycleConfiguration.Rule||[]}catch(o){}i=u.clone(u.isArray(i)?i:[i]),t(null,{Rules:i,statusCode:r.statusCode,headers:r.headers})}}))},deleteBucketLifecycle:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketVersioning:function(e,t){if(e.VersioningConfiguration){var r=e.VersioningConfiguration||{},n=u.json2xml({VersioningConfiguration:r}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"versioning",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}else t(u.error(new Error("missing param VersioningConfiguration")))},getBucketVersioning:function(e,t){y.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"versioning",tracker:e.tracker},(function(e,r){e||!r.VersioningConfiguration&&(r.VersioningConfiguration={}),t(e,r)}))},putBucketReplication:function(e,t){var r=u.clone(e.ReplicationConfiguration),n=u.json2xml({ReplicationConfiguration:r});n=(n=n.replace(/<(\/?)Rules>/gi,"<$1Rule>")).replace(/<(\/?)Tags>/gi,"<$1Tag>");var i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"replication",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketReplication:function(e,t){y.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication",tracker:e.tracker},(function(e,r){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"ReplicationConfigurationnotFoundError"!==e.error.Code)t(e);else{var n={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else!r.ReplicationConfiguration&&(r.ReplicationConfiguration={}),r.ReplicationConfiguration.Rule&&(r.ReplicationConfiguration.Rules=u.makeArray(r.ReplicationConfiguration.Rule),delete r.ReplicationConfiguration.Rule),t(e,r)}))},deleteBucketReplication:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketWebsite:function(e,t){if(e.WebsiteConfiguration){var r=u.clone(e.WebsiteConfiguration||{}),n=r.RoutingRules||r.RoutingRule||[];n=u.isArray(n)?n:[n],delete r.RoutingRule,delete r.RoutingRules,n.length&&(r.RoutingRules={RoutingRule:n});var i=u.json2xml({WebsiteConfiguration:r}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"website",headers:o,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}else t(u.error(new Error("missing param WebsiteConfiguration")))},getBucketWebsite:function(e,t){y.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website",tracker:e.tracker},(function(e,r){if(e)if(404===e.statusCode&&"NoSuchWebsiteConfiguration"===e.error.Code){var n={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=r.WebsiteConfiguration||{};if(i.RoutingRules){var o=u.clone(i.RoutingRules.RoutingRule||[]);o=u.makeArray(o),i.RoutingRules=o}t(null,{WebsiteConfiguration:i,statusCode:r.statusCode,headers:r.headers})}}))},deleteBucketWebsite:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketReferer:function(e,t){if(e.RefererConfiguration){var r=u.clone(e.RefererConfiguration||{}),n=r.DomainList||{},i=n.Domains||n.Domain||[];(i=u.isArray(i)?i:[i]).length&&(r.DomainList={Domain:i});var o=u.json2xml({RefererConfiguration:r}),s=e.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=u.b64(u.md5(o)),y.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"referer",headers:s,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}else t(u.error(new Error("missing param RefererConfiguration")))},getBucketReferer:function(e,t){y.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer",tracker:e.tracker},(function(e,r){if(e)if(404===e.statusCode&&"NoSuchRefererConfiguration"===e.error.Code){var n={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=r.RefererConfiguration||{};if(i.DomainList){var o=u.makeArray(i.DomainList.Domain||[]);i.DomainList={Domains:o}}t(null,{RefererConfiguration:i,statusCode:r.statusCode,headers:r.headers})}}))},putBucketDomain:function(e,t){var r=(e.DomainConfiguration||{}).DomainRule||e.DomainRule||[];r=u.clone(r);var n=u.json2xml({DomainConfiguration:{DomainRule:r}}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"domain",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketDomain:function(e,t){y.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=[];try{n=r.DomainConfiguration.DomainRule||[]}catch(i){}n=u.clone(u.isArray(n)?n:[n]),t(null,{DomainRule:n,statusCode:r.statusCode,headers:r.headers})}))},deleteBucketDomain:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Regi
vendor: 25,879 bytes, line 2
2on,headers:e.Headers,action:"domain",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketOrigin:function(e,t){var r=(e.OriginConfiguration||{}).OriginRule||e.OriginRule||[];r=u.clone(r);var n=u.json2xml({OriginConfiguration:{OriginRule:r}}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"origin",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketOrigin:function(e,t){y.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=[];try{n=r.OriginConfiguration.OriginRule||[]}catch(i){}n=u.clone(u.isArray(n)?n:[n]),t(null,{OriginRule:n,statusCode:r.statusCode,headers:r.headers})}))},deleteBucketOrigin:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketLogging:function(e,t){var r=u.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=u.b64(u.md5(r)),y.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"logging",headers:n,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketLogging:function(e,t){y.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging",tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{BucketLoggingStatus:r.BucketLoggingStatus,statusCode:r.statusCode,headers:r.headers})}))},putBucketInventory:function(e,t){return l.call(this,"PUT",e,t)},postBucketInventory:function(e,t){return l.call(this,"POST",e,t)},getBucketInventory:function(e,t){y.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id},tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.InventoryConfiguration;if(n&&n.OptionalFields&&n.OptionalFields.Field){var i=n.OptionalFields.Field;u.isArray(i)||(i=[i]),n.OptionalFields=i}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var o=n.Destination.COSBucketDestination.Encryption;Object.keys(o).indexOf("SSE-COS")>-1&&(o.SSECOS=o["SSE-COS"],delete o["SSE-COS"])}t(null,{InventoryConfiguration:n,statusCode:r.statusCode,headers:r.headers})}))},listBucketInventory:function(e,t){y.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken},tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.ListInventoryConfigurationResult,i=n.InventoryConfiguration||[];i=u.isArray(i)?i:[i],delete n.InventoryConfiguration,u.each(i,(function(e){if(e&&e.OptionalFields&&e.OptionalFields.Field){var t=e.OptionalFields.Field;u.isArray(t)||(t=[t]),e.OptionalFields=t}if(e.Destination&&e.Destination.COSBucketDestination&&e.Destination.COSBucketDestination.Encryption){var r=e.Destination.COSBucketDestination.Encryption;Object.keys(r).indexOf("SSE-COS")>-1&&(r.SSECOS=r["SSE-COS"],delete r["SSE-COS"])}})),n.InventoryConfigurations=i,u.extend(n,{statusCode:r.statusCode,headers:r.headers}),t(null,n)}))},deleteBucketInventory:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id},tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},putBucketAccelerate:function(e,t){if(e.AccelerateConfiguration){var r={AccelerateConfiguration:e.AccelerateConfiguration||{}},n=u.json2xml(r),i={"Content-Type":"application/xml"};i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"accelerate",headers:i,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))}else t(u.error(new Error("missing param AccelerateConfiguration")))},getBucketAccelerate:function(e,t){y.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate",tracker:e.tracker},(function(e,r){e||!r.AccelerateConfiguration&&(r.AccelerateConfiguration={}),t(e,r)}))},putBucketEncryption:function(e,t){var r=e.ServerSideEncryptionConfiguration||{},n=r.Rule||r.Rules||[],i=u.json2xml({ServerSideEncryptionConfiguration:{Rule:n}}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"encryption",headers:o,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getBucketEncryption:function(e,t){y.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption",tracker:e.tracker},(function(e,r){if(e)if(404===e.statusCode&&"NoSuchEncryptionConfiguration"===e.code){var n={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=u.makeArray(r.EncryptionConfiguration&&r.EncryptionConfiguration.Rule||[]);r.EncryptionConfiguration={Rules:i},t(e,r)}}))},deleteBucketEncryption:function(e,t){y.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption",tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getObject:function(e,t){var r=this;if(r.logger.info({cate:"PROCESS",tag:"download",msg:"[key=".concat(e.Key,"] getObject\u5f00\u59cb")}),this.options.ObjectKeySimplifyCheck&&"/"===u.simplifyPath(e.Key))t(u.error(new Error("The Getobject Key is illegal")));else{var n=e.Query||{},i=e.QueryString||"",o=u.throttleOnProgress.call(this,0,e.onProgress),s=e.tracker;s&&s.setParams({signStartTime:(new Date).getTime()}),n["response-content-type"]=e.ResponseContentType,n["response-content-language"]=e.ResponseContentLanguage,n["response-expires"]=e.ResponseExpires,n["response-cache-control"]=e.ResponseCacheControl,n["response-content-disposition"]=e.ResponseContentDisposition,n["response-content-encoding"]=e.ResponseContentEncoding,y.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:n,qsStr:i,rawBody:!0,onDownloadProgress:o,tracker:s},(function(n,i){if(o(null,!0),n){var s=n.statusCode;return e.Headers["If-Modified-Since"]&&s&&304===s?t(null,{NotModified:!0}):t(n)}t(null,{Body:i.body,ETag:u.attr(i.headers,"etag",""),statusCode:i.statusCode,headers:i.headers}),r.logger.info({cate:"PROCESS",tag:"download",msg:"[key=".concat(e.Key,"] getObject\u7ed3\u675f")})}))}},headObject:function(e,t){y.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers,tracker:e.tracker},(function(r,n){if(r){var i=r.statusCode;return e.Headers["If-Modified-Since"]&&i&&304===i?t(null,{NotModified:!0,statusCode:i}):t(r)}n.ETag=u.attr(n.headers,"etag",""),t(null,n)}))},listObjectVersions:function(e,t){var r={};r.prefix=e.Prefix||"",r.delimiter=e.Delimiter,r["key-marker"]=e.KeyMarker,r["version-id-marker"]=e.VersionIdMarker,r["max-keys"]=e.MaxKeys,r["encoding-type"]=e.EncodingType,y.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:r.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:r,action:"versions",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.ListVersionsResult||{},i=n.DeleteMarker||[];i=u.isArray(i)?i:[i];var o=n.Version||[];o=u.isArray(o)?o:[o];var s=u.clone(n);delete s.DeleteMarker,delete s.Version,u.extend(s,{DeleteMarkers:i,Versions:o,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},putObject:function(e,t){var r=this,n=e.ContentLength,i=u.throttleOnProgress.call(r,n,e.onProgress);r.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] putObject\u5f00\u59cb")});var o=e.Headers;o["Cache-Control"]||o["cache-control"]||(o["Cache-Control"]=""),o["Content-Type"]||o["content-type"]||(o["Content-Type"]=e.Body&&e.Body.type||"");var s=e.UploadAddMetaMd5||r.options.UploadAddMetaMd5||r.options.UploadCheckContentMd5,a=e.tracker;s&&a&&a.setParams({md5StartTime:(new Date).getTime()}),s&&r.logger.debug({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] \u5f00\u59cb\u8ba1\u7b97 md5")}),u.getBodyMd5(s,e.Body,(function(s){s&&(r.logger.debug({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] md5: ").concat(s,"\uff0cmd5Base64=").concat(u.b64(s))}),a&&a.setParams({md5EndTime:(new Date).getTime()}),r.options.UploadCheckContentMd5&&(o["Content-MD5"]=u.b64(s)),(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5)&&(o["x-cos-meta-md5"]=s)),void 0!==e.ContentLength&&(o["Content-Length"]=e.ContentLength),i(null,!0),y.call(r,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:i,tracker:a},(function(o,s){if(o)return r.logger.error({cate:"ERROR",tag:"upload",msg:"\u4e0a\u4f20\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f\uff1a".concat(JSON.stringify(o))}),i(null,!0),t(o);i({loaded:n,total:n},!0);var a=d({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:r.options.UseAccelerate?"accelerate":e.Region,object:e.Key});a=a.substr(a.indexOf("://")+3),s.Location=a,s.ETag=u.attr(s.headers,"etag",""),r.logger.info({cate:"RESULT",tag:"upload",msg:"\u4e0a\u4f20\u6210\u529f\uff0cLocation=".concat(a)}),r.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(e.Key,"] putObject\u7ed3\u675f")}),t(null,s)}))}),e.onHashProgress)},deleteObject:function(e,t){y.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":"",tracker:e.tracker},(function(e,r){if(e){var n=e.statusCode;return n&&404===n?t(null,{BucketNotFound:!0,statusCode:n}):t(e)}t(null,{statusCode:r.statusCode,headers:r.headers})}))},getObjectAcl:function(e,t){var r={};e.VersionId&&(r.versionId=e.VersionId),y.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:r,action:"acl",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.AccessControlPolicy||{},i=n.Owner||{},o=n.AccessControlList&&n.AccessControlList.Grant||[];o=u.isArray(o)?o:[o];var s=c(n);delete s.GrantWrite,r.headers&&r.headers["x-cos-acl"]&&(s.ACL=r.headers["x-cos-acl"]),s=u.extend(s,{Owner:i,Grants:o,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},putObjectAcl:function(e,t){var r=e.Headers,n="";if(e.AccessControlPolicy){var i=u.clone(e.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=u.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},n=u.json2xml({AccessControlPolicy:i}),r["Content-Type"]="application/xml",r["Content-MD5"]=u.b64(u.md5(n))}u.each(r,(function(e,t){0===t.indexOf("x-cos-grant-")&&(r[t]=h(r[t]))})),y.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:r,body:n,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))},optionsObject:function(e,t){var r=e.Headers;r.Origin=e.Origin,r["Access-Control-Request-Method"]=e.AccessControlRequestMethod,r["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,y.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:r,tracker:e.tracker},(function(e,r){if(e)return e.statusCode&&403===e.statusCode?t(null,{OptionsForbidden:!0,statusCode:e.statusCode}):t(e);var n=r.headers||{};t(null,{AccessControlAllowOrigin:n["access-control-allow-origin"],AccessControlAllowMethods:n["access-control-allow-methods"],AccessControlAllowHeaders:n["access-control-allow-headers"],AccessControlExposeHeaders:n["access-control-expose-headers"],AccessControlMaxAge:n["access-control-max-age"],statusCode:r.statusCode,headers:r.headers})}))},putObjectCopy:function(e,t){var r=this,n=e.Headers;n["Cache-Control"]||n["cache-control"]||(n["Cache-Control"]="");var i=e.CopySource||"",o=u.getSourceParams.call(this,i);if(o){var s=o.Bucket,a=o.Region,l=decodeURIComponent(o.Key);y.call(this,{Scope:[{action:"name/cos:GetObject",bucket:s,region:a,prefix:l},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers,tracker:e.tracker},(function(n,i){if(n)return t(n);var o=u.clone(i.CopyObjectResult||{}),s=d({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});u.extend(o,{Location:s,statusCode:i.statusCode,headers:i.headers}),t(null,o)}))}else t(u.error(new Error("CopySource format error")))},deleteMultipleObject:function(e,t){var r=e.Objects||[],n=e.Quiet;r=u.isArray(r)?r:[r];var i=u.json2xml({Delete:{Object:r,Quiet:n||!1}}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i));var s=u.map(r,(function(t){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:t.Key}}));y.call(this,{Scope:s,method:"POST",Bucket:e.Bucket,Region:e.Region,body:i,action:"delete",headers:o,tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.DeleteResult||{},i=n.Deleted||[],o=n.Error||[];i=u.isArray(i)?i:[i],o=u.isArray(o)?o:[o];var s=u.clone(n);u.extend(s,{Error:o,Deleted:i,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},restoreObject:function(e,t){var r=e.Headers;if(e.RestoreRequest){var n=e.RestoreRequest||{},i=u.json2xml({RestoreRequest:n});r["Content-Type"]="application/xml",r["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:i,action:"restore",headers:r,tracker:e.tracker},t)}else t(u.error(new Error("missing param RestoreRequest")))},putObjectTagging:function(e,t){var r=e.Tagging||{},n=r.TagSet||r.Tags||e.Tags||[];n=u.clone(u.isArray(n)?n:[n]);var i=u.json2xml({Tagging:{TagSet:{Tag:n}}}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=u.b64(u.md5(i)),y.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:i,action:"tagging",headers:o,VersionId:e.VersionId,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},getObjectTagging:function(e,t){y.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId,tracker:e.tracker},(function(e,r){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var n={Tags:[],statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else{var i=[];try{i=r.Tagging.TagSet.Tag||[]}catch(o){}i=u.clone(u.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:r.statusCode,headers:r.headers})}}))},deleteObjectTagging:function(e,t){y.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))},selectObjectContent:function(e,t){if(!e.SelectType)return t(u.error(new Error("missing param SelectType")));var r=e.SelectRequest||{},n=u.json2xml({SelectRequest:r}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=u.b64(u.md5(n)),y.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:n,DataType:"arraybuffer",rawBody:!0,tracker:e.tracker},(function(e,r){if(e&&204===e.statusCode)return t(null,{statusCode:e.statusCode});if(e)return t(e);var n=u.parseSelectPayload(r.body);t(null,{statusCode:r.statusCode,headers:r.headers,Body:n.body,Payload:n.payload})}))},appendObject:function(e,t){var r=e.Headers;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]=""),r["Content-Type"]||r["content-type"]||(r["Content-Type"]=e.Body&&e.Body.type||""),y.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:e.Bucket,Region:e.Region,action:"append",Key:e.Key,body:e.Body,qs:{position:e.Position},headers:e.Headers,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,r)}))},uploadPartCopy:function(e,t){var r=e.CopySource||"",n=u.getSourceParams.call(this,r);if(n){var i=n.Bucket,o=n.Region,s=decodeURIComponent(n.Key);y.call(this,{Scope:[{action:"name/cos:GetObject",bucket:i,region:o,prefix:s},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,tracker:e.tracker},(function(e,r){if(e)return t(e);var n=u.clone(r.CopyPartResult||{});u.extend(n,{statusCode:r.statusCode,headers:r.headers}),t(null,n)}))}else t(u.error(new Error("CopySource format error")))},multipartInit:function(e,t){var r=this,n=e.Headers,i=e.tracker;n["Cache-Control"]||n["cache-control"]||(n["Cache-Control"]=""),n["Content-Type"]||n["content-type"]||(n["Content-Type"]=e.Body&&e.Body.type||"");var o=e.Body&&(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5);o&&i&&i.setParams({md5StartTime:(new Date).getTime()}),u.getBodyMd5(o,e.Body,(function(n){n&&(e.Headers["x-cos-meta-md5"]=n),o&&i&&i.setParams({md5EndTime:(new Date).getTime()}),y.call(r,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:i},(function(e,r){return e?(i&&i.parent&&i.parent.setParams({errorNode:"multipartInit"}),t(e)):(r=u.clone(r||{}))&&r.InitiateMultipartUploadResult?t(null,u.extend(r.InitiateMultipartUploadResult,{statusCode:r.statusCode,headers:r.headers})):void t(null,r)}))}),e.onHashProgress)},multipartUpload:function(e,t){var r=this;u.getFileSize("multipartUpload",e,(function(){var n=e.tracker,i=r.options.UploadCheckContentMd5;i&&n&&n.setParams({md5StartTime:(new Date).getTime()}),u.getBodyMd5(i,e.Body,(function(o){o&&(e.Headers["Content-MD5"]=u.b64(o)),i&&n&&n.setParams({md5EndTime:(new Date).getTime()}),n&&n.setParams({partNumber:e.PartNumber}),y.call(r,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:n},(function(e,r){if(e)return n&&n.parent&&n.parent.setParams({errorNode:"multipartUpload"}),t(e);t(null,{ETag:u.attr(r.headers,"etag",""),statusCode:r.statusCode,headers:r.headers})}))}))}))},multipartComplete:function(e,t){for(var r=this,n=e.UploadId,i=e.Parts,o=e.tracker,s=0,a=i.length;s<a;s++)i[s].ETag&&0===i[s].ETag.indexOf('"')||(i[s].ETag='"'+i[s].ETag+'"');var l=u.json2xml({CompleteMultipartUpload:{Part:i}});l=l.replace(/\n\s*/g,"");var c=e.Headers;c["Content-Type"]="application/xml",c["Content-MD5"]=u.b64(u.md5(l)),y.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{uploadId:n},body:l,headers:c,tracker:o},(function(n,i){if(n)return o&&o.parent&&o.parent.setParams({errorNode:"multipartComplete"}),t(n);var s=d({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:r.options.UseAccelerate?"accelerate":e.Region,object:e.Key,isLocation:!0}),a=i.CompleteMultipartUploadResult||{};if(a.ProcessResults&&(a.UploadResult={OriginalInfo:{Key:a.Key,Location:s,ETag:a.ETag,ImageInfo:a.ImageInfo},ProcessResults:a.ProcessResults},delete a.ImageInfo,delete a.ProcessResults),a.CallbackResult){var l=a.CallbackResult;if("200"===l.Status&&l.CallbackBody)try{a.CallbackBody=JSON.parse(u.decodeBase64(l.CallbackBody))}catch(f){a.CallbackBody={}}else a.CallbackError=l.Error||{};delete a.CallbackResult}if(a.ReturnBodyResult){var c=a.ReturnBodyResult;if("200"===c.Status&&c.ReturnBody)try{a.ReturnBody=JSON.parse(u.decodeBase64(c.ReturnBody))}catch(f){a.ReturnBody={}}else a.ReturnError={Code:c.Code,Message:c.Message,Status:c.Status};delete a.ReturnBodyResult}var h=u.extend(a,{Location:s,statusCode:i.statusCode,headers:i.headers});t(null,h)}))},multipartList:function(e,t){var r={};r.delimiter=e.Delimiter,r["encoding-type"]=e.EncodingType,r.prefix=e.Prefix||"",r["max-uploads"]=e.MaxUploads,r["key-marker"]=e.KeyMarker,r["upload-id-marker"]=e.UploadIdMarker,r=u.clearKey(r);var n=e.tracker;n&&n.setParams({signStartTime:(new Date).getTime()}),y.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:r.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:r,action:"uploads",tracker:n},(function(e,r){if(e)return n&&n.parent&&n.parent.setParams({errorNode:"multipartList"}),t(e);if(r&&r.ListMultipartUploadsResult){var i=r.ListMultipartUploadsResult.Upload||[];i=u.isArray(i)?i:[i],r.ListMultipartUploadsResult.Upload=i}var o=u.clone(r.ListMultipartUploadsResult||{});u.extend(o,{statusCode:r.statusCode,headers:r.headers}),t(null,o)}))},multipartListPart:function(e,t){var r={},n=e.tracker;r.uploadId=e.UploadId,r["encoding-type"]=e.EncodingType,r["max-parts"]=e.MaxParts,r["part-number-marker"]=e.PartNumberMarker,y.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:r,tracker:n},(function(e,r){if(e)return n&&n.parent&&n.parent.setParams({errorNode:"multipartListPart"}),t(e);var i=r.ListPartsResult||{},o=i.Part||[];o=u.isArray(o)?o:[o],i.Part=o;var s=u.clone(i);u.extend(s,{statusCode:r.statusCode,headers:r.headers}),t(null,s)}))},multipartAbort:function(e,t){var r={};r.uploadId=e.UploadId,y.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:r,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))},request:function(e,t){y.call(this,{method:e.Method,Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:e.Action,headers:e.Headers,qs:e.Query,body:e.Body,Url:e.Url,rawBody:e.RawBody,DataType:e.DataType,tracker:e.tracker},(function(e,r){if(e)return t(e);r&&r.body&&(r.Body=r.body,delete r.body),t(e,r)}))},getObjectUrl:function(e,t){var r=void 0===e.UseAccelerate?this.options.UseAccelerate:e.UseAccelerate,n=d({ForcePathStyle:this.options.ForcePathStyle,protocol:e.Protocol||this.options.Protocol,domain:e.Domain||this.options.Domain,bucket:e.Bucket,region:r?"accelerate":e.Region,object:e.Key}),i="";e.Query&&(i+=u.obj2str(e.Query)),e.QueryString&&(i+=(i?"&":"")+e.QueryString);var o=n;if(void 0!==e.Sign&&!e.Sign)return i&&(o+="?"+i),t(null,{Url:o}),o;var s=f.call(this,{Bucket:e.Bucket,Region:e.Region,UseAccelerate:e.UseAccelerate,Url:n}),a=p.call(this,{Action:"PUT"===(e.Method||"").toUpperCase()?"name/cos:PutObject":"name/cos:GetObject",Bucket:e.Bucket||"",Region:e.Region||"",Method:e.Method||"get",Key:e.Key,Expires:e.Expires,Headers:e.Headers,Query:e.Query,SignHost:s,ForceSignHost:!1!==e.ForceSignHost&&this.options.ForceSignHost},(function(e,r){if(t)if(e)t(e);else{var o=n;o+="?"+(r.Authorization.indexOf("q-signature")>-1?function(e){var t=e.match(/q-url-param-list.*?(?=&)/g)[0],r="q-url-param-list="+encodeURIComponent(t.replace(/q-url-param-list=/,"")).toLowerCase(),n=new RegExp(t,"g");return e.replace(n,r)}(r.Authorization):"sign="+encodeURIComponent(r.Authorization)),r.SecurityToken&&(o+="&x-cos-security-token="+r.SecurityToken),r.ClientIP&&(o+="&clientIP="+r.ClientIP),r.ClientUA&&(o+="&clientUA="+r.ClientUA),r.Token&&(o+="&token="+r.Token),i&&(o+="&"+i),setTimeout((function(){t(null,{Url:o})}))}}));return a?(o+="?"+a.Authorization+(a.SecurityToken?"&x-cos-security-token="+a.SecurityToken:""),i&&(o+="&"+i)):i&&(o+="?"+i),o},getAuth:function(e){return u.getAuth({SecretId:e.SecretId||this.options.SecretId||"",SecretKey:e.SecretKey||this.options.SecretKey||"",Bucket:e.Bucket,Region:e.Region,Method:e.Method,Key:e.Key,Query:e.Query,Headers:e.Headers,Expires:e.Expires,UseRawKey:this.options.UseRawKey,SystemClockOffset:this.options.SystemClockOffset})}};e.exports.init=function(e,t){t.transferToTaskMethod(v,"putObject"),u.each(v,(function(t,r){e.prototype[r]=u.apiWrapper(r,t),function(e,t,r){u.each(["Cors","Acl"],(function(n){if(e.slice(-n.length)===n){var i=e.slice(0,-n.length)+n.toUpperCase(),o=u.apiWrapper(e,t),s=!1;r[i]=function(){!s&&console.warn("warning: cos."+i+" has been deprecated. Please Use cos."+e+" instead."),s=!0,o.apply(this,arguments)}}}))}(r,t,e.prototype)}))}},
2"./src/cos.js":function(e,t,r){"use strict";var n=r("./src/util.js"),i=r("./src/event.js"),o=r("./src/task.js"),s=r("./src/base.js"),a=r("./src/advance.js"),u=r("./src/logger.js"),l=r("./package.json"),c={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1048576,SliceSize:1048576,CopyChunkParallelLimit:20,CopyChunkSize:10485760,CopySliceSize:10485760,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null,EnableLog:!1,EnableLogcat:!1,LogLevel:"VERBOSE",ClsLogger:null,LogExtras:{}},h=function(e){var t,r,s=this;if(this.options=n.extend(n.clone(c),e||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1048576,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1048576,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683c\u5f0f\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683c\u5f0f\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5"),console.error("error: SecretKey format is incorrect. Please check")),n.isNode()&&(console.log("Tip: Next.js\u3001Nuxt.js \u7b49\u670d\u52a1\u7aef\u6e32\u67d3\u6280\u672f\u53ef\u6b63\u5e38\u4f7f\u7528JavaScript SDK\uff0c\u8bf7\u5ffd\u7565\u4e0b\u65b9 nodejs \u73af\u5883\u8b66\u544a"),console.warn("warning: cos-js-sdk-v5 \u4e0d\u652f\u6301 nodejs \u73af\u5883\u4f7f\u7528\uff0c\u8bf7\u6539\u7528 cos-nodejs-sdk-v5\uff0c\u53c2\u8003\u6587\u6863\uff1a https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5\u4e0d\u518d\u652f\u6301\u4f7f\u7528path-style\uff0c\u4ec5\u652f\u6301\u4f7f\u7528virtual-hosted-style\uff0c\u53c2\u8003\u6587\u6863\uff1ahttps://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");i.init(this),o.init(this),this.logger=new u({enableLog:this.options.EnableLog,enableLogcat:this.options.EnableLogcat,level:null!==(t=this.options.LogLevel)&&void 0!==t?t:"VERBOSE",clsLogger:this.options.ClsLogger,logExtras:null!==(r=this.options.LogExtras)&&void 0!==r?r:{}}),this.options.EnableLog&&(i.init(this.logger),this.logger.on("log-message",(function(e){s.emit("log-message",e)})))};s.init(h,o),a.init(h,o),h.util={md5:n.md5,xml2json:n.xml2json,json2xml:n.json2xml,encodeBase64:n.encodeBase64},h.getAuthorization=n.getAuth,h.version=l.version,e.exports=h},
2"./src/event.js":function(e,t){var r=function(e){var t={},r=function(e){return!t[e]&&(t[e]=[]),t[e]};e.on=function(e,t){"task-list-update"===e&&console.warn('warning: Event "'+e+'" has been deprecated. Please use "list-update" instead.'),r(e).push(t)},e.off=function(e,t){for(var n=r(e),i=n.length-1;i>=0;i--)t===n[i]&&n.splice(i,1)},e.emit=function(e,t){for(var n=r(e).map((function(e){return e})),i=0;i<n.length;i++)n[i](t)}};e.exports.init=r,e.exports.EventProxy=function(){r(this)}},
2"./src/logger.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=r("./node_modules/@babel/runtime/helpers/createClass.js"),o=r("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=r("./package.json").version,a=["VERBOSE","DEBUG","INFO","WARN","ERROR"],u=function(){"use strict";return i((function e(t){var r;n(this,e),o(this,"level","VERBOSE"),o(this,"clsLogger",null),o(this,"logExtras",{}),this.enableLog=null!==(r=t.enableLog)&&void 0!==r&&r,this.level=t.level||"VERBOSE",a.includes(this.level)||(this.level="VERBOSE"),this.enableLogcat=t.enableLogcat,this.clsLogger=t.clsLogger,this.logExtras=t.logExtras}),[{key:"info",value:function(){if(["VERBOSE","INFO"].includes(this.level)){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.log.apply(this,["info"].concat(t))}}},{key:"debug",value:function(){if(["VERBOSE","DEBUG"].includes(this.level)){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.log.apply(this,["debug"].concat(t))}}},{key:"warn",value:function(){if(["VERBOSE","WARN"].includes(this.level)){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.log.apply(this,["warn"].concat(t))}}},{key:"error",value:function(){if(["VERBOSE","ERROR"].includes(this.level)){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.log.apply(this,["error"].concat(t))}}},{key:"log",value:function(){if(this.enableLog){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=t.cate,n=void 0===r?"base":r,i=t.tag,o=void 0===i?"base":i,a=t.msg,u={version:"cos-js-sdk-v5-".concat(s),timestamp:(new Date).toISOString(),cate:"[".concat(n.toUpperCase(),"]"),tag:"[".concat(o.toUpperCase(),"]"),msg:a,extras:this.logExtras};this.enableLogcat&&console[e]("[".concat(u.version,"] ").concat(u.timestamp," ").concat(u.cate," ").concat(u.tag," ").concat(u.msg," ").concat(u.extras?JSON.stringify(u.extras):"")),this.clsLogger&&this.clsLogger.log(u,!1),this.emit("log-message",u)}}}])}();e.exports=u},
vendor: 1,353 bytes, line 2
2"./src/session.js":function(e,t,r){var n,i,o=r("./src/util.js"),s="cos_sdk_upload_cache",a=function(){try{var e=JSON.parse(localStorage.getItem(s))}catch(t){}e||(e=[]),n=e},u=function(){try{n.length?localStorage.setItem(s,JSON.stringify(n)):localStorage.removeItem(s)}catch(e){}},l=function(){if(!n){a.call(this);for(var e=!1,t=Math.round(Date.now()/1e3),r=n.length-1;r>=0;r--){var i=n[r][2];(!i||i+2592e3<t)&&(n.splice(r,1),e=!0)}e&&u()}},c=function(){i||(i=setTimeout((function(){u(),i=null}),400))},h={using:{},setUsing:function(e){h.using[e]=!0},removeUsing:function(e){delete h.using[e]},getFileId:function(e,t,r,n){return e.name&&e.size&&e.lastModifiedDate&&t?o.md5([e.name,e.size,e.lastModifiedDate,t,r,n].join("::")):null},getCopyFileId:function(e,t,r,n,i){var s=t["content-length"],a=t.etag||"",u=t["last-modified"];return e&&r?o.md5([e,s,a,u,r,n,i].join("::")):null},getUploadIdList:function(e){if(!e)return null;l.call(this);for(var t=[],r=0;r<n.length;r++)n[r][0]===e&&t.push(n[r][1]);return t.length?t:null},saveUploadId:function(e,t,r){if(l.call(this),e){for(var i=n.length-1;i>=0;i--){var o=n[i];o[0]===e&&o[1]===t&&n.splice(i,1)}n.unshift([e,t,Math.round(Date.now()/1e3)]),n.length>r&&n.splice(r),c()}},removeUploadId:function(e){l.call(this),delete h.using[e];for(var t=n.length-1;t>=0;t--)n[t][1]===e&&n.splice(t,1);c()}};e.exports=h},
2"./src/task.js":function(e,t,r){var n=r("./src/session.js"),i=r("./src/util.js"),o={};e.exports.transferToTaskMethod=function(e,t){o[t]=e[t],e[t]=function(e,r){e.SkipTask?o[t].call(this,e,r):this._addTask(t,e,r)}},e.exports.init=function(e){var t=[],r={},s=0,a=0,u=function(e){var t={id:e.id,Bucket:e.Bucket,Region:e.Region,Key:e.Key,FilePath:e.FilePath,state:e.state,loaded:e.loaded,size:e.size,speed:e.speed,percent:e.percent,hashPercent:e.hashPercent,error:e.error};return e.FilePath&&(t.FilePath=e.FilePath),e._custom&&(t._custom=e._custom),t},l=function(){var r,n=function(){r=0,e.emit("task-list-update",{list:i.map(t,u)}),e.emit("list-update",{list:i.map(t,u)})};return function(){r||(r=setTimeout(n))}}(),c=function(){if(!(t.length<=e.options.UploadQueueSize)){for(var n=0;n<a&&n<t.length&&t.length>e.options.UploadQueueSize;){var i="waiting"===t[n].state||"checking"===t[n].state||"uploading"===t[n].state;t[n]&&i?n++:(r[t[n].id]&&delete r[t[n].id],t.splice(n,1),a--)}l()}},h=function(){if(!(s>=e.options.FileParallelLimit)){for(;t[a]&&"waiting"!==t[a].state;)a++;if(!(a>=t.length)){var r=t[a];a++,s++,r.state="checking",r.params.onTaskStart&&r.params.onTaskStart(u(r)),!r.params.UploadData&&(r.params.UploadData={});var n=i.formatParams(r.api,r.params);o[r.api].call(e,n,(function(t,n){e._isRunningTask(r.id)&&("checking"!==r.state&&"uploading"!==r.state||(r.state=t?"error":"success",t&&(r.error=t),s--,l(),h(),r.callback&&r.callback(t,n),"success"===r.state&&(r.params&&(delete r.params.UploadData,delete r.params.Body,delete r.params),delete r.callback)),c())})),l(),setTimeout(h)}}},d=function(t,i){var o=r[t];if(o){var a=o&&"waiting"===o.state,u=o&&("checking"===o.state||"uploading"===o.state);if("canceled"===i&&"canceled"!==o.state||"paused"===i&&a||"paused"===i&&u){o.state=i,e.emit("inner-kill-task",{TaskId:t,toState:i});try{var d=o&&o.params&&o.params.UploadData.UploadId}catch(f){}"canceled"===i&&d&&n.removeUsing(d),l(),u&&(s--,h()),"canceled"===i&&(o.params&&(delete o.params.UploadData,delete o.params.Body,delete o.params),delete o.callback)}c()}};e._addTasks=function(t){i.each(t,(function(t){e._addTask(t.api,t.params,t.callback,!0)})),l()};var f=!0;e._addTask=function(n,o,s,a){o=i.formatParams(n,o);var u=i.uuid();o.TaskId=u,o.onTaskReady&&o.onTaskReady(u),o.TaskReady&&(o.TaskReady(u),f&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),f=!1);var d={params:o,callback:s,api:n,index:t.length,id:u,Bucket:o.Bucket,Region:o.Region,Key:o.Key,FilePath:o.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:o._custom},p=o.onHashProgress;o.onHashProgress=function(t){e._isRunningTask(d.id)&&(d.hashPercent=t.percent,p&&p(t),l())};var m=o.onProgress;return o.onProgress=function(t){e._isRunningTask(d.id)&&("checking"===d.state&&(d.state="uploading"),d.loaded=t.loaded,d.speed=t.speed,d.percent=t.percent,m&&m(t),l())},i.getFileSize(n,o,(function(e,n){if(e)return s(i.error(e));r[u]=d,t.push(d),d.size=n,!a&&l(),h(),c()})),u},e._isRunningTask=function(e){var t=r[e];return!(!t||"checking"!==t.state&&"uploading"!==t.state)},e.getTaskList=function(){return i.map(t,u)},e.cancelTask=function(e){d(e,"canceled")},e.pauseTask=function(e){d(e,"paused")},e.restartTask=function(e){var t=r[e];!t||"paused"!==t.state&&"error"!==t.state||(t.state="waiting",l(),a=Math.min(a,t.index),h())},e.isUploadRunning=function(){return s||a<t.length}}},
2"./src/tracker.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=r("./node_modules/@babel/runtime/helpers/createClass.js"),o=r("./node_modules/@babel/runtime/helpers/typeof.js"),s=r("./package.json"),a=null,u=function(e){return!e||e<0?0:(e/1e3).toFixed(3)},l=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},c=function(){if("object"===("undefined"===typeof navigator?"undefined":o(navigator))){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(null===e||void 0===e?void 0:e.type)||(null===e||void 0===e?void 0:e.effectiveType)||"unknown"}return"unknown"},h=function(){return"object"===("undefined"===typeof location?"undefined":o(location))?location.protocol.replace(/:/,""):"unknown protocol"},d=function(){if("object"!==("undefined"===typeof navigator?"undefined":o(navigator)))return"unknown os";var e=navigator.userAgent.toLowerCase(),t=/macintosh|mac os x/i.test(navigator.userAgent);return e.indexOf("win32")>=0||e.indexOf("wow32")>=0?"win32":e.indexOf("win64")>=0||e.indexOf("wow64")>=0?"win64":t?"mac":"unknown os"},f=function(){return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(/(Android|Adr|Linux)/i))},p=function(){return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(/(iPhone|iPod|iPad|iOS)/i))},m=function(){return"object"!==("undefined"===typeof navigator?"undefined":o(navigator))?"unknown device":navigator.userAgent},g=!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),y=f()?"android":p?"ios":"other_mobile",b=d(),v=g?y:b,w=m(),M=h();function x(e){return e.replace(/([A-Z])/g,"_$1").toLowerCase()}var S=function(){"use strict";function e(t){n(this,e);var r=t.parent,i=t.traceId,o=t.bucket,u=t.region,c=t.apiName,h=t.realApi,d=t.httpMethod,f=t.fileKey,p=t.fileSize,m=t.accelerate,g=t.customId,y=t.delay,b=t.deepTracker,x=t.Beacon,S=t.clsReporter,_=o&&o.substr(o.lastIndexOf("-")+1)||"";this.parent=r,this.deepTracker=b,this.delay=y,S&&!this.clsReporter&&(this.clsReporter=S),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:s.version,osName:v,networkType:"",requestName:c||"",requestResult:"",realApi:h,bucket:o,region:u,accelerate:m,httpMethod:d,url:"",host:"",httpDomain:"",requestPath:f||"",userAgent:w,networkProtocol:M,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:p||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:(new Date).getTime(),endTime:0,traceId:i||l(),appid:_,partNumber:0,httpRetryTimes:0,customId:g||"",partTime:0},x&&(this.beacon=function(e,t){if(!a){if("function"!==typeof e)throw new Error("Beacon not found");a=new e({appkey:"0WEB05PY6MHRGK0U",versionCode:s.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:t,sessionDuration:6e4})}return a}(x,y))}return i(e,[{key:"formatResult",value:function(e,t){var r,n,i,o,s,a,l=(new Date).getTime(),h=c(),d=e?(null===e||void 0===e?void 0:e.code)||(null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.code)||(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.Code):"",f=e?(null===e||void 0===e?void 0:e.message)||(null===e||void 0===e||null===(i=e.error)||void 0===i?void 0:i.message)||(null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.Message):"",p=f,m=e?(null===e||void 0===e?void 0:e.resource)||(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.resource)||(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.Resource):"",g=e?null===e||void 0===e?void 0:e.statusCode:t.statusCode,y=e?(null===e||void 0===e?void 0:e.headers)&&(null===e||void 0===e?void 0:e.headers["x-cos-request-id"]):(null===t||void 0===t?void 0:t.headers)&&(null===t||void 0===t?void 0:t.headers["x-cos-request-id"]),b=e?y?"Server"
vendor: 6,218 bytes, line 2
2:"Client":"";"getObject"===this.params.requestName&&(this.params.httpSize=t?t.headers&&t.headers["content-length"]:0);var v="sliceUploadFile"===this.params.realApi,w="sliceCopyFile"===this.params.realApi;if(v||w){var M=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:M<0?0:M.toFixed(3)})}else{var x=l-this.params.startTime,S=this.params.httpEndTime-this.params.httpStartTime,_=this.params.httpSize/1024/(S/1e3),k=this.params.md5EndTime-this.params.md5StartTime,A=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",u(S)),this.parent.addParamValue("httpFullTime",u(x)),this.parent.addParamValue("httpMd5",u(k)),this.parent.addParamValue("httpSign",u(A)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",u(S))),Object.assign(this.params,{httpFullTime:u(x),httpMd5:u(k),httpSign:u(A),httpTookTime:u(S),httpSpeed:_<0?0:_.toFixed(3)})}if(Object.assign(this.params,{networkType:h,requestResult:e?"Failure":"Success",errorType:b,errorCode:d,errorHttpCode:g,errorName:p,errorMessage:f,errorServiceName:m,errorRequestId:y}),!e||d&&f||(this.params.fullError=e?JSON.stringify(e):""),this.params.url){try{var j=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=j[2]}catch(E){this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(e,t){if(this.beacon||this.clsReporter){this.formatResult(e,t);var r=function(e){var t,r={},n=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],i=[].concat(n,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),o="Success"===e.requestResult?n:i;for(var s in e)o.includes(s)&&(r[x(s)]=e[s]);return r.request_name=e.realApi?(t=e.realApi,["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(t)?"UploadTask":"getObject"===t?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(t)?"CopyTask":t):e.requestName,r}(this.params);this.beacon&&this.sendEventsToBeacon(r),this.clsReporter&&this.sendEventsToCLS(r)}}},{key:"setParams",value:function(e){Object.assign(this.params,e)}},{key:"addParamValue",value:function(e,t){this.params[e]=(+this.params[e]+ +t).toFixed(3)}},{key:"sendEventsToBeacon",value:function(e){("sliceUploadFile"!==this.params.requestName&&"sliceUploadFile"!==this.params.realApi||this.deepTracker)&&(0===this.delay?this.beacon&&this.beacon.onDirectUserAction("qcloud_track_cos_sdk",e):this.beacon&&this.beacon.onUserAction("qcloud_track_cos_sdk",e))}},{key:"sendEventsToCLS",value:function(e){var t=!(0!==this.delay);this.clsReporter.log(e,t)}},{key:"generateSubTracker",value:function(t){return Object.assign(t,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new e(t)}}])}();e.exports=S},"./src/util.js":function(e,t,r){"use strict";(function(t){var n=r("./node_modules/@babel/runtime/helpers/typeof.js");function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=r("./lib/md5.js"),a=r("./lib/crypto.js"),u=r("./node_modules/fast-xml-parser/src/fxp.js"),l=u.XMLParser,c=u.XMLBuilder,h=new l({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1,trimValues:!1}),d=new c,f=r("./lib/base64.js"),p=r("./src/tracker.js"),m=function(e){if(E(e))for(var t in e){var r=e[t];"string"===typeof r?"#text"===t&&delete e[t]:Array.isArray(r)?r.forEach((function(e){m(e)})):E(r)&&m(r)}};function g(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function y(e,t){var r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(t?g(n).toLowerCase():n);return r.sort((function(e,t){return(e=e.toLowerCase())===(t=t.toLowerCase())?0:e>t?1:-1}))}var b=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],v=function(e,t,r){var n=t/8,i=e.slice(r,r+n);return new Uint8Array(i).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[t](i)[0]},w=function(e,t,r,n){var i=e.slice(t,r),o="";return new Uint8Array(i).forEach((function(e){o+=String.fromCharCode(e)})),n&&(o=decodeURIComponent(escape(o))),o},M=function(){},x=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&void 0!==e[r]&&null!==e[r]&&(t[r]=e[r]);return t},S=function(e,t){var r,n=new FileReader;FileReader.prototype.readAsBinaryString?(r=FileReader.prototype.readAsBinaryString,n.onload=function(){t(this.result)}):FileReader.prototype.readAsArrayBuffer?r=function(e){var r="",n=new FileReader;n.onload=function(e){for(var i=new Uint8Array(n.result),o=i.byteLength,s=0;s<o;
2s++)r+=String.fromCharCode(i[s]);t(r)},n.readAsArrayBuffer(e)}:console.error("FileReader not support readAsBinaryString"),r.call(n,e)},_=function(){var e=function(e,t){e=e.split("."),t=t.split(".");for(var r=0;r<t.length;r++)if(e[r]!==t[r])return parseInt(e[r])>parseInt(t[r])?1:-1;return 0};return function(t){if(!t)return!1;var r=(t.match(/Chrome\/([.\d]+)/)||[])[1],n=(t.match(/QBCore\/([.\d]+)/)||[])[1],i=(t.match(/QQBrowser\/([.\d]+)/)||[])[1];return r&&e(r,"53.0.2785.116")<0&&n&&e(n,"3.53.991.400")<0&&i&&e(i,"9.0.2524.400")<=0||!1}("undefined"!==typeof navigator&&navigator.userAgent)}();function k(e){return C(e,(function(e){return"object"===n(e)&&null!==e?k(e):e}))}function A(e,t){return T(t,(function(r,n){e[n]=t[n]})),e}function j(e){return e instanceof Array}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function C(e,t){var r=j(e)?[]:{};for(var n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n],n));return r}var O=function(e,t){var r=t.Bucket,n=t.Region,i=t.Key,o=this.options.Domain,s=!o||"string"===typeof o&&o.indexOf("{Bucket}")>-1,a=!o||"string"===typeof o&&o.indexOf("{Region}")>-1;if(e.indexOf("Bucket")>-1||"deleteMultipleObject"===e||"multipartList"===e||"listObjectVersions"===e){if(s&&!r)return"Bucket";if(a&&!n)return"Region"}else if(e.indexOf("Object")>-1||e.indexOf("multipart")>-1||"sliceUploadFile"===e||"abortUploadTask"===e||"uploadFile"===e){if(s&&!r)return"Bucket";if(a&&!n)return"Region";if(!i)return"Key"}return!1},R=function(e,t){if(t=A({},t),"getAuth"!==e&&"getV4Auth"!==e&&"getObjectUrl"!==e){var r=t.Headers||{};t&&"object"===n(t)&&(!function(){for(var e in t)t.hasOwnProperty(e)&&e.indexOf("x-cos-")>-1&&(r[e]=t[e])}(),N.each({"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"},(function(e,n){void 0!==t[e]&&(r[n]=t[e])})),t.Headers=x(r))}return t},I=function(e){return Date.now()+(e||0)},B="object"===("undefined"===typeof navigator?"undefined":n(navigator))&&!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),P="object"===("undefined"===typeof navigator?"undefined":n(navigator))&&/\sQQ/i.test(navigator.userAgent),N={noop:M,formatParams:R,apiWrapper:function(e,t){return function(r,n){var i,o=this;if("function"===typeof r&&(n=r,r={}),r=R(e,r),o.options.EnableReporter)if("sliceUploadFile"===r.calledBySdk||"sliceCopyFile"===r.calledBySdk)i=r.tracker&&r.tracker.generateSubTracker({apiName:e});else if(["uploadFile","uploadFiles"].includes(e))i=null;else{var s=0;r.Body&&(s="string"===typeof r.Body?r.Body.length:r.Body.size||r.Body.byteLength||0);var a=o.options.UseAccelerate||"string"===typeof o.options.Domain&&o.options.Domain.includes("accelerate.");i=new p({Beacon:o.options.BeaconReporter,clsReporter:o.options.ClsReporter,bucket:r.Bucket,region:r.Region,apiName:e,realApi:e,accelerate:a,fileKey:r.Key,fileSize:s,deepTracker:o.options.DeepTracker,customId:o.options.CustomId,delay:o.options.TrackerDelay})}r.tracker=i;var u=function(e){return e&&e.headers&&(e.headers["x-ci-request-id"]&&(e.RequestId=e.headers["x-ci-request-id"]),e.headers["x-cos-request-id"]&&(e.RequestId=e.headers["x-cos-request-id"]),e.headers["x-cos-version-id"]&&(e.VersionId=e.headers["x-cos-version-id"]),e.headers["x-cos-delete-marker"]&&(e.DeleteMarker=e.headers["x-cos-delete-marker"])),e},l=function(e,t){i&&i.report(e,t),n&&n(u(e),u(t))},c=function(){if("getService"!==e&&"abortUploadTask"!==e){var t=O.call(o,e,r);if(t)return"missing param "+t;if(r.Region){if(o.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(r.Region))return"Region format error."}else{if(r.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(r.Region))return"Region format error."}o.options.CompatibilityMode||-1!==r.Region.indexOf("-")||"yfb"===r.Region||"default"===r.Region||"accelerate"===r.Region||console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(r.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(r.Bucket))if(r.AppId)r.Bucket=r.Bucket+"-"+r.AppId;else{if(!o.options.AppId)return'Bucket should format as "test-1250000000".';r.Bucket=r.Bucket+"-"+o.options.AppId}r.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete r.AppId)}!o.options.UseRawKey&&r.Key&&"/"===r.Key.substr(0,1)&&(r.Key=r.Key.substr(1))}}(),h=["getAuth","getObjectUrl"].includes(e);
vendor: 6,176 bytes, line 2
2if("function"===typeof Promise&&!h&&!n)return new Promise((function(e,i){if(n=function(t,r){t?i(t):e(r)},c)return l(N.error(new Error(c)));t.call(o,r,l)}));if(c)return l(N.error(new Error(c)));var d=t.call(o,r,l);return h?d:void 0}},xml2json:function(e){var t=h.parse(e);return m(t),t},json2xml:function(e){return d.build(e)},md5:s,clearKey:x,fileSlice:function(e,t,r,n,i){var o;if(e.slice?o=e.slice(t,r):e.mozSlice?o=e.mozSlice(t,r):e.webkitSlice&&(o=e.webkitSlice(t,r)),n&&_){var s=new FileReader;s.onload=function(e){o=null,i(new Blob([s.result]))},s.readAsArrayBuffer(o)}else i(o)},getBodyMd5:function(e,t,r,n){r=r||M,e?"string"===typeof t?r(N.md5(t,!0)):Blob&&t instanceof Blob?N.getFileMd5(t,(function(e,t){r(t)}),n):r():r()},getFileMd5:function(e,t,r){var n=e.size,i=0,o=s.getCtx(),a=function(s){if(s>=n){var u=o.digest("hex");t(null,u)}else{var l=Math.min(n,s+1048576);N.fileSlice(e,s,l,!1,(function(e){S(e,(function(t){e=null,o=o.update(t,!0),i+=t.length,t=null,r&&r({loaded:i,total:n,percent:Math.round(i/n*1e4)/1e4}),a(s+1048576)}))}))}};a(0)},b64:function(e){var t,r,n,i="";for(t=0,r=e.length/2;t<r;t++)n=parseInt(e[2*t]+e[2*t+1],16),i+=String.fromCharCode(n);return btoa(i)},extend:A,isArray:j,isInArray:function(e,t){for(var r=!1,n=0;n<e.length;n++)if(t===e[n]){r=!0;break}return r},makeArray:function(e){return j(e)?e:[e]},each:T,map:C,filter:function(e,t){var r=j(e),n=r?[]:{};for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)&&(r?n.push(e[i]):n[i]=e[i]);return n},clone:k,attr:function(e,t,r){return e&&t in e?e[t]:r},uuid:function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},camSafeUrlEncode:g,throttleOnProgress:function(e,t){var r,n,i=this,o=0,s=0,a=Date.now();function u(){if(n=0,t&&"function"===typeof t){r=Date.now();var i,u=Math.max(0,Math.round((s-o)/((r-a)/1e3)*100)/100)||0;i=0===s&&0===e?1:Math.floor(s/e*100)/100||0,a=r,o=s;try{t({loaded:s,total:e,speed:u,percent:i})}catch(l){}}}return function(t,r){if(t&&(s=t.loaded,e=t.total),r)clearTimeout(n),u();else{if(n)return;n=setTimeout(u,i.options.ProgressInterval)}}},getFileSize:function(e,t,r){var n;"string"===typeof t.Body?t.Body=new Blob([t.Body],{type:"text/plain"}):t.Body instanceof ArrayBuffer&&(t.Body=new Blob([t.Body])),t.Body&&(t.Body instanceof Blob||"[object File]"===t.Body.toString()||"[object Blob]"===t.Body.toString())?(n=t.Body.size,t.ContentLength=n,r(null,n)):r(N.error(new Error("params body format error, Only allow File|Blob|String.")))},getSkewTime:I,error:function(e,t){var r=e;return e.message=e.message||null,"string"===typeof t?(e.error=t,e.message=t):"object"===n(t)&&null!==t&&(A(e,t),(t.code||t.name)&&(e.code=t.code||t.name),t.message&&(e.message=t.message),t.stack&&(e.stack=t.stack)),"function"===typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=t&&t.name||e.name||e.code||"Error",e.code||(e.code=e.name),e.error||(e.error=k(r)),e},obj2str:function(e,t){var r,n,i,o=[],s=y(e);for(r=0;r<s.length;r++)i=void 0===e[n=s[r]]||null===e[n]?"":""+e[n],n=t?g(n).toLowerCase():g(n),i=g(i)||"",o.push(n+"="+i);return o.join("&")},getAuth:function(e){var t,r=(e=e||{}).SecretId,n=e.SecretKey,i=e.KeyTime,o=(e.method||e.Method||"get").toLowerCase(),s=k(e.Query||e.params||{}),u=function(e){var t={};for(var r in e){var n=r.toLowerCase();(n.indexOf("x-cos-")>-1||n.indexOf("x-ci-")>-1||b.indexOf(n)>-1)&&(t[r]=e[r])}return t}(k(e.Headers||e.headers||{})),l=e.Key||"";e.UseRawKey?t=e.Pathname||e.pathname||"/"+l:0!==(t=e.Pathname||e.pathname||l).indexOf("/")&&(t="/"+t);var c=!1!==e.ForceSignHost;if(!u.Host&&!u.host&&e.Bucket&&e.Region&&c&&(u.Host=e.Bucket+".cos."+e.Region+".myqcloud.com"),!r)throw new Error("missing param SecretId");if(!n)throw new Error("missing param SecretKey");var h=Math.round(I(e.SystemClockOffset)/1e3)-1,d=h,f=e.Expires||e.expires;d+=void 0===f?900:1*f||0;var p=r,m=i||h+";"+d,g=i||h+";"+d,v=y(u,!0).join(";").toLowerCase(),w=y(s,!0).join(";").toLowerCase(),M=a.HmacSHA1(g,n).toString(),x=[o,t,N.obj2str(s,!0),N.obj2str(u,!0),""].join("\n"),S=["sha1",m,a.SHA1(x).toString(),""].join("\n");return["q-sign-algorithm=sha1","q-ak="+p,"q-sign-time="+m,"q-key-time="+g,"q-header-list="+v,"q-url-param-list="+w,"q-signature="+a.HmacSHA1(S,M).toString()].join("&")},parseSelectPayload:function(e){for(var t={},r=w(e),n={records:[]};e.byteLength;){var i,o=v(e,32,0),s=v(e,32,4),a=o-s-16,u=0;for(e=e.slice(12);u<s;){var l=v(e,8,u),c=w(e,u+1,u+1+l),h=v(e,16,u+l+2),d=w(e,u+l+4,u+l+4+h);t[c]=d,u+=l+4+h}if("Records"===t[":event-type"])i=w(e,u,u+a,!0),n.records.push(i);else if("Stats"===t[":event-type"])i=w(e,u,u+a,!0),n.stats=N.xml2json(i).Stats;else if("error"===t[":event-type"]){var f=t[":error-code"],p=t[":error-message"],m=new Error(p);m.message=p,m.name=m.code=f,n.error=m}else["Progress","Continuation","End"].includes(t[":event-type"]);e=e.slice(u+a+4)}return{payload:n.records.join(""),body:r}},getSourceParams:function(e){var t=this.options.CopySourceParser;if(t)return t(e);var r=e.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return r?{Bucket:r[1],Region:r[3],Key:r[7]}:null},isBrowser:!0,isNode:function(){return"object"!==("undefined"===typeof window?"undefined":n(window))&&"object"===("undefined"===typeof t?"undefined":n(t))&&!("object"===("undefined"===typeof globalThis?"undefined":n(globalThis))&&("DedicatedWorkerGlobalScope"===globalThis.constructor.name||globalThis.FileReaderSync))},isCIHost:function(e){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(e)},isIOS_QQ:B&&P,encodeBase64:function(e,t){var r=f.encode(e);return t&&(r=r.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),r},decodeBase64:function(e){return e?f.decode(e):""},simplifyPath:function(e){var t,r=[],n=i(e.split("/"));try{for(n.s();!(t=n.n()).done;){var o=t.value;".."===o?r.length&&r.pop():o.length&&"."!==o&&r.push(o)}}catch(s){n.e(s)}finally{n.f()}return"/"+r.join("/")},readAsBinaryString:S,parseResBody:function(e){var t;if(e&&"string"===typeof e){var r=e.trim(),n=0===r.indexOf("<"),i=0===r.indexOf("{");
2if(n)t=N.xml2json(e)||{};else if(i)try{var o=e.replace(/\n/g," "),s=JSON.parse(o);t="[object Object]"===Object.prototype.toString.call(s)?s:e}catch(a){t=e}else t=e}else t=e||{};return t}};e.exports=N}).call(this,r("./node_modules/process/browser.js"))}
2})},e.exports=n()},1607:function(e,t,r){"use strict";var n=r(1608).Buffer,i=r(1304).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1020)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var s="undefined"!==typeof Uint8Array,a="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);o.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=function(e,t){if(e instanceof n)return e;if("string"===typeof e)return n.from(e,t);if(a&&ArrayBuffer.isView(e)){if(0===e.byteLength)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(s&&e instanceof Uint8Array)return n.from(e);if(n.isBuffer(e)&&e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(e,t);for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var u=0,l=8*e.length;l>0;++u)this._length[u]+=l,(l=this._length[u]/4294967296|0)>0&&(this._length[u]-=4294967296*l);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},1608:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1609:function(e,t){},1610:function(e,t){},1611:function(e,t,r){e.exports=r(1266)},1612:function(e,t,r){e.exports=r(1087)},1613:function(e,t,r){e.exports=r(1070).Transform},1614:function(e,t,r){e.exports=r(1070).PassThrough},1615:function(e,t,r){"use strict";var n=r(1305).Buffer,i=r(1616),o=r(1070).Transform;function s(e){o.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1020)(s,o),s.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},s.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=i(e,t),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s]=r[o],s+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var a=0,u=8*r.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=s},1616:function(e,t,r){"use strict";var n=r(1305).Buffer,i=r(1151),o="undefined"!==typeof Uint8Array,s=o&&"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView;e.exports=function(e,t){if("string"===typeof e||n.isBuffer(e)||o&&e instanceof Uint8Array||s&&s(e))return i(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},1617:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1618:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},1619:function(e,t,r){"use strict";var n=r(1029),i=r(1047)("TypedArray.prototype.buffer",!0),o=r(1620);e.exports=i||function(e){if(!o(e))throw new n("Not a Typed Array");return e.buffer}},1620:function(e,t,r){"use strict";var n=r(1621);e.exports=function(e){return!!n(e)}},1621:function(e,t,r){"use strict";
2(function(t){var n=r(1622),i=r(1623),o=r(1127),s=r(1047),a=r(1164),u=r(1539),l=s("Object.prototype.toString"),c=r(1247)(),h="undefined"===typeof globalThis?t:globalThis,d=i(),f=s("String.prototype.slice"),p=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(d,c&&a&&u?function(e){var t=new h[e];if(Symbol.toStringTag in t&&u){var r=u(t),n=a(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=a(i,Symbol.toStringTag)}if(n&&n.get){var s=o(n.get);m["$"+e]=s}}}:function(e){var t=new h[e],r=t.slice||t.set;if(r){var n=o(r);m["$"+e]=n}});e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!c){var t=f(l(e),8,-1);return p(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(i){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(i){}})),t}(e):null}}).call(this,r(251))},1622:function(e,t,r){"use strict";var n=r(1246),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},u=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function l(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),l(e)?s(e,t,i):"string"===typeof e?a(e,t,i):u(e,t,i)}},1623:function(e,t,r){"use strict";(function(t){var n=r(1624),i="undefined"===typeof globalThis?t:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"===typeof i[n[t]]&&(e[e.length]=n[t]);return e}}).call(this,r(251))},1624:function(e,t,r){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1625:function(e,t,r){"use strict";var n=r(1020),i=r(1073),o=r(1059).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((t=n)<<5|t>>>27)+c(f,i,o,a)+u+r[d]+s[f];u=a,a=o,o=l(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},1626:function(e,t,r){"use strict";var n=r(1020),i=r(1073),o=r(1059).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(n)+h(p,i,o,a)+u+r[f]+s[p]|0;u=a,a=o,o=c(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},1627:function(e,t,r){"use strict";var n=r(1020),i=r(1306),o=r(1073),s=r(1059).Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},1628:function(e,t,r){"use strict";var n=r(1020),i=r(1307),o=r(1073),s=r(1059).Buffer,a=new Array(160);function u(){this.init(),this._w=a,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},1629:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1630:function(e,t,r){"use strict";var n=r(1020),i=r(1027).Buffer,o=r(1052),s=i.alloc(128);function a(e,t){o.call(this,"digest"),"string"===typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),a=0;a<64;a++)r[a]=54^t[a],n[a]=92^t[a];this._hash=[r]}n(a,o),a.prototype._update=function(e){this._hash.push(e)},a.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=a},1631:function(e,t,r){"use strict";e.exports=r(1310)},1632:function(e,t,r){"use strict";(function(t){var n,i,o=r(1195).Buffer,s=r(1312),a=r(1313),u=r(1314),l=r(1315),c=t.crypto&&t.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];
2function f(){return i||(i=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function p(e,t,r,n,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,r,i,m,g,y){if("function"===typeof g&&(y=g,g=void 0),s(i,m),e=l(e,a,"Password"),r=l(r,a,"Salt"),"function"!==typeof y)throw new Error("No callback provided to pbkdf2");var b=h[(g=g||"sha1").toLowerCase()];b&&"function"===typeof t.Promise?function(e,t){e.then((function(e){f()((function(){t(null,e)}))}),(function(e){f()((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var r=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0}),(function(){return!1}));return d[e]=r,r}(b).then((function(t){return t?p(e,r,i,m,b):u(e,r,i,m,g)})),y):f()((function(){var t;try{t=u(e,r,i,m,g)}catch(n){return void y(n)}y(null,t)}))}}).call(this,r(251))},1633:function(e,t,r){var n=r(1634),i=r(1197),o=r(1198),s=r(1647),a=r(1153);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function l(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},1634:function(e,t,r){var n=r(1052),i=r(1635),o=r(1020),s=r(1027).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=a[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=s.concat([o,o.slice(0,8)]));var u=e.iv;s.isBuffer(u)||(u=s.from(u)),this._des=i.create({key:o,iv:u,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return s.from(this._des.update(e))},u.prototype._final=function(){return s.from(this._des.final())}},1635:function(e,t,r){"use strict";t.utils=r(1316),t.Cipher=r(1196),t.DES=r(1317),t.CBC=r(1636),t.EDE=r(1637)},1636:function(e,t,r){"use strict";var n=r(1041),i=r(1020),o={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var s=r[n];t.prototype[s]=o[s]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];o._update.call(this,s,0,r,n);for(a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{o._update.call(this,e,t,r,n);for(a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},1637:function(e,t,r){"use strict";var n=r(1041),i=r(1020),o=r(1196),s=r(1317);function a(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}
vendor: 5,108 bytes, line 2
2),s.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},1638:function(e,t,r){var n=r(1198),i=r(1321),o=r(1027).Buffer,s=r(1322),a=r(1052),u=r(1152),l=r(1153);function c(e,t,r){a.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(1020)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var h=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function f(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,t,r):"auth"===a.type?new i(a.module,t,r):new c(a.module,t,r)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=l(t,!1,r.key,r.iv);return f(e,i.key,i.iv)}},1639:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},1640:function(e,t,r){var n=r(1117);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},1641:function(e,t,r){var n=r(1027).Buffer,i=r(1117);function o(e,t,r){var o=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:s]),s}t.encrypt=function(e,t,r){for(var i,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,o(e,t,r)]);break}i=e._cache.length,s=n.concat([s,o(e,t.slice(0,i),r)]),t=t.slice(i)}return s}},1642:function(e,t,r){var n=r(1027).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},1643:function(e,t,r){var n=r(1027).Buffer;function i(e,t,r){for(var n,i,s=-1,a=0;++s<8;)n=t&1<<7-s?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>s%8,e._prev=o(e._prev,r?n:i);return a}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},1644:function(e,t,r){(function(e){var n=r(1117);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r(367).Buffer)},1645:function(e,t,r){var n=r(1027).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],s=-1;++s<128;){for(0!==(this.state[~~(s/8)]&1<<7-s%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!==(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=s},1646:function(e,t,r){var n=r(1321),i=r(1027).Buffer,o=r(1198),s=r(1322),a=r(1052),u=r(1152),l=r(1153);
vendor: 11,451 bytes, line 2
2function c(e,t,r){a.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var a=o[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new s(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new c(a.module,t,r)}r(1020)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=i.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=l(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},1647:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},1648:function(e,t,r){(function(e){var n=r(1323),i=r(1653),o=r(1654);var s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,a,u){return e.isBuffer(i)||void 0===s[i]?t(r,"binary",i,a):(i=i||"binary",u=u||"binary",a=a||new e([2]),e.isBuffer(a)||(a=new e(a,u)),"number"===typeof r?new o(n(r,a),a,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,a,!0)))}}).call(this,r(367).Buffer)},1649:function(e,t){},1650:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1651).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
vendor: 5,877 bytes, line 2
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1651:function(e,t){},1652:function(e,t){},1653:function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1654:function(e,t,r){(function(t){var n=r(1324),i=new(r(1325)),o=new n(24),s=new n(11),a=new n(10),u=new n(3),l=new n(7),c=r(1323),h=r(1072);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function f(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var h,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(s)&&(d+=8);break;case"05":(h=e.mod(a)).cmp(u)&&h.cmp(l)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var s=new t(o.length-i.length);s.fill(0),i=t.concat([s,i])}return i},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(367).Buffer)},1655:function(e,t,r){"use strict";var n=r(1200).Buffer,i=r(1116),o=r(1070),s=r(1020),a=r(1656),u=r(1693),l=r(1310);function c(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");
2this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function f(e){return new h(e)}Object.keys(l).forEach((function(e){l[e].id=n.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),s(c,o.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},c.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},s(h,o.Writable),h.prototype._write=function(e,t,r){this._hash.update(e),r()},h.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},h.prototype.verify=function(e,t,r){var i="string"===typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return u(i,o,e,this._signType,this._tag)},e.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},1656:function(e,t,r){"use strict";var n=r(1200).Buffer,i=r(1308),o=r(1201),s=r(1203).ec,a=r(1202),u=r(1155),l=r(1336);function c(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var s=n.alloc(t.byteLength()-e.length);e=n.concat([s,e])}var a=r.length,u=function(e,t){e=(e=h(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),l=n.alloc(a);l.fill(1);var c=n.alloc(a);return c=i(o,c).update(l).update(n.from([0])).update(e).update(u).digest(),l=i(o,c).update(l).digest(),{k:c=i(o,c).update(l).update(n.from([1])).update(e).update(u).digest(),v:l=i(o,c).update(l).digest()}}function h(e,t){var r=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,t,r){var o,s;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);s=h(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==s.cmp(e));return s}function f(e,t,r,n){return e.toRed(a.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,p){var m=u(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=l[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new s(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,o=t.params.priv_key,s=t.params.p,u=t.params.q,l=t.params.g,p=new a(0),m=h(e,u).mod(u),g=!1,y=c(o,u,e,r);for(;!1===g;)i=d(u,y,r),p=f(l,i,s,u),0===(g=i.invm(u).imul(m.add(o.mul(p))).mod(u)).cmpn(0)&&(g=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,g)}(e,m,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==t.padding&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=n.concat([p,e]);for(var g=m.modulus.byteLength(),y=[0,1];e.length+y.length+1<g;)y.push(255);y.push(0);for(var b=-1;++b<e.length;)y.push(e[b]);return o(y,m)},e.exports.getKey=c,e.exports.makeKey=d},1657:function(e,t){},1658:function(e,t,r){var n=r(367),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1659:function(e){e.exports=JSON.parse('{"_from":"elliptic@^6.6.1","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-R
2addvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.6.1","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.6.1","saveSpec":null,"fetchSpec":"^6.6.1"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz","_shasum":"3b8ffb02670bf69e382c7f65bf524c97c5405c06","_spec":"elliptic@^6.6.1","_where":"/old-data/workspace/\ud83d\udcb9\ud83d\udcb9 Production-WL-Tags \ud83d\udcb9\ud83d\udcb9/node_modules/browserify-sign","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":false,"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},"deprecated":false,"description":"EC cryptography","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.6.1"}')},1660:function(e,t){},1661:function(e,t,r){"use strict";var n=r(1042),i=r(1050),o=r(1020),s=r(1154),a=n.assert;function u(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,s,a,u,l,c,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),y=new i(1),b=0;0!==d.cmpn(0);){var v=f.div(d);l=f.sub(v.mul(d)),c=g.sub(v.mul(p));var w=y.sub(v.mul(m));
vendor: 4,445 bytes, line 2
2if(!n&&l.cmp(h)<0)t=u.neg(),r=p,n=l.neg(),o=c;else if(n&&2===++b)break;u=l,f=d,d=l,g=p,p=c,y=m,m=w}s=l.neg(),a=c;var M=n.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(M)>=0&&(s=t,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(l).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var l=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return l},o(l,s.BasePoint),u.prototype.point=function(e,t,r){return new l(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
vendor: 4,413 bytes, line 2
2if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),h=n.redMul(l),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),c=r.redMul(u),h=a.redSqr().redIAdd(l).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),l=s.redAdd(s);for(t=0;t<e;t++){var c=o.redSqr(),h=l.redSqr(),d=h.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),p=o.redMul(h),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=f.redMul(g);y=y.redIAdd(y).redISub(d);var b=l.redMul(a);t+1<e&&(u=u.redMul(d)),o=m,a=b,l=y}return this.curve.jpoint(o,l.redMul(i),a)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=u,t=a.redMul(s.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),f=this.x.redAdd(h).redSqr().redISub(c).redISub(d);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);e=u;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=a.redMul(s.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),l=(u=u.redIAdd(u)).redMul(s),c=a.redSqr().redISub(l.redAdd(l)),h=l.redISub(c),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=a.redMul(h).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,f,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 5,240 bytes, line 2
2var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.x.redMul(a).redISub(c);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(l.redMul(u.redISub(l)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,d,f)},c.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},1662:function(e,t,r){"use strict";var n=r(1050),i=r(1020),o=r(1154),s=r(1042);function a(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new u(this,e,t)},a.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1663:function(e,t,r){"use strict";var n=r(1042),i=r(1050),o=r(1020),s=r(1154),a=n.assert;function u(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function l(e,t,r,n,o){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}
vendor: 5,814 bytes, line 2
2o(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(t&&!u||!t&&u)&&(a=a.redNeg()),this.point(e,a)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,s.BasePoint),u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),u=i.redMul(s),l=o.redMul(a),c=i.redMul(a),h=s.redMul(o);return this.curve.point(u,l,h,c)},l.prototype._projDbl=function(){var e,t,r,n,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var l=(n=this.curve._mulA(a)).redAdd(u);this.zOne?(e=s.redSub(a).redSub(u).redMul(l.redSub(this.curve.two)),t=l.redMul(n.redSub(u)),r=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=s.redSub(a).redISub(u).redMul(o),t=l.redMul(n.redSub(u)),r=l.redMul(o))}else n=a.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(a.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(t),l=o.redMul(s),c=a.redMul(u),h=o.redMul(u),d=s.redMul(a);return this.curve.point(l,c,d,h)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),l=i.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(l).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(l)):(t=n.redMul(l).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(l)),this.curve.point(h,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},1664:function(e,t,r){"use strict";t.sha1=r(1665),t.sha224=r(1666),t.sha256=r(1329),t.sha384=r(1667),t.sha512=r(1330)},1665:function(e,t,r){"use strict";var n=r(1049),i=r(1118),o=r(1328),s=n.rotl32,a=n.sum32,u=n.sum32_5,l=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=u(s(i,5),l(p,o,c,d),f,r[n],h[p]);
vendor: 3,916 bytes, line 2
2f=d,d=c,c=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],f)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1666:function(e,t,r){"use strict";var n=r(1049),i=r(1329);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1667:function(e,t,r){"use strict";var n=r(1049),i=r(1330);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},1668:function(e,t,r){"use strict";var n=r(1049),i=r(1118),o=n.rotl32,s=n.sum32,a=n.sum32_3,u=n.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],b=r,v=n,w=i,M=l,x=c,S=0;S<80;S++){var _=s(o(u(r,h(S,n,i,l),e[p[S]+t],d(S)),g[S]),c);r=c,c=l,l=o(i,10),i=n,n=_,_=s(o(u(b,h(79-S,v,w,M),e[m[S]+t],f(S)),y[S]),x),b=x,x=M,M=o(w,10),w=v,v=_}_=a(this.h[1],i,M),this.h[1]=a(this.h[2],l,x),this.h[2]=a(this.h[3],c,b),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],n,w),this.h[0]=_},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},1669:function(e,t,r){"use strict";var n=r(1049),i=r(1041);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},1670:function(e,t
vendor: 26,140 bytes, line 2
2){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
vendor: 8,486 bytes, line 2
21671:function(e,t,r){"use strict";var n=r(1050),i=r(1672),o=r(1042),s=r(1204),a=r(1199),u=o.assert,l=r(1673),c=r(1674);function h(e){if(!(this instanceof h))return new h(e);"string"===typeof e&&(u(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=h,h.prototype.keyPair=function(e){return new l(this,e)},h.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},h.prototype._truncateToN=function(e,t,r){var i;if(n.isBN(e)||"number"===typeof e)i=(e=new n(e,16)).byteLength();else if("object"===typeof e)i=e.length,e=new n(e,16);else{var o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!==typeof r&&(r=8*i);var s=r-this.n.bitLength();return s>0&&(e=e.ushrn(s)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,r,o){if("object"===typeof r&&(o=r,r=null),o||(o={}),"string"!==typeof e&&"number"!==typeof e&&!n.isBN(e)){u("object"===typeof e&&e&&"number"===typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),u(e.length>>>0===e.length);for(var s=0;s<e.length;s++)u((255&e[s])===e[s])}t=this.keyFromPrivate(t,r),e=this._truncateToN(e,!1,o.msgBitLength),u(!e.isNeg(),"Can not sign a negative message");var a=this.n.byteLength(),l=t.getPrivate().toArray("be",a),h=e.toArray("be",a);u(new n(h).eq(e),"Can not sign message");for(var d=new i({hash:this.hash,entropy:l,nonce:h,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),p=0;;p++){var m=o.k?o.k(p):new n(d.generate(this.n.byteLength()));if(!((m=this._truncateToN(m,!0)).cmpn(1)<=0||m.cmp(f)>=0)){var g=this.g.mul(m);if(!g.isInfinity()){var y=g.getX(),b=y.umod(this.n);if(0!==b.cmpn(0)){var v=m.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=(g.getY().isOdd()?1:0)|(0!==y.cmp(b)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new c({r:b,s:v,recoveryParam:w})}}}}}},h.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(t=new c(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,u=s.invm(this.n),l=u.mul(e).umod(this.n),h=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,r.getPublic(),h)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(l,r.getPublic(),h)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var o=this.n,s=new n(e),a=t.r,l=t.s,h=1&r,d=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var f=t.r.invm(o),p=o.sub(s).mul(f).umod(o),m=l.mul(f).umod(o);return this.g.mulAdd(p,a,m)},h.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},1672:function(e,t,r){"use strict";var n=r(1205),i=r(1326),o=r(1041);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,i.encode(s,t)}},1673:function(e,t,r){"use strict";var n=r(1050),i=r(1042).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},1674:function(e,t,r){"use strict";var n=r(1050),i=r(1042),o=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===e[t.place])return!1;for(var i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var s=u(e,r);if(!1===s)return!1;if(0!==(128&e[r.place]))return!1;var l=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=u(e,r);if(!1===c)return!1;if(e.length!==c+r.place)return!1;if(0!==(128&e[r.place]))return!1;var h=e.slice(r.place,c+r.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}
2if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(l),this.s=new n(h),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),s=[48];return c(s,o.length),s=s.concat(o),i.encode(s,e)}},1675:function(e,t,r){"use strict";var n=r(1205),i=r(1204),o=r(1042),s=o.assert,a=o.parseBytes,u=r(1676),l=r(1677);function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){if(e=a(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!==(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return o.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},1676:function(e,t,r){"use strict";var n=r(1042),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},1677:function(e,t,r){"use strict";var n=r(1050),i=r(1042),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(e,t){this.eddsa=e,"object"!==typeof t&&(t=a(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())}
vendor: 7,112 bytes, line 2
2)),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},1678:function(e,t,r){"use strict";var n=r(1119);t.certificate=r(1690);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var l=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=l;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=c,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var h=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),d=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d,t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},1679:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1680).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,350 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
vendor: 4,264 bytes, line 2
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1680:function(e,t){},1681:function(e,t,r){var n=r(1119),i=r(1020);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(1682).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},1682:function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),(function(t){r[t]=e[t]})),forEach(globals,(function(t){e[t]&&(r[t]=e[t])}));var o=Object_keys(r),s=n.call(r,this.code);return forEach(Object_keys(r),(function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,r[t])})),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),r},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;
2return"object"===typeof e&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),t}},1683:function(e,t,r){var n=r(1020);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},1684:function(e,t,r){var n=r(1120).Reporter,i=r(1120).EncoderBuffer,o=r(1120).DecoderBuffer,s=r(1041),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};
vendor: 11,017 bytes, line 2
2c.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},l.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),l.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,s=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(s=this._peekTag(e,u,r.any),e.isError(s))return s}else{var l=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(p){s=!1}e.restore(l)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){var c=this._decodeTag(e,r.explicit);if(e.isError(c))return c;e=c}var h=e.offset;if(null===r.use&&null===r.choice){if(r.any)l=e.save();var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(l):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),h,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var f=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(f,t)}}return r.obj&&s&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var s=e.save(),a=r.choice[o];try{var u=a._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(l){return e.restore(s),!1}return!0}),this),i?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},l.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var s=null,a=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),a=!0;else if(i.children)s=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),u))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(l,a,c,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1685:function(e,t,r){var n=r(1332);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},1686:function(e,t,r){var n=t;n.der=r(1333),n.pem=r(1687)},1687:function(e,t,r){var n=r(1020),i=r(367).Buffer,o=r(1333);function s(e){o.call(this,e),this.enc="pem"}n(s,o),e.exports=s,s.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,u=-1,l=0;l<r.length;l++){var c=r[l].match(s);if(null!==c&&c[2]===n){if(-1!==a){if("END"!==c[1])break;u=l;break}if("BEGIN"!==c[1])break;a=l}}if(-1===a||-1===u)throw new Error("PEM section not found for: "+n);var h=r.slice(a+1,u).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(h,"base64");return o.prototype.decode.call(this,d,t)}},1688:function(e,t,r){var n=t;n.der=r(1334),n.pem=r(1689)},1689:function(e,t,r){var n=r(1020),i=r(1334);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},1690:function(e,t,r){"use strict";var n=r(1119),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),l=n.define("RDNSequence",(function(){this.seqof(u)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),h=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}
vendor: 4,875 bytes, line 2
2)),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));e.exports=p},1691:function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},1692:function(e,t,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=r(1153),a=r(1197),u=r(1335).Buffer;e.exports=function(e,t){var r,l=e.toString(),c=l.match(n);if(c){var h="aes"+c[1],d=u.from(c[2],"hex"),f=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=s(t,d.slice(0,8),parseInt(c[1],10)).key,m=[],g=a.createDecipheriv(h,p,d);m.push(g.update(f)),m.push(g.final()),r=u.concat(m)}else{var y=l.match(o);r=u.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:r}}},1693:function(e,t,r){"use strict";var n=r(1200).Buffer,i=r(1202),o=r(1203).ec,s=r(1155),a=r(1336);function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,l,c){var h=s(r);if("ec"===h.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,h)}if("dsa"===h.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,a=r.data.g,l=r.data.pub_key,c=s.signature.decode(e,"der"),h=c.s,d=c.r;u(h,o),u(d,o);var f=i.mont(n),p=h.invm(o);return 0===a.toRed(f).redPow(new i(t).mul(p).mod(o)).fromRed().mul(l.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}(e,t,h)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=n.concat([c,t]);for(var d=h.modulus.byteLength(),f=[1],p=0;t.length+f.length+2<d;)f.push(255),p+=1;f.push(0);for(var m=-1;++m<t.length;)f.push(t[m]);f=n.from(f);var g=i.mont(h.modulus);e=(e=new i(e).toRed(g)).redPow(new i(h.publicExponent)),e=n.from(e.fromRed().toArray());var y=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(y=1),m=-1;++m<d;)y|=e[m]^f[m];return 0===y}},1694:function(e,t,r){(function(t){var n=r(1203),i=r(1695);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},s.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(367).Buffer)},1695:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;
vendor: 8,460 bytes, line 2
2"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(1696).Buffer}catch(k){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l<n;l++){for(var c=u>>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[o-a-1]=s}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 6,225 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,l=0,c=0|s[0],h=8191&c,d=c>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,M=v>>>13,x=0|s[4],S=8191&x,_=x>>>13,k=0|s[5],A=8191&k,j=k>>>13,E=0|s[6],T=8191&E,C=E>>>13,O=0|s[7],R=8191&O,I=O>>>13,B=0|s[8],P=8191&B,N=B>>>13,D=0|s[9],U=8191&D,L=D>>>13,F=0|a[0],q=8191&F,z=F>>>13,V=0|a[1],H=8191&V,K=V>>>13,G=0|a[2],W=8191&G,X=G>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,Q=0|a[4],$=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(b,q)|0,o=Math.imul(b,z),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var be=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(y,H)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,X)|0;var ve=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,z))+Math.imul(j,q)|0,o=Math.imul(j,z),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var Me=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,
vendor: 5,469 bytes, line 2
2X)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Se=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var _e=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,z))+Math.imul(L,q)|0,o=Math.imul(L,z),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,H),i=(i=Math.imul(U,K))+Math.imul(L,H)|0,o=Math.imul(L,K),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,he)|0,o=o+Math.imul(b,de)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,X))+Math.imul(L,W)|0,o=Math.imul(L,X),n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var je=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,J))+Math.imul(L,Y)|0,o=Math.imul(L,J),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,le)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ee=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(j,he)|0,o=o+Math.imul(j,de)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;
vendor: 21,641 bytes, line 2
2var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Oe=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,le))+Math.imul(L,ue)|0,o=Math.imul(L,le),n=n+Math.imul(P,he)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(L,he)|0,o=Math.imul(L,de);var Ie=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(l+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(L,pe)|0))<<13)|0;return l=((o=Math.imul(L,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ge,u[1]=ye,u[2]=be,u[3]=ve,u[4]=we,u[5]=Me,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=ke,u[10]=Ae,u[11]=je,u[12]=Ee,u[13]=Te,u[14]=Ce,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=Be,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,h=(0|e.words[c])*(0|t.words[l]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var h=u,d=l,f=0;f<s;f++){var p=r[c+f],m=n[c+f],g=r[c+f+s],y=n[c+f+s],b=h*g-d*y;y=h*y+d*g,g=b,r[c+f]=p+g,n[c+f]=m+y,r[c+f+s]=p-g,n[c+f+s]=m-y,f!==a&&(b=u*h-l*d,d=u*d+l*h,h=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,l,n),this.transform(s,o,a,u,n,i),this.transform(l,o,c,h,n,i);for(var f=0;f<n;f++){var p=a[f]*c[f]-u[f]*h[f];u[f]=a[f]*h[f]+u[f]*c[f],a[f]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var l=0;l<s;l++)u.words[l]=this.words[l];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var h=u-1;h>=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}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(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(M,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}
vendor: 4,271 bytes, line 2
2u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(226)(e))},1696:function(e,t){},1697:function(e,t,r){t.publicEncrypt=r(1698),t.privateDecrypt=r(1700),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},1698:function(e,t,r){var n=r(1155),i=r(1072),o=r(1116),s=r(1337),a=r(1338),u=r(1206),l=r(1339),c=r(1201),h=r(1027).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var f,p=n(e);if(4===d)f=function(e,t){var r=e.modulus.byteLength(),n=t.length,l=o("sha1").update(h.alloc(0)).digest(),c=l.length,d=2*c;if(n>r-d-2)throw new Error("message too long");var f=h.alloc(r-n-d-2),p=r-c-1,m=i(c),g=a(h.concat([l,f,h.alloc(1,1),t],p),s(m,p)),y=a(m,s(g,c));return new u(h.concat([h.alloc(1),y,g],r))}(p,t);else if(1===d)f=function(e,t,r){var n,o=t.length,s=e.modulus.byteLength();if(o>s-11)throw new Error("message too long");n=r?h.alloc(s-o-3,255):function(e){var t,r=h.allocUnsafe(e),n=0,o=i(2*e),s=0;for(;n<e;)s===o.length&&(o=i(2*e),s=0),(t=o[s++])&&(r[n++]=t);return r}(s-o-3);return new u(h.concat([h.from([0,r?1:2]),n,h.alloc(1),t],s))}(p,t,r);else{if(3!==d)throw new Error("unknown padding");if((f=new u(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?c(f,p):l(f,p)}},1699:function(e,t){},1700:function(e,t,r){var n=r(1155),i=r(1337),o=r(1338),s=r(1206),a=r(1201),u=r(1116),l=r(1339),c=r(1027).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,f=n(e),p=f.modulus.byteLength();if(t.length>p||new s(t).cmp(f.modulus)>=0)throw new Error("decryption error");d=r?l(new s(t),f):a(t,f);var m=c.alloc(p-d.length);if(d=c.concat([m,d],p),4===h)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),s=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,s+1),l=t.slice(s+1),h=o(a,i(l,s)),d=o(l,i(h,r-s-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,d.slice(0,s)))throw new Error("decryption error");var f=s;for(;0===d[f];)f++;if(1!==d[f++])throw new Error("decryption error");return d.slice(f)}(f,d);if(1===h)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var s=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;s.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===h)return d;throw new Error("unknown padding")}},1701:function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(1027),s=r(1072),a=o.Buffer,u=o.kMaxLength,l=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function h(e,t){if("number"!==typeof e||e!==e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}
2function f(e,t,r,i){if(n.browser){var o=e.buffer,a=new Uint8Array(o,t,r);return l.getRandomValues(a),i?void n.nextTick((function(){i(null,e)})):e}if(!i)return s(r).copy(e,t),e;s(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}l&&l.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!a.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=t.length;else if("function"===typeof n)i=n,n=t.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return h(r,t.length),d(n,r,t.length),f(t,r,n,i)},t.randomFillSync=function(t,r,n){"undefined"===typeof r&&(r=0);if(!a.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),f(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(251),r(252))},1702:function(e,t,r){e.exports=r.p+"static/media/VIdeoSuccessUpload.0c9ab02e.svg"},1703:function(e,t,r){e.exports=r.p+"static/media/viewClose.faf7ea03.svg"},1704:function(e,t,r){e.exports=r.p+"static/media/viewEye.5db59815.svg"},1732:function(e,t){},1735:function(e,t){},1762:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(2212),s=r.n(o),a=(r(2213),r(2249));t.a=e=>{const{t:t}=Object(a.a)();return i.a.createElement("div",{className:"NoAccess"},i.a.createElement("div",{className:"NoAccess__Container"},i.a.createElement("img",{className:"NoAccess__Img",src:s.a}),i.a.createElement("div",{className:"NoAccess__Para1"},t("containers.ImportContentModal.noAccess.noAccess","No Access")),i.a.createElement("div",{className:"NoAccess__Para2"},e.overAllBatch&&i.a.createElement("div",null,e.overAllBatch),e.eachBatch&&i.a.createElement("div",null,e.eachBatch)),i.a.createElement("div",{className:"NoAccess__Para3"},t("containers.ImportContentModal.noAccess.pleaseRequest","Please request premium tutor to grant permission")),i.a.createElement("button",{className:"NoAccess__Btn",onClick:e.closeModal},t("containers.ImportContentModal.noAccess.gotIt","GOT IT"))))}},1772:function(e,t,r){"use strict";var n=r(152),i=r(1),o=r.n(i),s=r(1551),a=r.n(s),u=r(11),l=r.n(u),c=r(1423),h=(r(303),r(1289),r(140)),d=r(2796),f=r(4),p=r(5),m=r(1407),g=r.n(m);r(1702);r(1340);var y=r(151),b=r(1191),v=r.n(b),w=r(49),M=r(1015),x=r(2780),S=r(460);const _="https://media.giphy.com/media/jAYUbVXgESSti/giphy.gif",k=`https://${n.a}-cp-assets-public.classplus.co/cams/image-coming-soon.jpg`,A=f.B.API_BASE_URL;class j extends o.a.PureComponent{constructor(){var e;super(...arguments),e=this,this.state={files:[],allUploaded:null,filesMeta:[],ids:[],descriptions:[],titles:[],viewModal:!1,uploadDestinationLoading:!0,initUploadRes:{},directUpload:!1,uploadVideoFlow:null===w.f||void 0===w.f?void 0:w.f.CP_BACKEND,maxFileSizeLimitInBytes:5632e6,maxFileSizeLimitInGB:5,maximumNumberOfFiles:10},this._mounted=!1,this._axiosCancelSrc=null,this._input=null,this._btn=null,this._reset=null,this.getVideoUploadDestination=()=>{l()({method:"GET",url:"/cams/uploader/video/videoUploadDestination",baseURL:f.B.API_BASE_URL,headers:{...this.getHeader()}}).then(e=>{var t,r,n,i,o;this.setState({uploadDestinationLoading:!1,uploadVideoFlow:null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.uploadVideoFlow,directUpload:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.directUpload,maxFileSizeLimitInBytes:null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.maxFileSizeLimitInBytes,maxFileSizeLimitInGB:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.maxFileSizeLimitInGB,maximumNumberOfFiles:null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.maximumNumberOfFiles},()=>{this._btn.click()})}).catch(()=>{this.setState({uploadDestinationLoading:!1},()=>{this._btn.click()})})},this.abortAlibabaVideoUpload=e=>{console.log("abortAlibabaVideoUpload");const{initUploadRes:t,uploadVideoFlow:r}=this.state,n=t[e];if(console.log("abortAlibabaVideoUpload :: videoInit :: ",n),console.log("abortAlibabaVideoUpload :: initUploadRes[index] :: ",t[e]),r===w.f.DRM_ENABLED)return l()({method:"POST",url:"/cams/uploader/video/drm/abortMultipartUpload",baseURL:f.B.API_BASE_URL,data:{fileKey:null===n||void 0===n?void 0:n.fileName,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}});r==(null===w.f||void 0===w.f?void 0:w.f.CP_BACKEND)?l()({method:"POST",url:"/cams/uploader/video/abortMultipartUpload",baseURL:f.B.API_BASE_URL,data:{ossFileName:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}}):r==(null===w.f||void 0===w.f?void 0:w.f.TENCENT_ENABLED)?l()({method:"POST",url:"/cams/uploader/video/tencent/abortMultipartUpload",baseURL:f.B.API_BASE_URL,data:{ossFileName:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}}):r===w.f.SDMC_ENABLED||r==(null===w.f||void 0===w.f?void 0:w.f.GOOGLE)?l()({method:"POST",url:"/cams/uploader/video/gcp/abortMultipartUpload",baseURL:f.B.API_BASE_URL,data:{ossFileName:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}}):r===w.f.AZURE&&l()({method:"POST",url:"/cams/uploader/video/azure/abortMultipartUpload",baseURL:f.B.API_BASE_URL,data:{azureFilePath:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}})},this.getInitUploadData=(e,t)=>{this.setState(r=>({initUploadRes:{...null===r||void 0===r?void 0:r.initUploadRes,[t]:e}}))},this.getHeader=e=>{var t,r,n;const i=null===this||void 0===this||null===(t=this.state)||void 0===t?void 0:t.initUploadRes[e],o=+new Date,s=o+"|E0CnImkXprTDJ6Om0kcV";let a=v.a.createHash("md5").update(s).digest("hex"),u=null!==i&&void 0!==i&&i.endPoint&&e+""?{endPoint:null===i||void 0===i?void 0:i.endPoint,accessKeyId:null===i||void 0===i?void 0:i.accessKeyId,accessKeySecret:null===i||void 0===i?void 0:i.accessKeySecret,securityToken:null===i||void 0===i?void 0:i.securityToken,bucket:null===i||void 0===i?void 0:i.bucket}:{};return{"Content-Type":"application/json",signature:a,ex:o,"Api-Version":f.a,"x-access-token":null===this||void 0===this||null===(r=this.props)||void 0===r||null===(n=r.persistedData)||void 0===n?void 0:n.token,...u}},this.getFilePrefix=()=>`mpup_classplus_${Date.now()}_production_CID_${this.props.courseId}`,this._isAllUploaded=()=>{let{filesMeta:e}=this.state;0===Object.values(e).filter(e=>"uploaded"!==e.status).length&&this.setState({allUploaded:!0})},this.onUploadComplete=(e,t)=>
2{this._setFileMeta("uploaded",t,{thumbnail:k})},this.onUploadSuccess=(e,t,r)=>{this.processFile(e,r)},this.onRestrictionFail=(e,t,r)=>{const{t:n}=this.props;p.toastr.error(n("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),t.message),this.cancelFile(r)},this.onUploadError=(e,t)=>{const{t:r}=this.props;p.toastr.error(r("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),r("components.contentStore.addContent.components.uploader.uploader.toastr.internetMayNotBeConnectedRetry","Internet may not be connected, Retry again later")),this._setFileMeta("error",t,{error:"Try again to upload file"})},this.onError=(e,t)=>{const{t:r}=this.props;p.toastr.error(r("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),r("components.contentStore.addContent.components.uploader.uploader.toastr.internetMayNotBeConnectedRetry","Internet may not be connected, Retry again later")),this._setFileMeta("error",t,{error:"Try again to upload file"})},this.onUpload=(e,t)=>{this._setFileMeta("uploading",t)},this.onFileRemove=(e,t)=>{p.toastr.error("File Removed"),this.cancelFile(t)},this._setFileMeta=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.setState(e=>{let{filesMeta:i}=e;i=JSON.parse(JSON.stringify(i));let o={...i[r]};return"uploaded"===t?(o.uploaded=!0,o.error=null,o.thumbnail=n.thumbnail,o.status="uploaded"):"uploading"===t?(o.uploaded=!1,o.error=null,o.thumbnail=_,o.status="uploading"):"paused"===t?(o.uploaded=!1,o.error=null,o.thumbnail=k,o.status="paused"):"error"===t?(o.uploaded=!1,o.error=n.error,o.thumbnail=k,o.status="error"):"cancelled"===t&&(o.uploaded=!1,o.error=null,o.thumbnail=null,o.status="cancelled"),i[r]=o,console.log(i,"fileMetafileMeta"),{filesMeta:i}},()=>{e._isAllUploaded()})},this.processFilePayload=(e,t)=>{let r=e.name;const{contents:n,courseDetails:i}=this.props,{uploadVideoFlow:o}=this.state,s=i&&i.videoRestrictions.isWebVideoAllowed,a=i&&i.videoRestrictions.isVideoRestricted,u=i&&i.videoRestrictions.videoMaxCount,l=i&&i.videoRestrictions.videoMaxDuration,c=i&&i.resources,{videos:h}=c;let d=this.props.match.params.folderId;const f=Object(S.b)();let p=f.parentId&&f.parentFolderId&&this.props.match.params.id?this.props.match.params.id:this.props.courseId;return{order:1e4*(t+1)+(n[n.length-1]||{order:0}).order,fileName:this.state.titles[t]||e.name,description:this.state.descriptions[t]||"",uuid:r,folderId:Number(d),courseId:p,isWebVideoAllowed:s||0,isVideoRestricted:a||0,videoRestrictions:{maxCount:u||-1,maxDuration:l||-1}}},this.processFile=(e,t)=>{const r=this.processFilePayload(e,t);return l.a.post(A+"/cams/uploader/video/confirmRequest",r,{headers:{"x-access-token":this.props.persistedData.token,"Api-Version":f.a}}).then(e=>{let{data:r}=e;const{t:n}=this.props;console.log(r);let{message:i,thumbnailUrlList:o}=r;p.toastr.success(n("components.ContentStore.AddContent.components.Uploader.uploadSuccessMsg1","Upload successful"),i),this._setFileMeta("uploaded",{thumbnail:o&&o[0]}),this.setState(e=>{const n=e.ids.slice();return n[t]=r.idList[0],{ids:n}})})},this.onAlibabaOrTextBookDrmUploadComplete=(e,t)=>{const{t:r}=this.props;let{message:n,thumbnailUrlList:i}=e;p.toastr.success(r("components.ContentStore.AddContent.components.Uploader.uploadSuccessMsg2","Upload successful"),n),this._setFileMeta("uploaded",t,{thumbnail:i&&i[0]}),this.setState(r=>{var n;const i=r.ids.slice();return i[t]=null!==e&&void 0!==e&&e.data?null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.idList[0]:null===e||void 0===e?void 0:e.idList[0],{ids:i}})},this.onAlibabaOrTextBookDrmUploadFailure=(e,t)=>{let{message:r="error"}=e;this._setFileMeta("error",t,{error:r})},this.handleEnablePreview=()=>{let e={courseId:this.props.courseId,isSamplingEnabled:1};const{t:t}=this.props;this.props.makeApiCall("/v2/course/edit","PATCH",e,()=>{this.setViewModal(),this.props.closeHandler(),p.toastr.success(t("components.contentStore.addContent.components.uploader.uploader.toastr.courseSamplingEnabledSuccessfully","Course Sampling Enabled Successfully"))},()=>{console.log("Api Error")},!0)},this.setViewModal=()=>{this.setState({viewModal:!this.state.viewModal},()=>{this.state.viewModal||this.props.closeHandler()})},this.fileComponent=(e,t)=>
2{let{titles:r,descriptions:n,filesMeta:i,uploadVideoFlow:s,directUpload:a}=this.state,u=this.state.filesMeta[t];const l=this.processFilePayload(e,t);return"cancelled"===u.status?null:o.a.createElement(c.a,{meta:u,title:r[t],description:n[t],setTitle:this.setTitle.bind(this),setDescription:this.setDescription.bind(this),index:t,key:t,onCancel:()=>{this.cancelFile(t)},onComplete:this.onUploadComplete,onRestrictionFail:this.onRestrictionFail,onUploadError:this.onUploadError,fileNamePrefix:this.getFilePrefix(),onError:this.onError,onFileAdded:this.onFileAdded,onFileRemove:this.onFileRemove,onUpload:this.onUpload,file:e,onUploadSuccess:this.onUploadSuccess,directUpload:a,uploadVideoFlow:s,aliBabaUploadData:l,onAlibabaOrTextBookDrmUploadComplete:this.onAlibabaOrTextBookDrmUploadComplete,onAlibabaOrTextBookDrmUploadFailure:this.onAlibabaOrTextBookDrmUploadFailure,getInitUploadData:this.getInitUploadData})}}componentDidMount(){this.setState({uploadDestinationLoading:!0}),this.getVideoUploadDestination(),this._mounted=!0}componentWillUnmount(){var e;let t=this.props.match.params.folderId;this._mounted=!1,this.props.getBatchContents(void 0,t),(null===this||void 0===this||null===(e=this.state)||void 0===e?void 0:e.filesMeta)&&this.state.filesMeta.forEach((e,t)=>{"uploading"==(null===e||void 0===e?void 0:e.status)&&this.abortAlibabaVideoUpload(t)})}_handleUpload(e){const{maximumNumberOfFiles:t,maxFileSizeLimitInBytes:r,maxFileSizeLimitInGB:n}=this.state,{t:i}=this.props;let o=!1,s=!1,a=Array.from(e.target.files);if((null===a||void 0===a?void 0:a.length)>t)return void p.toastr.warning(`${i("components.contentStore.addContent.components.uploader.uploader.noOfile1","You can upload")} \n ${t} \n ${i("components.contentStore.addContent.components.uploader.uploader.noOfile2","file(s) at a time")}`);let u=a.map((e,t)=>(s=!(!s&&Object(w.q)(null===e||void 0===e?void 0:e.type,null===e||void 0===e?void 0:e.name)),(null===e||void 0===e?void 0:e.size)>r&&(o=!0),{status:null,fileIndex:t,error:null,thumbnail:k}));o?p.toastr.warning(`${i("components.contentStore.addContent.components.uploader.uploader.fileSizeErr","You can upload file of max size")} ${n} gb`):s?p.toastr.error(i("components.contentStore.addContent.components.uploader.uploader.fileTypeErrHead","File format not supported!"),i("components.contentStore.addContent.components.uploader.uploader.fileTypeErr","Please upload video files in mp4, mov, flv, avi, wmv, mkv, 3gp, mp3, aac format only")):this.setState({count:a.length,descriptions:Array(a.length).fill().map(()=>""),titles:Array(a.length).fill().map((e,t)=>a[t].name||t),ids:Array(a.length).fill().map(()=>null),files:a,filesMeta:u},()=>{const{count:e,descriptions:t,titles:r,ids:n,files:i,filesMeta:o}=this.state;console.log(e,"count++++",t,"descriptions++++",r,"titles++++",n,"ids++++",i,"files++++",o,"filesMeta++++"),this._reset.click()})}setTitle(e,t){const r=this.state.titles.slice();r[e]=t,this.setState({titles:r})}setDescription(e,t){const r=this.state.descriptions.slice();r[e]=t,this.setState({descriptions:r})}cancelFile(e){this.abortAlibabaVideoUpload(e),this.setState(t=>{const{filesMeta:r}=t;return 0===Object.values(r).filter((t,r)=>e!==r&&"cancelled"!==t.status&&null!==t.status).length?{files:[],filesMeta:{},titles:[],descriptions:[],ids:[]}:(this._setFileMeta("cancelled",e),{})},()=>{console.log(this.state,"cancelFile>>>>")})}refresh(){const{descriptions:e,ids:t,titles:r,filesMeta:n}=this.state;let i=this.props.courseId;const{courseDetails:o}=this.props,s=o&&o.resources,{videos:a}=s,u=o&&o.samplingData,c=u&&u.isEnabled;let h=Object.values(n).map((n,o)=>new Promise(o=>{console.log({ids:t,meta:n}),"uploaded"===n.status&&t[n.fileIndex]?l.a.patch(`${f.B.API_BASE_URL}/v2/course/content/edit/${i}`,{resourceType:2,resourceId:t[n.fileIndex],id:t[n.fileIndex],contentType:2,name:r[n.fileIndex],description:e[n.fileIndex],courseId:i},{headers:{"x-access-token":this.props.persistedData.token}}).then(e=>{0!=a||c?o({success:!0}):this.setViewModal()}).catch(e=>{console.log({err:e}),o({success:!1})}):o({success:!1})}));Promise.all(h).then(e=>this.props.closeHandler())}render(){const{files:e,allUploaded:t,uploadDestinationLoading:r}=this.state,{t:n}=this.props;return o.a.createElement("div",{className:a.a.Uploader,style:e.length?{maxHeight:"calc(100vh - 170px)",overflow:"auto"}:{}},o.a.createElement("form",{style:{display:"none"}},o.a.createElement("input",{ref:e=>this._input=e,type:"file",name:"docs",onChange:this._handleUpload.bind(this),multiple:!0,accept:w.c,disabled:r||e.length,style:{display:"none"}}),o.a.createElement("input",{style:{display:"none"},type:"reset",ref:e=>this._reset=e})),o.a.createElement("button",{ref:e=>this._btn=e,onClick:e=>this._input.click(),style:e.length?{display:"none"}:{}},o.a.createElement("img",{src:g.a}),o.a.createElement("span",null,o.a.createElement(M.a,{i18nKey:"components.c
2ontentStore.addContent.components.uploader.uploader.uploadFromYourPC"},"Upload from your PC"))),o.a.createElement("div",{className:a.a.Filelist,style:{width:"100%"}},e.map(this.fileComponent)),o.a.createElement("div",{className:a.a.Uploader__Action},t?o.a.createElement("button",{onClick:this.refresh.bind(this),disabled:!t,className:t?a.a.Uploader__Action__button:a.a.Uploader__Action__button__disabled},o.a.createElement(M.a,{i18nKey:"components.contentStore.addContent.components.uploader.uploader.button.done"},"Done")):""))}}t.a=Object(h.connect)(e=>({courseId:e.storeData&&e.storeData.activeCourseDetails.metaData.id,persistedData:e.persistedData}),{makeApiCall:y.b})(Object(d.a)(Object(x.a)()(j)))},1796:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAWlBMVEUAAAD////W1tbW1dXW1dXW1dXW1dXW1NTW1dXZ2dnV1dXX09Pb29vW1dXW1dXW1dXW1tbW1dXW1NTW1dXX1dXV1dXW1NTW1dX////W1tbX1dXW1dXW1dUAAACJqIooAAAAHHRSTlMAAWPT/fyXlagUdFIVls+plNKP85iAg5wCgn6Qs/tXZwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjAR0GMRgSq4YoAAAAYElEQVQY013OSRaAIAwD0FRxxBnFqfc/pz4qimTVn3ZRQEJJqpg5y70LlmShy6pmDvcajRTUynmne1d4u6jbQ2AeI3OC6eecYELPBCyRAft63eRNG9k3n4E9MnCYk57xAtKlEJFJeY+5AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTAxLTI5VDA1OjQ5OjI0KzAxOjAwVYKsHgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wMS0yOVQwNTo0OToyNCswMTowMCTfFKIAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"},2211:function(e,t,r){},2212:function(e,t){e.exports="data:image/png;
2base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAS/SURBVHgB5ZpNbxtFGMf/z+zaiZsmdS5E4oI5ADdijpxwBUIhRCJ8gigSkIpLciwIKY6EBMfmhEIPgW/gqCUUJJA5cXXLqVwwl5ZyiRW7Tm3WM8yzzlp249Tj3cnGTn9S7M2+2P7pmXnmlWCZg91c2v0vNS+lzBKcrCJkSSENQqbnRoWyftF/qCjIopCiNP3pj7/BMgQLsJTTmHgLEBsgkdU/PI1QUAVKFkGqMLN253tYIJIgi4nm5LqO1EZ4qf4ooKwjX0y4yKc+2v8bIQkleJZi/WhBbk06YjeM6NCChzcXP1AetkngJcSIH1HI/LBF11iwHbXUJoE2cI7o77/hJR9vza4WK2b3G3Cwu5ChhigIwjxGAI5m0kHOpMgOFGQ58UQU4y6SgzCVfKbgqMoFmEieKjjqcgGDJEW/k35CGQM5Rkco02yhwL+53/W+gn62HAO5AC2ZdZtTm6dc6+VwZ2FFK36HcURheeba/l73qR7Bcal3p8H1USbrb3S3kT1FVHhYGVc5huujaF7aeOpcG46e0xR/wRI0PYfEq28b3evd/wWy9gg20MOzikzUXw6i6AYXnIbYtDN4astdWvoaYvoFo/sTr7yDo9ufWZHksedxFPP8f6eIKoWrsMCwcv6PmJlDaukriMtzsAJhPWg2fEHOnDbqXhi5AJuSHMX2APxYkJRYRkSiyAXYjaTwk41f6w53Fg/0W+iBqw25buTho8h1Mkg2ovrtexzKWORaD+6h9fCPgffZiCQXU/coNa+HeJRFSIaR88q/o66jUr91Hd7DewPvtyLpOlmhJHIICbdzpsVSNmudY1X91+gZlnRfM2tL+36nnrrUSYbOfNLovOA5WaGgMriwqLQ4MeN8gdD5JSNwwYlNsDsbUnIKceEiJtwXX8fku1/4cnwc2/f6qzwx1cNE5k3EiU6gZd3Qw2iG2Abck+EGPy6IwIJUQgwEPZmjn7806slYQVJFQKjQgt6feiRu2CtBd2JpPDZ6hDvdrfu/IixC6Pkl7mwrRUWERExzn9GwP/qgHTmTJMNyT25/jlbtH4SFmuIqHewup51mk+diQnfZhpE0wYYcD5eufLI/K2ZXCxVS0eqhrPL47bp5cX3WZ1mQY0iiyO+i/aJuICI2JG3JMYKo4L/zS3MiybsbIjcXUSRtyvEE8OW1H/yVYF/QL6YCkaPIhJG0Kcfw5oXOcXBgI9l0w4nHNZz45abAlhyTcJAJltN6pnqrNxc39Qg/jzFGF8+tK2v7+eD/ntGE5ya3tWDoPSnnzfFi6G73uR5Bvy5Sax1jigM6sWnoxHhw5tpPe7xVA2OGUmo7yJzd9B3wesnEls5EsXTCbeCvC04c5ftd6yvIRdWbkB+OQ30MNiGctjHo+d1GEjDuG4EGTjrNrt4py0mZG6XiKhXumm7lMppVa0sms6OQXTlbqol6znRr5dCL1rWd91daUm2dx3ZKVzgbUx/f2hvmuZAbYhcyridW4unWUYX0cM5L1rdNt1D2PI0I+DszGmKT1/ftRzSaWOdTYAkuuhJKL4VTLtKmdJIl3SnebqWqxShinU/EGVD9ZilHJOclIaenQ9KK/BWszFO3lXlOVke/pDNdSSlx15uslWxIdfM/JhA5Hujyz10AAAAASUVORK5CYII="},2213:function(e,t,r){},2214:function(e,t,r){},2215:function(e,t,r){e.exports=r.p+"static/media/folderImage.5343f730.svg"},2216:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAWlBMVEUAAAD////W1tbW1dXW1dXW1dXW1dXW1NTW1dXZ2dnV1dXX09Pb29vW1dXW1dXW1dXW1tbW1dXW1NTW1dXX1dXV1dXW1NTW1dX////W1tbX1dXW1dXW1dUAAACJqIooAAAAHHRSTlMAAWPT/fyXlagUdFIVls+plNKP85iAg5wCgn6Qs/tXZwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjAR0GMRgSq4YoAAAAYElEQVQY013OSRaAIAwD0FRxxBnFqfc/pz4qimTVn3ZRQEJJqpg5y70LlmShy6pmDvcajRTUynmne1d4u6jbQ2AeI3OC6eecYELPBCyRAft63eRNG9k3n4E9MnCYk57xAtKlEJFJeY+5AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTAxLTI5VDA1OjQ5OjI0KzAxOjAwVYKsHgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wMS0yOVQwNTo0OToyNCswMTowMCTfFKIAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"},2217:function(e,t,r){},2218:function(e,t,r){e.exports=r.p+"static/media/urlAttachment.1b40359a.svg"},2219:function(e,t,r){},2220:function(e,t,r){},2221:function(e,t,r){},2222:function(e,t,r){},2223:function(e,t,r){},2224:function(e,t,r){},2225:function(e,t,r){},2226:function(e,t,r){e.exports=r.p+"static/media/contentEmpty.a9e706f3.svg"},2227:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAWlBMVEUAAAD////W1tbW1dXW1dXW1dXW1dXW1NTW1dXZ2dnV1dXX09Pb29vW1dXW1dXW1dXW1tbW1dXW1NTW1dXX1dXV1dXW1NTW1dX////W1tbX1dXW1dXW1dUAAACJqIooAAAAHHRSTlMAAWPT/fyXlagUdFIVls+plNKP85iAg5wCgn6Qs/tXZwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjAR0GMRgSq4YoAAAAYElEQVQY013OSRaAIAwD0FRxxBnFqfc/pz4qimTVn3ZRQEJJqpg5y70LlmShy6pmDvcajRTUynmne1d4u6jbQ2AeI3OC6eecYELPBCyRAft63eRNG9k3n4E9MnCYk57xAtKlEJFJeY+5AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTAxLTI5VDA1OjQ5OjI0KzAxOjAwVYKsHgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wMS0yOVQwNTo0OToyNCswMTowMCTfFKIAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"},2228:function(e,t,r){e.exports=r.p+"static/media/SVGShare.7c0b84ee.svg"},2238:function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(140),s=r(2796),a=r(59);var u=r(47),l=r(1040),c=r.n(l),h=r(1483),d=r.n(h),f=r(1023),p=r.n(f);const m={modelContent:{background:"rgba(0, 154, 224, 0.08)",borderRadius:"2px",margin:"0px auto",display:"flex",justifyContent:"center"},modelContentDiv:{padding:"11px 0",fontSize:"14px",lineHeight:"21px",display:"flex",alignItems:"center",textAlign:"center",color:"rgba(0, 0, 0, 0.87)"},gridColumn:{position:"block",paddingTop:"34px",paddingLeft:"20px",fontSize:"14px",color:"rgba(0, 0, 0, 0.87)",mixBlendMode:"normal"},gridColumn2:{left:"184px",paddingTop:"24px"},search:{width:"240px",border:"none"},addContent:{height:"67px",padding:"0px",borderTop:"1px solid rgba(0, 0, 0, 0.12)",borderBottom:"0",paddingTop:"10px",justifyContent:"start"},flexRowDiv:{display:"flex","justify-content":"center",height:"34px",width:"100px"},imageStyle:{height:"24px"},paraStyle:{marginTop:"10px",fontSize:"12px"}};r(2211);var g=r(1762),y=r(2249);var b=e=>{const{t:t}=Object(y.a)(),[r,o]=Object(n.useState)(!1);return i.a.createElement("div",null,i.a.createElement(p.a,{next:e.fetchBatches,hasMore:!0,loader:i.a.createElement(u.k,{centered:!0},i.a.createElement(u.k.Column,{stretched:!0,width:10},i.a.createElement(u.r,{active:!0,inline:"centered"}))),height:"50vh",style:{overflowX:"hidden",margin:"0 8px"}},e.batches.length>0&&e.batches.map(t=>i.a.createElement("div",{className:"batchesList forHover",key:t.batchId,onClick:()=>
2{console.log(e.section,t.batchSettings.resourceManagementPermission,t.batchSettings.studyMaterialPermission),0===e.premiumStatus&&("Videos"===e.section&&0===t.batchSettings.resourceManagementPermission||"Study Material"===e.section&&0===t.batchSettings.studyMaterialPermission)?o(!0):e.fetchStudyMaterial(t)}},i.a.createElement("div",{className:"batchesList-Heading"},t.name),i.a.createElement("img",{src:d.a,alt:"Folder",style:m.imageStyle})))),r?i.a.createElement(g.a,{closeModal:()=>o(!1),eachBatch:`${t("containers.ImportContentModal.youDontHavePermission","You do not have the permission to access")} ${e.section} ${t("containers.ImportContentModal.youDontHavePermission2","of this batch")}`}):"")},v=r(1481);r(2214);var w=e=>i.a.createElement("div",null,e.attachments.map(t=>i.a.createElement(u.k,{computer:16,className:"cursor-free-resource-attachment",key:t.id,onClick:()=>{e.addRemoveItem(!t.isChecked,t)}},i.a.createElement("div",{className:"resource-content-attachment"},i.a.createElement("div",{className:"checkbox-and-image"},i.a.createElement("input",{type:"checkbox",className:"resource-content-attachment-checkbox",checked:t.isChecked}),i.a.createElement(v.a,{className:"study-material-image",fileString:t.url})),i.a.createElement("div",{className:"resource-content-attachment-text"},i.a.createElement("span",{className:"study-material-file-name"},t.fileName),i.a.createElement("span",{className:"study-material-createdby"},t.createdByName)))))),M=r(2215),x=r.n(M),S=r(2216),_=r.n(S);r(2217);var k=e=>i.a.createElement("div",null,e.folders.map(t=>i.a.createElement(u.k,{className:"cursor-free-resource-folder",computer:16,key:t.id},i.a.createElement("div",{className:"resource-content-folder"},i.a.createElement("div",{className:"resource-content-folder-content-f",onClick:()=>{e.addRemoveItem(!t.isChecked,t)}},i.a.createElement("input",{type:"checkbox",className:"resource-content-folder-checkbox",checked:t.isChecked}),i.a.createElement("img",{className:"folder-image marginLeft45",src:x.a})),i.a.createElement("div",{className:"FolderContentArrow",onClick:()=>e.fetchFolderMaterial(t.id)},i.a.createElement("div",{className:"resource-content-folder-text"},i.a.createElement("span",{className:"folder-name"},t.name),i.a.createElement("span",{className:"folder-createdby"},t.createdByName),i.a.createElement("span",{className:"tag-container"},i.a.createElement("img",{src:_.a,alt:"tag"}),i.a.createElement("span",{className:"tag-folder"},t.tags.map(e=>i.a.createElement("span",{className:"tag-folder-text",key:e.id},e.name,","))))),i.a.createElement("img",{src:d.a,alt:""}))))));r(2218),r(2219);r(2220),r(2221),r(2222);var A=r(1796),j=r.n(A),E=(r(2223),r(1015));var T=e=>i.a.createElement("div",null,e.videos.map(t=>i.a.createElement(u.k,{computer:16,className:"cursor-free-resource-folder",style:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",cursor:"pointer"},key:t.id,onClick:()=>{e.addRemoveItem(!t.isChecked,t)}},i.a.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0"}},i.a.createElement("div",{style:{position:"relative"}},i.a.createElement("div",{className:"resource-content-folder-content"},i.a.createElement("input",{type:"checkbox",className:"resource-content-folder-checkbox",checked:t.isChecked}),i.a.createElement("img",{className:"video-image marginLeft15",src:t.thumbnailUrl,style:{width:"120px",height:"90px",borderRadius:"5px"}})),i.a.createElement("div",{className:"FolderContentArrow-v"},i.a.createElement("div",{style:{position:"absolute",bottom:"7px",right:"7px",color:"white",fontSize:"12px"}},t.duration))),i.a.createElement("div",{style:{paddingLeft:"10px",display:"flex",flexDirection:"column"}},i.a.createElement("span",{className:"folder-name"},t.title),i.a.createElement("span",{className:"folder-createdby",style:{paddingTop:"8px"}},t.createdByName),1===t.isHidden&&i.a.createElement(u.q,{className:"inactive-video"},i.a.createElement(E.a,{i18nKey:"containers.ImportContentModal.StudyMaterialVideos.inActive"},"In active")),i.a.createElement("span",{className:"tag-container"},i.a.createElement("img",{src:j.a,alt:"tag"}),i.a.createElement("span",{className:"tag-folder"},t.tags.map(e=>i.a.createElement("span",{className:"tag-folder-text",key:e.id},e.name,","))))))))),C=(r(2224),r(1137)),O=r.n(C);var R=e=>0===e.summation?i.a.createElement("div",{className:"NoContentDiv",style:{maxHeight:"50vh",overflowY:"scroll"}},i.a.createElement("img",{src:O.a,alt:"emptyList"}),i.a.createElement("h3",null,i.a.createElement(E.a,{i18nKey:"containers.ImportContentModal.BatchStudyMaterial.thereIsNoStudyMaterial"},"There is no study material in this batch."))):i.a.createElement("div",{className:"addedStudents"},e.selectedBatchStudymaterial.foldersCount>0&&i.a.createElement(k,{fetchFolderMaterial:e.fetchFolderMaterial,folders:e.selectedBatchStudymaterial.folders,addRemoveItem:e.addRemoveItem}),e.selectedBatchStudymaterial.attachmentsCount>0&&i.a.createElement(w,{attachments:e.selectedBatchStudymaterial.attachments,addRemoveItem:e.addRemoveItem}),e.selectedBatchStudymaterial.videoCount>0&&i.a.createElement(T,{videos:e.selectedBatchStudymaterial.videos,addRemoveItem:e.addRemoveItem})),I=r(1182),B=r.n(I),P=r(1227),N=r.n(P),D=(r(2225),r(254),r(38),r(2780)
2),U=r(83),L=r(68);class F extends i.a.Component{constructor(){super(...arguments),this.state={searchingTimeout:null,isModal:!0},this.toggleNoAccessModal=()=>{this.setState({isModal:!this.state.isModal})},this.onSearchElement=e=>{let t;this.setState(r=>(r.searchingTimeout&&clearTimeout(this.state.searchingTimeout),{searchingTimeout:setTimeout(()=>{this.props.selectedBatch&&this.props.selectedBatch.batchId?0===this.props.folderStack[this.props.folderStack.length-1]?"Videos"===this.props.section?(t={batchCode:this.props.selectedBatch.batchCode,batchItem:this.props.selectedBatch,searchTerm:e},this.props.fetchVideos(t)):(t={batchId:this.props.selectedBatch.batchId,batchFreeResource:1,searchTerm:e,batchItem:this.props.selectedBatch},this.props.fetchStudyMaterial(t)):"Videos"===this.props.section?(t={batchCode:this.props.selectedBatch.batchCode,searchTerm:e,folderId:this.props.folderStack[this.props.folderStack.length-1]},this.props.fetchVideos(t)):(t={batchId:this.props.selectedBatch.batchId,batchFreeResource:1,searchTerm:e,folderId:this.props.folderStack[this.props.folderStack.length-1]},this.props.fetchStudyMaterial(t)):(this.props.emptySearchString(),t={searchString:e,limit:this.props.limit,offset:this.props.offset,identifier:"search",loadedBatchId:this.props.match.url.split("/")[2]},this.props.fetchBatches(t))},500)}))},this.topSearchBar=()=>{const{t:e}=this.props;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"FilterSection"},this.props.selectedBatch&&this.props.selectedBatch.batchId?i.a.createElement("div",{className:"SelectedGroup"},i.a.createElement("input",{type:"checkbox",className:"SelectedGroup-Checkbox",onClick:e=>{this.props.setSelectedAll({isChecked:e.target.checked})},checked:this.props.isSelectedAll}),i.a.createElement("div",{className:"SelectedGroup-Text"},e("containers.ImportContentModal.selected","SELECTED")," (",this.props.selectedChecklist.length,")")):"",i.a.createElement("div",{className:this.props.selectedBatch&&this.props.selectedBatch.batchId&&1===this.props.folderStack.length?"SearchBox":"SearchBox NewSearch",style:this.props.selectedBatch&&this.props.selectedBatch.batchId?{}:{width:"100%",justifyContent:"center"}},i.a.createElement("div",{className:"StoreHome__search ui transparent input"},i.a.createElement("img",{style:{paddingRight:"10px"},className:"search icon",src:N.a}),i.a.createElement("input",{transparent:"true",placeholder:this.props.selectedBatch?`${e("containers.ImportContentModal.searchFor","Search for")} ${this.props.section}`:e("containers.ImportContentModal.searchBatch","Search Batch"),className:"Search-Input",value:this.props.searchString,onChange:e=>{this.props.setSearchString({searchString:e.target.value}),this.onSearchElement(e.target.value)}})))),this.props.selectedBatch&&this.props.selectedBatch.batchId&&i.a.createElement(u.g,null))}}componentDidMount(){this.props.emptyChecklistItem(),this.props.fetchBatches({limit:20,offset:0,loadedBatchId:this.props.match.url.split("/")[2]})}render(){const{t:e}=this.props;this.studyMaterialPermission=this.props.permissions&&this.props.permissions.hasOwnProperty("studyMaterialPermission")&&0==this.props.permissions.studyMaterialPermission?0:1;const t=0!==this.props.batches.length?i.a.createElement("h3",{style:{paddingLeft:"238px",margin:"0px"}},e("containers.ImportContentModal.noResultsFound","No Results Found")):i.a.createElement("h3",{style:{paddingLeft:"238px",margin:"0px"}},e("containers.ImportContentModal.noContentAvailable","No Content Available"));const r=(this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.foldersCount?this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.foldersCount:0)+(this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.attachmentsCount?this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.attachmentsCount:0)+(this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.videoCount?this.props.selectedBatchStudymaterial&&this.props.selectedBatchStudymaterial.videoCount:0);return i.a.createElement(u.u,{trigger:i.a.createElement("div",{className:"cursor-free-resource"}),open:this.props.modalImportContentOpen,centered:!1,size:"small",closeOnDimmerClick:!1},this.props.isLoading&&i.a.createElement(u.f,{active:!0,inverted:!0},i.a.createElement(u.r,null)),i.a.createElement(u.u.Header,null,i.a.createElement("div",{style:{left:"10px"}},this.props.folderStack.length>0&&i.a.createElement("img",{src:B.a,alt:"previous",className:"previousIcon",onClick:()=>
2{if(1===this.props.folderStack.length)this.props.fetchBatches({limit:20,offset:0,loadedBatchId:this.props.match.url.split("/")[2]}),this.props.emptyChecklistItem();else{let e;0===this.props.folderStack[this.props.folderStack.length-2]?"Videos"===this.props.section?(e={batchCode:this.props.selectedBatch.batchCode,batchItem:this.props.selectedBatch},this.props.fetchVideos(e)):(e={batchId:this.props.selectedBatch.batchId,batchFreeResource:1,batchItem:this.props.selectedBatch},this.props.fetchStudyMaterial(e)):"Videos"===this.props.section?(e={batchCode:this.props.selectedBatch.batchCode,folderId:this.props.folderStack[this.props.folderStack.length-2]},this.props.fetchVideos(e)):(e={batchId:this.props.selectedBatch.batchId,batchFreeResource:1,folderId:this.props.folderStack[this.props.folderStack.length-2]},this.props.fetchStudyMaterial(e)),this.props.forwardBackwardFolderMovement({step:"backward"})}}}),i.a.createElement("span",{style:{paddingLeft:"15px"}},e("containers.ImportContentModal.import","Import")," ",e("containers.ImportContentModal.section",this.props.section)),i.a.createElement("img",{src:c.a,alt:"Close",className:"addContent__SVGClose",onClick:()=>{this.props.closeImportModal(),this.props.emptyChecklistItem()}}))),i.a.createElement(u.u.Content,{style:{height:"70vh"}},i.a.createElement("div",{style:m.modelContent},i.a.createElement("div",{style:m.modelContentDiv},this.props.selectedBatch&&this.props.selectedBatch.batchId?""+this.props.selectedBatch.name:`${e("containers.ImportContentModal.selectABatch","Select a batch to import")} ${e("containers.ImportContentModal.section",this.props.section)}`)),this.props.selectedBatch&&this.props.selectedBatch.batchId&&0===r?"":this.topSearchBar(),0===this.props.batches.length&&i.a.createElement(u.u.Content,{style:{maxHeight:"50vh",overflowY:"scroll"}},i.a.createElement("img",{src:O.a,alt:"emptyList",className:"EmptyList-Image"}),t),this.props.selectedBatch&&this.props.selectedBatch.batchId?i.a.createElement(R,{summation:r,selectedBatchStudymaterial:this.props.selectedBatchStudymaterial,fetchFolderMaterial:e=>{if("Videos"===this.props.section){const t={batchCode:this.props.selectedBatch.batchCode,folderId:e};this.props.fetchVideos(t)}else{const t={batchId:this.props.selectedBatch.batchId,batchFreeResource:1,folderId:e};this.props.fetchStudyMaterial(t)}this.props.forwardBackwardFolderMovement({step:"forward",folderId:e})},addRemoveItem:(e,t)=>{this.props.addRemoveItem({isChecked:e,item:t})},isChecked:"true"}):i.a.createElement(b,{premiumStatus:this.props.premiumStatus,batches:this.props.batches,fetchBatches:()=>this.props.fetchBatches(this.props.searchString?{limit:this.props.limit,offset:this.props.offset,searchString:this.props.searchString,identifier:"pagination",loadedBatchId:this.props.match.url.split("/")[2]}:{limit:this.props.limit,offset:this.props.offset,identifier:"pagination",loadedBatchId:this.props.match.url.split("/")[2]}),fetchStudyMaterial:e=>{if("Videos"===this.props.section){const t={batchCode:e.batchCode,batchItem:e};this.props.fetchVideos(t)}else{const t={batchId:e.batchId,batchFreeResource:1,batchItem:e};this.props.fetchStudyMaterial(t)}this.props.forwardBackwardFolderMovement({step:"forward",folderId:0})},studyMaterialPermission:this.studyMaterialPermission,section:this.props.section})),this.props.selectedBatch&&this.props.selectedBatch.batchId&&i.a.createElement(u.u.Actions,null,i.a.createElement("div",null,i.a.createElement(u.b,{className:"dropdownmarginleft",style:{backgroundColor:"#FFFFFF",color:"#009AE0",border:"1px solid #009AE0",marginRight:"12px",boxSizing:"border-box",borderRadius:"3px"},onClick:()=>this.props.closeImportModal()},i.a.createElement("p",{style:{color:"#009AE0",fontWeight:"600"}},e("containers.ImportContentModal.cancel","Cancel"))),i.a.createElement(u.b,{className:"dropdownmarginleft",style:{backgroundColor:0!==this.props.selectedChecklist.length||this.props.isSelectedAll?"#009AE0":"#E5E5E5",borderRadius:"3px"},disabled:0===this.props.selectedChecklist.length&&!this.props.isSelectedAll,onClick:()=>{let e={parentFolderId:"Videos"===this.props.section?this.props.videoFolderStack.length?this.props.videoFolderStack[0]:0:this.props.parentFolderStack[0]?this.props.parentFolderStack[0]:0,oldBatchId:""+this.props.selectedBatch.batchId,newBatchId:this.props.match.url.split("/")[2],newBatchCode:this.props.match.url.split("/")[3],isAllSeleccted:this.props.isSelectedAll&&0===this.props.folderStack[this.props.folderStack.length-1]?1:0,selectedArrays:{folderIds:[],docIds:[]},type:"Videos"===this.props.section?"videos":"study_material",batchFreeResource:this.props.batchFreeResource};this.props.selectedChecklist.map(t=>{t.fileName||t.duration?e.selectedArrays.docIds.push(t.id):e.selectedArrays.folderIds.push(t.id)}),this.props.importContent(e),Object(U.b)(L.ab,{attachment_type:"imported"}),this.props.closeImportModal()}},i.a.createElement("p",{style:{color:"#FFFFFF",fontWeight:"600"}}," ",e("containers.ImportContentModal.importSelected","Import Selected"))))))}}t.a=Object(o.connect)(e=>{var t;return{isLoading:e.importContentReducer.isLoading,batches:e.importContentReducer.batches,selectedBatch:e.importContentReducer.selectedBatch,selectedBatchStudymaterial:e.importContentReducer.selectedBatchStudymaterial,selectedChecklist:e.importContentReducer.selectedChecklist,folderStack:e.importContentReducer.folderStack,studyMaterialFolderStack:e.freeResouce.studyMaterial&&e.freeResouce.studyMaterial.folderStack,isSelectedAll:e.importContentReducer.isSelectedAll,limit:e.importContentReducer.limit,offset:e.importContentReducer.offset,searchString:e.importContentReducer.searchString,premiumStatus:null===e||void 0===e||null===(t=e.persistedData)||void 0===t?void 0:t.premiumStatus}},e=>({fetchBatches:t=>e((e=>({type:a.a.FETCH_BATCHES,payload:e}))(t)),fetchStudyMaterial:t=>e((e=>({type:a.a.FETCH_STUDY_MATERIAL,payload:e}))(t)),addRemoveItem:t=>e((e=>({type:a.a.ADD_REMOVE_ITEM,payload:e}))(t)),emptyChecklistItem:t=>e({type:a.a.EMPTY_CHECKLIST_ITEM}),forwardBackwardFolderMovement:t=>e((e=>({type:a.a.FORWARD_BACKWARD_FOLDER_MOVEMENT,payload:e}))(t)),importContent:t=>e((e=>({type:a.a.IMPORT_CONTENT,payload:e}))(t)),setSelectedAll:t=>e((e=>({type:a.a.SET_SELECTED_ALL,payload:e}))(t)),fetchVideos:t=>e((e=>({type:a.a.FETCH_VIDEOS,payload:e}))(t)),setSearchString:t=>e((e=>({type:a.a.SET_SEARCH_STRING,payload:e}))(t)),emptySearchString:t=>e({type:a.a.EMPTY_SEARCH_STRING})}))(Object(s.a)(Object(D.a)()(F)))},2613:function(e,t,r){},2614:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADMSURBVHgBrZLLDcIwEETXFkk9KSF0ABXESPlcoRLENVFECaEDUoIbss0aOSgY/yQyp7XlfR7NLsCfIimPGGNFnueH1RXv+/6hC5oCyLLMvrrWdV3qYgcJGoaB61+Xc9u2QCktsZy9DrquuzdNU0BEXoCU8kYImWIQL0DbVkodY5B3Bo6U1+IIeSJkb7L4deBI+UvoBIIO7JQXGWcVls7fPw5cMs2TzsHXHARg8znWDBBYJFxVBglK2kTHlCohxCUZYE8Jl+w0juMMW+gF7DlMOHXcn7EAAAAASUVORK5CYII="},2615:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/SURBVHgBrVO5DYNAEDyOJyGADoxLcQeUcAlP6BIowQkJBKYDuwNasCswdECIQIBnJZAIOB7ZI90j7e3saHaPsR+h0CaEcDRNcznn9hQYhuGZpulri4DTZhhGrqqqM0u2FUV5gNjeVBCGodP3fZ4kyXke8DzvBpITru+lxKZpMqDgMua2bSNZMuCQalKoyQjAXuGIZHHf9z+maVpSBYQ9HqwSQOYVlaLDBFSZzIWJFi26HyLQdd2lzmCJceXoilh6u2giBijDkU3y0eKISSDtAgEDVbANrBKMStYJ6rqu4DYLguCOiiXbATIWb1kcxyWngcEnuuxNJnRdV1IO+we+dnRpPDMAwsIAAAAASUVORK5CYII="},2616:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF9SURBVHgBjVPLbcJAFPTaFkgIKc4tR1pAUACpJBsJEDecDugAHxEgsekg6YBjDliiBJfgXG3Zzoxlo81qsXgX7+e9eTNvx8IxYj6fz1zXnVVVFeBbn2Gdcp/neaSUSvR80S6klEGv1wu5HgwGESI1wReLhRRCBFmWAUelN4Cm+ISOH7vdLnE6YrVajcqy3ALknSA1R9/3pVkM0JENgDnMRcM19x4TPc972e/3Z70LqJ6m0+lzHMc/Jsjlckknk8nreDx23H6/vz4cDsrS7BNUr8vlcmNjAwkRh+1iur/OnTgej2ckKdCVHKB+R/1g+USAwOkIaoa8DdcNm1s+GArXeTDQKGEzxL9zvzXLvdD8cQWTUL+DhJQSUp2WHnQlijksheIv856m8qHj3HTYGPdvKPxGobSBN66M6o3tqcIwDDpkjcCullMPgG8KFlsdxPYvtMXMHQ6HqpahXQS0NAdjM1YzTNpX6D+bMBNp46IoQgLRKDzje3PPedFcev4f5+O7OmVJ2rYAAAAASUVORK5CYII="},2617:function(e,t,r){},2618:function(e,t,r){},2619:function(e,t,r){e.exports={Uploader:"ManualUploadModal_Uploader__3e4fg",Uploader__button:"ManualUploadModal_Uploader__button__3CLdp",FileList:"ManualUploadModal_FileList__ibOCV",Uploader__Action:"ManualUploadModal_Uploader__Action__1hLTv",Uploader__Action__button:"ManualUploadModal_Uploader__Action__button__3SC4D","Uploader__Action__button--disabled":"ManualUploadModal_Uploader__Action__button--disabled__jClbV",ui:"ManualUploadModal_ui__2RIJa",modal:"ManualUploadModal_modal__X62Ma",actions:"ManualUploadModal_actions__2EUur"}},2620:function(e,t,r){e.exports=r.p+"static/media/uploadVideo.c5b82117.svg"},2621:function(e,t,r){},2622:function(e,t,r){e.exports=r.p+"static/media/warning.ec9ad89b.png"},2623:function(e,t,r){},2624:function(e,t,r){e.exports=r.p+"static/media/deleteBatch.dea37fba.svg"},2625:function(e,t,r){e.exports=r.p+"static/media/inactiveIcon.5d594c8c.svg"},2626:function(e,t,r){},2627:function(e,t,r){e.exports=r.p+"static/media/CloseWhite.faa98da7.svg"},2628:function(e,t,r){e.exports=r.p+"static/media/folderImage.5343f730.svg"},2629:function(e,t,r){e.exports=r.p+"static/media/editpencil.78cb85bc.svg"},2630:function(e,t,r){},2631:function(e,t,r){e.exports=r.p+"static/media/close.c2915c9a.svg"},2632:function(e,t,r){},2633:function(e,t,r){},2634:function(e,t){e.exports="data:image/png;
2base64,iVBORw0KGgoAAAANSUhEUgAAAOUAAACkCAYAAABozenfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABasSURBVHgB7Z0LdFv1fcd/9+rqbfkl52UnQc6olyZADJTXYMShK2UrPWQQB1ihGOiyBw0l7BRWOk6Uc0ZL2YGEpofueAUCoVBMKLSDbrC2Ma9BwkqSAhmUjigJcdKQ2LJlve9j/9/Vw7Is2bq6V7Iev885iu5LV4ql7/097//PAZEXr1fhh4bAxBbN+DCZgJckMMmyug1syedM2D45JoDC8yAlN8VHRkBavhxEdi6pv5+LA0FMAwdEGiZC4f33wdbWBuZ4HCy5RKcXFK1oAZEtxtvbIcqeY14vJwNBJKl7Ua5fr1ijUWb0ZLCVQoSFwCxrjFnTCLOmESZQEYi6pi5FiUIMBlVL6GRuJg8VBOeEOLtIBJkVjZFA65O6EuWGDYqdidFpEcECVYBkhbAgQGjrVi4KRN1Q86LEZM2hQ+CsRKtYKCaWNArzEGBJohAQNU/NirIWxJgNibM+qElRrlunOOQAuGz22UnclBoUZ8tCOEkxZ21SU6JMZlJd1RIz6gVjznnzIEDirC1qQpTJIj+K0Ql1Brm0tUfVixKtY/gENNeqq1oorNaJZZQANSJUP1Urynq2jvmgWLM2qEpR9vQowqkLwF3v1jEXyTa+MXJnq5eqE2Vvr9IwxwkNtVLmKBVMkYFHHuECQFQdVSVKVupoIne1cDDOZBZzFIiqoipEmYwfW+ul1GEk2EvrdqtxJiWAqoSKFyXFj/qhBFB1UdGiZO6qWQ5AKwlSP8l65jDdZF35VKwoUZBCDNyU0DGW0TiMbt/OBYGoWCpSlNi7ygTZSIIsDcn2vFGKMyuTihMlCpIldJqBKCnozsp28NO9mpVHyUVpe+jDJQ1yWHBy4XRcqEgcx5kUJfvYhpjN2hpoaEqtZ2YlBIGtsw1CcruQcUxqXy4y9wnJf1Lngcz1rHMIyQMmvWfWsZM+S3JFnFiEjLdIr0+3b8pnz/g/zrQv8zNAxr70cVn7Uv+/gEUOnTSPhXlBlPB7YYUUdTtnMiuKFOcSzxPfF26Ls21m9pw+TjHxzhBvdSo2gYvbBKZ3Pv2hOF5U/8ayokRlWYoIEckkS5LYIMuiLErZ/y8l47yJLZhwj03an/pMcfaZzMnPpmQ8TxxvgVy/s9SxseTZ85E4F0DivIn3heSnscDk33FcNivjZpM09rdnfgQ6Ka0o+w/0sbd4FAiiftgL6zxngg5KGrNZZLErtbz5ghbYc+UC6FlgBU+DAAeu6YBHV7on7et2UxmSqG54RXEPDAzoqhaUVJQ8P3H6vq4GVXSrPQ714XEJ6rZmC5/e19dFzToEIUCZuHHwJFzhscOW9wLgj8pMlCbwBSTwx+RJ+wiiulFALyUV5cIGHkQu8RZ7h2PqA2m28mkBosXM3IfrBFGtWLgKF+X7V7WDxUJxIlE/sDwt7NgBuqDiPEFUGCRKgqgwSJQEUWGQKAnCYPbv36+rKYdESRAVBomSICoMEiVBVBgkSoIwEFan1H2TR0W3z/hHACQJqh5sAW5pBaJOWLZsma62npKKMhLi7HoaesKh/PdJVhMCdQ7WDRzHKRWbfcURBJiVowGvCEIjJRElDguJ80PKINfV9O0EUbEx5ZIlYLeBfitpt7OYsgaGduIpnVY3oPsKOjFclGgl+TA4wA66aabkCFGHGC5Ko6wkQVQjRrivhjtWqpUkCKJoDLWUyTFbyUoShA6MtpRkJQlCJ4aJEhM8NFUdQejHMPf1vC5wBmmiNaICCIUiIOnoz3Q4bGAyzV4UZpgoQ3EcIz5rI00fU3Z8AVF9IDimbndb/TkvKEhRLF6UsqzALGrSGFGi68oSweYpO6hoXhYGhyLw/MEwPPbRuDqmbjY9C2zqQNc3dDUAUfkYIsquLmYlyXUtOyjATe+Mwpb3xqY9bvBoRH142bHPfWEOTQ9R4RgiSuYt2IAoK+iirnrxD2lXNZNG9q02mTk4HFamvObMnx4F71nNsPHsJqhVXK7qnv7CEFFaJWYpyVUtG7kEubwRoHehCb7SaQG3PRFJYGz16rEYPH1YgoFPJtxa7zt+ddoIcmdLAjc0tEBXV49uUfb2KpZSzbgci8XVEaeJyXh/MzZJkLd2KvBPKxqYhXBhQ/SkY7/kArhkYQi+cTwAa9+S4Eg0sf+2N0fgwjkCLHLQ1TQbi8U85e9YKLKMWrgc3ZATUCS6RdnSws5RongyHI6omTBigqd8UZbQCaXXv36KDHed7gJBsLC/V75JmXnoam2AH581Cl95R1GFqU6s9MpJ+PlKFxCTwdnizObipSHEbfbrr1ec27dzQSgC3ZdJ0zhYgSgb//r7CeGtnivB3d2NBc3XgnW30xY0w33LJra9/qnIHnEgjKfJDE3r1inmIl6qX5RSA/W6lotDQRne9U/U39adamFX9MK/d7QAl3qa4NymifjyF0MkylJhl6HV61U0a0y3KKm1rny8kWHVljplOGee9iwjWsy/aLdknJNqWaVCksE0NASa4wNdosQkDxBl41BowsJ5Gi1Ft4L96byJrw2tL1E6mNFyrl+vaArxdIly/nygMXjKSKaAFuvImqZKJshonBJppYYPQ7MWN1aXKKVjUFQgS+inxUqljGpBqxur65ttcJGlJIhC0OLG6hIlK3VR5pUgCiQaLcxa6hJlyFLZ0x4QRCWBlQocMmem43SJ0hon95UgtMBql66Zkj66LF04ArzNgPFdial8b38YnvLFJpVBJu+PqA8jaN0xkl7Gu0u+1G6GO5bZYbGTkklGg0mf0CHAAnMg3zG6/upMkBRTloBb3g6qgssnyFKCJZInD8Zg5S/HJnUPEcYxLoNzOmtJl8IKAxvOn2KimG1QnN/eFwLCePCuqqS1zL0fiqS3VyErWQIqQZApsGGdOn60I0qRGXMt01lLspQVRqV12BwKkQtbCtBajv9f7hl3ihbl/PmFJIlI81oZjVHbW70Qt0LOoR9KrBpyfQgiH5iJzdXlU+LiP1nKcoM3Pn/ezYph7Js9wkKbhw6Z0kOAEJVHsstn0pAR1JFTQ+DQIHey+qLdbldvaI7H43DRnHH48m4FxkQSZiWCXT6Y8PF6ubRbWbQpEwQyg5VEh1WBu053gtPpVAWJ4KgEp7e3wE2L6asqKxoHXM1O+BT9bQWDM7fYybJMl+cycXqrGWy23L+GLy+mtquyorHRasxukCiJyoKfZkjEIJWUy4pdo6VEF3ZgYOJLKqkoSfHl441pCv0/8UWBqGx2//uE01tS3VBBpHxg08H1b45PESb20D5ZQV1C9UAYtJPpwpKlrCGwgRzvLkmBbXKZ60R5KCaCT2Vhcbm0llKhRA9RX3A6fvEnTybGvCJjRhAGomfqG0c0EVeSKAnCQPS4hiNQDktJzitRZyigcMVFlQBCLNFhR5aSIAynuOQa3s6F9UoSJUEYTvEdVPt/CcUPs+10wowhLSmeILQxHgZOk26uuabPk1oWxZl7A6h5oPwczhhs63CQRg2YHYqvDYtu0DZdbUzidl511U2DZrO86dgxGJo3w3jPZCnLDzYM4Eh0pzeZ4EWae3KWKN59DQSAL1g3a9b09XAKeIBT+iSTY0/L5x5/2bH6yFrrqbHGfK9RFIXyr7MAdvZgax3NqFV9NHBgLliUO3ZsG5QEpdP1R8v8cjTcfPLtwZXD+17YbD1/6GVn7+F/AIIgDEGTh/n8T7b52i9b8+Dciy5V10f27YKDA/2LOC54e+N1vrcc54wtzDz+iSd/CjsH3wCtBIMhuO9ftkIwVH99m40CWbfpkOVKz1Tocw7josZED/KdVZ3e1hXnDy756q1gbmyGyIljcPTXP8PPskj44+H/cl0+9MXUsbt2/Q+8//4HoIVDQ8fhm9/cCLt374FHH/kx1BsXtFXWvY9Ltc/gXlJ4vrYzFVirLOp/yHJ6N5pdzb5Fq78KvNUK4x9/CCfffgWF2cg1x7Y4Vh1fDhr52B+BH772Adx5971w/NOTMHduG8v2Xgn1Bg7dUSnWsm8RQJuD5gUuN0WJ8t5VnT7mRKxCYS645ApVmCd2vwIfP/59iAf8jUJH6OFsVzYfEVGGF38/DP+2ywevbuuH+Jgf2Hnh4r510NbWCvXGZ1rtcNeps+/G4qh495yh8RZ6ArDRrpAR0qdDuHLNTRs5nvM9O/DwY1peiMLc8J+Hz3Z1LLvXevX8vz78/OOqoD7e/n1oO3flotazerbAa9ze6c5xdDwGT7x3HPwREVKvR0GiBT7vM6jp+kvpo3t282eb4NymEXj5UwU+HC9vAruBFcm+0KbAqg6HOioeUX4EDhQvyApctebG205Zc/OgfcGivYos72Ox496ZXrz5skXDX7tWubu5x/lwx59de/vw/v9eO/bBPtVqjv7vvgsUk+zO99p3jo3Dsx+cUJePv/6SGpumBImua2ezDUZH67POZjKZoHtRGyybFwNJKm8DAMdxYLFYaj52Kx36LqImHiTB0tiyQQFlM7NS3Qd3PNzNrBy4z1kJd+084GOnH2SPx/55VedgvpMwbysU2uU+DODe4D5vyQOx49ELIiO/u525sSwiga5cr8kU5CgTMWZxeatNFSQmjy7xNAMBqjiI+kKWQOafeuSBLQsvv3awcekKdWM6Nhzze1hU08dix51MoAe+/crBG3KdxC9MDKgXYeJsEe8YWOD60fmCaf4GjueHso/HhE5KkEy4iQQRo41dCFCQLTYBzprfAARRjWDDjE1HKG4xQ2JMEFvLnE0LPn9F2lKhWHwD/TDy212pYz3Mpd2WS5z9/Vw8JsCUkZnmOL8zYBEafp65bYTFjilBIujqYhzp6DgFWlacp24jK0nUMyykj6uiTLqnDzo6PKow0WrK0Qgcf+0lNd7LICXOPd6dBzypjSz5GijkDX/t86tJHQSFP7wvIXp0lxG0kGQliXpGCoOYjuZZ9OJlTz5MtqDVzOzaOfIfT6sizaCbmcY939p54DZc2bqVi+aylplgHIkPBM+F2VZ8bmIXALwYoNtKVpKod6LNGaL0rur0s5UbU+stK86HU65ep7qz2ByAIsqimSWBNjOruRFXZrKWv2JWMgWKPFX+mHvRF1VB3tw9X30miHrG7U66rymSbuym1LqtbX46zsSSRZYrm8KLwkRrKcgQynUAJndSbuuxX/0MQkcOpssf7qYGEiRBMDgF4jj71pRiFPa2sqcHU+sonvY/X6t27aArm8qWZqEKs9kDY5EwpAtrLBGlFm32MLc14bI+ppZAUoJc3D6XBEkQSRzmRAiYs0LMhHkbS+2mO3zQYrYlkzFYMsknzOhK3632NvBn79j10Seq+5tpIS87wwNf/1w7CZIgkoSsifJi3raN716ypA8yLCbGmO4MYaIrm5X8wV6Gja4rfZ91wER8+dsDQ6ogUx072NP6rUtPo6QOUbNIkvaps7GTB0NAXJ62lwotJmTEmNjtg1nZlCvrezrRQJ4BKu05x/U+k1OAIG4YPnhAPcbjWQSbvHfA3128lKwjQWTBiRNTrM/Y4IgxJjvoL9miD9fRYnqu/pt0kwE2oKM7m2E1PXFmMb/Xz40qSkR9o1U9FzJB3gldi+cDQRBT+ZPghHdZUNcxy8o+j7dqQdKdRTd0yfW3TnJn0Wpihw6iANzGEj/dCifGe5ggb7nlZnA6HUAQxFSsrMa/9hkunSAt+FYAvFUL3Vkmzk4FEkkgdGdTIxCg1TzKyh2pGiTWMIEg6hJtza+xrBq/5uAOxcme+v5x5wF0a3uY1fwGs5rdox/sZW7sq2qjAT6alq7oERpbyTwSdYXWDA9ayfuTCZ4URWdckuLchg8mUE/T0u4eS+u8nk9fe2lF+Nih7tGEK3tunru3CIJgnDeCk21NxpA0aKZAcX31NX0eU5zzssvGDUAQdURi1q3CwApFZiyZoiS3l+NQlM8++2ifYOYfAIIgpoB1SXt77n5x/Zbyhwc8YOI2M6s4pRvgF+MnTn3XYYNnX/hDzpc+utINHhfVLIn6Q7aDH/tcc+3TrwgTYIPB6lxzcAWcbbBfBNh/NJLzpRveHIbnLp0LBFFPYMfbfVnJnUz0i1JhFrLIsYL8MRoNnKgvwgGI/OAZbtrbHHWL8uBfLfTLpC2CSCOKuXtfMY5ctBz88Mz0r9ctyo/HRD8USbOF5ZlcQBA1DwrywlE4sfZH3IyToegW5bsnYn6Xrbgkbrd7+iEUm5pIsUT1kxZkjvJHLnSLcv0ZjUVbSoKoRXCIyUhyDA6tgkR0i/K0Z47AHHtxM0VtPKsZetppvgqiNsHhPZggh7UIEtEtyvd6O3xAEMQkcLwqHB5nrZfTPKGmblFu2uv3+fwiFMPGs5upeYCoORTricCWH3iKDut0K8L7FntvU3GFyhu6GkiURE3BcSC7XC+Mgw70977aoOgrAgmSIKaiX5Q3dlL2lSCSBAIBnEKyuHguiVGmCoWpeXi6hXY4Joq6Pn/dkBhDVymyobEGwfTJLE+hia5q5vrIyMjru3fv3uT1eitAlAr4c90lMhP33HPPZ4EoiEjEypmipznCXLNTlh0mk6jkbW6UBI4zmcwKRGOgCWuymSPzdVZch4JR3xs/GzuXJMXTy5PPmbWeb9t058+xHZ+nvF+e984+T/pvBjhR79R96XMzzOZwrNF2NBCz7s+e1XhcryARY668/b497N9u0IYP1nk6gdBEb69i6nSBYzgMDpsdiisQE0WBQ3fgeDpbp7nDwwiMsZQcs5TUlF4WnkkUogNMnCFeAKscABeJs7SkxHh/icWYwjj3VStcYhxZojiS4sRmrtC6dYqDxGk85RZjCoNEqYwCRzmI2aK/n1PFuX69YjUFwC7yQKMIFoksg8yizojkgnC5xZjCOPdVKxITMmEoyVgnylzbQEsLWK1xcLJ8rRmIGXE5IS4FIeLwQNBbRGuckRiZfdUGz48AURKyXFuzIwbO8ShYyb2dDFpF0QJhqxUi350lq5gLI+uU2lDkg0CUHObaYtpe/X7QvY1GwcbiT1u9ChSFqNghKggQeqiChJjJ7LmvRNlJubfsMYqlFfZsX9wCtqgIFqhh8J7GMA8RtIiVKsRMZrP5lIQ8iyRd3PHkQ7Wi9iBYJFZmCcdA4PnZ7pcpHhRhzAwxSYJoeztEZjtG1IpRltKnuU5J1rWiyLCi6khrGIuOjIC1wwmCyQJCpVpTFCCvQDxoAsnphFhTE0SrTYTZUJ2SyEkyFp3U
2RoZCZT984ZNPwMSyuyYXgDkWB67UGV6MA00cSAITIIoPPxdzRSW3G+LVLsBcGCNKiYmS8no1Ty6hpvB6FX5oCExMLDxLovDBIHDN4sSvImDN/1tzRRN3VRwIgMLELjPhK6IIMhMdClCuReFNx+zFlAq5r7VEUjh1JZ5SUXB1MXUlZItmvALilS8WA87hAFM4DPzD5/h+p3BcY6Hnu/hQS9fS441qrdLEXBK8WvoFkGrZLSGIQphWlKm6FhOKRQlOHzdsO2voa+OW+CYoAHtcuP/m33RMOyMX54Q4c2FErCdtrYI0NkEYRV5R/n2v0sC7oGDLhzzRfWTtuFXqzbefV7gxR0x46bq9CwZAA6NxGN2+nQsCQdQBeWPKTwHCiwVtheXr9nag2DQJbiawU9++DzTerUsQ1cuMMSV2fmBzM1s0Ywq8lIXlVOpbtIF44gTEly9XC780XghRVxR1v1Vm+pvFnCZWZOY7XYlzsWQNzxI3eUWbK/3N0udieztIlNwhCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCKIE/D+CCNS3BDLq3wAAAABJRU5ErkJggg=="},2635:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAA4CAYAAABUv9KRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAlISURBVHgB7Z1dWhQ7F4XD95179e7cCSNQRiCMQB2BMAJ0BOoIbEeAjEAdATACcATgCPT2XHHyRhZuc5Kq1E/T1dVZz7Op7qr8Z2UneyfVbLnfeOjlyMverVRUTB2XXhZeTnRj6/a67eX09lpRsW649rLPVYS+cpXMFeuNay+7//d/Dm6lomKdwZL5Hwh97OVvV1ExA7DkuHEVFTPB/1xFxYxQCV0xK1RCV8wKldAVs0IldMWsMAqhHz586Pb29txU8erVK3d6enr3/ejoyL1+/fru2YsXL8K9z58/h3DcU7jj4+Nw/+nTp+EeV8JcXFyEeODt27fhPm2gNIgbg3C2HHx/9+6d+/Dhg9ve3g75Eh9R2rbMP378CPmSF21OWsQDxKkYgdB0ighN56uBpwTI+/3797tBt7u7GwgCMXZ2dkL5uX78+NEdHh66xWIRwhLu5OTEff361R0cHIS6UUfCvHz5MhBRcbny/Nu3b25/fz8QErJakKYtB9dPnz6FOLTjo0ePwmfS57tAWtSBfCgLZSA/ys9noAG36RhEaBqVTkNT0DF01tXV1aSIDWl+/vzpzs7O/tCakBdCCpeXl+F6fX0dPqv8hCEeJOcedSQMQroQ6fHjx3dxhfPz87v7AFKqHFb7QlQ0M0SlPZ89exbaj+8Cebx//z7Ep71FXspJeWJtvskYTGhAR4vUNDzajKnRaplVAbKIKJqqAWSANFpeCNQFETnR0BCJ+FwfPHgQ7pMOYkls8fz580Be+x2QDp9VDsKg7b98+RK+S0Nb7U6+T548CZ+pgwYfYEAw4HLl2DSMZhTGpJb2RmPHpLlPUK43b94EkkAayMRaFKB1IQeEAVr/or0hGuEgigYpYdG8D
2FbCEo7naElBa12IyWAQpGUph50ByFv5p76rnFtbWyFPPjMAbFjSrfiNm77iO+UmhidwuO/J/J/7fvq/GZLfVMQP1iDrVOYNkv6RU4RuIjXw68PwbKKNUWX9pX/kHKHbSA28sVWJXWUZ0j9yE6FLSM1zv76ecuNUWT/pH7mN0CWkrsSuMqYMOg+NpY4Xow14AthswFPQ5MrDC4FHYtkuKDww+G6trxyvhnWzrQPkOkx5RoammUKqX5ZRhqHoPRpKNHQXTS0sy3DEM+EH1I13q2XLyPOx812WeAURyu1djaOl6d2ujX1I31gPzzLKMFD6R+5C6K6kHptc3g8c0hS8Lzl0DuL9u388UzlX3DGTI3SqfTaa0LYxSkg9VkNBZmll0sv5w/2uWwhXCf1rloyf0W4a+Mpz4wktUjNttZFaxMJgpMH6kIw46gTyawsP+ddl0+S+CY1AaoF2mhqh/3IrgLbJMRRBylCUIcnZB7bTAQaottZLDUe23cmP7eb49FsK9pxEDjpZJ2OoJI7OiCiPNgNqDGNrGQYbhjNtT11KTvipzvd51qT3aOiroQXWsYzyxWKR1MysoXMo3ZiRdh5j252ykm9sVDa5Hb03JdQzRmxcOaMB0XYWmp2Ojo5CXlxdg4ZOpVHqGm3T0IjqTz6pMuSMb2vsy6bRbJ3KhyUgzztq//4dPJTQQKRWQ5aQubSTSBfQsEPqqbrGhiMNbTstNmJtHQhHeEvuuDOpS9w2IibxMV6Blk4pMtk0UnkyIIcQmsEk5JYcdjDJJrF1FqkVLrcUVLyOexTDOnkMiNRUrJTMFozkVPm03iP9XB3oEPLNCZqEcHSwOiTW9tYW0DPi5cqH1tZAgKRxW1JeO/vwWWQGOUITTunGJKFcetZEEBGa/IhjxfZLrgxq87idKJsGVhw2pXBoI6XTkZerJzTwmyp/VKQLWLL0JXQ8NcfQIBNyy5xYs8XaNFc2wGC2AyY1BXMvJmtMJqWR064lBlyJ287WKZUmbZRqJ7WjJbDqRL+n+qVtRollJUZhDL2JwU4iu4WcIy49Q42RkjP2ZIjkdr4Ah/xTBgs7iTKo9EZILizAWKXM9vUqwPnlXLllXJG+wnPGOmXAcS/1QoKFjDSdRY+hdiAv1S0HvZUT36Nv2nZUCUedMPbtbixtpDrrJQrqSzjOkeslB57Z9uiKm74yhoaO18zxmjqHJn+yFWmAri4/TY9oDi0p2tx+gj63TZeqo12yoPFy4eNyxNqxC9pmmhIXZ6oM9F3TGjrO38488fKuyTB1U9TQcs2hdaRR9Fa1XHqxRiIOb32UnruQVkMDcE6kBNYlhYvNar4cmp7loHcOS11qpXnQPm1usmW50dC2eo+TN2tsP+mteFsPwqH16R+0Ou09RDuDm74yREO3eTOkqa2VX6o1rNi1aqnrTuvfLrthCqP1urSStI5rmD3sDlyTVoq9AnG5lEaTlm+ToRpaM1vOUE/NmDKgeSYvyoCNGtc34qCdwhJvBpWC1FRyyO6dndJzDY2Qh/UmpKbFVHzr0tNz5ZnrGNVdyxJbxtQgsO6yHKGVhpRBKk8GTNMgG0ropkFl+zte8sTG+YDjxK5vxEFnOUpcc5BrrDMVljDanJA7isaPN0ziDoWoAqQgHmUjrjrR+lghlL2v8FztoNEAsIOGK/chXqqtcoS2aVi3WZxGiduuL6FVN7tHQP60r0Xcr3Ym7eGqWw2hu2jmZbxQq52ntjLm8m57SSHupPiEX4yYNE3hdXTTxksthbrmOTah4w0oC9LWs5Siime5SRO6hMxX9/BmuLQqmoSpmTx1lJT7bUsbykfHKC4d2bQkUn6E01YvfvNcPQlvO54r5LKHubTOJg0+xzuUSkPrWe0YlrStvDql/ZAqg81fbSRtTd1T2/4lvv7JELqNzJpih5RlLtI0oNo2a9ZZxI0+rrpI+kfu8k5hiszyXNTfuPi1VJAWT7WH3UpvMurWVZqWIh2lf+TSt75TZGbqqUT+LTkjUqfsZOyNoMEmJyOfqe4fueR3OWIy9z2ovwnSZFCp7eaoBHqeqsvJsA4oJfOyPBdzk9igio2qOdZXJxtHSnNYYdrIfB+eiypVjPSPHBPakrl6LqqsQkY7nKSDRhww4adf+bX5qfzwSMXmYPB/kuVkHKenOFklAlciV6wKo/xr5LbD4hUV94X6v74rZoX6fworZgUIfeYqKuaBSwh97ioq5oEFa2he8Lrwsu0qKtYX11520NC4J/Zvb1RUrCOu3S8O3xmF3Njxcuil/ZcHKyqmgTMv/JPGXXerkP8F4eE6AEs4uhQAAAAASUVORK5CYII="},2636:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAA4CAYAAABUv9KRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAoeSURBVHgB7Z3NeVQ5E4Xl75s9sJsddgTgCLAjACIAIjBEAESAicA4AiACmwgwEdhEACxn5dHb49NzLKT74251u+/oPE/R7tv6KUmlUt1SSWyFf3E30kGkvStqaLjtOIt0GOlYD7auPrcjnVx9NjRsGi4i7fMpgT4PTZgbNhsXkXb/H/95fkUNDZsMTOa/EOijSH+GhoYJAJPjMjQ0TAT/Cw0NE0IT6IZJoQl0w6TQBLphUvgjVMT29nY4ODgId+/eDTfB6elpOD4+Hp2PesHFxUVYJij30aNH4fPnz+Hnz5+zdn38+DF8+fIlvHnzpjf/3t5eeP36dXj//n349OlTNs2zZ8/C8+fPw6tXr8LZ2Vm4rRjb9lXisgbFwb/88ePH5aI4OTkZXa8QO3qpbfrw4cOs3CdPnlyr6+joaFD+KKiz9HyW0sAziMK/VN6XMZ5RiH/r56FtXxVVMzliQ2+smR1oNWgoorDNPtFuaNNlAk309OnTonadKt69exfOz8+XMp61UU2gteznwHL94sWLOfWZFV1lpWDJRpgpk4ngeQ8PD3+baHzHDAA8x0TiGYNIWY6HDx/OqGtgvQwoLQPcuXNnVidLNvX0tY8ylZ4y+9LzO+lJCy+enj5RGaSJK+AsTQkoCCmUly9fZttD/hJvmE/8BuXy1kAV1R9ndKcpwe+iPtOka4kOybIIYsfPluzU7IgCfW05j8J5bdkkHyYO38V/HIR5fpkc1BMKyy7miMr4+vXrnJ9gJgft5TfSqS+0nOdMDvUTv0XBmP0O77k+4Dnlk17tgMRzyoPaWTLPotDP05A+TsBrbU/b4iYiaQH9rr5TX1Sk9Qj0GAwVaDrLBxsevIMl5HSwp9dgp4IBonkxSqCdEFIJlwuTl6lJpjamAq08apPKLNWpSSQe1Wb1g8pT/pTHHKXt9rZ7Pgk1Zep3TQD9Tl21ZA6q6uUAb9++DTfFgwcP5jbxEGhJYxkHLNUsl3xi5uA1gUin5ZPv8oawXLJsulmBeTAGMg9YalUGdTvce0H9qVnggBfAku11dKX3NunvND3eCfGW8jcGlC98//59zp/4ph80hjyvbYdXF+hFXDreGX1gwOhEd9XxN88oB/sZMJAIOcKs3wTsScCLHwMVFUwYC00IyqB+lVnC0AHGjeeC1yWEt+nlDRelC31tTGZjRS8uDPz+/v6MECrw+PHjeToJNhMNocCnDJgQEN8ZAGm0scLBBNRKUMrv3hf9XfI5y6PCaqVySVtKz+9MKPUH/NCWZQjVmJdz6qN/6XsmtvNeE5MRaJkb7lJTR8rsADI9GBzSStPxSXrKYXmPtuh882QMKFtv9pThUFnUjRuM30mLR6bkCqQ8tBwTMNqfs3x8llyZ0uSsDJQPH7RrEdNPk4Gyhros4YE6mVzwLL4x9WqiusmxKmBKxJeX354jDPyGEEk7MOiyNQUGAK0uE4R85HGBZjARDp8EuB3dzGFVkFakDLcnqY/0mmSkYdBdSFSHl4kQ8BwtDX79+lXUdDzf3d2dacZ79+7N+oQJI56pm3Z6fvqjC+pXTcRS20knzQxYDeFbvJB2FT78Km+b8nIsUsaQnbVGjZxacFLDpNAEumFSmIwNXYK/PGHb3eYIthzgH9tZ9jy+XuxY3guWHU04BUxaoBEG9wMj0Ds7OwttJKwK2uTpCszi5W6VPt5NwKRNjjQYxj0OtxkIMxOxL8owp6G1O/pfxaQFWgPrZsaqIr4WAVvnfkgBTby1tTUnvuMSdIFmojIJ8PVuQhtroor7ZN1uOwXlAIKQxE/t4JhlkEcfDg309/betqD7VdJkbWiPAdF2sF6s0Nw529ODZ6T9ZKa4xszl9W1hzys+9EI65EXON3P60otnz5MGL+XK4Hc3TUrtUlrggUx6WfVNG69fu7Nd5dZClZmybg2damTXYAofTUmhmwqVJLY5F6tNTHIacuqxzXw/ODjI5vVwyhJ5Ph33KpG3qwRPD9/iNQW8pysCoaDeb+T30OA0pDRXNu0hrnoRWRhBdQpep0Arlhn48itBKZkdLtD+d2nw/YydDySD14U+k0Dxx+LVDxksItAK/veycwcs0vqc7zTO3WPDXYmQNk0/ZDIvgeoUvE6BVtA8cA3nz3O2aSrE0lgILqQDAYKf8kg1E4H2qoPBTsvuEtJUCwLKL+UhvfoKcICAZ6JcmekJFecPgfTJ6s/VL6xAkNKpbD8dk+ubFRz+rVPwOgVapzaAD0yf2ZEKXe4kiwu1D7wPWm5QIR2fkoB2tSEn1Co7J9h9L4XOd2mF8Da4wKf1e5/6OIE+3sae4r8B1Sl4XQLt1xj4USdRl9nhAp3LC+nIkiCNUxKG0sCCVDBKfZATbCZHabLmBNYneUlLumD60SpHzqbXRO3yIPWZe8uiyfmh3bvB8SniiJ3cA9G1AVHyLiieWsht1JTyemhlKW8KQjLZ3SQk1E/H084xscVeV8nr4M9Lwfy5vOpH+lSxzynJC7PxR7BWDd9U6LvTQ6dLcujaHiceWRg7QDc5NABw+RGrTX5dO8AnMcd9W/ljTpr0IVeXt2eZdd0EkxJonSsEXYc/1ek6LJtDl9Ddv39//vfYuJBFNRSrDHzL9+wHF0pYZewKQf/rxKQE2rUxJyNKncv2sASitMnSddrbtVBOmEpCm56AuUnknybqmCU8zVNqc1+7SvBT5X6sbR241ae+deRoKNzc0OHXHPhNaUtmB8/Tk9Z63rdryJEjHcYt8Zfa00Ohw7xCTvByyz7pNOHhL8e38zdGoOlPmUGseOu+vLHK2+aQi2aGXuY4xMvh3g3QlZY3dechZLwcOW9Bly839UOnO2Oph6PLDy2fc+r6owyv3/nz9tOmXN6u+vEpOzy/Iwzw3pRuR8q5MitQnYL7BFrCsD3gltIhAp1uLHSlLbne0s0FoNuX3O0F+J4KYYpS3tLWO+S7nOIjt5uX83Wnu4C6kqw0YfV7ynvqdnSU+M5tSlGu2i/ehrgqN1Kg/W423+rNYYhA+6B0ab9ceg1guvXtO4sO8qYDk5ZXan+XMEOsHn19R105becrj6ftEjwHQpfTro4u3j2qsYTSnXzLomo2NDZYlwtHt4RuX10i3oUhEWr4aOWn1TVXXdBVBqBky+r6ANmevEx++/atN3oMfvEdY2+rDvLmItNSUJ+uOSCve1Tor676yUu98K2X2jQt9i2+bexo8aZrEUovdEM9F7q2QLyLB8rXsbFVHIGrMlPSQJiSRuhLs4Kt0qz2GntZumvodu3C+qiqhmZ3y7XFTcrgZEZDw1BUddux9Na++qmhwdHu5WiYFCZ/L8cY+EbJ2DsveFnzchrWg/Z/fTdMCoNMjnVHUDU0DAUa+iTSXmho2HycoaH7dyEaGjYDh2hoYgq5an47NDRsLi4i7aCh2evcv3rQ0LCJuAj/yPD8pZAHO5HYtK+/2d7QsBycRuI/j9kNVwr5b1C81oQQaDv2AAAAAElFTkSuQmCC"},2637:function(e,t,r){},2638:function(e,t,r){},2755:function(e,t,r){"use strict";r.r(t);var n=r(1),i=r.n(n),o=r(140),s=r(47),a=r(1037),u=r(2796),l=r(1046),c=r(2226),h=r.n(c),d=(r(2613),r(1393)),f=r(2614),p=r.n(f),m=r(2615),g=r.n(m),y=r(2616),b=r.n(y),v=r(151),w=r(1021),M=r(5),x=(r(2617),r(11)),S=r.n(x);const _=(e,t)=>
2{let r={};t.forEach(e=>{r[e.text]=e.key});let n=e.map(e=>{if(r[e])return r[e]});return 1===n.length&&(n=n.filter(e=>1!==e)),n};var k=r(710),A=r(2249),j=r(1015);var E=Object(o.connect)(e=>{var t,r;return{tags:null===e||void 0===e||null===(t=e.BatchReducer)||void 0===t||null===(r=t.batchVideo)||void 0===r?void 0:r.videoTags}},e=>({addBatchTag:t=>e(k.a(t)),addFolder:t=>e(k.c(t)),editFolder:t=>e(k.f(t))}))(e=>{const{t:t}=Object(A.a)();let{closeModal:r,EditModalData:o,folderStack:a,batchCode:u,ModalType:l}=e;const c={display:"flex",flexDirection:"column",alignItems:"flex-start",marginTop:"8%"},[h,d]=Object(n.useState)([]),[f,p]=Object(n.useState)([]),[m,g]=Object(n.useState)(""),[y,b]=Object(n.useState)(),[v,w]=Object(n.useState)(!0),[x,S]=Object(n.useState)([]);Object(n.useEffect)(()=>{if("edit"==l){if(o.folderName&&g(o.folderName),o.folderTags){let e=o.folderTags.map(e=>e.name);p(e)}o.folderId&&b(o.folderId)}},[o]),Object(n.useEffect)(()=>{if(e.tags){let t=e.tags.map(e=>({key:e.id,value:e.name,text:e.name}));d(t)}},[e.tags]),Object(n.useEffect)(()=>{m.length>=3?w(!1):w(!0)},[m]);const k=()=>{if((e=>{let t=0;for(let r of e)" "===r&&t++;return t===e})(m))return M.toastr.error("ERROR",t("routes.batches.batchVideos.videoModals.addFolderModal.toastr.folderNameContainsBlank","Folder name only contains blank spaces"));if(m.length>50)return M.toastr.error("ERROR",t("routes.batches.batchVideos.videoModals.addFolderModal.folderNameIsTooLong","Folder name is too long"));let n=0;a.length>0&&(n=a[0]);let i=_(f,h);"edit"==l&&(e.editFolder({batchCode:u,tagsIdColl:i||[],folderName:m,folderId:y,parentFolderId:n}),r()),"add"==l&&(e.addFolder({batchCode:u,tagsIdColl:i,folderName:m,parentFolderId:n}),r())};let E="add"===l?t("routes.batches.batchVideos.videoModals.addFolderModal.title.addFolder","Add Folder"):"edit"===l?t("routes.batches.batchVideos.videoModals.addFolderModal.title.editFolder","Edit Folder"):null,T="add"==l?t("routes.batches.batchVideos.videoModals.addFolderModal.button.addFolder","Add Folder"):"edit"==l?t("routes.batches.batchVideos.videoModals.addFolderModal.button.updateFolder","Update Folder"):null;return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.u.Header,{style:{borderRadius:"4px 4px 0px 0px"}},E),i.a.createElement(s.u.Content,null,i.a.createElement(s.k,{centered:!0,verticalAlign:"middle"},i.a.createElement(s.j,{className:"form-container",style:{width:"75%"},onSubmit:k},i.a.createElement(s.j.Input,{style:c},i.a.createElement("label",{className:"modal-label"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.folderName"},"Folder Name")),i.a.createElement(s.p,{type:"text",name:"category",onChange:e=>g(e.target.value),placeholder:t("routes.batches.batchVideos.videoModals.addFolderModal.placeholder.physicsQuestionPapers","Eg:Physics question papers"),value:m})),i.a.createElement(s.j.Input,{style:c},i.a.createElement("label",{className:"modal-label"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.label.category"},"category")),i.a.createElement(s.h,{name:"category",label:"Category",options:h,multiple:!0,onChange:(e,t)=>
2{p(t.value)},placeholder:t("routes.batches.batchVideos.videoModals.addFolderModal.placeholder.selectTags","Select tags"),search:!0,disabled:v,allowAdditions:!0,onAddItem:(t,r)=>{let{value:n}=r;e.addBatchTag({batchCode:e.batchCode,name:n,default:1}),d([...h,{text:n,value:n}])},selection:!0,size:"mini",fluid:!0,value:f})),i.a.createElement(s.b,{disabled:v,onClick:()=>k(),primary:!0,size:"large",fluid:!0,className:"submit-button"},i.a.createElement("span",{className:"submit-button-text"},T))))))}),T=(r(25),r(2618),r(1772),r(152)),C=r(2619),O=r.n(C),R=r(4),I=r(1340),B=r(1423),P=r(49),N=r(1191),D=r.n(N),U=r(2780),L=r(2620),F=r.n(L);const q="https://media.giphy.com/media/jAYUbVXgESSti/giphy.gif",z=`https://${T.a}-cp-assets-public.classplus.co/cams/image-coming-soon.jpg`,V=R.B.API_BASE_URL;class H extends i.a.PureComponent{constructor(){var e;super(...arguments),e=this,this.state={files:[],allUploaded:null,filesMeta:[],ids:[],descriptions:[],titles:[],viewModal:!1,uploadDestinationLoading:!0,initUploadRes:{},uploadVideoFlow:null===P.f||void 0===P.f?void 0:P.f.CP_BACKEND,directUpload:!1,maxFileSizeLimitInBytes:5632e6,maxFileSizeLimitInGB:5,maximumNumberOfFiles:10},this._mounted=!1,this._axiosCancelSrc=null,this._input=null,this._btn=null,this._reset=null,this.getVideoUploadDestination=()=>{S()({method:"GET",url:"/cams/uploader/video/videoUploadDestination",baseURL:R.B.API_BASE_URL,headers:{...this.getHeader()}}).then(e=>{var t,r,n,i,o;this.setState({uploadDestinationLoading:!1,uploadVideoFlow:null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.uploadVideoFlow,directUpload:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.directUpload,maxFileSizeLimitInBytes:null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.maxFileSizeLimitInBytes,maxFileSizeLimitInGB:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.maxFileSizeLimitInGB,maximumNumberOfFiles:null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.maximumNumberOfFiles},()=>{})}).catch(()=>{this.setState({uploadDestinationLoading:!1},()=>{})})},this.abortAlibabaVideoUpload=e=>{console.log("abortAlibabaVideoUpload");const{initUploadRes:t,uploadVideoFlow:r}=this.state,n=t[e];if(console.log("abortAlibabaVideoUpload :: videoInit :: ",n),console.log("abortAlibabaVideoUpload :: initUploadRes[index] :: ",t[e]),r===P.f.DRM_ENABLED)return S()({method:"POST",url:"/cams/uploader/video/drm/abortMultipartUpload",baseURL:R.B.API_BASE_URL,data:{fileKey:null===n||void 0===n?void 0:n.fileName,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}});r==(null===P.f||void 0===P.f?void 0:P.f.CP_BACKEND)?S()({method:"POST",url:"/cams/uploader/video/abortMultipartUpload",baseURL:R.B.API_BASE_URL,data:{ossFileName:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}}):r===P.f.AZURE&&S()({method:"POST",url:"/cams/uploader/video/azure/abortMultipartUpload",baseURL:R.B.API_BASE_URL,data:{azureFilePath:null===n||void 0===n?void 0:n.filePath,uploadId:null===n||void 0===n?void 0:n.uploadId},headers:{...this.getHeader(e)}})},this.getInitUploadData=(e,t)=>{this.setState(r=>({initUploadRes:{...null===r||void 0===r?void 0:r.initUploadRes,[t]:e}}))},this.getHeader=e=>{var t,r,n;const i=null===this||void 0===this||null===(t=this.state)||void 0===t?void 0:t.initUploadRes[e],o=+new Date,s=o+"|E0CnImkXprTDJ6Om0kcV";let a=D.a.createHash("md5").update(s).digest("hex"),u=null!==i&&void 0!==i&&i.endPoint&&e+""?{endPoint:null===i||void 0===i?void 0:i.endPoint,accessKeyId:null===i||void 0===i?void 0:i.accessKeyId,accessKeySecret:null===i||void 0===i?void 0:i.accessKeySecret,securityToken:null===i||void 0===i?void 0:i.securityToken,bucket:null===i||void 0===i?void 0:i.bucket}:{};return{"Content-Type":"application/json",signature:a,ex:o,"Api-Version":R.a,"x-access-token":null===this||void 0===this||null===(r=this.props)||void 0===r||null===(n=r.persistedData)||void 0===n?void 0:n.token,...u}},this.getFilePrefix=()=>`mpup_classplus_${Date.now()}_production_CID_${this.props.courseId}`,this._isAllUploaded=()=>{let{filesMeta:e}=this.state;0===Object.values(e).filter(e=>"uploaded"!==e.status).length&&this.setState({allUploaded:!0})},this.onUploadComplete=(e,t)=>
2{this._setFileMeta("uploaded",t,{thumbnail:z})},this.onUploadSuccess=(e,t,r)=>{this.processFile(e,r)},this.onRestrictionFail=(e,t,r)=>{const{t:n}=this.props;M.toastr.error(n("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),t.message),this.cancelFile(r)},this.onUploadError=(e,t)=>{const{t:r}=this.props;M.toastr.error(r("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),r("components.contentStore.addContent.components.uploader.uploader.toastr.internetMayNotBeConnectedRetry","Internet may not be connected, Retry again later")),this._setFileMeta("error",t,{error:"Try again to upload file"})},this.onError=(e,t)=>{const{t:r}=this.props;M.toastr.error(r("components.contentStore.addContent.components.uploader.uploader.toastr.unableToUpload","Unable to upload"),r("components.contentStore.addContent.components.uploader.uploader.toastr.internetMayNotBeConnectedRetry","Internet may not be connected, Retry again later")),this._setFileMeta("error",t,{error:"Try again to upload file"})},this.onUpload=(e,t)=>{this._setFileMeta("uploading",t)},this.onFileRemove=(e,t)=>{M.toastr.error("File Removed"),this.cancelFile(t)},this._setFileMeta=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.setState(e=>{let{filesMeta:i}=e;i=JSON.parse(JSON.stringify(i));let o={...i[r]};return"uploaded"===t?(o.uploaded=!0,o.error=null,o.thumbnail=n.thumbnail,o.status="uploaded"):"uploading"===t?(o.uploaded=!1,o.error=null,o.thumbnail=q,o.status="uploading"):"paused"===t?(o.uploaded=!1,o.error=null,o.thumbnail=z,o.status="paused"):"error"===t?(o.uploaded=!1,o.error=n.error,o.thumbnail=z,o.status="error"):"cancelled"===t&&(o.uploaded=!1,o.error=null,o.thumbnail=null,o.status="cancelled"),i[r]=o,console.log(i,"fileMetafileMeta"),{filesMeta:i}},()=>{e._isAllUploaded()})},this.processFilePayload=(e,t)=>{var r,n;let i=e.name;const{contents:o,courseDetails:s}=this.props,{uploadVideoFlow:a}=this.state,u=s&&s.videoRestrictions.isWebVideoAllowed,l=s&&s.videoRestrictions.isVideoRestricted,c=s&&s.videoRestrictions.videoMaxCount,h=s&&s.videoRestrictions.videoMaxDuration;s&&s.resources;this.props.courseId;let d=new URLSearchParams(window.location.search).getAll("fId"),f=d.length>0?d[d.length-1]:0;return{order:1e4*(t+1)+(o[o.length-1]||{order:0}).order,fileName:this.state.titles[t]||e.name,description:this.state.descriptions[t]||"",uuid:i,folderId:f,courseId:214965,batchId:null===(r=this.props)||void 0===r?void 0:r.batchId,batchCode:null===(n=this.props)||void 0===n?void 0:n.batchCode,sourceType:1,isWebVideoAllowed:u||0,isVideoRestricted:l||0,videoRestrictions:{maxCount:c||-1,maxDuration:h||-1}}},this.processFile=(e,t)=>{const r=this.processFilePayload(e,t);return S.a.post(V+"/cams/uploader/video/confirmRequest",r,{headers:{"x-access-token":this.props.persistedData.token,"Api-Version":R.a}}).then(e=>{let{data:r}=e;const{t:n}=this.props;console.log(r);let{message:i,thumbnailUrlList:o}=r;M.toastr.success(n("routes.Batches.components.BatchVideos.Components.VideoModals.AddVideoModal.uploadSuccessfulMsg1","Upload successful"),i),this._setFileMeta("uploaded",{thumbnail:o&&o[0]}),this.setState(e=>{const n=e.ids.slice();return n[t]=r.idList[0],{ids:n}})})},this.onAlibabaOrTextBookDrmUploadComplete=(e,t)=>{const{t:r}=this.props;let{message:n,thumbnailUrlList:i}=e;M.toastr.success(r("routes.Batches.components.BatchVideos.Components.VideoModals.AddVideoModal.uploadSuccessfulMsg2","Upload successful"),n),this._setFileMeta("uploaded",t,{thumbnail:i&&i[0]}),this.setState(r=>{var n;const i=r.ids.slice();return i[t]=null!==e&&void 0!==e&&e.data?null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.idList[0]:null===e||void 0===e?void 0:e.idList[0],{ids:i}})},this.onAlibabaOrTextBookDrmUploadFailure=(e,t)=>{let{message:r="error"}=e;this._setFileMeta("error",t,{error:r})},this.handleEnablePreview=()=>{let e={courseId:this.props.courseId,isSamplingEnabled:1};const{t:t}=this.props;this.props.makeApiCall("/v2/course/edit","PATCH",e,()=>{this.setViewModal(),this.props.closeHandler(),M.toastr.success(t("components.c
2ontentStore.addContent.components.uploader.uploader.toastr.courseSamplingEnabledSuccessfully","Course Sampling Enabled Successfully"))},()=>{console.log("Api Error")},!0)},this.setViewModal=()=>{this.setState({viewModal:!this.state.viewModal},()=>{this.state.viewModal||this.props.closeHandler()})},this.fileComponent=(e,t)=>{let{titles:r,descriptions:n,filesMeta:o,uploadVideoFlow:s,directUpload:a}=this.state,u=this.state.filesMeta[t];const l=this.processFilePayload(e,t);return"cancelled"===u.status?null:i.a.createElement(i.a.Fragment,null,i.a.createElement(B.a,{meta:u,title:r[t],description:n[t],setTitle:this.setTitle.bind(this),setDescription:this.setDescription.bind(this),index:t,key:t,onCancel:()=>{this.cancelFile(t)},onComplete:this.onUploadComplete,onRestrictionFail:this.onRestrictionFail,onUploadError:this.onUploadError,fileNamePrefix:this.getFilePrefix(),onError:this.onError,onFileAdded:this.onFileAdded,onFileRemove:this.onFileRemove,onUpload:this.onUpload,file:e,onUploadSuccess:this.onUploadSuccess,uploadVideoFlow:s,directUpload:a,aliBabaUploadData:l,onAlibabaOrTextBookDrmUploadComplete:this.onAlibabaOrTextBookDrmUploadComplete,onAlibabaOrTextBookDrmUploadFailure:this.onAlibabaOrTextBookDrmUploadFailure,getInitUploadData:this.getInitUploadData,showVideoTags:!0}))}}componentDidMount(){this.setState({uploadDestinationLoading:!0}),this.getVideoUploadDestination(),this._mounted=!0}componentWillUnmount(){var e;let t=this.props.match.params.folderId;this._mounted=!1,this.props.getBatchContents(void 0,t),(null===this||void 0===this||null===(e=this.state)||void 0===e?void 0:e.filesMeta)&&this.state.filesMeta.forEach((e,t)=>{"uploading"==(null===e||void 0===e?void 0:e.status)&&this.abortAlibabaVideoUpload(t)})}_handleUpload(e){const{maximumNumberOfFiles:t,maxFileSizeLimitInBytes:r,maxFileSizeLimitInGB:n}=this.state,{t:i}=this.props;let o=!1,s=!1,a=Array.from(e.target.files);if((null===a||void 0===a?void 0:a.length)>t)return void M.toastr.warning(`${i("components.contentStore.addContent.components.uploader.uploader.noOfile1","You can upload")} \n ${t} \n ${i("components.contentStore.addContent.components.uploader.uploader.noOfile2","file(s) at a time")}`);let u=a.map((e,t)=>(s=!(!s&&Object(P.q)(null===e||void 0===e?void 0:e.type,null===e||void 0===e?void 0:e.name)),(null===e||void 0===e?void 0:e.size)>r&&(o=!0),{status:null,fileIndex:t,error:null,thumbnail:z}));o?M.toastr.warning(`${i("components.contentStore.addContent.components.uploader.uploader.fileSizeErr","You can upload file of max size")} ${n} gb`):s?M.toastr.error(i("components.contentStore.addContent.components.uploader.uploader.fileTypeErrHead","File format not supported!"),i("components.contentStore.addContent.components.uploader.uploader.fileTypeErr","Please upload video files in mp4, mov, flv, avi, wmv, mkv, 3gp, mp3, aac format only")):this.setState({count:a.length,descriptions:Array(a.length).fill().map(()=>""),titles:Array(a.length).fill().map((e,t)=>a[t].name||t),ids:Array(a.length).fill().map(()=>null),files:a,filesMeta:u},()=>{const{count:e,descriptions:t,titles:r,ids:n,files:i,filesMeta:o}=this.state;console.log(e,"count++++",t,"descriptions++++",r,"titles++++",n,"ids++++",i,"files++++",o,"filesMeta++++"),this._reset.click()})}setTitle(e,t){const r=this.state.titles.slice();r[e]=t,this.setState({titles:r})}setDescription(e,t){const r=this.state.descriptions.slice();r[e]=t,this.setState({descriptions:r})}cancelFile(e){this.abortAlibabaVideoUpload(e),this.setState(t=>{const{filesMeta:r}=t;return 0===Object.values(r).filter((t,r)=>e!==r&&"cancelled"!==t.status&&null!==t.status).length?{files:[],filesMeta:{},titles:[],descriptions:[],ids:[]}:(this._setFileMeta("cancelled",e),{})},()=>{console.log(this.state,"cancelFile>>>>")})}refresh(){const{descriptions:e,ids:t,titles:r,filesMeta:n}=this.state,i=this.props.match.path.split("/")[2],o=new URLSearchParams(window.location.search).get("fId");let s=Object.values(n).map((n,s)=>new Promise(s=>{console.log({ids:t,meta:n}),"uploaded"===n.status&&t[n.fileIndex]?S.a.patch(`${R.B.API_BASE_URL}/v2/resource/content/${i}`,{resourceType:2,resourceId:t[n.fileIndex],contentType:2,name:r[n.fileIndex],description:e[n.fileIndex],batchCode:this.props.batchCode,batchId:i,courseId:"214965",tags:this.props.tagsIdColl,folderId:o||0},{headers:{"x-access-token":this.props.persistedData.token}}).then(e=>{this.props.closeModal()}).catch(e=>{console.log({err:e}),s({success:!1})}):s({success:!1})}));Promise.all(s).then(e=>this.props.closeHandler())}render(){this.props.match.path.split("/")[2];const{files:e,allUploaded:t,uploadDestinationLoading:r}=this.state,{t:n}=this.props;return i.a.createElement("div",{className:O.a.Uploader,style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",padding:e.length&&"24px 0"}},i.a.createElement("form",{style:{display:"none"}},i.a.createElement("input",{ref:e=>this._input=e,type:"file",name:"docs",onChange:this._handleUpload.bind(this),multiple:!0,accept:P.c,disabled:r||e.length,style:{display:"none"}}),i.a.createElement("input",{style:{display:"none"},type:"reset",ref:e=>this._reset=e})),i.a.createElement("button",{ref:e=>this._btn=e,onClick:()=>this._input.click(),style:e.length?{display:"none"}:{}},i.a.createElement("img",{src:F.a}),i.a.createElement("span",null,i.a.createElement(j.a,{i18nKey:"components.c
2ontentStore.addContent.components.uploader.uploader.uploadFromYourPC"},"Upload from your PC"))),i.a.createElement("div",{style:{display:e.length?"none":"block",marginTop:"16px"}},i.a.createElement("p",{style:{textAlign:"center"}},i.a.createElement(j.a,{i18nKey:"components.contentStore.addContent.components.uploader.uploader.supportedFileFormats"},"Supported file formats : mov, mp4, flv, avi etc."))),i.a.createElement("div",{style:{display:e.length?"none":"block",marginTop:"8px"}},i.a.createElement("p",{style:{color:"rgba(0, 0, 0, 60%)",textAlign:"center"}},i.a.createElement(j.a,{i18nKey:"components.contentStore.addContent.components.uploader.uploader.additionalInfoText"},"You can upload multiple videos in one go (max: 10)"," ",i.a.createElement("br",null),"* Max. upto 5Gb per video"))),i.a.createElement("div",{className:O.a.Filelist,style:{width:"100%"}},e.map(this.fileComponent),i.a.createElement("div",{style:{display:e.length>0?"block":"none"}},i.a.createElement("span",{style:{display:"block",textAlign:"left"}},i.a.createElement("strong",null,i.a.createElement(j.a,{i18nKey:"components.contentStore.addContent.components.uploader.uploader.selectTagsText"},"Select Tags"))),i.a.createElement(s.h,{name:"category",label:n("components.contentStore.addContent.components.uploader.uploader.categoryText","Category"),options:this.props.dropDowntags,multiple:!0,onChange:this.props.onTagChange,placeholder:n("components.contentStore.addContent.components.uploader.uploader.placeholderText","Select Tags"),search:!0,additionLabel:n("components.contentStore.addContent.components.uploader.uploader.additionalLabelText","Select Tags: "),allowAdditions:!0,selection:!0,onAddItem:this.props.handleAddition,size:"mini",fluid:!0,value:this.props.existingTags}))),i.a.createElement("br",null),i.a.createElement("br",null),i.a.createElement("div",{className:O.a.Uploader__Action},t?i.a.createElement(i.a.Fragment,null,i.a.createElement("button",{onClick:this.refresh.bind(this),disabled:!t,className:t?O.a.Uploader__Action__button:O.a.Uploader__Action__button__disabled},i.a.createElement(j.a,{i18nKey:"components.contentStore.addContent.components.uploader.uploader.button.done"},"Done"))):""),this.state.viewModal?i.a.createElement(I.a,{viewModal:this.state.viewModal,toggleViewModal:this.setViewModal,viewDetails:n("components.contentStore.addContent.components.uploader.uploader.youAreAddingThisCourseWouldYouLikeToEnablePreview","You are adding videos to this course, would you like to enable preview for this course?"),handleEnablePreview:this.handleEnablePreview}):"")}}var K=Object(o.connect)(e=>({courseId:e.storeData&&e.storeData.activeCourseDetails.metaData.id,persistedData:e.persistedData}),{makeApiCall:v.b})(Object(u.a)(Object(U.a)()(H)));const G={display:"block",margin:"0 0 2em"};var W=Object(o.connect)(e=>{var t,r,n,i,o,s,a;return{organizationData:null===e||void 0===e||null===(t=e.persistedData)||void 0===t?void 0:t.organization,youtubeKey:null===e||void 0===e||null===(r=e.persistedData)||void 0===r||null===(n=r.organization)||void 0===n?void 0:n.youtubeKey,videoDetails:null===e||void 0===e||null===(i=e.BatchReducer)||void 0===i||null===(o=i.batchVideo)||void 0===o?void 0:o.videoDetails,tags:null===e||void 0===e||null===(s=e.BatchReducer)||void 0===s||null===(a=s.batchVideo)||void 0===a?void 0:a.videoTags}},e=>({fetchVideoList:t=>e(k.j(t)),getYoutubeData:t=>e(k.k(t)),addBatchTag:t=>e(k.a(t)),addBatchVideo:t=>e(k.b(t))}))(e=>{var t;const{t:r}=Object(A.a)();let{youtubeKey:o,folderStack:a,batchCode:u,videoDetails:l,closeModal:c,batchId:h}=e;const[d,f]=Object(n.useState)(),[p,m]=Object(n.useState)(o),[g,y]=Object(n.useState)(),[b,v]=Object(n.useState)(!1),[w,x]=Object(n.useState)(!0),[S,k]=Object(n.useState)([]),[E,T]=Object(n.useState)([]);Object(n.useEffect)(()=>{if(e.tags){let t=e.tags.map(e=>({key:e.id,value:e.name,text:e.name}));k(t)}},[e.tags]);const C=(e,t)=>{T(t.value)},O=(t,r)=>{let{value:n}=r;e.addBatchTag({batchCode:e.batchCode,name:n,default:1}),k([...S,{text:n,value:n}])};Object(n.useEffect)(()=>{l.videoTitle&&y(l.videoTitle)},[l.videoTitle]);const R=()=>{const t=new RegExp("(?:(?:\\.be\\/|embed\\/|v\\/|\\?v=|\\&v=|\\/videos\\/)|(?:[\\w+]+#\\w\\/\\w(?:\\/[\\w]+)?\\/\\w\\/))([\\w-_]+)");if(d.match(t)){let r=d.match(t)[1];e.getYoutubeData({VideoLink:d,YoutubeKey:p,videoId:r}),v(!0)}else M.toastr.error(r("routes.batches.batchVideos.videoModals.addFolderModal.toastr.pasteValidYoutubeUrl","Please paste a valid youtube url"))};let I=window.location.href.includes("freeresource"),B=l.videoTitle||I?r("routes.batches.batchVideos.videoModals.addFolderModal.header.youtubeLink","Youtube link"):r("routes.batches.batchVideos.videoModals.addFolderModal.header.newVideo","New Video");return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.u.Header,{style:{borderRadius:"4px 4px 0px 0px"}},B),i.a.createElement(s.u.Content,null,null!==e&&void 0!==e&&null!==(t=e.organizationData)&&void 0!==t&&t.isBatchVideoUploadEnabled&&!I?i.a.createElement(K,{batchCode:u,batchId:h,courseDetails:null,contents:{},getBatchContents:()=>{},closeHandler:()=>{},closeModal:()=>{e.fetchVideoList({search:"",folderId:a[0],limit:10,offset:0,batchCode:u}),e.closeModal()},dropDowntags:S,handleAddition:O,onTagChange:C,value:E,tagsIdColl:_(E,S)}):i.a.createElement(s.k,{centered:!0,verticalAlign:"middle"},i.a.createElement(s.j,{className:"add-video-form",autoComplete:"off"},l.videoTitle?i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"add-video-link-text"},l.videoUrl),i.a.createElement(s.o,{className:"add-video-image",src:l.thumbnailUrl,size:"medium"}),i.a.createElement(s.j.Input,{style:{margin:"1.5em 0 2em",display:"block"}},i.a.createElement("label",{className:"add-video-title"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.label.title"},"Title")),i.a.createElement(s.p,{type:"text",name:"category",onChange:e=>y(e.target.value),placeholder:"Eg:Physics thermal video",value:g})),i.a.createElement(s.j.Input,{style:G},i.a.createElement("label",{className:"add-video-title"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.label.category"},"category")),i.a.createElement(s.h,{name:"category",label:"Category",options:S,multiple:!0,onChange:C,placeholder:"hiu hter",search:!0,allowAdditions:!0,selection:!0,onAddItem:O,size:"mini",fluid:!0,value:E})),b?i.a.createElement(s.b,{onClick:()=>(()=>{let t=0;a.length>0&&(t=a[0]);let r=_(E,S),n=(e=>{let t=e.replace("PT",""),r="";if(t.includes("H")){const e=t.split("H");r=r+e[0]+":",t=e[1]}else r+="00:";if(t&&t.includes("M")){const e=t.split("M");r=r+e[0]+":",t=e[1]}else r+="00:";if(t&&t.includes("S")){r+=t.split("S")[0]}else r+="00";return r})(l.videoDuration);e.addBatchVideo({tags:r,duration:n,key:l.videoKey,thumbnailUrl:l.thumbnailUrl,title:g||l.videoTitle,type:"youtube-hosted",url:l.videoUrl,parentFolderId:t,batchCode:u}),c()})(),primary:!0,size:"large",fluid:!0,className:"add-video-button"},i.a.createElement("span",{className:"add-video-button-content"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.button.addVideo"},"Add video"))):i.a.createElement(s.b,{onClick:()=>R(),primary:!0,size:"large",fluid:!0,className:"add-video-button"},i.a.createElement("span",{className:"add-video-button-content"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.button.checkVideo"},"Check video")))):i.a.createElement(i.a.Fragment,null,i.a.createElement(s.j.Input,{style:G},i.a.createElement("label",{className:"add-video-title"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.label.enterOrPasteLink"},"Enter or paste link")),i.a.createElement(s.p,{type:"text",name:"category",onChange:e=>{f(e.target.value),x(!1)},placeholder:r("routes.batches.batchVideos.videoModals.addFolderModal.label.placeholder","Eg:https://www.youtube.com/watch?v=sdfsdfadgga"),value:d})),i.a.createElement(s.b,{disabled:w,onClick:()=>R(),primary:!0,size:"large",fluid:!0,className:"add-video-button"},i.a.createElement("span",{className:"add-video-button-content"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.addFolderModal.button.checkVideo"},"Check video"))))))))});r(2621);var X=Object(o.connect)(null,e=>({renameVideoTitle:t=>e(k.m(t))}))(e=>{const{folderStack:t,batchCode:r,batchId:o,closeModal:a,ModalType:u,VideoDetails:l}=e,[c,h]=Object(n.useState)(l.title);return i.a.createElement("div",null,i.a.createElement(s.u.Header,{id:"modalDiv",style:{borderBottom:"1px solid rgba(34,36,38,.15)"}},i.a.createElement("span",{id:"file_rename_header"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.renameVideoModal.renameFile"},"Rename File"))),i.a.createElement(s.u.Content,{id:"modalDiv",style:{borderBottom:"1px solid rgba(34,36,38,.15)"}},i.a.createElement("div",{className:"file_rename_input_header"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.renameVideoModal.fileName"},"File Name")," *",i.a.createElement("input",{value:c,onChange:e=>{h(e.target.value)},className:"file_rename_input_box"}))),i.a.createElement(s.u.Actions,null,i.a.createElement("div",{className:"file_rename_action"},i.a.createElement("div",null,i.a.createElement(s.b,{className:"file_rename_discard submit-button",basic:!0,size:"small",fluid:!0,onClick:a},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.renameVideoModal.button.discard"},"Discard"))),i.a.createElement("div",null,i.a.createElement(s.b,{primary:!0,size:"small",fluid:!0,className:"submit-button",disabled:!(c.length>3),onClick:n=>{c.length>3&&(()=>{let n=0;t.length>0&&(n=t[0]),e.renameVideoTitle({newFileName:c,videoId:l.id,batchCode:r,parentFolderId:n}),a()})()}},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.renameVideoModal.button.save"}
2,"Save"))))))}),Z=r(2622),Y=r.n(Z);r(2623);var J=Object(o.connect)(e=>({}),e=>({deleteVideo:t=>e(k.e(t)),makeInActive:t=>e(k.l(t))}))(e=>{const{t:t}=Object(A.a)(),{folderStack:r,batchCode:n,batchId:o,closeModal:a,ModalType:u,VideoDetails:l}=e;let c="deleteVideo"==u?t("routes.batches.batchVideos.videoModals.deleteActiveModal.header,areYouSureAboutDeleting","Are you sure about deleting this video?"):"activeInactive"!=u||l.isHidden?"activeInactive"==u&&l.isHidden?t("routes.batches.batchVideos.videoModals.deleteActiveModal.header.makeVideoActive","Make Video Active?"):null:t("routes.batches.batchVideos.videoModals.deleteActiveModal.header.makeVideoInactive","Make Video Inactive?"),h="deleteVideo"==u?t("routes.batches.batchVideos.videoModals.deleteActiveModal.content.video_wont_be_visible","Video won't be visible to any student in the batch"):"activeInactive"!=u||l.isHidden?"activeInactive"==u&&l.isHidden?t("routes.batches.batchVideos.videoModals.deleteActiveModal.content.videoWillBeVisible","Video will be visible to all the student in the batch"):null:t("routes.batches.batchVideos.videoModals.deleteActiveModal.content.videoWontBeVisibleAble","Video won't be visible able to any student in the batch"),d="deleteVideo"==u?t("routes.batches.batchVideos.videoModals.deleteActiveModal.button.deleteVideo","Delete video"):l.isHidden?t("routes.batches.batchVideos.videoModals.deleteActiveModal.content.videoWontBeVisible.button.makeActive","Make Active"):l.isHidden?null:t("routes.batches.batchVideos.videoModals.deleteActiveModal.content.videoWontBeVisible.button.makeInActive","Make Inactive");return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.u.Header,{id:"modalDiv"},i.a.createElement("img",{id:"warningSign",src:Y.a}),i.a.createElement("p",null,c)),i.a.createElement(s.u.Content,{className:"modalDiv"},h),i.a.createElement(s.u.Actions,{style:{padding:"1rem"}},i.a.createElement(s.b,{primary:!0,onClick:()=>{if("deleteVideo"==u&&e.deleteVideo({batchCode:n,batchId:o,videosIdColl:l.id,parentFolderId:r[0]}),"activeInactive"==u){let t=0;r.length>0&&(t=r[0]),e.makeInActive({videosIdColl:l.id,isHidden:l.isHidden?0:1,batchCode:n,parentFolderId:t})}a()},style:{float:"right",marginBottom:"1rem"}},d),i.a.createElement(s.b,{onClick:a,style:{float:"right",marginBottom:"1rem"}},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoModals.deleteActiveModal.close"},"Close"))))});var Q=Object(o.connect)(e=>({}),e=>({resetYoutubeStore:()=>e(k.n())}))(e=>{const{batchId:t,batchCode:r,showModal:n,closeModal:o,folderStack:s,EditModalData:a,ModalType:u,VideoDetails:l}=e;return i.a.createElement(i.a.Fragment,null,n?i.a.createElement(w.a,{open:n,onClose:()=>o(),size:"small"},function(){switch(u){case"add":return i.a.createElement(E,{folderStack:s,batchCode:r,batchId:t,closeModal:o,ModalType:u});case"edit":return i.a.createElement(E,{folderStack:s,batchCode:r,batchId:t,closeModal:o,ModalType:u,EditModalData:a});case"video":return i.a.createElement(W,{folderStack:s,batchCode:r,batchId:t,ModalType:u,closeModal:()=>{o(),e.resetYoutubeStore()}});case"deleteVideo":case"activeInactive":return i.a.createElement(J,{folderStack:s,batchCode:r,batchId:t,closeModal:o,ModalType:u,VideoDetails:l});case"renameVideo":return i.a.createElement(X,{folderStack:s,batchCode:r,batchId:t,closeModal:o,ModalType:u,VideoDetails:l})}}()):null)}),$=r(2238),ee=r(1762),te=r(704),re=r(83),ne=r(68),ie=r(57);var oe=Object(o.connect)(e=>{var t,r,n,i;return{userType:null===e||void 0===e||null===(t=e.persistedData)||void 0===t||null===(r=t.user)||void 0===r?void 0:r.type,batchesCount:null===e||void 0===e||null===(n=e.BatchReducer)||void 0===n||null===(i=n.batchVideo)||void 0===i?void 0:i.batchCount,noAccessOpen:e.modal&&e.modal.noAccess&&e.modal.noAccess.open}},{makeApiCall:v.b,setModalStatus:te.c})(e=>{const{t:t}=Object(A.a)();let r=Object(ie.b)()?e.batchesCount:0;const[o,a]=Object(n.useState)(),[u,l]=Object(n.useState)(!1),[c,h]=Object(n.useState)(!1);return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.k,null,i.a.createElement(s.k.Row,null,i.a.createElement(s.k.Column,{computer:"13"},i.a.createElement("div",{className:"free-study-material-heading"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoHeader.videos"},"Videos"))),i.a.createElement(s.k.Column,{computer:"3",textAlign:"right",style:{display:"flex",justifyContent:"flex-end"}},3===e.userType?i.a.createElement(s.h,{disabled:e.isArchive||e.batchCode&&!1,className:"study-material-add-button",text:t("routes.batches.batchVideos.videoHeader.dropdown.add","Add"),item:!0,style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Lato ,Helvetica Neue, Arial, Helvetica, sans-serif",lineHeight:"1.28571em",fontWeight:700}},i.a.createElement(s.h.Menu,{style:{width:"200%"}},i.a.createElement("div",{className:"menu-item",style:{fontStyle:"normal",fontWeight:"normal",lineHeight:"17px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px"},onClick:()=>{a("add"),l(!0)}},i.a.createElement("img",{src:g.a,style:{marginRight:"16px",width:"16px",height:"16px"}}),i.a.createElement("span",null,i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoHeader.newFolder"},"New Folder"))),i.a.createElement("div",{className:"menu-item",style:{fontStyle:"normal",fontWeight:"normal",lineHeight:"17px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px"},onClick:()=>{a("video"),l(!0),Object(re.b)(ne.fb)}},i.a.createElement("img",{src:b.a,style:{marginRight:"16px",width:"16px",height:"16px"}}),i.a.createElement("span",null,i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoHeader.newVideo"},"New Video"))),r>1&&i.a.createElement("div",{className:"menu-item",style:{fontStyle:"normal",fontWeight:"normal",lineHeight:"17px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px"},onClick:()=>{h(!0)}},i.a.createElement("img",{src:p.a,style:{marginRight:"16px",width:"16px",height:"16px"}}),i.a.createElement("span",null,i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoHeader.importFromOtherBatch"},"Import from other batch")),i.a.createElement(d.a,{className:"float-right",inverted:!0,style:{backgroundColor:"#FF4058",fontSize:"9px",padding:"0 5px",height:"12px",borderRadius:"2px",lineHeight:"12px",marginLeft:"2%"},color:"yellow"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoHeader.new"},"NEW"))))):null))),i.a.createElement(Q,{ModalType:o,folderStack:e.folderStack,showModal:u,batchCode:e.batchCode,closeModal:()=>{l(!1)}}),c?i.a.createElement($.a,{videoFolderStack:e.folderStack,modalImportContentOpen:c,makeApiCall:e.makeApiCall,closeImportModal:()=>h(!1),section:"Videos"}):null,e.noAccessOpen?i.a.createElement(ee.a,{closeModal:()=>e.setModalStatus(!1,"noAccess"),overAllBatch:t("routes.batches.batchVideos.videoHeader.youDonotHaveAccess","You do not have access to other batches")}):"")}),se=r(1023),ae=r.n(se),ue=r(2624),le=r.n(ue),ce=r(2625),he=r.n(ce),de=r(2227),fe=r.n(de),pe=r(2228),me=r.n(pe),ge=(r(2626),r(2627)),ye=r.n(ge),be=r(1731);var ve=Object(o.connect)(e=>{var t;return{token:null===e||void 0===e||null===(t=e.persistedData)||void 0===t?void 0:t.token,user:e.persistedData&&e.persistedData.user,organization:e.persistedData&&e.persistedData.organization}},null)(e=>{var t,r,o,a;const{item:u,open:l,onClose:c}=e,[h,d]=Object(n.useState)(void 0),[f,p]=Object(n.useState)(!1);let m;null!==e&&void 0!==e&&null!==(t=e.organization)&&void 0!==t&&t.isWatermarkImg&&(m=(null===e||void 0===e||null===(r=e.organization)||void 0===r?void 0:r.wmUrl)||(null===e||void 0===e||null===(o=e.organization)||void 0===o?void 0:o.appIcon));null===u||void 0===u||u.liveSessionId;const g=null===u||void 0===u?void 0:u.contentHashId,y=null===u||void 0===u?void 0:u.isAgora;null===u||void 0===u||u.url;let b={};b={resourceId:g};return Object(n.useEffect)(()=>{(async()=>{try{const{data:t}=await S.a.get(R.B.API_BASE_URL+"/cams/uploader/video/jw-signed-url",{params:{...b,isAgora:y},headers:{"x-access-token":e.token}});t&&t.drmUrls?(p(!0),d(t.drmUrls)):(p(!1),d(t.url))}catch(t){console.log(t)}})()},[]),i.a.createElement(s.u,{basic:!0,size:"small",open:l},i.a.createElement(s.u.Content,null,i.a.createElement("div",{onClick:c,style:{cursor:"pointer",position:"absolute",top:"-20px",right:"0"}},i.a.createElement("img",{width:16,height:16,src:ye.a})),void 0!==h&&i.a.createElement(be.a,{options:{autoplay:!0,controls:!0,responsive:!0,fluid:!0,poster:u.thumbnailUrl,playbackRates:[.5,1,1.25,1.5,2],sources:[{src:h||u.url,type:"application/x-mpegURL"}],aspectRatio:"16:9"},drmUrls:f&&h,user:null===e||void 0===e?void 0:e.user,showMovingWatermark:null===e||void 0===e||null===(a=e.organization)||void 0===a?void 0:a.isWatermarkActive,watermark:m})))}),we=r(1541),Me=r.n(we),xe=r(1040),Se=r.n(xe);var _e=e=>{let{open:t,onClose:r,onOpen:n}=e;return i.a.createElement(s.u,{size:"small",open:t,onOpen:n},i.a.createElement(s.u.Content,null,i.a.createElement("div",{style:{display:"flex",flexDirection:"row-reverse",cursor:"pointer"},onClick:()=>r()},i.a.createElement("img",{src:Se.a,alt:"close-icon"})),i.a.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"32px"}},i.a.createElement("div",null,i.a.createElement("img",{src:Me.a,alt:"video-is-processing"})),i.a.createElement("div",{style:{marginTop:"16px"}},i.a.createElement("h3",null,i.a.createElement(j.a,{i18nKey:"components.ContentStore.CourseHome.processingVideo"},"Video is still processing"))),i.a.createElement("div",{style:{marginTop:"16px"}},i.a.createElement("p",{style:{fontSize:"16px"}},i.a.createElement(j.a,{i18nKey:"components.ContentStore.CourseHome.processingVideoLater"},"Please check back after a while"))))))},ke=r(458);var Ae=Object(o.connect)(e=>({persistedData:e&&e.persistedData}),null)(e=>{let{open:t,onOpen:r,onClose:o,singleFreeVideo:a,batchId:u,batchCode:l,...c}=e;const[h,d]=Object(n.useState)(!1),[f,p]=Object(n.useState)({name:a.title,de
2scription:a.description,thumbnailUrl:a.thumbnailUrl,resourceId:a.id,batchCode:l,batchId:u}),[m,g]=Object(n.useState)({}),y=Object(n.useRef)(),{t:b}=Object(A.a)(),v=async e=>{try{return await Object(ke.a)(e)}catch(t){console.log(t),d(!1)}};return i.a.createElement(s.u,{size:"small",open:t,onOpen:r},i.a.createElement(s.u.Header,null,i.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},i.a.createElement("div",null,b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.editVideoText","Edit Video")),i.a.createElement("div",{style:{cursor:"pointer"},onClick:o},i.a.createElement("img",{src:Se.a})))),i.a.createElement(s.u.Content,null,i.a.createElement(s.j,null,i.a.createElement(s.j.Input,{label:b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.titleInput","Title"),value:null===f||void 0===f?void 0:f.name,onChange:(e,t)=>{let{value:r}=t;p({...f,name:r})}}),i.a.createElement(s.j.TextArea,{label:b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.descriptionInput","Description"),onChange:(e,t)=>
2{let{value:r}=t;p({...f,description:r})}}),i.a.createElement("div",null,i.a.createElement("p",null,i.a.createElement("strong",null,b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.previewThumbnailText","Preview Thumbnail"))),h&&i.a.createElement(s.f,{active:!0,inverted:!0},i.a.createElement(s.r,{inverted:!0,content:"Loading"})),(null===m||void 0===m?void 0:m.previewThumbnailUrl)&&i.a.createElement("img",{height:100,width:100,src:null===m||void 0===m?void 0:m.previewThumbnailUrl}),i.a.createElement("div",null,i.a.createElement(s.b,{content:b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.chooseFileBtnText","Choose File"),labelPosition:"left",icon:"file",onClick:()=>y.current.click()}),i.a.createElement("input",{ref:y,type:"file",hidden:!0,onChange:async e=>{const{files:t}=e.target,{length:r}=t;d(!0);const n=[];for(let o=0;o<r;o++)n.push(t[o]);const i=await v(n);g({previewThumbnailUrl:i[0].url}),p({...f,thumbnailUrl:i[0].url}),d(!1)}}))))),i.a.createElement(s.u.Actions,null,i.a.createElement("div",{style:{marginTop:"16px"}},i.a.createElement(s.b,{onClick:o},b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.cancelText","Cancel")),i.a.createElement(s.b,{onClick:async()=>{try{await S.a.patch(`${R.B.API_BASE_URL}/v2/resource/content/${u}`,{...f},{headers:{"x-access-token":c.persistedData.token}}),o()}catch(e){console.log(e)}},style:{marginLeft:"16px"},color:"blue"},b("routes.Batches.components.BatchVideos.Components.videosList.components.EditManualVideoModal.saveChangesText","Save Changes")))))});var je=Object(u.a)(e=>{const[t,r]=Object(n.useState)(!1),[o,a]=Object(n.useState)(!1),[u,l]=Object(n.useState)(!1),[c,h]=Object(n.useState)({}),d=e.match.path.split("/")[2],{t:f}=Object(A.a)();let{singleFreeVideo:p,setVideoModalType:m,batchCode:g,isStudentOrParent:y,isArchive:b}=e;const v=!p.isYoutubeVideo||0===p.isYoutubeVideo,w=0===p.isProcessed&&0===p.isYoutubeVideo;let M="";
2p.tags.forEach((e,t)=>{t===p.tags.length-1?M+=e.name:M+=e.name+", "});let x=p.isHidden?""+f("routes.batches.batchVideos.videoList.singleVideo.makeActive","Make Active"):""+f("routes.batches.batchVideos.videoList.singleVideo.makeInactive","Make Inactive");return i.a.createElement(s.k,{computer:16,onClick:()=>{if(v)return w?l(!0):r(!0);p.url.includes("https")?window.open(p.url):p.url.includes("www")?window.open("https://"+p.url):window.open("https://www."+p.url)},style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"10px 0px",width:"100%",padding:"24px 0",borderBottom:"1px solid #e5e5e5",cursor:"pointer"}},i.a.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"99%"}},i.a.createElement("div",{style:{position:"relative"}},i.a.createElement("img",{className:"video-image",src:p.thumbnailUrl,style:{width:"120px",height:"90px",borderRadius:"5px"}}),i.a.createElement("div",{style:{position:"absolute",bottom:"8px",right:"7px",color:"white",fontSize:"12px",background:"#00000073",padding:"0px 5px"}},p.duration)),i.a.createElement("div",{style:{paddingLeft:"30px",display:"flex",flexDirection:"column",width:"100%"}},i.a.createElement("span",{className:"folder-name"},p.title),i.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"4px"}},i.a.createElement("span",null,p.createdByName),w&&i.a.createElement("span",{style:{backgroundColor:"#ffbc39",color:"white",padding:"2px 4px",fontSize:"14px",borderRadius:"8px"}},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.isProcessingText"},"Is Processing"))),1===p.isHidden&&i.a.createElement(s.q,{style:{fontSize:"12px",marginTop:"8px"}},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.inActive"},"Inactive")),i.a.createElement("p",{style:{marginTop:"8px"}},p.description),i.a.createElement("span",{className:"tag-container",style:{paddingTop:"12px"}},i.a.createElement("span",null,i.a.createElement("img",{src:fe.a})),i.a.createElement("span",{className:"tag",style:{paddingLeft:"8px"}},"\xa0\xa0",M," ")))),!y&&i.a.createElement("div",{style:{width:"1%",padding:"0px"},onClick:e=>{b&&e.stopPropagation()}},i.a.createElement(s.h,{disabled:b,item:!0,icon:"ellipsis vertical float-right"},i.a.createElement(s.h.Menu,null,i.a.createElement(s.h.Item,{onClick:()=>m("deleteVideo",p),style:{display:"flex"}},i.a.createElement("img",{src:le.a,style:{width:"20px"}}),i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.deleteVideo"},"Delete Video")),!v&&i.a.createElement(s.h.Item,{onClick:()=>(()=>{const{singleFreeVideo:t}=e;var r=document.createElement("input");r.value=t.url,r.style={display:"none !important"},document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)})(),style:{display:"flex"}},i.a.createElement("img",{src:me.a,style:{width:"20px"}}),i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.copyLink"},"Copy Link")),g?i.a.createElement(s.h.Item,{onClick:()=>m("activeInactive",p),style:{display:"flex"}},i.a.createElement("img",{src:he.a,style:{width:"20px"}}),x):null,v?i.a.createElement(i.a.Fragment,null,!w&&i.a.createElement(s.h.Item,{onClick:()=>{h(()=>({...p})),a(()=>!0)}},i.a.createElement("img",{src:me.a,alt:"SVGDelete",className:"mrighthalfrem"}),i.a.createElement("span",null," ",i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.edit"},"Edit")))):i.a.createElement(s.h.Item,{onClick:()=>m("renameVideo",p),className:""},i.a.createElement("img",{src:me.a,alt:"SVGDelete",className:"mrighthalfrem"}),i.a.createElement("span",null," ",i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singleVideo.rename"},"Rename")))))),t&&i.a.createElement(ve,{batchCode:g,batchId:d,item:p,open:t,onOpen:()=>r(!0),onClose:()=>r(!1)}),u&&i.a.createElement(_e,{batchCode:g,batchId:d,open:u,onOpen:()=>l(!0),onClose:()=>l(!1)}),o&&i.a.createElement(Ae,{batchCode:g,batchId:d,open:o,onOpen:()=>a(!0),onClose:()=>a(!1),singleFreeVideo:p}))}),Ee=r(2628),Te=r.n(Ee),Ce=r(2629),Oe=r.n(Ce),Re=(r(2630),r(1110));var Ie=e=>{const{t:t}=Object(A.a)();let{singleFolder:r,deleteFolder:n,userType:o,isArchive:a,onFolderClick:u,editFolder:l,setEditModalData:c}=e,h="";
2return r.tags.forEach((e,t)=>{t===r.tags.length-1?h+=e.name:h+=e.name+", "}),i.a.createElement("div",{onClick:()=>u(r.id)},i.a.createElement(s.k,{className:"cursor-free-resource",computer:16,style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"10px 0px !important",width:"100%"}},i.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"row",width:"99%"}},i.a.createElement("div",null,i.a.createElement("img",{className:"folder-image",src:Te.a})),i.a.createElement("div",{style:{paddingLeft:"60px",display:"flex",flexDirection:"column"}},i.a.createElement("span",{className:"folder-name"},r.name),i.a.createElement("span",{className:"folder-createdby",style:{paddingTop:"8px"}},r.createdByName),i.a.createElement("span",{className:"tag-container",style:{paddingTop:"12px"}},i.a.createElement("span",null,i.a.createElement("img",{src:fe.a})),i.a.createElement("span",{className:"tag"},"\xa0\xa0",h)))),3===o?i.a.createElement("div",{style:{width:"1%",padding:"0px"},onClick:e=>{a&&e.stopPropagation()}},i.a.createElement(s.h,{disabled:a,item:!0,icon:"ellipsis vertical float-right"},i.a.createElement(s.h.Menu,null,i.a.createElement(s.h.Item,null,i.a.createElement("div",{className:"flexrow alignCenter",onClick:()=>{l(),c({folderName:null===r||void 0===r?void 0:r.name,folderTags:null===r||void 0===r?void 0:r.tags,folderId:null===r||void 0===r?void 0:r.id})}},i.a.createElement("img",{src:Oe.a,style:{"padding-top":"0.5rem",marginRight:"0.5rem"}}),t("routes.batches.batchVideos.videoList.singlFolder.editFolder","Edit folder"))),i.a.createElement(Re.a,{headerContent:t("routes.batches.batchVideos.videoList.singlFolder.deleteFolderHeader","Deleting folder"),modalContent:i.a.createElement("p",null,i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.singlFolder.modalContent"}," Deleted folders will not be recovered, are you sure you want to proceed?")),dropdownText:t("routes.batches.batchVideos.videoList.singlFolder.deleteFolder","Delete folder"),deleteAction:()=>n(r.id)})))):null))},Be=r(2631),Pe=r.n(Be),Ne=r(132);r(2632);var De=Object(o.connect)(e=>{var t,r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,b,v,w,M,x,S,_,k,A;return{freeVideosData:null===e||void 0===e||null===(t=e.BatchReducer)||void 0===t||null===(r=t.batchVideo)||void 0===r?void 0:r.freeVideosData,isLoading:null===e||void 0===e||null===(n=e.BatchReducer)||void 0===n||null===(i=n.batchVideo)||void 0===i?void 0:i.isLoading,freeVideosFolder:null===e||void 0===e||null===(o=e.BatchReducer)||void 0===o||null===(s=o.batchVideo)||void 0===s?void 0:s.freeVideosFolder,videoCount:null===e||void 0===e||null===(a=e.BatchReducer)||void 0===a||null===(u=a.batchVideo)||void 0===u?void 0:u.videoCount,folderCount:null===e||void 0===e||null===(l=e.BatchReducer)||void 0===l||null===(c=l.batchVideo)||void 0===c?void 0:c.folderCount,searchTerm:null===e||void 0===e||null===(h=e.BatchReducer)||void 0===h||null===(d=h.batchVideo)||void 0===d?void 0:d.searchTerm,searchLoading:null===e||void 0===e||null===(f=e.BatchReducer)||void 0===f||null===(p=f.batchVideo)||void 0===p?void 0:p.searchLoading,offset:null===e||void 0===e||null===(m=e.BatchReducer)||void 0===m||null===(g=m.batchVideo)||void 0===g?void 0:g.offset,limit:null===e||void 0===e||null===(y=e.BatchReducer)||void 0===y||null===(b=y.batchVideo)||void 0===b?void 0:b.limit,hasMore:null===e||void 0===e||null===(v=e.BatchReducer)||void 0===v||null===(w=v.batchVideo)||void 0===w?void 0:w.hasMore,totalItemsLength:null===e||void 0===e||null===(M=e.BatchReducer)||void 0===M||null===(x=M.batchVideo)||void 0===x?void 0:x.totalItemsLength,userType:null===e||void 0===e||null===(S=e.persistedData)||void 0===S||null===(_=S.user)||void 0===_?void 0:_.type,isArchive:null===e||void 0===e||null===(k=e.BatchReducer)||void 0===k||null===(A=k.batchDetails)||void 0===A?void 0:A.isArchive}},e=>({fetchVideoList:t=>e(k.j(t)),fetchAllVideoData:t=>e(k.g(t))}))(Object(u.a)(e=>{const{t:t}=Object(A.a)(),[r,o]=Object(n.useState)(),[a,u]=Object(n.useState)(),[l,c]=Object(n.useState)(!1),[d,f]=Object(n.useState)(),[p,m]=Object(n.useState)(),[g,y]=Object(n.useState)(!1),[b,v]=Object(n.useState)();Object(n.useEffect)(()=>{g&&(clearTimeout(b),v(setTimeout(()=>{w(r)},300)))},[r]);const w=t=>{e.fetchVideoList({searchTerm:t,folderId:e.folderStack[0],limit:10,offset:0,batchCode:e.batchCode,sortBy:e.selectedSort})},M=()=>{o(""),e.fetchVideoList({folderId:e.folderStack[0],limit:10,offset:0,batchCode:e.batchCode,sortBy:e.selectedSort})},x=()=>{u("edit"),c(!0)},S=(e,t)=>{m(t),"deleteVideo"==e&&(u("deleteVideo"),c(!0)),"activeInactive"==e&&(u("activeInactive"),c(!0)),"renameVideo"==e&&(u("renameVideo"),c(!0))},_=e=>{y(!0),o(e.target.value)};let{freeVideosFolder:k,freeVideosData:E,folderStack:T,totalItemsLength:C,loading:O,searchLoading:R,userType:I,isArchive:B,onFolderClick:P,onBackClick:N,deleteFolder:D,batchCode:U,batchId:L,isLoading:F}=e;E.length,k.length;return i.a.createElement("div",null,i.a.createElement(s.k,null,i.a.createElement(s.k.Row,null,T&&T.length>=1?i.a.createElement(i.a.Fragment,null,i.a.createElement(s.k.Column,{computer:"1"},i.a.createElement("span",{style:{borderBottom:"none"},className:"cursor-free-resource",id:"back-button-batch-video",onClick:()=>N()},i.a.createElement(s.n,{name:"chevron left"}))),i.a.createElement(s.k.Column,{computer:"9",textAlign:"left"},i.a.createElement(Ne.a,{fontSize:"1.1rem",opacity:"1",style:{letterSpacing:"2px"}},i.a.createElement("span",{className:"study-material-static-text"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.total"},"TOTAL")," (",C,")"))),i.a.createElement(s.k.Column,{computer:"6",textAlign:"left",style:{display:"flex",justifyContent:"flex-end"}},i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},i.a.createElement(s.p,{transparent:!0,icon:"search",value:r,onChange:_,iconPosition:"left",placeholder:t("routes.batches.batchVideos.videoList.placeholder.searchVideos","Search videos"),style:{display:"flex",justifyContent:"flex-end"}}),""!==r?i.a.createElement("img",{src:Pe.a,alt:"ClearIcon",onClick:()=>{y(!1),M()},style:{cursor:"pointer"}}):""))):i.a.createElement(i.a.Fragment,null,i.a.createElement(s.k.Column,{computer:"10",textAlign:"left"},i.a.createElement(Ne.a,{fontSize:"1.1rem",opacity:"1",style:{letterSpacing:"2px"}},i.a.createElement("span",{className:"study-material-static-text"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.total"},"TOTAL")," (",C,")"))),i.a.createElement(s.k.Column,{computer:"6",textAlign:"left",style:{display:"flex",justifyContent:"flex-end"}},i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},i.a.createElement(s.p,{transparent:!0,icon:"search",value:r,onChange:_,iconPosition:"left",placeholder:t("routes.batches.batchVideos.videoList.placeholder.searchVideos","Search videos"),style:{display:"flex",justifyContent:"flex-end"}}
2),null!==r&&void 0!==r&&r.length?i.a.createElement("img",{src:Pe.a,alt:"ClearIcon",onClick:()=>{y(!1),M()},style:{cursor:"pointer"}}):null))))),i.a.createElement(s.z,{style:{marginTop:"20px",borderRadius:"2px",boxShadow:"0px 1px 4px rgba(0, 0, 0, 0.12)",border:"none",minHeight:"600px"}},i.a.createElement(s.k,{className:"pl-4"},i.a.createElement(s.z,{className:"segment-effect study-material-segment",loading:F},E&&k&&(E.length>0||k.length>0)?i.a.createElement(s.z.Group,{className:"segment-effect study-material-segment"},i.a.createElement(ae.a,{next:()=>{e.hasMore&&e.fetchVideoList({searchTerm:r||"",folderId:e.folderStack[0],limit:e.limit,offset:e.offset,batchCode:e.batchCode,sortBy:e.selectedSort})},hasMore:e.hasMore,loader:i.a.createElement(s.k,{centered:!0},i.a.createElement(s.k.Column,{stretched:!0,width:10},O&&i.a.createElement(s.r,{active:!0,inline:"centered"}))),style:{overflow:"visible","min-height":"0"}},k.map((e,t)=>i.a.createElement(i.a.Fragment,{key:t},i.a.createElement(s.z,{className:"segment-effect"},i.a.createElement(Ie,{userType:I,onFolderClick:P,isArchive:B,deleteFolder:D,editFolder:x,singleFolder:e,setEditModalData:f}))))),E.map((t,r)=>i.a.createElement(i.a.Fragment,{key:r},i.a.createElement(s.z,{className:"segment-effect"},i.a.createElement(je,{setVideoModalType:S,singleFreeVideo:t,batchCode:e.batchCode,batchId:e.batchId,isStudentOrParent:e.isStudentOrParent,
2isArchive:B}))))):3===I?i.a.createElement("div",{className:"emptyListDisplay row video-empty-state",style:{height:"70vh"}},i.a.createElement("img",{src:h.a,alt:"empty screen",style:{width:"160px",paddingBottom:"1rem"}}),i.a.createElement("p",{className:"empty-heading",style:{paddingTop:"1rem"}},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.youHaventUploadedAnyContent"},"You haven\u2019t uploaded any content yet.")),i.a.createElement("p",{className:"empty-subheading"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.clickOnTheAddButtonToUpload"},"Click on the Add button to upload content"))):i.a.createElement("div",{className:"emptyListDisplay row video-empty-state"},i.a.createElement("img",{src:h.a,alt:"student empty",className:"",style:{width:"160px"}}),i.a.createElement("p",{className:"empty-heading"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.videoList.noFiles"},"No files found")))))),i.a.createElement(Q,{batchCode:U,batchId:L,ModalType:a,showModal:l,closeModal:()=>{c(!1)},folderStack:T,EditModalData:d,VideoDetails:p}))})),Ue=(r(2633),r(2634)),Le=r.n(Ue),Fe=r(2635),qe=r.n(Fe),ze=r(2636),Ve=r.n(ze);function He(e){const{t:t}=Object(A.a)();return i.a.createElement("div",{className:"VideoCannotView"},i.a.createElement("div",{className:"VideoCannotView__Header"},t("containers.FreeResource.Videos.CannotView.videos","Videos")),i.a.createElement("div",{className:"VideoCannotView__Content"},i.a.createElement("img",{className:"VideoCannotView__Content--Img1",src:Le.a,alt:""}),i.a.createElement("div",{className:"VideoCannotView__Content--Para1"},t("containers.FreeResource.Videos.CannotView.cannotBeViewed","Video content can not be viewed on the web")),i.a.createElement("div",{className:"VideoCannotView__Content--Para2"},`${t("containers.FreeResource.Videos.CannotView.text1","Due to safety purposes we have restricted video content only to our application. Download the")} ${e.appName} ${t("containers.FreeResource.Videos.CannotView.text2","App on your phone to continue watching and learning seamlessly.")}`),i.a.createElement("div",{className:"VideoCannotView__Content--Footer"},i.a.createElement("img",{className:"VideoCannotView__Content--Footer__Img1",src:qe.a,alt:"",onClick:()=>window.open(e.appUrl)}),i.a.createElement("img",{className:"VideoCannotView__Content--Footer__Img2",src:Ve.a,alt:"",onClick:()=>window.open(e.appUrl)}))))}r(2637);const Ke=["createdAt","title"];var Ge=Object(o.connect)(null,e=>({fetchVideoList:t=>e(k.j(t))}))(e=>{const{t:t}=Object(A.a)(),r=t=>{e.onSortChange(t)};return i.a.createElement("div",{className:"sortContainer"},i.a.createElement(s.k.Row,null,i.a.createElement(Ne.a,{style:{margin:"0 0 1rem 0"},fontSize:"1 rem"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.sortBy.sortBy"},"SORT BY"))),i.a.createElement(s.z,{className:"segment-margin-top sort-segment",style:{borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.12) 0px 1px 4px",border:"none"}},i.a.createElement("div",{className:"sortList"},i.a.createElement(s.x,{className:"sort-radio",checked:e.selectedSort===Ke[0],label:t("routes.batches.batchVideos.sortBy.label.recentlyAdded","Recently Added"),onChange:()=>r(Ke[0])}),i.a.createElement(s.x,{className:"sort-radio",checked:e.selectedSort===Ke[1],label:t("routes.batches.batchVideos.sortBy.label.name","Name"),onChange:()=>r(Ke[1])}))))});r(2638);var We=e=>{let{onFilterChange:t,filters:r,checkboxValue:n,isLoading:o}=e;return i.a.createElement("div",{className:"studyMaterialFilter"},i.a.createElement(s.k.Row,null,i.a.createElement(Ne.a,{style:{margin:"0 0 1rem 0"},fontSize:"1 rem"},i.a.createElement(j.a,{i18nKey:"routes.batches.batchVideos.filterBy.filterBy"},"FILTER BY"))),i.a.createElement(s.z,{className:"filter-segment",style:{borderRadius:"2px",boxShadow:"0px 1px 4px rgba(0, 0, 0, 0.12)",border:"none"}},r&&r.length?r.map((e,r)=>i.a.createElement(s.k.Row,{key:r},i.a.createElement(s.d,{className:"filter-checkbox",checked:!n||-1!==n.indexOf(e.id),label:e.name,onChange:()=>t(e.id)}))):o?i.a.createElement(s.r,{active:!0,inline:"centered"}):null))};class Xe extends n.Component{constructor(e){super(e),this.onSortChange=e=>{this.setState({selectedSort:e},()=>{this.props.fetchVideoList({search:"",folderId:this.state.folderStack[0],sortBy:this.state.selectedSort,limit:10,offset:0,batchCode:this.props.batchCode})})},this.fetchVideoData=()=>{this.props.fetchVideoList({folderId:this.state.folderStack[0],sortBy:this.state.selectedSort,limit:10,offset:0,batchCode:this.props.batchCode}),this.props.fetchTags({batchCode:this.props.batchCode})},this.fetchBatchDetails=()=>{this.props.batchCode&&this.props.fetchBatchCount({limit:20,offset:0,batchCode:this.props.batchCode})},this.handleOnFolderClick=e=>{let t=[e,...this.state.folderStack];this.setState({folderStack:t},()=>{localStorage.setItem("localFolderStack",JSON.stringify(this.state.folderStack));const e=new URLSearchParams(window.location.search);e.set("fId",void 0==JSON.stringify(this.state.folderStack[0])?"0":JSON.stringify(this.state.folderStack[0]));var t=e+"&";let r=this.props.location.search||"?";this.props.history.push(`${this.props.location.pathname}${r}${t}`),this.props.fetchVideoList({search:"",folderId:this.state.folderStack[0],limit:10,offset:0,batchCode:this.props.batchCode,sortBy:this.state.selectedSort})})},this.handleBackClick=()=>{let e=this.state.folderStack;e.splice(0,1),this.setState({folderStack:e},()=>{localStorage.setItem("localFolderStack",JSON.stringify(this.state.folderStack)),this.props.history.goBack(),this.props.fetchVideoList({search:"",folderId:this.state.folderStack[0],limit:10,offset:0,batchCode:this.props.batchCode,sortBy:this.state.selectedSort})})},this.handleDeleteFolder=e=>{this.props.deleteBatchFolder({folderIdColl:[e],batchCode:this.props.batchCode,batchFreeResource:this.props.userType,parentFolderId:this.state.folderStack[0]})},this.onFilterChange=e=>{let t=this.state.selectedTags;-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),this.setState({selectedTags:[...t]},()=>{this.props.fetchVideoList({search:"",folderId:this.state.folderStack[0],tags:this.state.selectedTags.toString(),limit:10,offset:0,batchCode:this.props.batchCode,sortBy:this.state.selectedSort})})},this.state={isArchive:0,folderStack:[],selectedTags:[],selectedSort:Ke[0]}}componentDidMount(){let e=new URLSearchParams(window.location.search).getAll("fId"),t=e.length?e.reverse():localStorage.getItem("localFolderStack")&&JSON.parse(localStorage.getItem("localFolderStack"));t?this.setState({folderStack:t},()=>{this.fetchVideoData(),2!==this.props.userType&&this.fetchBatchDetails()}):(this.fetchVideoData(),2!==this.props.userType&&this.fetchBatchDetails())}componentWillUnmount(){localStorage.removeItem("localFolderStack");new URLSearchParams(window.location.search).delete("fId")}render(){var e;let{permissions:t,batchCode:r,isArchive:n,isStudentOrParent:o,premiumStatus:u,userType:c,filters:d,folderCount:f,videoCount:p,t:m}=this.props,g=f+p,{folderStack:y}=this.state,b=!0;return null!==(e=this.props.organizationData)&&void 0!==e&&e.isBatchVideoUploadEnabled?b=!1:o||(b=!1),i.a.createElement("div",null,i.a.createElement(a.Helmet,null,i.a.createElement("meta",{charSet:"utf-8"}),r?i.a.createElement("title",null,"Videos | Batch Management"):i.a.createElement("title",null,m("routes.batches.batchVideos.BatchVideos.title","Free resources|Videos"))),i.a.createElement(s.k,{computer:"16"},b?i.a.createElement(s.k.Column,{computer:"10"},i.a.createElement(He,{appUrl:this.props.appUrl,appName:this.props.appName})):i.a.createElement(i.a.Fragment,null,i.a.createElement(s.k.Column,{computer:"10"},i.a.createElement("div",{style:{marginBottom:"5%"}},2===c?i.a.createElement("div",{className:"empty-parent-video"},i.a.createElement(l.a,{imageDetails:{src:h.a,alt:"no students",style:{marginLeft:"5%",width:"160px"}},heading:{text:m("routes.batches.batchVideos.headingText.thisWillBeAccessibleByYourChildAccount","This will only be accessible by your child's account"),style:{fontSize:"18px",lineHeight:"21px",margin:"0 auto"}}})):i.a.createElement(oe,{isArchive:n,batchCode:r,folderStack:y}),i.a.createElement(De,{userType:c,isArchive:n,batchCode:r,isStudentOrParent:o,batchId:this.props.batchId,folderStack:y,onFolderClick:this.handleOnFolderClick,onBackClick:this.handleBackClick,deleteFolder:this.handleDeleteFolder,selectedSort:this.state.selectedSort}))),i.a.createElement(s.k.Column,{computer:"5"},0!==g?i.a.createElement(Ge,{onSortChange:this.onSortChange,selectedSort:this.state.selectedSort}):null,d&&d.length?i.a.createElement(We,{checkboxValue:this.state.selectedTags,batchCode:this.props.batchCode,onFilterChange:this.onFilterChange,filters:d,isLoading:this.props.isLoading}):null))))}}t.default=Object(u.a)(Object(o.connect)(e=>{var t,r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,b,v,w,M,x,S,_,k;return{isLoading:null===e||void 0===e||null===(t=e.BatchReducer)||void 0===t||null===(r=t.batchVideo)||void 0===r?void 0:r.isLoading,folderCount:null===e||void 0===e||null===(n=e.BatchReducer)||void 0===n||null===(i=n.batchVideo)||void 0===i?void 0:i.folderCount,videoCount:null===e||void 0===e||null===(o=e.BatchReducer)||void 0===o||null===(s=o.batchVideo)||void 0===s?void 0:s.videoCount,isArchive:null===e||void 0===e||null===(a=e.BatchReducer)||void 0===a||null===(u=a.batchDetails)||void 0===u?void 0:u.isArchive,permissions:null===e||void 0===e||null===(l=e.batchSett
2ings)||void 0===l?void 0:l.permissions,appUrl:null===e||void 0===e||null===(c=e.persistedData)||void 0===c||null===(h=c.organization)||void 0===h?void 0:h.appUrl,appName:null===e||void 0===e||null===(d=e.persistedData)||void 0===d||null===(f=d.organization)||void 0===f?void 0:f.name,premiumStatus:null===e||void 0===e||null===(p=e.persistedData)||void 0===p?void 0:p.premiumStatus,isStudentOrParent:P.t.tutor!==(null===e||void 0===e||null===(m=e.persistedData)||void 0===m||null===(g=m.user)||void 0===g?void 0:g.type),batchId:null===e||void 0===e||null===(y=e.BatchReducer)||void 0===y||null===(b=y.batchDetails)||void 0===b?void 0:b.batchId,userType:null===e||void 0===e||null===(v=e.persistedData)||void 0===v||null===(w=v.user)||void 0===w?void 0:w.type,tagOptions:null===e||void 0===e||null===(M=e.BatchReducer)||void 0===M||null===(x=M.batchVideo)||void 0===x?void 0:x.videoTags,filters:null===e||void 0===e||null===(S=e.BatchReducer)||void 0===S||null===(_=S.batchVideo)||void 0===_?void 0:_.videoTags,organizationData:null===e||void 0===e||null===(k=e.persistedData)||void 0===k?void 0:k.organization}},e=>({fetchVideoList:t=>e(k.j(t)),deleteBatchFolder:t=>e(k.d(t)),addFolder:t=>e(k.c(t)),fetchTags:t=>e(k.i(t)),fetchBatchCount:t=>e(k.h(t)),fetchAllVideoData:t=>e(k.g(t))}))(Object(U.a)()(Xe)))}}]);
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.