dashy/js/chunk-vendors.db7a0c0b.js

90 lines
1.9 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00dc":function(t,e,i){(function(t){var n=i("58a2"),r=i("c24d"),o=i("561d");function s(e){var i=new t(r[e].prime,"hex"),n=new t(r[e].gen,"hex");return new o(i,n)}var a={binary:!0,hex:!0,base64:!0};function l(e,i,r,s){return t.isBuffer(i)||void 0===a[i]?l(e,"binary",i,r):(i=i||"binary",s=s||"binary",r=r||new t([2]),t.isBuffer(r)||(r=new t(r,s)),"number"===typeof e?new o(n(e,r),r,!0):(t.isBuffer(e)||(e=new t(e,i)),new o(e,r,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=s,e.createDiffieHellman=e.DiffieHellman=l}).call(this,i("b639").Buffer)},"00fd":function(t,e,i){var n=i("9e69"),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=n?n.toStringTag:void 0;function l(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(l){}var r=s.call(t);return n&&(e?t[a]=i:delete t[a]),r}t.exports=l},"0106":function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(14).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"0184":function(t,e,i){"use strict";var n=i("da3e");function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=i,i},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,r,i),i+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),i+=this._flushBuffer(r,i);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,i;return t&&(e=this.update(t)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(i):i},r.prototype._pad=function(t,e){if(0===e)return!1;while(e<t.length)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},"0211":function(t,e,i){"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);const n=t[i];e[n]=i})),e},n.der=i("8b71")},"03dd":function(t,e,i){var n=i("eac5"),r=i("57a5"),o=Object.prototype,s=o.hasOwnProperty;function a(t){if(!n(t))return r(t);var e=[];for(var i in Object(t))s.call(t,i)&&"constructor"!=i&&e.push(i);return e}t.exports=a},"05f0":function(t,e,i){"use strict";var n=i("d113").codes.ERR_INVALID_OPT_VALUE;function r(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}function o(t,e,i,o){var s=r(e,o,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?i:"highWaterMark";throw new n(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"0632":function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=i("b639"),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(r.prototype),o(r,s),s.from=function(t,e,i){if("number"===typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},s.alloc=function(t,e,i){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"===typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"07c7":function(t,e){function i(){return!1}t.exports=i},"07f2":function(t,e,i){"use strict";var n=i("c3c0"),r=i("6eed");function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,r),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},"087d":function(t,e){function i(t,e){var i=-1,n=e.length,r=t.length;while(++i<n)t[r+i]=e[i];return t}t.exports=i},"087f":function(t,e,i){var n=i("3fb5"),r=i("b672"),o=i("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function h(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function u(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e=this._w,i=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,a=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=e[l-3]^e[l-8]^e[l-14]^e[l-16];for(var d=0;d<80;++d){var f=~~(d/20),p=h(i)+u(f,n,r,o)+a+e[d]+s[f]|0;a=o,o=r,r=c(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},"0960":function(t,e,i){t.exports=i("b19a")},"09dc":function(t,e,i){"use strict";t.exports=c;var n=i("9d8a").codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=i("e666");function h(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new o);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",u)}function u(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,i){d(t,e,i)}))}function d(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}i("3fb5")(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,i){i(new r("_transform()"))},c.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},"09f5":function(t,e,i){var n=i("39f5"),r=i("8707").Buffer,o=i("6430"),s=i("3fb5");function a(t,e,i,s){o.call(this),this._cipher=new n.AES(e),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=s,this._mode=t}s(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},"0a06":function(t,e,i){"use strict";var n=i("c532"),r=i("30b5"),o=i("f6b4"),s=i("5270"),a=i("4a7b");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],i=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)i=i.then(e.shift(),e.shift());return i},l.prototype.getUri=function(t){return t=a(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,i){return this.request(a(i||{},{method:t,url:e,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,i,n){return this.request(a(n||{},{method:t,url:e,data:i}))}})),t.exports=l},"0ae3":function(t,e,i){"use strict";t.exports=r;var n=i("09dc");function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i("3fb5")(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},"0b07":function(t,e,i){var n=i("34ac"),r=i("3698");function o(t,e){var i=r(t,e);return n(i)?i:void 0}t.exports=o},"0be8":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},"0cbb":function(t,e,i){"use strict";var n,r=e,o=i("7d92"),s=i("4136"),a=i("f3a3"),l=a.assert;function h(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var i=new h(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=h,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i("409b")}catch(u){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},"0d24":function(t,e,i){(function(t){var n=i("2b3e"),r=i("07c7"),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o,l=a?n.Buffer:void 0,h=l?l.isBuffer:void 0,c=h||r;t.exports=c}).call(this,i("62e4")(t))},"0da4":function(t,e,i){"use strict";var n=i("da3e"),r=i("3fb5"),o={};function s(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function a(t){function e(e){t.call(this,e),this._cbcInit()}r(e,t);for(var i=Object.keys(o),n=0;n<i.length;n++){var s=i[n];e.prototype[s]=o[s]}return e.create=function(t){return new e(t)},e}e.instantiate=a,o._cbcInit=function(){var t=new s(this.options.iv);this._cbcState=t},o._update=function(t,e,i,n){var r=this._cbcState,o=this.constructor.super_.prototype,s=r.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=t[e+a];o._update.call(this,s,0,i,n);for(a=0;a<this.blockSize;a++)s[a]=i[n+a]}else{o._update.call(this,t,e,i,n);for(a=0;a<this.blockSize;a++)i[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=t[e+a]}}},"0df6":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0f2c":function(t,e,i){var n=i("2aee"),r=i("f460"),o=i("83d5"),s=i("0106"),a=i("a958"),l=i("98e6"),h=i("5291"),c=i("8707").Buffer;function u(t,e){var i=t.modulus.byteLength(),n=l("sha1").update(c.alloc(0)).digest(),s=n.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,s+1),h=e.slice(s+1),u=o(a,r(h,s)),d=o(h,r(u,i-s-1));if(f(n,d.slice(0,s)))throw new Error("decryption error");var p=s;while(0===d[p])p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}function d(t,e,i){var n=e.slice(0,2),r=2,o=0;while(0!==e[r++])if(r>=e.length){o++;break}var s=e.slice(2,r-1);if(("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return e.slice(r)}function f(t,e){t=c.from(t),e=c.from(e);var i=0,n=t.length;t.length!==e.length&&(i++,n=Math.min(t.length,e.length));var r=-1;while(++r<n)i+=t[r]^e[r];return i}t.exports=function(t,e,i){var r;r=t.padding?t.padding:i?1:4;var o,l=n(t),f=l.modulus.byteLength();if(e.length>f||new s(e).cmp(l.modulus)>=0)throw new Error("decryption error");o=i?h(new s(e),l):a(e,l);var p=c.alloc(f-o.length);if(o=c.concat([p,o],f),4===r)return u(l,o);if(1===r)return d(l,o,i);if(3===r)return o;throw new Error("unknown padding")}},"100e":function(t,e,i){var n=i("cd9d"),r=i("2286"),o=i("c1c9");function s(t,e){return o(r(t,e,n),t+"")}t.exports=s},1020:function(t,e){var i={exports:{}};function n(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var i=t[e];"object"!=typeof i||Object.isFrozen(i)||n(i)})),t}i.exports=n,i.exports.default=n;var r=i.exports;class o{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(t,...e){const i=Object.create(null);for(const n in t)i[n]=t[n];return e.forEach((function(t){for(const e in t)i[e]=t[e]})),i}const l="</span>",h=t=>!!t.kind,c=(t,{prefix:e})=>{if(t.includes(".")){const i=t.split(".");return[`${e}${i.shift()}`,...i.map((t,e)=>`${t}${"_".repeat(e+1)}`)].join(" ")}return`${e}${t}`};class u{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=s(t)}openNode(t){if(!h(t))return;let e=t.kind;e=t.sublanguage?"language-"+e:c(e,{prefix:this.classPrefix}),this.span(e)}closeNode(t){h(t)&&(this.buffer+=l)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class d{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"===typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach(e=>this._walk(t,e)),t.closeNode(e)),t}static _collapse(t){"string"!==typeof t&&t.children&&(t.children.every(t=>"string"===typeof t)?t.children=[t.children.join("")]:t.children.forEach(t=>{d._collapse(t)}))}}class f extends d{constructor(t){super(),this.options=t}addKeyword(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}addText(t){""!==t&&this.add(t)}addSublanguage(t,e){const i=t.root;i.kind=e,i.sublanguage=!0,this.add(i)}toHTML(){const t=new u(this,this.options);return t.value()}finalize(){return!0}}function p(t){return t?"string"===typeof t?t:t.source:null}function g(t){return m("(?=",t,")")}function m(...t){const e=t.map(t=>p(t)).join("");return e}function v(t){const e=t[t.length-1];return"object"===typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function b(...t){const e=v(t),i="("+(e.capture?"":"?:")+t.map(t=>p(t)).join("|")+")";return i}function y(t){return new RegExp(t.toString()+"|").exec("").length-1}function w(t,e){const i=t&&t.exec(e);return i&&0===i.index}const C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function I(t,{joinWith:e}){let i=0;return t.map(t=>{i+=1;const e=i;let n=p(t),r="";while(n.length>0){const t=C.exec(n);if(!t){r+=n;break}r+=n.substring(0,t.index),n=n.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?r+="\\"+String(Number(t[1])+e):(r+=t[0],"("===t[0]&&i++)}return r}).map(t=>`(${t})`).join(e)}const A=/\b\B/,M="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",S="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",E="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",T=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=m(e,/.*\b/,t.binary,/\b.*/)),a({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},R={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[R]},j={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[R]},N={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},L=function(t,e,i={}){const n=a({scope:"comment",begin:t,end:e,contains:[]},i);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:m(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},B=L("//","$"),D=L("/\\*","\\*/"),Z=L("#","$"),P={scope:"number",begin:_,relevance:0},W={scope:"number",begin:S,relevance:0},$={scope:"number",begin:k,relevance:0},H={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[R,{begin:/\[/,end:/\]/,relevance:0,contains:[R]}]}]},z={scope:"title",begin:M,relevance:0},G={scope:"title",begin:x,relevance:0},F={begin:"\\.\\s*"+x,relevance:0},V=function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})};var K=Object.freeze({__proto__:null,MATCH_NOTHING_RE:A,IDENT_RE:M,UNDERSCORE_IDENT_RE:x,NUMBER_RE:_,C_NUMBER_RE:S,BINARY_NUMBER_RE:k,RE_STARTERS_RE:E,SHEBANG:T,BACKSLASH_ESCAPE:R,APOS_STRING_MODE:O,QUOTE_STRING_MODE:j,PHRASAL_WORDS_MODE:N,COMMENT:L,C_LINE_COMMENT_MODE:B,C_BLOCK_COMMENT_MODE:D,HASH_COMMENT_MODE:Z,NUMBER_MODE:P,C_NUMBER_MODE:W,BINARY_NUMBER_MODE:$,REGEXP_MODE:H,TITLE_MODE:z,UNDERSCORE_TITLE_MODE:G,METHOD_GUARD:F,END_SAME_AS_BEGIN:V});function Y(t,e){const i=t.input[t.index-1];"."===i&&e.ignoreMatch()}function U(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function X(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Y,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function J(t,e){Array.isArray(t.illegal)&&(t.illegal=b(...t.illegal))}function Q(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function q(t,e){void 0===t.relevance&&(t.relevance=1)}const tt=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},t);Object.keys(t).forEach(e=>{delete t[e]}),t.keywords=i.keywords,t.begin=m(i.beforeMatch,g(i.begin)),t.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},t.relevance=0,delete i.beforeMatch},et=["of","and","for","in","not","or","if","then","parent","list","value"],it="keyword";function nt(t,e,i=it){const n=Object.create(null);return"string"===typeof t?r(i,t.split(" ")):Array.isArray(t)?r(i,t):Object.keys(t).forEach((function(i){Object.assign(n,nt(t[i],e,i))})),n;function r(t,i){e&&(i=i.map(t=>t.toLowerCase())),i.forEach((function(e){const i=e.split("|");n[i[0]]=[t,rt(i[0],i[1])]}))}}function rt(t,e){return e?Number(e):ot(t)?0:1}function ot(t){return et.includes(t.toLowerCase())}const st={},at=t=>{console.error(t)},lt=(t,...e)=>{console.log("WARN: "+t,...e)},ht=(t,e)=>{st[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),st[`${t}/${e}`]=!0)},ct=new Error;function ut(t,e,{key:i}){let n=0;const r=t[i],o={},s={};for(let a=1;a<=e.length;a++)s[a+n]=r[a],o[a+n]=!0,n+=y(e[a-1]);t[i]=s,t[i]._emit=o,t[i]._multi=!0}function dt(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw at("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ct;if("object"!==typeof t.beginScope||null===t.beginScope)throw at("beginScope must be object"),ct;ut(t,t.begin,{key:"beginScope"}),t.begin=I(t.begin,{joinWith:""})}}function ft(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw at("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ct;if("object"!==typeof t.endScope||null===t.endScope)throw at("endScope must be object"),ct;ut(t,t.end,{key:"endScope"}),t.end=I(t.end,{joinWith:""})}}function pt(t){t.scope&&"object"===typeof t.scope&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope)}function gt(t){pt(t),"string"===typeof t.beginScope&&(t.beginScope={_wrap:t.beginScope}),"string"===typeof t.endScope&&(t.endScope={_wrap:t.endScope}),dt(t),ft(t)}function mt(t){function e(e,i){return new RegExp(p(e),"m"+(t.case_insensitive?"i":"")+(i?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=y(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map(t=>t[1]);this.matcherRe=e(I(t,{joinWith:"|"}),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const i=e.findIndex((t,e)=>e>0&&void 0!==t),n=this.matchIndexes[i];return e.splice(0,i),Object.assign(e,n)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new i;return this.rules.slice(t).forEach(([t,i])=>e.addRule(t,i)),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let i=e.exec(t);if(this.resumingScanAtSamePosition())if(i&&i.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,i=e.exec(t)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}function r(t){const e=new n;return t.contains.forEach(t=>e.addRule(t.begin,{rule:t,type:"begin"})),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}function o(i,n){const s=i;if(i.isCompiled)return s;[U,Q,gt,tt].forEach(t=>t(i,n)),t.compilerExtensions.forEach(t=>t(i,n)),i.__beforeBegin=null,[X,J,q].forEach(t=>t(i,n)),i.isCompiled=!0;let a=null;return"object"===typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),a=i.keywords.$pattern,delete i.keywords.$pattern),a=a||/\w+/,i.keywords&&(i.keywords=nt(i.keywords,t.case_insensitive)),s.keywordPatternRe=e(a,!0),n&&(i.begin||(i.begin=/\B|\b/),s.beginRe=e(i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(s.endRe=e(i.end)),s.terminatorEnd=p(i.end)||"",i.endsWithParent&&n.terminatorEnd&&(s.terminatorEnd+=(i.end?"|":"")+n.terminatorEnd)),i.illegal&&(s.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(t){return bt("self"===t?i:t)}))),i.contains.forEach((function(t){o(t,s)})),i.starts&&o(i.starts,n),s.matcher=r(s),s}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=a(t.classNameAliases||{}),o(t)}function vt(t){return!!t&&(t.endsWithParent||vt(t.starts))}function bt(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return a(t,{variants:null},e)}))),t.cachedVariants?t.cachedVariants:vt(t)?a(t,{starts:t.starts?a(t.starts):null}):Object.isFrozen(t)?a(t):t}var yt="11.0.1";const wt=s,Ct=a,It=Symbol("nomatch"),At=7,Mt=function(t){const e=Object.create(null),i=Object.create(null),n=[];let s=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function c(t){return h.noHighlightRe.test(t)}function u(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const i=h.languageDetectRe.exec(e);if(i){const e=E(i[1]);return e||(lt(a.replace("{}",i[1])),lt("Falling back to no-highlight mode for this block.",t)),e?i[1]:"no-highlight"}return e.split(/\s+/).find(t=>c(t)||E(t))}function d(t,e,i,n){let r="",o="";"object"===typeof e?(r=t,i=e.ignoreIllegals,o=e.language,n=void 0):(ht("10.7.0","highlight(lang, code, ...args) has been deprecated."),ht("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=t,r=e),void 0===i&&(i=!0);const s={code:r,language:o};N("before:highlight",s);const a=s.result?s.result:p(s.language,s.code,i,n);return a.code=s.code,N("after:highlight",a),a}function p(t,i,n,r){const l=Object.create(null);function c(t,e){return t.keywords[e]}function u(){if(!T.keywords)return void O.addText(j);let t=0;T.keywordPatternRe.lastIndex=0;let e=T.keywordPatternRe.exec(j),i="";while(e){i+=j.substring(t,e.index);const n=_.case_insensitive?e[0].toLowerCase():e[0],r=c(T,n);if(r){const[t,o]=r;if(O.addText(i),i="",l[n]=(l[n]||0)+1,l[n]<=At&&(N+=o),t.startsWith("_"))i+=e[0];else{const i=_.classNameAliases[t]||t;O.addKeyword(e[0],i)}}else i+=e[0];t=T.keywordPatternRe.lastIndex,e=T.keywordPatternRe.exec(j)}i+=j.substr(t),O.addText(i)}function d(){if(""===j)return;let t=null;if("string"===typeof T.subLanguage){if(!e[T.subLanguage])return void O.addText(j);t=p(T.subLanguage,j,!0,R[T.subLanguage]),R[T.subLanguage]=t._top}else t=m(j,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(N+=t.relevance),O.addSublanguage(t._emitter,t.language)}function f(){null!=T.subLanguage?d():u(),j=""}function g(t,e){let i=1;while(void 0!==e[i]){if(!t._emit[i]){i++;continue}const n=_.classNameAliases[t[i]]||t[i],r=e[i];n?O.addKeyword(r,n):(j=r,u(),j=""),i++}}function v(t,e){return t.scope&&"string"===typeof t.scope&&O.openNode(_.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(O.addKeyword(j,_.classNameAliases[t.beginScope._wrap]||t.beginScope._wrap),j=""):t.beginScope._multi&&(g(t.beginScope,e),j="")),T=Object.create(t,{parent:{value:T}}),T}function b(t,e,i){let n=w(t.endRe,i);if(n){if(t["on:end"]){const i=new o(t);t["on:end"](e,i),i.isMatchIgnored&&(n=!1)}if(n){while(t.endsParent&&t.parent)t=t.parent;return t}}if(t.endsWithParent)return b(t.parent,e,i)}function y(t){return 0===T.matcher.regexIndex?(j+=t[0],1):(D=!0,0)}function C(t){const e=t[0],i=t.rule,n=new o(i),r=[i.__beforeBegin,i["on:begin"]];for(const o of r)if(o&&(o(t,n),n.isMatchIgnored))return y(e);return i.skip?j+=e:(i.excludeBegin&&(j+=e),f(),i.returnBegin||i.excludeBegin||(j=e)),v(i,t),i.returnBegin?0:e.length}function I(t){const e=t[0],n=i.substr(t.index),r=b(T,t,n);if(!r)return It;const o=T;T.endScope&&T.endScope._wrap?(f(),O.addKeyword(e,T.endScope._wrap)):T.endScope&&T.endScope._multi?(f(),g(T.endScope,t)):o.skip?j+=e:(o.returnEnd||o.excludeEnd||(j+=e),f(),o.excludeEnd&&(j=e));do{T.scope&&!T.isMultiClass&&O.closeNode(),T.skip||T.subLanguage||(N+=T.relevance),T=T.parent}while(T!==r.parent);return r.starts&&v(r.starts,t),o.returnEnd?0:e.length}function A(){const t=[];for(let e=T;e!==_;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach(t=>O.openNode(t))}let M={};function x(e,r){const o=r&&r[0];if(j+=e,null==o)return f(),0;if("begin"===M.type&&"end"===r.type&&M.index===r.index&&""===o){if(j+=i.slice(r.index,r.index+1),!s){const e=new Error(`0 width match regex (${t})`);throw e.languageName=t,e.badRule=M.rule,e}return 1}if(M=r,"begin"===r.type)return C(r);if("illegal"===r.type&&!n){const t=new Error('Illegal lexeme "'+o+'" for mode "'+(T.scope||"<unnamed>")+'"');throw t.mode=T,t}if("end"===r.type){const t=I(r);if(t!==It)return t}if("illegal"===r.type&&""===o)return 1;if(B>1e5&&B>3*r.index){const t=new Error("potential infinite loop, way more iterations than matches");throw t}return j+=o,o.length}const _=E(t);if(!_)throw at(a.replace("{}",t)),new Error('Unknown language: "'+t+'"');const S=mt(_);let k="",T=r||S;const R={},O=new h.__emitter(h);A();let j="",N=0,L=0,B=0,D=!1;try{for(T.matcher.considerAll();;){B++,D?D=!1:T.matcher.considerAll(),T.matcher.lastIndex=L;const t=T.matcher.exec(i);if(!t)break;const e=i.substring(L,t.index),n=x(e,t);L=t.index+n}return x(i.substr(L)),O.closeAllNodes(),O.finalize(),k=O.toHTML(),{language:t,value:k,relevance:N,illegal:!1,_emitter:O,_top:T}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:t,value:wt(i),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:L,context:i.slice(L-100,L+100),mode:Z.mode,resultSoFar:k},_emitter:O};if(s)return{language:t,value:wt(i),illegal:!1,relevance:0,errorRaised:Z,_emitter:O,_top:T};throw Z}}function g(t){const e={value:wt(t),illegal:!1,relevance:0,_top:l,_emitter:new h.__emitter(h)};return e._emitter.addText(t),e}function m(t,i){i=i||h.languages||Object.keys(e);const n=g(t),r=i.filter(E).filter(R).map(e=>p(e,t,!1));r.unshift(n);const o=r.sort((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(E(t.language).supersetOf===e.language)return 1;if(E(e.language).supersetOf===t.language)return-1}return 0}),[s,a]=o,l=s;return l.secondBest=a,l}function v(t,e,n){const r=e&&i[e]||n;t.classList.add("hljs"),t.classList.add("language-"+r)}function b(t){let e=null;const i=u(t);if(c(i))return;N("before:highlightElement",{el:t,language:i}),!h.ignoreUnescapedHTML&&t.children.length>0&&(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/issues/2886"),console.warn(t)),e=t;const n=e.textContent,r=i?d(n,{language:i,ignoreIllegals:!0}):m(n);t.innerHTML=r.value,v(t,i,r.language),t.result={language:r.language,re:r.relevance,relevance:r.relevance},r.secondBest&&(t.secondBest={language:r.secondBest.language,relevance:r.secondBest.relevance}),N("after:highlightElement",{el:t,result:r,text:n})}function y(t){h=Ct(h,t)}const C=()=>{M(),ht("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function I(){M(),ht("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let A=!1;function M(){if("loading"===document.readyState)return void(A=!0);const t=document.querySelectorAll(h.cssSelector);t.forEach(b)}function x(){A&&M()}function _(i,n){let r=null;try{r=n(t)}catch(o){if(at("Language definition for '{}' could not be registered.".replace("{}",i)),!s)throw o;at(o),r=l}r.name||(r.name=i),e[i]=r,r.rawDefinition=n.bind(null,t),r.aliases&&T(r.aliases,{languageName:i})}function S(t){delete e[t];for(const e of Object.keys(i))i[e]===t&&delete i[e]}function k(){return Object.keys(e)}function E(t){return t=(t||"").toLowerCase(),e[t]||e[i[t]]}function T(t,{languageName:e}){"string"===typeof t&&(t=[t]),t.forEach(t=>{i[t.toLowerCase()]=e})}function R(t){const e=E(t);return e&&!e.disableAutodetect}function O(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}function j(t){O(t),n.push(t)}function N(t,e){const i=t;n.forEach((function(t){t[i]&&t[i](e)}))}function L(t){return ht("10.7.0","highlightBlock will be removed entirely in v12.0"),ht("10.7.0","Please use highlightElement now."),b(t)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1),Object.assign(t,{highlight:d,highlightAuto:m,highlightAll:M,highlightElement:b,highlightBlock:L,configure:y,initHighlighting:C,initHighlightingOnLoad:I,registerLanguage:_,unregisterLanguage:S,listLanguages:k,getLanguage:E,registerAliases:T,autoDetection:R,inherit:Ct,addPlugin:j}),t.debugMode=function(){s=!1},t.safeMode=function(){s=!0},t.versionString=yt;for(const o in K)"object"===typeof K[o]&&r(K[o]);return Object.assign(t,K),t};var xt=Mt({});t.exports=xt},1132:function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){return function(){var e=t,i=e.lib,n=i.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var r=[],o=0;o<i;o+=3)for(var s=e[o>>>2]>>>24-o%4*8&255,a=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,h=s<<16|a<<8|l,c=0;c<4&&o+.75*c<i;c++)r.push(n.charAt(h>>>6*(3-c)&63));var u=n.charAt(64);if(u)while(r.length%4)r.push(u);return r.join("")},parse:function(t){var e=t.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var r=0;r<i.length;r++)n[i.charCodeAt(r)]=r}var s=i.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return o(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,i){for(var r=[],o=0,s=0;s<e;s++)if(s%4){var a=i[t.charCodeAt(s-1)]<<s%4*2,l=i[t.charCodeAt(s)]>>>6-s%4*2,h=a|l;r[o>>>2]|=h<<24-o%4*8,o++}return n.create(r,o)}}(),t.enc.Base64}))},"116d":function(t,e,i){t.exports=i("b4e8")},"11dc":function(t,e,i){"use strict";(function(e,n){var r=65536,o=4294967295;function s(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var a=i("8707").Buffer,l=e.crypto||e.msCrypto;function h(t,e){if(t>o)throw new RangeError("requested too many random bytes");var i=a.allocUnsafe(t);if(t>0)if(t>r)for(var s=0;s<t;s+=r)l.getRandomValues(i.slice(s,s+r));else l.getRandomValues(i);return"function"===typeof e?n.nextTick((function(){e(null,i)})):i}l&&l.getRandomValues?t.exports=h:t.exports=s}).call(this,i("c8ba"),i("4362"))},1290:function(t,e){function i(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=i},1310:function(t,e){function i(t){return null!=t&&"object"==typeof t}t.exports=i},1368:function(t,e,i){var n=i("da03"),r=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!r&&r in t}t.exports=o},"13e2":function(t,e,i){"use strict";var n=i("c3c0"),r=i("edc9"),o=i("aa56"),s=n.rotl32,a=n.sum32,l=n.sum32_5,h=o.ft_1,c=r.BlockHash,u=[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),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n<i.length;n++)i[n]=s(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var r=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],f=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),g=l(s(r,5),h(p,o,c,d),f,i[n],u[p]);f=d,d=c,c=s(o,30),o=r,r=g}this.h[0]=a(this.h[0],r),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(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1545:function(t,e,i){"use strict";e.utils=i("5ee7"),e.Cipher=i("0184"),e.DES=i("4e2b"),e.CBC=i("0da4"),e.EDE=i("1fec")},1881:function(t,e,i){!function(e,i){t.exports=i()}(window,(function(){return i={},t.m=e=[function(t,e,i){var n=i(7);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4).default)("d763679c",n,!1,{})},function(t,e,i){var n=i(10);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4).default)("6b9cc0e0",n,!1,{})},function(t,e,i){var n=i(12);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4).default)("663c004e",n,!1,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),o=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[i].concat(o).concat([r]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(t,e,i){"use strict";function n(t,e){for(var i=[],n={},r=0;r<e.length;r++){var o=e[r],s=o[0],a={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};n[s]?n[s].parts.push(a):i.push(n[s]={id:s,parts:[a]})}return i}i.r(e),i.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,h=!1,c=function(){},u=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,i,r){h=i,u=r||{};var s=n(t,e);return g(s),function(e){for(var i=[],r=0;r<s.length;r++){var a=s[r];(l=o[a.id]).refs--,i.push(l)}for(e?g(s=n(t,e)):s=[],r=0;r<i.length;r++){var l;if(0===(l=i[r]).refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete o[l.id]}}}}function g(t){for(var e=0;e<t.length;e++){var i=t[e],n=o[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(v(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(r=0;r<i.parts.length;r++)s.push(v(i.parts[r]));o[i.id]={id:i.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,i,n=document.querySelector("style["+d+'~="'+t.id+'"]');if(n){if(h)return c;n.parentNode.removeChild(n)}if(f){var r=l++;n=a=a||m(),e=w.bind(null,n,r,!1),i=w.bind(null,n,r,!0)}else n=m(),e=function(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(n&&t.setAttribute("media",n),u.ssrId&&t.setAttribute(d,e.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}var b,y=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},function(t,e,i){"use strict";(function(t){var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i++){var r=n[i];t.call(e,r[1],r[0])}},e;function e(){this.__entries__=[]}}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},s=2,a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,h=(c.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},c.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},c.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},c.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),0<t.length},c.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},c.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},c.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;a.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},c.getInstance=function(){return this.instance_||(this.instance_=new c),this.instance_},c.instance_=null,c);function c(){function t(){a&&(a=!1,n()),l&&i()}function e(){o(t)}function i(){var t=Date.now();if(a){if(t-h<s)return;l=!0}else l=!(a=!0),setTimeout(e,r);h=t}var n,r,a,l,h;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(n=this.refresh.bind(this),l=a=!(r=20),h=0,i)}var u=function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i++){var r=n[i];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},f=y(0,0,0,0);function p(t){return parseFloat(t)||0}function g(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce((function(e,i){return e+p(t["border-"+i+"-width"])}),0)}function m(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return f;var n,r=d(t).getComputedStyle(t),o=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var r=n[i],o=t["padding-"+r];e[r]=p(o)}return e}(r),s=o.left+o.right,a=o.top+o.bottom,l=p(r.width),h=p(r.height);if("border-box"===r.boxSizing&&(Math.round(l+s)!==e&&(l-=g(r,"left","right")+s),Math.round(h+a)!==i&&(h-=g(r,"top","bottom")+a)),(n=t)!==d(n).document.documentElement){var c=Math.round(l+s)-e,u=Math.round(h+a)-i;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(h-=u)}return y(o.left,o.top,l,h)}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return n?v(t)?y(0,0,(e=t.getBBox()).width,e.height):m(t):f;var e}function y(t,e,i,n){return{x:t,y:e,width:i,height:n}}var w=(C.prototype.isActive=function(){var t=b(this.target);return(this.contentRect_=t).width!==this.broadcastWidth||t.height!==this.broadcastHeight},C.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},C);function C(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}var I=function(t,e){var i,n,r,o,s,a,l,h=(n=(i=e).x,r=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),u(l,{x:n,y:r,width:o,height:s,top:r,right:n+o,bottom:s+r,left:n}),l);u(this,{target:t,contentRect:h})},A=(M.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new w(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new I(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return 0<this.activeObservations_.length},M);function M(t,e,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}var x=new("undefined"!=typeof WeakMap?WeakMap:i),_=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=h.getInstance(),n=new A(e,i,this);x.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){_.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var S=void 0!==r.ResizeObserver?r.ResizeObserver:_;e.a=S}).call(this,i(8))},function(t,e,i){"use strict";var n=i(0);i.n(n).a},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,"\n.vue-modal-resizer {\n display: block;\n overflow: hidden;\n position: absolute;\n width: 12px;\n height: 12px;\n right: 0;\n bottom: 0;\n z-index: 9999999;\n background: transparent;\n cursor: se-resize;\n}\n.vue-modal-resizer::after {\n display: block;\n position: absolute;\n content: '';\n background: transparent;\n left: 0;\n top: 0;\n width: 0;\n height: 0;\n border-bottom: 10px solid #ddd;\n border-left: 10px solid transparent;\n}\n.vue-modal-resizer.clicked::after {\n border-bottom: 10px solid #369be9;\n}\n",""])},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";var n=i(1);i.n(n).a},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,"\n.vm--block-scroll {\n overflow: hidden;\n width: 100vw;\n}\n.vm--container {\n position: fixed;\n box-sizing: border-box;\n left: 0;\n top: 0;\n width: 100%;\n height: 100vh;\n z-index: 999;\n}\n.vm--overlay {\n position: fixed;\n box-sizing: border-box;\n left: 0;\n top: 0;\n width: 100%;\n height: 100vh;\n background: rgba(0, 0, 0, 0.2);\n /* z-index: 999; */\n opacity: 1;\n}\n.vm--container.scrollable {\n height: 100%;\n min-height: 100vh;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n.vm--modal {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n\n background-color: white;\n border-radius: 3px;\n box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);\n}\n.vm--container.scrollable .vm--modal {\n margin-bottom: 2px;\n}\n.vm--top-right-slot {\n display: block;\n position: absolute;\n right: 0;\n top: 0;\n}\n.vm-transition--overlay-enter-active,\n.vm-transition--overlay-leave-active {\n transition: all 50ms;\n}\n.vm-transition--overlay-enter,\n.vm-transition--overlay-leave-active {\n opacity: 0;\n}\n.vm-transition--modal-enter-active,\n.vm-transition--modal-leave-active {\n transition: all 400ms;\n}\n.vm-transition--modal-enter,\n.vm-transition--modal-leave-active {\n opacity: 0;\n transform: translateY(-20px);\n}\n.vm-transition--default-enter-active,\n.vm-transition--default-leave-active {\n transition: all 2ms;\n}\n.vm-transition--default-enter,\n.vm-transition--default-leave-active {\n opacity: 0;\n}\n",""])},function(t,e,i){"use strict";var n=i(2);i.n(n).a},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,"\n.vue-dialog {\n font-size: 14px;\n}\n.vue-dialog div {\n box-sizing: border-box;\n}\n.vue-dialog-content {\n flex: 1 0 auto;\n width: 100%;\n padding: 14px;\n}\n.vue-dialog-content-title {\n font-weight: 600;\n padding-bottom: 14px;\n}\n.vue-dialog-buttons {\n display: flex;\n flex: 0 1 auto;\n width: 100%;\n border-top: 1px solid #eee;\n}\n.vue-dialog-buttons-none {\n width: 100%;\n padding-bottom: 14px;\n}\n.vue-dialog-button {\n font-size: inherit;\n background: transparent;\n padding: 0;\n margin: 0;\n border: 0;\n cursor: pointer;\n box-sizing: border-box;\n line-height: 40px;\n height: 40px;\n color: inherit;\n font: inherit;\n outline: none;\n}\n.vue-dialog-button:hover {\n background: #f9f9f9;\n}\n.vue-dialog-button:active {\n background: #f3f3f3;\n}\n.vue-dialog-button:not(:first-of-type) {\n border-left: 1px solid #eee;\n}\n",""])},function(t,e,i){"use strict";function n(){var t=this,e=t.$createElement,i=t._self._c||e;return t.visible?i("div",{class:t.containerClass},[i("transition",{attrs:{name:t.guaranteedOverlayTransition},on:{"before-enter":t.beforeOverlayTransitionEnter,"after-enter":t.afterOverlayTransitionEnter,"before-leave":t.beforeOverlayTransitionLeave,"after-leave":t.afterOverlayTransitionLeave}},[t.visibility.overlay?i("div",{staticClass:"vm--overlay",attrs:{"data-modal":t.name,"aria-expanded":t.visibility.overlay.toString()},on:{click:function(e){return e.target!==e.currentTarget?null:(e.stopPropagation(),t.onOverlayClick(e))}}},[i("div",{staticClass:"vm--top-right-slot"},[t._t("top-right")],2)]):t._e()]),t._v(" "),i("transition",{attrs:{name:t.guaranteedModalTransition},on:{"before-enter":t.beforeModalTransitionEnter,"after-enter":t.afterModalTransitionEnter,"before-leave":t.beforeModalTransitionLeave,"after-leave":t.afterModalTransitionLeave}},[t.visibility.modal?i("div",{ref:"modal",class:t.modalClass,style:t.modalStyle,attrs:{"aria-expanded":t.visibility.modal.toString(),role:"dialog","aria-modal":"true"}},[t._t("default"),t._v(" "),t.resizable&&!t.isAutoHeight?i("resizer",{attrs:{"min-width":t.minWidth,"min-height":t.minHeight,"max-width":t.maxWidth,"max-height":t.maxHeight},on:{resize:t.onModalResize}}):t._e()],2):t._e()])],1):t._e()}function r(){var t=this.$createElement;return(this._self._c||t)("div",{class:this.className})}function o(t,e,i){return i<t?t:e<i?e:i}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(){var t=window.innerWidth,e=document.documentElement.clientWidth;return t&&e?Math.min(t,e):e||t}function h(t){return t.split(";").map((function(t){return t.trim()})).filter(Boolean).map((function(t){return t.split(":")})).reduce((function(t,e){var i=a(e,2);return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){s(t,e,i[e])}))}return t}({},t,s({},i[0],i[1]))}),{})}function c(t){return t.touches&&0<t.touches.length?t.touches[0]:t}i.r(e),i.d(e,"Modal",(function(){return P})),i.d(e,"Dialog",(function(){return z})),i.d(e,"version",(function(){return J})),r._withStripped=n._withStripped=!0;var u=["INPUT","TEXTAREA","SELECT"],d=function(t){var e=0<arguments.length&&void 0!==t?t:0;return function(){return(e++).toString()}}(),f={name:"VueJsModalResizer",props:{minHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER}},data:function(){return{clicked:!1,size:{}}},mounted:function(){this.$el.addEventListener("mousedown",this.start,!1)},computed:{className:function(){return["vue-modal-resizer",{clicked:this.clicked}]}},methods:{start:function(t){this.clicked=!0,window.addEventListener("mousemove",this.mousemove,!1),window.addEventListener("mouseup",this.stop,!1),t.stopPropagation(),t.preventDefault()},stop:function(){this.clicked=!1,window.removeEventListener("mousemove",this.mousemove,!1),window.removeEventListener("mouseup",this.stop,!1),this.$emit("resize-stop",{element:this.$el.parentElement,size:this.size})},mousemove:function(t){this.resize(t)},resize:function(t){var e=this.$el.parentElement;if(e){var i=t.clientX-e.offsetLeft,n=t.clientY-e.offsetTop,r=Math.min(l(),this.maxWidth),s=Math.min(window.innerHeight,this.maxHeight);i=o(this.minWidth,r,i),n=o(this.minHeight,s,n),this.size={width:i,height:n},e.style.width=i+"px",e.style.height=n+"px",this.$emit("resize",{element:e,size:this.size})}}}};function p(t,e,i,n,r,o,s,a){var l,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(h.functional){h._injectStyles=l;var c=h.render;h.render=function(t,e){return l.call(e),c(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:h}}i(6);var g=p(f,r,[],!1,null,null,null);g.options.__file="src/components/Resizer.vue";var m=g.exports;function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t){switch(v(t)){case"number":return{type:"px",value:t};case"string":return function(t){if("auto"===t)return{type:t,value:0};var e=C.find((function(e){return e.regexp.test(t)}));return e?{type:e.name,value:parseFloat(t)}:{type:"",value:t}}(t);default:return{type:"",value:t}}}function y(t){if("string"!=typeof t)return 0<=t;var e=b(t);return("%"===e.type||"px"===e.type)&&0<e.value}var w="[-+]?[0-9]*.?[0-9]+",C=[{name:"px",regexp:new RegExp("^".concat(w,"px$"))},{name:"%",regexp:new RegExp("^".concat(w,"%$"))},{name:"px",regexp:new RegExp("^".concat(w,"$"))}],I=i(5),A="undefined"!=typeof window&&window.ResizeObserver?ResizeObserver:I.a;function M(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _(t){return e='button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=""]:not([disabled]), [contentEditable="true"]:not([disabled]), [contentEditable="TRUE"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex="-1"])',x(t.querySelectorAll(e)||[]);var e}function S(t){return t==document.activeElement}var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.root=null,this.elements=[],this.onKeyDown=this.onKeyDown.bind(this),this.enable=this.enable.bind(this),this.disable=this.disable.bind(this),this.firstElement=this.firstElement.bind(this),this.lastElement=this.lastElement.bind(this)}var e,i,n;return e=t,(i=[{key:"lastElement",value:function(){return this.elements[this.elements.length-1]||null}},{key:"firstElement",value:function(){return this.elements[0]||null}},{key:"onKeyDown",value:function(t){var e;if("Tab"===(e=t).key||9===e.keyCode)return t.shiftKey&&S(this.firstElement())?(this.lastElement().focus(),void t.preventDefault()):!document.activeElement||S(this.lastElement())?(this.firstElement().focus(),void t.preventDefault()):void 0}},{key:"enabled",value:function(){return!!this.root}},{key:"enable",value:function(t){if(t){this.root=t,this.elements=_(this.root);var e=this.firstElement();e&&e.focus(),this.root.addEventListener("keydown",this.onKeyDown)}}},{key:"disable",value:function(){this.root.removeEventListener("keydown",this.onKeyDown),this.root=null}}])&&M(e.prototype,i),n&&M(e,n),t}();function E(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var R="vm-transition--default",O="enter",j="entering",N="leave",L="leavng",B={name:"VueJsModal",props:{name:{required:!0,type:String},resizable:{type:Boolean,default:!1},adaptive:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1},scrollable:{type:Boolean,default:!1},focusTrap:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},overlayTransition:{type:String,default:"vm-transition--overlay"},transition:{type:String,default:"vm-transition--modal"},clickToClose:{type:Boolean,default:!0},classes:{type:[String,Array],default:function(){return[]}},styles:{type:[String,Array,Object]},minWidth:{type:Number,default:0,validator:function(t){return 0<=t}},minHeight:{type:Number,default:0,validator:function(t){return 0<=t}},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},width:{type:[Number,String],default:600,validator:y},height:{type:[Number,String],default:300,validator:function(t){return"auto"===t||y(t)}},shiftX:{type:Number,default:.5,validator:function(t){return 0<=t&&t<=1}},shiftY:{type:Number,default:.5,validator:function(t){return 0<=t&&t<=1}}},components:{Resizer:m},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},overlayTransitionState:null,modalTransitionState:null,shiftLeft:0,shiftTop:0,modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},viewportHeight:0,viewportWidth:0}},created:function(){this.setInitialSize()},beforeMount:function(){this.$modal.subscription.$on("toggle",this.onToggle),window.addEventListener("resize",this.onWindowResize),window.addEventListener("orientationchange",this.onWindowResize),this.onWindowResize(),this.scrollable&&!this.isAutoHeight&&console.warn('Modal "'.concat(this.name,'" has scrollable flag set to true ')+'but height is not "auto" ('.concat(this.height,")")),this.clickToClose&&window.addEventListener("keyup",this.onEscapeKeyUp)},mounted:function(){var t=this;this.resizeObserver=new A((function(e){if(0<e.length){var i=T(e,1)[0];t.modal.renderedHeight=i.contentRect.height}})),this.$focusTrap=new k},beforeDestroy:function(){this.$modal.subscription.$off("toggle",this.onToggle),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("orientationchange",this.onWindowResize),this.clickToClose&&window.removeEventListener("keyup",this.onEscapeKeyUp),document.body.classList.remove("vm--block-scroll")},computed:{guaranteedOverlayTransition:function(){return this.overlayTransition||R},guaranteedModalTransition:function(){return this.transition||R},isAutoHeight:function(){return"auto"===this.modal.heightType},position:function(){var t=this.viewportHeight,e=this.viewportWidth,i=this.shiftLeft,n=this.shiftTop,r=this.shiftX,s=this.shiftY,a=this.trueModalWidth,l=this.trueModalHeight,h=e-a,c=Math.max(t-l,0),u=n+s*c;return{left:parseInt(o(0,h,i+r*h)),top:!l&&this.isAutoHeight?void 0:parseInt(o(0,c,u))}},trueModalWidth:function(){var t=this.viewportWidth,e=this.modal,i=this.adaptive,n=this.minWidth,r=this.maxWidth,s="%"===e.widthType?t/100*e.width:e.width;if(i){var a=Math.max(n,Math.min(t,r));return o(n,a,s)}return s},trueModalHeight:function(){var t=this.viewportHeight,e=this.modal,i=this.isAutoHeight,n=this.adaptive,r=this.minHeight,s=this.maxHeight,a="%"===e.heightType?t/100*e.height:e.height;if(i)return this.modal.renderedHeight;if(n){var l=Math.max(r,Math.min(t,s));return o(r,l,a)}return a},autoHeight:function(){return this.adaptive&&this.modal.renderedHeight>=this.viewportHeight?Math.max(this.minHeight,this.viewportHeight)+"px":"auto"},containerClass:function(){return["vm--container",this.scrollable&&this.isAutoHeight&&"scrollable"]},modalClass:function(){return["vm--modal",this.classes]},stylesProp:function(){return"string"==typeof this.styles?h(this.styles):this.styles},modalStyle:function(){return[this.stylesProp,{top:this.position.top+"px",left:this.position.left+"px",width:this.trueModalWidth+"px",height:this.isAutoHeight?this.autoHeight:this.trueModalHeight+"px"}]},isComponentReadyToBeDestroyed:function(){return this.overlayTransitionState===N&&this.modalTransitionState===N}},watch:{isComponentReadyToBeDestroyed:function(t){t&&(this.visible=!1)}},methods:{startTransitionEnter:function(){this.visibility.overlay=!0,this.visibility.modal=!0},startTransitionLeave:function(){this.visibility.overlay=!1,this.visibility.modal=!1},beforeOverlayTransitionEnter:function(){this.overlayTransitionState=j},afterOverlayTransitionEnter:function(){this.overlayTransitionState=O},beforeOverlayTransitionLeave:function(){this.overlayTransitionState=L},afterOverlayTransitionLeave:function(){this.overlayTransitionState=N},beforeModalTransitionEnter:function(){var t=this;this.modalTransitionState=j,this.$nextTick((function(){t.resizeObserver.observe(t.$refs.modal)}))},afterModalTransitionEnter:function(){this.modalTransitionState=O,this.draggable&&this.addDraggableListeners(),this.focusTrap&&this.$focusTrap.enable(this.$refs.modal);var t=this.createModalEvent({state:"opened"});this.$emit("opened",t)},beforeModalTransitionLeave:function(){this.modalTransitionState=L,this.resizeObserver.unobserve(this.$refs.modal),this.$focusTrap.enabled()&&this.$focusTrap.disable()},afterModalTransitionLeave:function(){this.modalTransitionState=N;var t=this.createModalEvent({state:"closed"});this.$emit("closed",t)},onToggle:function(t,e,i){if(this.name===t){var n=void 0===e?!this.visible:e;this.toggle(n,i)}},setInitialSize:function(){var t=b(this.width),e=b(this.height);this.modal.width=t.value,this.modal.widthType=t.type,this.modal.height=e.value,this.modal.heightType=e.type},onEscapeKeyUp:function(t){27===t.which&&this.visible&&this.$modal.hide(this.name)},onWindowResize:function(){this.viewportWidth=l(),this.viewportHeight=window.innerHeight,this.ensureShiftInWindowBounds()},createModalEvent:function(t){var e=0<arguments.length&&void 0!==t?t:{};return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){E(t,e,i[e])}))}return t}({name:this.name,ref:this.$refs.modal||null},e)},onModalResize:function(t){this.modal.widthType="px",this.modal.width=t.size.width,this.modal.heightType="px",this.modal.height=t.size.height;var e=this.modal.size;this.$emit("resize",this.createModalEvent({size:e}))},open:function(t){var e=this;this.reset&&(this.setInitialSize(),this.shiftLeft=0,this.shiftTop=0),this.scrollable&&document.body.classList.add("vm--block-scroll");var i=!1,n=this.createModalEvent({cancel:function(){i=!0},state:"before-open",params:t});this.$emit("before-open",n),i?this.scrollable&&document.body.classList.remove("vm--block-scroll"):("undefined"!=typeof document&&document.activeElement&&"BODY"!==document.activeElement.tagName&&document.activeElement.blur&&document.activeElement.blur(),this.visible=!0,this.$nextTick((function(){e.startTransitionEnter()})))},close:function(t){this.scrollable&&document.body.classList.remove("vm--block-scroll");var e=!1,i=this.createModalEvent({cancel:function(){e=!0},state:"before-close",params:t});this.$emit("before-close",i),e||this.startTransitionLeave()},toggle:function(t,e){this.visible!==t&&(t?this.open(e):this.close(e))},getDraggableElement:function(){return!0===this.draggable?this.$refs.modal:"string"==typeof this.draggable?this.$refs.modal.querySelector(this.draggable):null},onOverlayClick:function(){this.clickToClose&&this.toggle(!1)},addDraggableListeners:function(){var t=this,e=this.getDraggableElement();if(e){var i=0,n=0,r=0,o=0,s=function(e){var s=e.target;if(!(h=s)||-1===u.indexOf(h.nodeName)){var h,d=c(e),f=d.clientX,p=d.clientY;document.addEventListener("mousemove",a),document.addEventListener("touchmove",a),document.addEventListener("mouseup",l),document.addEventListener("touchend",l),i=f,n=p,r=t.shiftLeft,o=t.shiftTop}},a=function(e){var s=c(e),a=s.clientX,l=s.clientY;t.shiftLeft=r+a-i,t.shiftTop=o+l-n,e.preventDefault()},l=function e(i){t.ensureShiftInWindowBounds(),document.removeEventListener("mousemove",a),document.removeEventListener("touchmove",a),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e),i.preventDefault()};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s)}},ensureShiftInWindowBounds:function(){var t=this.viewportHeight,e=this.viewportWidth,i=this.shiftLeft,n=this.shiftTop,r=this.shiftX,s=this.shiftY,a=this.trueModalWidth,l=this.trueModalHeight,h=e-a,c=Math.max(t-l,0),u=i+r*h,d=n+s*c;this.shiftLeft-=u-o(0,h,u),this.shiftTop-=d-o(0,c,d)}}},D=(i(9),p(B,n,[],!1,null,null,null));function Z(){var t=this,e=t.$createElement,i=t._self._c||e;return i(t.$modal.context.componentName,{tag:"component",attrs:{name:"dialog",height:"auto",classes:["vue-dialog",this.params.class],width:t.width,"shift-y":.3,adaptive:!0,"focus-trap":!0,clickToClose:t.clickToClose,transition:t.transition},on:{"before-open":t.beforeOpened,"before-close":t.beforeClosed,opened:function(e){return t.$emit("opened",e)},closed:function(e){return t.$emit("closed",e)}}},[i("div",{staticClass:"vue-dialog-content"},[t.params.title?i("div",{staticClass:"vue-dialog-content-title",domProps:{innerHTML:t._s(t.params.title||"")}}):t._e(),t._v(" "),t.params.component?i(t.params.component,t._b({tag:"component"},"component",t.params.props,!1)):i("div",{domProps:{innerHTML:t._s(t.params.text||"")}})],1),t._v(" "),t.buttons?i("div",{staticClass:"vue-dialog-buttons"},t._l(t.buttons,(function(e,n){return i("button",{key:n,class:e.class||"vue-dialog-button",style:t.buttonStyle,attrs:{type:"button",tabindex:"0"},domProps:{innerHTML:t._s(e.title)},on:{click:function(e){return e.stopPropagation(),t.click(n,e)}}},[t._v(t._s(e.title))])})),0):i("div",{staticClass:"vue-dialog-buttons-none"})])}D.options.__file="src/components/Modal.vue";var P=D.exports;Z._withStripped=!0;var W={name:"VueJsDialog",props:{width:{type:[Number,String],default:400},clickToClose:{type:Boolean,default:!0},transition:{type:String}},data:function(){return{params:{}}},computed:{buttons:function(){return this.params.buttons||[]},buttonStyle:function(){return{flex:"1 1 ".concat(100/this.buttons.length,"%")}}},methods:{beforeOpened:function(t){this.params=t.params||{},this.$emit("before-opened",t)},beforeClosed:function(t){this.params={},this.$emit("before-closed",t)},click:function(t,e,i){var n=2<arguments.length&&void 0!==i?i:"click",r=this.buttons[t],o=null==r?void 0:r.handler;"function"==typeof o&&o(t,e,{source:n})}}},$=(i(11),p(W,Z,[],!1,null,null,null));function H(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"modals-container"}},t._l(t.modals,(function(e){return i("modal",t._g(t._b({key:e.id,on:{closed:function(i){return t.remove(e.id)}}},"modal",e.modalAttrs,!1),e.modalListeners),[i(e.component,t._g(t._b({tag:"component",on:{close:function(i){return t.$modal.hide(e.modalAttrs.name,i)}}},"component",e.componentAttrs,!1),t.$listeners))],1)})),1)}$.options.__file="src/components/Dialog.vue";var z=$.exports;function G(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}H._withStripped=!0;var F=p({data:function(){return{modals:[]}},created:function(){this.$root.__modalContainer=this},mounted:function(){var t=this;this.$modal.subscription.$on("hide-all",(function(){t.modals=[]}))},methods:{add:function(t,e,i,n){var r=this,o=1<arguments.length&&void 0!==e?e:{},s=2<arguments.length&&void 0!==i?i:{},a=3<arguments.length&&void 0!==n?n:{},l=d(),h=s.name||"dynamic_modal_"+l;this.modals.push({id:l,modalAttrs:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){G(t,e,i[e])}))}return t}({},s,{name:h}),modalListeners:a,component:t,componentAttrs:o}),this.$nextTick((function(){r.$modal.show(h)}))},remove:function(t){var e=this.modals.findIndex((function(e){return e.id===t}));-1!==e&&this.modals.splice(e,1)}}},H,[],!1,null,null,null);F.options.__file="src/components/ModalsContainer.vue";var V=F.exports;function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var U=function(t,e){function i(t,e,i,r){var s,a=2<arguments.length&&void 0!==i?i:{},l=3<arguments.length?r:void 0,h=null===(s=o.root)||void 0===s?void 0:s.__modalContainer,c=n.dynamicDefaults||{};null!=h&&h.add(t,e,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){Y(t,e,i[e])}))}return t}({},c,a),l)}var n=1<arguments.length&&void 0!==e?e:{},r=new t,o={root:null,componentName:n.componentName||"Modal"};return{context:o,subscription:r,show:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e[0];switch(K(o)){case"string":(function(t,e){r.$emit("toggle",t,!0,e)}).apply(void 0,e);break;case"object":case"function":i.apply(void 0,e);break;default:console.warn("[vue-js-modal] $modal() received an unsupported argument as a first argument.",o)}},hide:function(t,e){r.$emit("toggle",t,!1,e)},hideAll:function(){r.$emit("hide-all")},toggle:function(t,e){r.$emit("toggle",t,void 0,e)},setDynamicModalContainer:function(e){o.root=e;var i,n=(i=document.createElement("div"),document.body.appendChild(i),i);new t({parent:e,render:function(t){return t(V)}}).$mount(n)}}},X={install:function(t,e){var i=1<arguments.length&&void 0!==e?e:{};if(!t.prototype.$modal){var n=new U(t,i);Object.defineProperty(t.prototype,"$modal",{get:function(){if(this instanceof t){var e=this.$root;n.context.root||n.setDynamicModalContainer(e)}return n}}),t.component(n.context.componentName,P),i.dialog&&t.component("VDialog",z)}}},J="__VERSION__";e.default=X}],t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(n,r,function(t){return e[t]}.bind(null,r));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="/dist/",t(t.s=13);function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var e,i}))},"19ea":function(t,e,i){"use strict";(function(e,n){function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){F(e,t)}}var o;t.exports=k,k.WritableState=S;var s={deprecate:i("b7d1")},a=i("5bbb"),l=i("b639").Buffer,h=e.Uint8Array||function(){};function c(t){return l.from(t)}function u(t){return l.isBuffer(t)||t instanceof h}var d,f=i("493f"),p=i("b9b5"),g=p.getHighWaterMark,m=i("9d8a").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,w=m.ERR_STREAM_CANNOT_PIPE,C=m.ERR_STREAM_DESTROYED,I=m.ERR_STREAM_NULL_VALUES,A=m.ERR_STREAM_WRITE_AFTER_END,M=m.ERR_UNKNOWN_ENCODING,x=f.errorOrDestroy;function _(){}function S(t,e,n){o=o||i("e666"),t=t||{},"boolean"!==typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){B(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function k(t){o=o||i("e666");var e=this instanceof o;if(!e&&!d.call(k,this))return new k(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),a.call(this)}function E(t,e){var i=new A;x(t,i),n.nextTick(e,i)}function T(t,e,i,r){var o;return null===i?o=new I:"string"===typeof i||e.objectMode||(o=new v("chunk",["string","Buffer"],i)),!o||(x(t,o),n.nextTick(r,o),!1)}function R(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,i)),e}function O(t,e,i,n,r,o){if(!i){var s=R(e,n,r);n!==s&&(i=!0,r="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,a,n,r,o);return l}function j(t,e,i,n,r,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new C("write")):i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function N(t,e,i,r,o){--e.pendingcb,i?(n.nextTick(o,r),n.nextTick(z,t,e),t._writableState.errorEmitted=!0,x(t,r)):(o(r),t._writableState.errorEmitted=!0,x(t,r),z(t,e))}function L(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function B(t,e){var i=t._writableState,r=i.sync,o=i.writecb;if("function"!==typeof o)throw new y;if(L(i),e)N(t,i,r,e,o);else{var s=W(i)||t.destroyed;s||i.corked||i.bufferProcessing||!i.bufferedRequest||P(t,i),r?n.nextTick(D,t,i,s,o):D(t,i,s,o)}}function D(t,e,i,n){i||Z(t,e),e.pendingcb--,n(),z(t,e)}function Z(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function P(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,o=new Array(n),s=e.corkedRequestsFree;s.entry=i;var a=0,l=!0;while(i)o[a]=i,i.isBuf||(l=!1),i=i.next,a+=1;o.allBuffers=l,j(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{while(i){var h=i.chunk,c=i.encoding,u=i.callback,d=e.objectMode?1:h.length;if(j(t,e,!1,d,h,c,u),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function W(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function $(t,e){t._final((function(i){e.pendingcb--,i&&x(t,i),e.prefinished=!0,t.emit("prefinish"),z(t,e)}))}function H(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick($,t,e)))}function z(t,e){var i=W(e);if(i&&(H(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return i}function G(t,e,i){e.ending=!0,z(t,e),i&&(e.finished?n.nextTick(i):t.once("finish",i)),e.ended=!0,t.writable=!1}function F(t,e,i){var n=t.entry;t.entry=null;while(n){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree.next=t}i("3fb5")(k,a),S.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===k&&(t&&t._writableState instanceof S)}})):d=function(t){return t instanceof this},k.prototype.pipe=function(){x(this,new w)},k.prototype.write=function(t,e,i){var n=this._writableState,r=!1,o=!n.objectMode&&u(t);return o&&!l.isBuffer(t)&&(t=c(t)),"function"===typeof e&&(i=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof i&&(i=_),n.ending?E(this,i):(o||T(this,n,t,i))&&(n.pendingcb++,r=O(this,n,o,t,e,i)),r},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||P(this,t))},k.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(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(t,e,i){i(new b("_write()"))},k.prototype._writev=null,k.prototype.end=function(t,e,i){var n=this._writableState;return"function"===typeof t?(i=t,t=null,e=null):"function"===typeof e&&(i=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||G(this,n,i),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(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(t,e){e(t)}}).call(this,i("c8ba"),i("4362"))},"1a2a":function(t,e,i){"use strict";var n=i("3fb5"),r=i("d424"),o=i("6430"),s=i("8707").Buffer,a=i("5a76"),l=i("b5ca"),h=i("69f2"),c=s.alloc(128);function u(t,e){o.call(this,"digest"),"string"===typeof e&&(e=s.from(e));var i="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>i){var n="rmd160"===t?new l:h(t);e=n.update(e).digest()}else e.length<i&&(e=s.concat([e,c],i));for(var r=this._ipad=s.allocUnsafe(i),a=this._opad=s.allocUnsafe(i),u=0;u<i;u++)r[u]=54^e[u],a[u]=92^e[u];this._hash="rmd160"===t?new l:h(t),this._hash.update(r)}n(u,o),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){var t=this._hash.digest(),e="rmd160"===this._alg?new l:h(this._alg);return e.update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new u("rmd160",e):"md5"===t?new r(a,e):new u(t,e)}},"1a8c":function(t,e){function i(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=i},"1c3c":function(t,e,i){var n=i("9e69"),r=i("2474"),o=i("9638"),s=i("a2be"),a=i("edfa"),l=i("ac41"),h=1,c=2,u="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",g="[object Number]",m="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object ArrayBuffer]",C="[object DataView]",I=n?n.prototype:void 0,A=I?I.valueOf:void 0;function M(t,e,i,n,I,M,x){switch(i){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!M(new r(t),new r(e)));case u:case d:case g:return o(+t,+e);case f:return t.name==e.name&&t.message==e.message;case m:case b:return t==e+"";case p:var _=a;case v:var S=n&h;if(_||(_=l),t.size!=e.size&&!S)return!1;var k=x.get(t);if(k)return k==e;n|=c,x.set(t,e);var E=s(_(t),_(e),n,I,M,x);return x["delete"](t),E;case y:if(A)return A.call(t)==A.call(e)}return!1}t.exports=M},"1c46":function(t,e,i){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i("11dc"),e.createHash=e.Hash=i("98e6"),e.createHmac=e.Hmac=i("1a2a");var n=i("116d"),r=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return o};var s=i("a099");e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var a=i("956a");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var l=i("00dc");e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var h=i("b692");e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=i("e1d3");var c=i("6442");e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var u=i("75cc");e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"1cec":function(t,e,i){var n=i("0b07"),r=i("2b3e"),o=n(r,"Promise");t.exports=o},"1d2b":function(t,e,i){"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},"1d89":function(t,e,i){},"1e3c":function(t,e,i){var n=i("6430"),r=i("1545"),o=i("3fb5"),s=i("8707").Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function l(t){n.call(this);var e,i=t.mode.toLowerCase(),r=a[i];e=t.decrypt?"decrypt":"encrypt";var o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==i&&"des-ede-cbc"!==i||(o=s.concat([o,o.slice(0,8)]));var l=t.iv;s.isBuffer(l)||(l=s.from(l)),this._des=r.create({key:o,iv:l,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=l,o(l,n),l.prototype._update=function(t){return s.from(this._des.update(t))},l.prototype._final=function(){return s.from(this._des.final())}},"1efc":function(t,e){function i(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=i},"1fb5":function(t,e,i){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=g;for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],r[s.charCodeAt(a)]=a;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function c(t){var e=h(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function u(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=h(t),s=n[0],a=n[1],l=new o(u(t,s,a)),c=0,d=a>0?s-4:s;for(i=0;i<d;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[c++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,i){for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(f(n));return r.join("")}function g(t){for(var e,i=t.length,r=i%3,o=[],s=16383,a=0,l=i-r;a<l;a+=s)o.push(p(t,a,a+s>l?l:a+s));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fc8":function(t,e,i){var n=i("4245");function r(t,e){var i=n(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}t.exports=r},"1fec":function(t,e,i){"use strict";var n=i("da3e"),r=i("3fb5"),o=i("0184"),s=i("4e2b");function a(t,e){n.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i})]}function l(t){o.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}r(l,o),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,i,n){var r=this._edeState;r.ciphers[0]._update(t,e,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},"206d":function(t,e,i){(function(e){var n,r,o=i("8707").Buffer,s=i("7d2a"),a=i("9f9d"),l=i("e07b"),h=i("8be6"),c=e.crypto&&e.crypto.subtle,u={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=[];function f(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];n=n||o.alloc(8);var i=g(n,n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=i,i}function p(){return r||(r=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout,r)}function g(t,e,i,n,r){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:r}},t,n<<3)})).then((function(t){return o.from(t)}))}function m(t,e){t.then((function(t){p()((function(){e(null,t)}))}),(function(t){p()((function(){e(t)}))}))}t.exports=function(t,i,n,r,o,c){"function"===typeof o&&(c=o,o=void 0),o=o||"sha1";var d=u[o.toLowerCase()];if(d&&"function"===typeof e.Promise){if(s(n,r),t=h(t,a,"Password"),i=h(i,a,"Salt"),"function"!==typeof c)throw new Error("No callback provided to pbkdf2");m(f(d).then((function(e){return e?g(t,i,n,r,d):l(t,i,n,r,o)})),c)}else p()((function(){var e;try{e=l(t,i,n,r,o)}catch(s){return c(s)}c(null,e)}))}}).call(this,i("c8ba"))},"20f6":function(t,e,i){"use strict";const n=e;n.der=i("cfbd"),n.pem=i("8df7")},2137:function(t,e,i){"use strict";var n=i("c3c0"),r=i("da3e");function o(t,e,i){if(!(this instanceof o))return new o(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,i))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},"21bf":function(t,e,i){(function(e){(function(e,i){t.exports=i()})(0,(function(){var t=t||function(t,n){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e&&e.crypto&&(r=e.crypto),!r)try{r=i("1c46")}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),a={},l=a.lib={},h=l.Base=function(){return{extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=l.WordArray=h.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<r;o++){var s=i[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(o=0;o<r;o+=4)e[n+o>>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=h.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(o());return new c.init(e,t)}}),u=a.enc={},d=u.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(i,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(i,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=l.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i,n=this._data,r=n.words,o=n.sigBytes,s=this.blockSize,a=4*s,l=o/a;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var h=l*s,u=t.min(4*h,o);if(h){for(var d=0;d<h;d+=s)this._doProcessBlock(r,d);i=r.splice(0,h),n.sigBytes-=u}return new c.init(i,u)},clone:function(){var t=h.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(l.Hasher=g.extend({cfg:h.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new m.HMAC.init(t,i).finalize(e)}}}),a.algo={});return a}(Math);return t}))}).call(this,i("c8ba"))},2286:function(t,e,i){var n=i("85e3"),r=Math.max;function o(t,e,i){return e=r(void 0===e?t.length-1:e,0),function(){var o=arguments,s=-1,a=r(o.length-e,0),l=Array(a);while(++s<a)l[s]=o[e+s];s=-1;var h=Array(e+1);while(++s<e)h[s]=o[s];return h[e]=i(l),n(t,this,h)}}t.exports=o},"22ab":function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}var h=i("b639"),c=h.Buffer,u=i(9),d=u.inspect,f=d&&d.custom||"inspect";function p(t,e,i){c.prototype.copy.call(t,e,i)}t.exports=function(){function t(){s(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,i=""+e.data;while(e=e.next)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),i=this.head,n=0;while(i)p(i.data,e,n),n+=i.data.length,i=i.next;return e}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,n=e.data;t-=n.length;while(e=e.next){var r=e.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),t-=o,0===t){o===r.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=r.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),i=this.head,n=1;i.data.copy(e),t-=i.data.length;while(i=i.next){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),t-=o,0===t){o===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:f,value:function(t,e){return d(this,r({},e,{depth:0,customInspect:!1}))}}]),t}()},2444:function(t,e,i){"use strict";(function(e){var n=i("c532"),r=i("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("b50d")),t}var l={adapter:a(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(o)})),t.exports=l}).call(this,i("4362"))},2474:function(t,e,i){var n=i("2b3e"),r=n.Uint8Array;t.exports=r},2478:function(t,e,i){var n=i("4245");function r(t){return n(this,t).get(t)}t.exports=r},2524:function(t,e,i){var n=i("6044"),r="__lodash_hash_undefined__";function o(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?r:e,this}t.exports=o},"252c":function(t,e,i){"use strict";(function(t){function n(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var i=t.indexOf("Trident/");if(i>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}var r;function o(){o.init||(o.init=!0,r=-1!==n())}i.d(e,"a",(function(){return g}));var s={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var t=this;o(),this.$nextTick((function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight,t.emitOnMount&&t.emitSize()}));var e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function a(t,e,i,n,r,o,s,a,l,h){"boolean"!==typeof s&&(l=a,a=s,s=!1);var c,u="function"===typeof i?i.options:i;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),n&&(u._scopeId=n),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):e&&(c=s?function(t){e.call(this,h(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),c)if(u.functional){var d=u.render;u.render=function(t,e){return c.call(e),d(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return i}var l=s,h=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},c=[];h._withStripped=!0;var u=void 0,d="data-v-8859cc6c",f=void 0,p=!1,g=a({render:h,staticRenderFns:c},u,l,d,p,f,!1,void 0,void 0,void 0);function m(t){t.component("resize-observer",g),t.component("ResizeObserver",g)}var v={version:"1.0.1",install:m},b=null;"undefined"!==typeof window?b=window.Vue:"undefined"!==typeof t&&(b=t.Vue),b&&b.use(v)}).call(this,i("c8ba"))},"253c":function(t,e,i){var n=i("3729"),r=i("1310"),o="[object Arguments]";function s(t){return r(t)&&n(t)==o}t.exports=s},"27bf":function(t,e,i){"use strict";t.exports=s;var n=i("b19a"),r=Object.create(i("3a7c"));function o(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function s(t){if(!(this instanceof s))return new s(t);n.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"===typeof this._flush?this._flush((function(e,i){l(t,e,i)})):l(this,null,null)}function l(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}r.inherits=i("3fb5"),r.inherits(s,n),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,i){throw new Error("_transform() is not implemented")},s.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var i=this;n.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},2801:function(t){t.exports=JSON.parse('{"_from":"elliptic@^6.5.3","_id":"elliptic@6.5.4","_inBundle":false,"_integrity":"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.5.3","saveSpec":null,"fetchSpec":"^6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz","_shasum":"da37cebd31e79a1367e941b592ed1fbebd58abbb","_spec":"elliptic@^6.5.3","_where":"/home/runner/work/dashy/dashy/node_modules/browserify-sign","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"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://git@github.com/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.5.4"}')},2877:function(t,e,i){"use strict";function n(t,e,i,n,r,o,s,a){var l,h="function"===typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=l):r&&(l=a?function(){r.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(h.functional){h._injectStyles=l;var c=h.render;h.render=function(t,e){return l.call(e),c(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:h}}i.d(e,"a",(function(){return n}))},"28c9":function(t,e){function i(){this.__data__=[],this.size=0}t.exports=i},"29f3":function(t,e){var i=Object.prototype,n=i.toString;function r(t){return n.call(t)}t.exports=r},"2aee":function(t,e,i){var n=i("4111"),r=i("d70e"),o=i("4dd0"),s=i("fda6"),a=i("a099"),l=i("8707").Buffer;function h(t){var e;"object"!==typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=l.from(t));var i,r,s=o(t,e),a=s.tag,h=s.data;switch(a){case"CERTIFICATE":r=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=n.PublicKey.decode(h,"der")),i=r.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=n.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":h=n.EncryptedPrivateKey.decode(h,"der"),h=c(h,e);case"PRIVATE KEY":switch(r=n.PrivateKey.decode(h,"der"),i=r.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:n.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=n.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return h=n.ECPrivateKey.decode(h,"der"),{curve:h.parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+a)}}function c(t,e){var i=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=r[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,u=parseInt(o.split("-")[1],10)/8,d=a.pbkdf2Sync(e,i,n,u,"sha1"),f=s.createDecipheriv(o,d,h),p=[];return p.push(f.update(c)),p.push(f.final()),l.concat(p)}t.exports=h,h.signature=n.signature},"2b0e":function(t,e,i){"use strict";(function(t){
/*!
* Vue.js v2.6.14
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
var i=Object.freeze({});function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function o(t){return!0===t}function s(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var h=Object.prototype.toString;function c(t){return"[object Object]"===h.call(t)}function u(t){return"[object RegExp]"===h.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return r(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}m("slot,component",!0);var v=m("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function C(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var I=/-(\w)/g,A=C((function(t){return t.replace(I,(function(t,e){return e?e.toUpperCase():""}))})),M=C((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),x=/\B([A-Z])/g,_=C((function(t){return t.replace(x,"-$1").toLowerCase()}));function S(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i}function k(t,e){return t.bind(e)}var E=Function.prototype.bind?k:S;function T(t,e){e=e||0;var i=t.length-e,n=new Array(i);while(i--)n[i]=t[i+e];return n}function R(t,e){for(var i in e)t[i]=e[i];return t}function O(t){for(var e={},i=0;i<t.length;i++)t[i]&&R(e,t[i]);return e}function j(t,e,i){}var N=function(t,e,i){return!1},L=function(t){return t};function B(t,e){if(t===e)return!0;var i=l(t),n=l(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,i){return B(t,e[i])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(i){return B(t[i],e[i])}))}catch(h){return!1}}function D(t,e){for(var i=0;i<t.length;i++)if(B(t[i],e))return i;return-1}function Z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var P="data-server-rendered",W=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:j,parsePlatformTagName:L,mustUseProp:N,async:!0,_lifecycleHooks:$},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function G(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function F(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var V=new RegExp("[^"+z.source+".$_\\d]");function K(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}var Y,U="__proto__"in{},X="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),q=X&&window.navigator.userAgent.toLowerCase(),tt=q&&/msie|trident/.test(q),et=q&&q.indexOf("msie 9.0")>0,it=q&&q.indexOf("edge/")>0,nt=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===Q),rt=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),ot={}.watch,st=!1;if(X)try{var at={};Object.defineProperty(at,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,at)}catch(Ms){}var lt=function(){return void 0===Y&&(Y=!X&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ht=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"===typeof t&&/native code/.test(t.toString())}var ut,dt="undefined"!==typeof Symbol&&ct(Symbol)&&"undefined"!==typeof Reflect&&ct(Reflect.ownKeys);ut="undefined"!==typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=j,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){b(this.subs,t)},gt.prototype.depend=function(){gt.target&&gt.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,i=t.length;e<i;e++)t[e].update()},gt.target=null;var mt=[];function vt(t){mt.push(t),gt.target=t}function bt(){mt.pop(),gt.target=mt[mt.length-1]}var yt=function(t,e,i,n,r,o,s,a){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},wt={child:{configurable:!0}};wt.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,wt);var Ct=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function It(t){return new yt(void 0,void 0,void 0,String(t))}function At(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Mt=Array.prototype,xt=Object.create(Mt),_t=["push","pop","shift","unshift","splice","sort","reverse"];_t.forEach((function(t){var e=Mt[t];F(xt,t,(function(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];var r,o=e.apply(this,i),s=this.__ob__;switch(t){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o}))}));var St=Object.getOwnPropertyNames(xt),kt=!0;function Et(t){kt=t}var Tt=function(t){this.value=t,this.dep=new gt,this.vmCount=0,F(t,"__ob__",this),Array.isArray(t)?(U?Rt(t,xt):Ot(t,xt,St),this.observeArray(t)):this.walk(t)};function Rt(t,e){t.__proto__=e}function Ot(t,e,i){for(var n=0,r=i.length;n<r;n++){var o=i[n];F(t,o,e[o])}}function jt(t,e){var i;if(l(t)&&!(t instanceof yt))return w(t,"__ob__")&&t.__ob__ instanceof Tt?i=t.__ob__:kt&&!lt()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new Tt(t)),e&&i&&i.vmCount++,i}function Nt(t,e,i,n,r){var o=new gt,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(i=t[e]);var h=!r&&jt(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):i;return gt.target&&(o.depend(),h&&(h.dep.depend(),Array.isArray(e)&&Dt(e))),e},set:function(e){var n=a?a.call(t):i;e===n||e!==e&&n!==n||a&&!l||(l?l.call(t,e):i=e,h=!r&&jt(e),o.notify())}})}}function Lt(t,e,i){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,i),i;if(e in t&&!(e in Object.prototype))return t[e]=i,i;var n=t.__ob__;return t._isVue||n&&n.vmCount?i:n?(Nt(n.value,e,i),n.dep.notify(),i):(t[e]=i,i)}function Bt(t,e){if(Array.isArray(t)&&d(e))t.splice(e,1);else{var i=t.__ob__;t._isVue||i&&i.vmCount||w(t,e)&&(delete t[e],i&&i.dep.notify())}}function Dt(t){for(var e=void 0,i=0,n=t.length;i<n;i++)e=t[i],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Dt(e)}Tt.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Nt(t,e[i])},Tt.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)jt(t[e])};var Zt=H.optionMergeStrategies;function Pt(t,e){if(!e)return t;for(var i,n,r,o=dt?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)i=o[s],"__ob__"!==i&&(n=t[i],r=e[i],w(t,i)?n!==r&&c(n)&&c(r)&&Pt(n,r):Lt(t,i,r));return t}function Wt(t,e,i){return i?function(){var n="function"===typeof e?e.call(i,i):e,r="function"===typeof t?t.call(i,i):t;return n?Pt(n,r):r}:e?t?function(){return Pt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function $t(t,e){var i=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return i?Ht(i):i}function Ht(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}function zt(t,e,i,n){var r=Object.create(t||null);return e?R(r,e):r}Zt.data=function(t,e,i){return i?Wt(t,e,i):e&&"function"!==typeof e?t:Wt(t,e)},$.forEach((function(t){Zt[t]=$t})),W.forEach((function(t){Zt[t+"s"]=zt})),Zt.watch=function(t,e,i,n){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in R(r,t),e){var s=r[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},Zt.props=Zt.methods=Zt.inject=Zt.computed=function(t,e,i,n){if(!t)return e;var r=Object.create(null);return R(r,t),e&&R(r,e),r},Zt.provide=Wt;var Gt=function(t,e){return void 0===e?t:e};function Ft(t,e){var i=t.props;if(i){var n,r,o,s={};if(Array.isArray(i)){n=i.length;while(n--)r=i[n],"string"===typeof r&&(o=A(r),s[o]={type:null})}else if(c(i))for(var a in i)r=i[a],o=A(a),s[o]=c(r)?r:{type:r};else 0;t.props=s}}function Vt(t,e){var i=t.inject;if(i){var n=t.inject={};if(Array.isArray(i))for(var r=0;r<i.length;r++)n[i[r]]={from:i[r]};else if(c(i))for(var o in i){var s=i[o];n[o]=c(s)?R({from:o},s):{from:s}}else 0}}function Kt(t){var e=t.directives;if(e)for(var i in e){var n=e[i];"function"===typeof n&&(e[i]={bind:n,update:n})}}function Yt(t,e,i){if("function"===typeof e&&(e=e.options),Ft(e,i),Vt(e,i),Kt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,i)),e.mixins))for(var n=0,r=e.mixins.length;n<r;n++)t=Yt(t,e.mixins[n],i);var o,s={};for(o in t)a(o);for(o in e)w(t,o)||a(o);function a(n){var r=Zt[n]||Gt;s[n]=r(t[n],e[n],i,n)}return s}function Ut(t,e,i,n){if("string"===typeof i){var r=t[e];if(w(r,i))return r[i];var o=A(i);if(w(r,o))return r[o];var s=M(o);if(w(r,s))return r[s];var a=r[i]||r[o]||r[s];return a}}function Xt(t,e,i,n){var r=e[t],o=!w(i,t),s=i[t],a=ee(Boolean,r.type);if(a>-1)if(o&&!w(r,"default"))s=!1;else if(""===s||s===_(t)){var l=ee(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=Jt(n,r,t);var h=kt;Et(!0),jt(s),Et(h)}return s}function Jt(t,e,i){if(w(e,"default")){var n=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i]?t._props[i]:"function"===typeof n&&"Function"!==qt(e.type)?n.call(t):n}}var Qt=/^\s*function (\w+)/;function qt(t){var e=t&&t.toString().match(Qt);return e?e[1]:""}function te(t,e){return qt(t)===qt(e)}function ee(t,e){if(!Array.isArray(e))return te(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(te(e[i],t))return i;return-1}function ie(t,e,i){vt();try{if(e){var n=e;while(n=n.$parent){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(n,t,e,i);if(s)return}catch(Ms){re(Ms,n,"errorCaptured hook")}}}re(t,e,i)}finally{bt()}}function ne(t,e,i,n,r){var o;try{o=i?t.apply(e,i):t.call(e),o&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(t){return ie(t,n,r+" (Promise/async)")})),o._handled=!0)}catch(Ms){ie(Ms,n,r)}return o}function re(t,e,i){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,i)}catch(Ms){Ms!==t&&oe(Ms,null,"config.errorHandler")}oe(t,e,i)}function oe(t,e,i){if(!X&&!J||"undefined"===typeof console)throw t;console.error(t)}var se,ae=!1,le=[],he=!1;function ce(){he=!1;var t=le.slice(0);le.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ct(Promise)){var ue=Promise.resolve();se=function(){ue.then(ce),nt&&setTimeout(j)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ct(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())se="undefined"!==typeof setImmediate&&ct(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var de=1,fe=new MutationObserver(ce),pe=document.createTextNode(String(de));fe.observe(pe,{characterData:!0}),se=function(){de=(de+1)%2,pe.data=String(de)},ae=!0}function ge(t,e){var i;if(le.push((function(){if(t)try{t.call(e)}catch(Ms){ie(Ms,e,"nextTick")}else i&&i(e)})),he||(he=!0,se()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){i=t}))}var me=new ut;function ve(t){be(t,me),me.clear()}function be(t,e){var i,n,r=Array.isArray(t);if(!(!r&&!l(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r){i=t.length;while(i--)be(t[i],e)}else{n=Object.keys(t),i=n.length;while(i--)be(t[n[i]],e)}}}var ye=C((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var i="~"===t.charAt(0);t=i?t.slice(1):t;var n="!"===t.charAt(0);return t=n?t.slice(1):t,{name:t,once:i,capture:n,passive:e}}));function we(t,e){function i(){var t=arguments,n=i.fns;if(!Array.isArray(n))return ne(n,null,arguments,e,"v-on handler");for(var r=n.slice(),o=0;o<r.length;o++)ne(r[o],null,t,e,"v-on handler")}return i.fns=t,i}function Ce(t,e,i,r,s,a){var l,h,c,u;for(l in t)h=t[l],c=e[l],u=ye(l),n(h)||(n(c)?(n(h.fns)&&(h=t[l]=we(h,a)),o(u.once)&&(h=t[l]=s(u.name,h,u.capture)),i(u.name,h,u.capture,u.passive,u.params)):h!==c&&(c.fns=h,t[l]=c));for(l in e)n(t[l])&&(u=ye(l),r(u.name,e[l],u.capture))}function Ie(t,e,i){var s;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function l(){i.apply(this,arguments),b(s.fns,l)}n(a)?s=we([l]):r(a.fns)&&o(a.merged)?(s=a,s.fns.push(l)):s=we([a,l]),s.merged=!0,t[e]=s}function Ae(t,e,i){var o=e.options.props;if(!n(o)){var s={},a=t.attrs,l=t.props;if(r(a)||r(l))for(var h in o){var c=_(h);Me(s,l,h,c,!0)||Me(s,a,h,c,!1)}return s}}function Me(t,e,i,n,o){if(r(e)){if(w(e,i))return t[i]=e[i],o||delete e[i],!0;if(w(e,n))return t[i]=e[n],o||delete e[n],!0}return!1}function xe(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function _e(t){return a(t)?[It(t)]:Array.isArray(t)?ke(t):void 0}function Se(t){return r(t)&&r(t.text)&&s(t.isComment)}function ke(t,e){var i,s,l,h,c=[];for(i=0;i<t.length;i++)s=t[i],n(s)||"boolean"===typeof s||(l=c.length-1,h=c[l],Array.isArray(s)?s.length>0&&(s=ke(s,(e||"")+"_"+i),Se(s[0])&&Se(h)&&(c[l]=It(h.text+s[0].text),s.shift()),c.push.apply(c,s)):a(s)?Se(h)?c[l]=It(h.text+s):""!==s&&c.push(It(s)):Se(s)&&Se(h)?c[l]=It(h.text+s.text):(o(t._isVList)&&r(s.tag)&&n(s.key)&&r(e)&&(s.key="__vlist"+e+"_"+i+"__"),c.push(s)));return c}function Ee(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Re(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(i){Nt(t,i,e[i])})),Et(!0))}function Re(t,e){if(t){for(var i=Object.create(null),n=dt?Reflect.ownKeys(t):Object.keys(t),r=0;r<n.length;r++){var o=n[r];if("__ob__"!==o){var s=t[o].from,a=e;while(a){if(a._provided&&w(a._provided,s)){i[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in t[o]){var l=t[o].default;i[o]="function"===typeof l?l.call(e):l}else 0}}return i}}function Oe(t,e){if(!t||!t.length)return{};for(var i={},n=0,r=t.length;n<r;n++){var o=t[n],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(i.default||(i.default=[])).push(o);else{var a=s.slot,l=i[a]||(i[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var h in i)i[h].every(je)&&delete i[h];return i}function je(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ne(t){return t.isComment&&t.asyncFactory}function Le(t,e,n){var r,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==i&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var l in r={},t)t[l]&&"$"!==l[0]&&(r[l]=Be(e,l,t[l]))}else r={};for(var h in e)h in r||(r[h]=De(e,h));return t&&Object.isExtensible(t)&&(t._normalized=r),F(r,"$stable",s),F(r,"$key",a),F(r,"$hasNormal",o),r}function Be(t,e,i){var n=function(){var t=arguments.length?i.apply(null,arguments):i({});t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:_e(t);var e=t&&t[0];return t&&(!e||1===t.length&&e.isComment&&!Ne(e))?void 0:t};return i.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function De(t,e){return function(){return t[e]}}function Ze(t,e){var i,n,o,s,a;if(Array.isArray(t)||"string"===typeof t)for(i=new Array(t.length),n=0,o=t.length;n<o;n++)i[n]=e(t[n],n);else if("number"===typeof t)for(i=new Array(t),n=0;n<t;n++)i[n]=e(n+1,n);else if(l(t))if(dt&&t[Symbol.iterator]){i=[];var h=t[Symbol.iterator](),c=h.next();while(!c.done)i.push(e(c.value,i.length)),c=h.next()}else for(s=Object.keys(t),i=new Array(s.length),n=0,o=s.length;n<o;n++)a=s[n],i[n]=e(t[a],a,n);return r(i)||(i=[]),i._isVList=!0,i}function Pe(t,e,i,n){var r,o=this.$scopedSlots[t];o?(i=i||{},n&&(i=R(R({},n),i)),r=o(i)||("function"===typeof e?e():e)):r=this.$slots[t]||("function"===typeof e?e():e);var s=i&&i.slot;return s?this.$createElement("template",{slot:s},r):r}function We(t){return Ut(this.$options,"filters",t,!0)||L}function $e(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function He(t,e,i,n,r){var o=H.keyCodes[e]||i;return r&&n&&!H.keyCodes[e]?$e(r,n):o?$e(o,t):n?_(n)!==e:void 0===t}function ze(t,e,i,n,r){if(i)if(l(i)){var o;Array.isArray(i)&&(i=O(i));var s=function(s){if("class"===s||"style"===s||v(s))o=t;else{var a=t.attrs&&t.attrs.type;o=n||H.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=A(s),h=_(s);if(!(l in o)&&!(h in o)&&(o[s]=i[s],r)){var c=t.on||(t.on={});c["update:"+s]=function(t){i[s]=t}}};for(var a in i)s(a)}else;return t}function Ge(t,e){var i=this._staticTrees||(this._staticTrees=[]),n=i[t];return n&&!e||(n=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ve(n,"__static__"+t,!1)),n}function Fe(t,e,i){return Ve(t,"__once__"+e+(i?"_"+i:""),!0),t}function Ve(t,e,i){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!==typeof t[n]&&Ke(t[n],e+"_"+n,i);else Ke(t,e,i)}function Ke(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function Ye(t,e){if(e)if(c(e)){var i=t.on=t.on?R({},t.on):{};for(var n in e){var r=i[n],o=e[n];i[n]=r?[].concat(r,o):o}}else;return t}function Ue(t,e,i,n){e=e||{$stable:!i};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?Ue(o,e,i):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return n&&(e.$key=n),e}function Xe(t,e){for(var i=0;i<e.length;i+=2){var n=e[i];"string"===typeof n&&n&&(t[e[i]]=e[i+1])}return t}function Je(t,e){return"string"===typeof t?e+t:t}function Qe(t){t._o=Fe,t._n=g,t._s=p,t._l=Ze,t._t=Pe,t._q=B,t._i=D,t._m=Ge,t._f=We,t._k=He,t._b=ze,t._v=It,t._e=Ct,t._u=Ue,t._g=Ye,t._d=Xe,t._p=Je}function qe(t,e,n,r,s){var a,l=this,h=s.options;w(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var c=o(h._compiled),u=!c;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=Re(h.inject,r),this.slots=function(){return l.$slots||Le(t.scopedSlots,l.$slots=Oe(n,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Le(t.scopedSlots,this.slots())}}),c&&(this.$options=h,this.$slots=this.slots(),this.$scopedSlots=Le(t.scopedSlots,this.$slots)),h._scopeId?this._c=function(t,e,i,n){var o=di(a,t,e,i,n,u);return o&&!Array.isArray(o)&&(o.fnScopeId=h._scopeId,o.fnContext=r),o}:this._c=function(t,e,i,n){return di(a,t,e,i,n,u)}}function ti(t,e,n,o,s){var a=t.options,l={},h=a.props;if(r(h))for(var c in h)l[c]=Xt(c,h,e||i);else r(n.attrs)&&ii(l,n.attrs),r(n.props)&&ii(l,n.props);var u=new qe(n,l,s,o,t),d=a.render.call(null,u._c,u);if(d instanceof yt)return ei(d,n,u.parent,a,u);if(Array.isArray(d)){for(var f=_e(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=ei(f[g],n,u.parent,a,u);return p}}function ei(t,e,i,n,r){var o=At(t);return o.fnContext=i,o.fnOptions=n,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function ii(t,e){for(var i in e)t[A(i)]=e[i]}Qe(qe.prototype);var ni={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;ni.prepatch(i,i)}else{var n=t.componentInstance=si(t,Ti);n.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions,n=e.componentInstance=t.componentInstance;Li(n,i.propsData,i.listeners,e,i.children)},insert:function(t){var e=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,Pi(i,"mounted")),t.data.keepAlive&&(e._isMounted?Qi(i):Di(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Zi(e,!0):e.$destroy())}},ri=Object.keys(ni);function oi(t,e,i,s,a){if(!n(t)){var h=i.$options._base;if(l(t)&&(t=h.extend(t)),"function"===typeof t){var c;if(n(t.cid)&&(c=t,t=Ii(c,h),void 0===t))return Ci(c,e,i,s,a);e=e||{},In(t),r(e.model)&&hi(t.options,e);var u=Ae(e,t,a);if(o(t.options.functional))return ti(t,u,e,i,s);var d=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}ai(e);var p=t.options.name||a,g=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,i,{Ctor:t,propsData:u,listeners:d,tag:a,children:s},c);return g}}}function si(t,e){var i={_isComponent:!0,_parentVnode:t,parent:e},n=t.data.inlineTemplate;return r(n)&&(i.render=n.render,i.staticRenderFns=n.staticRenderFns),new t.componentOptions.Ctor(i)}function ai(t){for(var e=t.hook||(t.hook={}),i=0;i<ri.length;i++){var n=ri[i],r=e[n],o=ni[n];r===o||r&&r._merged||(e[n]=r?li(o,r):o)}}function li(t,e){var i=function(i,n){t(i,n),e(i,n)};return i._merged=!0,i}function hi(t,e){var i=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[i]=e.model.value;var o=e.on||(e.on={}),s=o[n],a=e.model.callback;r(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[n]=[a].concat(s)):o[n]=a}var ci=1,ui=2;function di(t,e,i,n,r,s){return(Array.isArray(i)||a(i))&&(r=n,n=i,i=void 0),o(s)&&(r=ui),fi(t,e,i,n,r)}function fi(t,e,i,n,o){if(r(i)&&r(i.__ob__))return Ct();if(r(i)&&r(i.is)&&(e=i.is),!e)return Ct();var s,a,l;(Array.isArray(n)&&"function"===typeof n[0]&&(i=i||{},i.scopedSlots={default:n[0]},n.length=0),o===ui?n=_e(n):o===ci&&(n=xe(n)),"string"===typeof e)?(a=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),s=H.isReservedTag(e)?new yt(H.parsePlatformTagName(e),i,n,void 0,void 0,t):i&&i.pre||!r(l=Ut(t.$options,"components",e))?new yt(e,i,n,void 0,void 0,t):oi(l,i,t,n,e)):s=oi(e,i,t,n);return Array.isArray(s)?s:r(s)?(r(a)&&pi(s,a),r(i)&&gi(i),s):Ct()}function pi(t,e,i){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,i=!0),r(t.children))for(var s=0,a=t.children.length;s<a;s++){var l=t.children[s];r(l.tag)&&(n(l.ns)||o(i)&&"svg"!==l.tag)&&pi(l,e,i)}}function gi(t){l(t.style)&&ve(t.style),l(t.class)&&ve(t.class)}function mi(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Oe(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,i,n,r){return di(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return di(t,e,i,n,r,!0)};var o=n&&n.data;Nt(t,"$attrs",o&&o.attrs||i,null,!0),Nt(t,"$listeners",e._parentListeners||i,null,!0)}var vi,bi=null;function yi(t){Qe(t.prototype),t.prototype.$nextTick=function(t){return ge(t,this)},t.prototype._render=function(){var t,e=this,i=e.$options,n=i.render,r=i._parentVnode;r&&(e.$scopedSlots=Le(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{bi=e,t=n.call(e._renderProxy,e.$createElement)}catch(Ms){ie(Ms,e,"render"),t=e._vnode}finally{bi=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=Ct()),t.parent=r,t}}function wi(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Ci(t,e,i,n,r){var o=Ct();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:n,tag:r},o}function Ii(t,e){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;var i=bi;if(i&&r(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i),o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(i&&!r(t.owners)){var s=t.owners=[i],a=!0,h=null,c=null;i.$on("hook:destroyed",(function(){return b(s,i)}));var u=function(t){for(var e=0,i=s.length;e<i;e++)s[e].$forceUpdate();t&&(s.length=0,null!==h&&(clearTimeout(h),h=null),null!==c&&(clearTimeout(c),c=null))},d=Z((function(i){t.resolved=wi(i,e),a?s.length=0:u(!0)})),p=Z((function(e){r(t.errorComp)&&(t.error=!0,u(!0))})),g=t(d,p);return l(g)&&(f(g)?n(t.resolved)&&g.then(d,p):f(g.component)&&(g.component.then(d,p),r(g.error)&&(t.errorComp=wi(g.error,e)),r(g.loading)&&(t.loadingComp=wi(g.loading,e),0===g.delay?t.loading=!0:h=setTimeout((function(){h=null,n(t.resolved)&&n(t.error)&&(t.loading=!0,u(!1))}),g.delay||200)),r(g.timeout)&&(c=setTimeout((function(){c=null,n(t.resolved)&&p(null)}),g.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}function Ai(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(r(i)&&(r(i.componentOptions)||Ne(i)))return i}}function Mi(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&ki(t,e)}function xi(t,e){vi.$on(t,e)}function _i(t,e){vi.$off(t,e)}function Si(t,e){var i=vi;return function n(){var r=e.apply(null,arguments);null!==r&&i.$off(t,n)}}function ki(t,e,i){vi=t,Ce(e,i||{},xi,_i,Si,t),vi=void 0}function Ei(t){var e=/^hook:/;t.prototype.$on=function(t,i){var n=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)n.$on(t[r],i);else(n._events[t]||(n._events[t]=[])).push(i),e.test(t)&&(n._hasHookEvent=!0);return n},t.prototype.$once=function(t,e){var i=this;function n(){i.$off(t,n),e.apply(i,arguments)}return n.fn=e,i.$on(t,n),i},t.prototype.$off=function(t,e){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)i.$off(t[n],e);return i}var o,s=i._events[t];if(!s)return i;if(!e)return i._events[t]=null,i;var a=s.length;while(a--)if(o=s[a],o===e||o.fn===e){s.splice(a,1);break}return i},t.prototype.$emit=function(t){var e=this,i=e._events[t];if(i){i=i.length>1?T(i):i;for(var n=T(arguments,1),r='event handler for "'+t+'"',o=0,s=i.length;o<s;o++)ne(i[o],e,n,e,r)}return e}}var Ti=null;function Ri(t){var e=Ti;return Ti=t,function(){Ti=e}}function Oi(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){while(i.$options.abstract&&i.$parent)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function ji(t){t.prototype._update=function(t,e){var i=this,n=i.$el,r=i._vnode,o=Ri(i);i._vnode=t,i.$el=r?i.__patch__(r,t):i.__patch__(i.$el,t,e,!1),o(),n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Pi(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();var i=t._watchers.length;while(i--)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Pi(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Ni(t,e,i){var n;return t.$el=e,t.$options.render||(t.$options.render=Ct),Pi(t,"beforeMount"),n=function(){t._update(t._render(),i)},new nn(t,n,j,{before:function(){t._isMounted&&!t._isDestroyed&&Pi(t,"beforeUpdate")}},!0),i=!1,null==t.$vnode&&(t._isMounted=!0,Pi(t,"mounted")),t}function Li(t,e,n,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,l=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),h=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){Et(!1);for(var c=t._props,u=t.$options._propKeys||[],d=0;d<u.length;d++){var f=u[d],p=t.$options.props;c[f]=Xt(f,p,e,t)}Et(!0),t.$options.propsData=e}n=n||i;var g=t.$options._parentListeners;t.$options._parentListeners=n,ki(t,n,g),h&&(t.$slots=Oe(o,r.context),t.$forceUpdate())}function Bi(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Di(t,e){if(e){if(t._directInactive=!1,Bi(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)Di(t.$children[i]);Pi(t,"activated")}}function Zi(t,e){if((!e||(t._directInactive=!0,!Bi(t)))&&!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)Zi(t.$children[i]);Pi(t,"deactivated")}}function Pi(t,e){vt();var i=t.$options[e],n=e+" hook";if(i)for(var r=0,o=i.length;r<o;r++)ne(i[r],t,null,t,n);t._hasHookEvent&&t.$emit("hook:"+e),bt()}var Wi=[],$i=[],Hi={},zi=!1,Gi=!1,Fi=0;function Vi(){Fi=Wi.length=$i.length=0,Hi={},zi=Gi=!1}var Ki=0,Yi=Date.now;if(X&&!tt){var Ui=window.performance;Ui&&"function"===typeof Ui.now&&Yi()>document.createEvent("Event").timeStamp&&(Yi=function(){return Ui.now()})}function Xi(){var t,e;for(Ki=Yi(),Gi=!0,Wi.sort((function(t,e){return t.id-e.id})),Fi=0;Fi<Wi.length;Fi++)t=Wi[Fi],t.before&&t.before(),e=t.id,Hi[e]=null,t.run();var i=$i.slice(),n=Wi.slice();Vi(),qi(i),Ji(n),ht&&H.devtools&&ht.emit("flush")}function Ji(t){var e=t.length;while(e--){var i=t[e],n=i.vm;n._watcher===i&&n._isMounted&&!n._isDestroyed&&Pi(n,"updated")}}function Qi(t){t._inactive=!1,$i.push(t)}function qi(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Di(t[e],!0)}function tn(t){var e=t.id;if(null==Hi[e]){if(Hi[e]=!0,Gi){var i=Wi.length-1;while(i>Fi&&Wi[i].id>t.id)i--;Wi.splice(i+1,0,t)}else Wi.push(t);zi||(zi=!0,ge(Xi))}}var en=0,nn=function(t,e,i,n,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++en,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ut,this.newDepIds=new ut,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};nn.prototype.get=function(){var t;vt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ms){if(!this.user)throw Ms;ie(Ms,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),bt(),this.cleanupDeps()}return t},nn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},nn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tn(this)},nn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user){var i='callback for watcher "'+this.expression+'"';ne(this.cb,this.vm,[t,e],this.vm,i)}else this.cb.call(this.vm,t,e)}}},nn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rn={enumerable:!0,configurable:!0,get:j,set:j};function on(t,e,i){rn.get=function(){return this[e][i]},rn.set=function(t){this[e][i]=t},Object.defineProperty(t,i,rn)}function sn(t){t._watchers=[];var e=t.$options;e.props&&an(t,e.props),e.methods&&gn(t,e.methods),e.data?ln(t):jt(t._data={},!0),e.computed&&un(t,e.computed),e.watch&&e.watch!==ot&&mn(t,e.watch)}function an(t,e){var i=t.$options.propsData||{},n=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var s=function(o){r.push(o);var s=Xt(o,e,i,t);Nt(n,o,s),o in t||on(t,"_props",o)};for(var a in e)s(a);Et(!0)}function ln(t){var e=t.$options.data;e=t._data="function"===typeof e?hn(e,t):e||{},c(e)||(e={});var i=Object.keys(e),n=t.$options.props,r=(t.$options.methods,i.length);while(r--){var o=i[r];0,n&&w(n,o)||G(o)||on(t,"_data",o)}jt(e,!0)}function hn(t,e){vt();try{return t.call(e,e)}catch(Ms){return ie(Ms,e,"data()"),{}}finally{bt()}}var cn={lazy:!0};function un(t,e){var i=t._computedWatchers=Object.create(null),n=lt();for(var r in e){var o=e[r],s="function"===typeof o?o:o.get;0,n||(i[r]=new nn(t,s||j,j,cn)),r in t||dn(t,r,o)}}function dn(t,e,i){var n=!lt();"function"===typeof i?(rn.get=n?fn(e):pn(i),rn.set=j):(rn.get=i.get?n&&!1!==i.cache?fn(e):pn(i.get):j,rn.set=i.set||j),Object.defineProperty(t,e,rn)}function fn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function pn(t){return function(){return t.call(this,this)}}function gn(t,e){t.$options.props;for(var i in e)t[i]="function"!==typeof e[i]?j:E(e[i],t)}function mn(t,e){for(var i in e){var n=e[i];if(Array.isArray(n))for(var r=0;r<n.length;r++)vn(t,i,n[r]);else vn(t,i,n)}}function vn(t,e,i,n){return c(i)&&(n=i,i=i.handler),"string"===typeof i&&(i=t[i]),t.$watch(e,i,n)}function bn(t){var e={get:function(){return this._data}},i={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=Lt,t.prototype.$delete=Bt,t.prototype.$watch=function(t,e,i){var n=this;if(c(e))return vn(n,t,e,i);i=i||{},i.user=!0;var r=new nn(n,t,e,i);if(i.immediate){var o='callback for immediate watcher "'+r.expression+'"';vt(),ne(e,n,[r.value],n,o),bt()}return function(){r.teardown()}}}var yn=0;function wn(t){t.prototype._init=function(t){var e=this;e._uid=yn++,e._isVue=!0,t&&t._isComponent?Cn(e,t):e.$options=Yt(In(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Oi(e),Mi(e),mi(e),Pi(e,"beforeCreate"),Te(e),sn(e),Ee(e),Pi(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function Cn(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}function In(t){var e=t.options;if(t.super){var i=In(t.super),n=t.superOptions;if(i!==n){t.superOptions=i;var r=An(t);r&&R(t.extendOptions,r),e=t.options=Yt(i,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function An(t){var e,i=t.options,n=t.sealedOptions;for(var r in i)i[r]!==n[r]&&(e||(e={}),e[r]=i[r]);return e}function Mn(t){this._init(t)}function xn(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=T(arguments,1);return i.unshift(this),"function"===typeof t.install?t.install.apply(t,i):"function"===typeof t&&t.apply(null,i),e.push(t),this}}function _n(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Sn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=t.name||i.options.name;var s=function(t){this._init(t)};return s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.cid=e++,s.options=Yt(i.options,t),s["super"]=i,s.options.props&&kn(s),s.options.computed&&En(s),s.extend=i.extend,s.mixin=i.mixin,s.use=i.use,W.forEach((function(t){s[t]=i[t]})),o&&(s.options.components[o]=s),s.superOptions=i.options,s.extendOptions=t,s.sealedOptions=R({},s.options),r[n]=s,s}}function kn(t){var e=t.options.props;for(var i in e)on(t.prototype,"_props",i)}function En(t){var e=t.options.computed;for(var i in e)dn(t.prototype,i,e[i])}function Tn(t){W.forEach((function(e){t[e]=function(t,i){return i?("component"===e&&c(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"===typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}}))}function Rn(t){return t&&(t.Ctor.options.name||t.tag)}function On(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!u(t)&&t.test(e)}function jn(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var s=i[o];if(s){var a=s.name;a&&!e(a)&&Nn(i,o,n,r)}}}function Nn(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,b(i,e)}wn(Mn),bn(Mn),Ei(Mn),ji(Mn),yi(Mn);var Ln=[String,RegExp,Array],Bn={name:"keep-alive",abstract:!0,props:{include:Ln,exclude:Ln,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,i=t.keys,n=t.vnodeToCache,r=t.keyToCache;if(n){var o=n.tag,s=n.componentInstance,a=n.componentOptions;e[r]={name:Rn(a),tag:o,componentInstance:s},i.push(r),this.max&&i.length>parseInt(this.max)&&Nn(e,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Nn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){jn(t,(function(t){return On(e,t)}))})),this.$watch("exclude",(function(e){jn(t,(function(t){return!On(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ai(t),i=e&&e.componentOptions;if(i){var n=Rn(i),r=this,o=r.include,s=r.exclude;if(o&&(!n||!On(o,n))||s&&n&&On(s,n))return e;var a=this,l=a.cache,h=a.keys,c=null==e.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,b(h,c),h.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Dn={KeepAlive:Bn};function Zn(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ft,extend:R,mergeOptions:Yt,defineReactive:Nt},t.set=Lt,t.delete=Bt,t.nextTick=ge,t.observable=function(t){return jt(t),t},t.options=Object.create(null),W.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,Dn),xn(t),_n(t),Sn(t),Tn(t)}Zn(Mn),Object.defineProperty(Mn.prototype,"$isServer",{get:lt}),Object.defineProperty(Mn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Mn,"FunctionalRenderContext",{value:qe}),Mn.version="2.6.14";var Pn=m("style,class"),Wn=m("input,textarea,option,select,progress"),$n=function(t,e,i){return"value"===i&&Wn(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Hn=m("contenteditable,draggable,spellcheck"),zn=m("events,caret,typing,plaintext-only"),Gn=function(t,e){return Un(e)||"false"===e?"false":"contenteditable"===t&&zn(e)?e:"true"},Fn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Vn="http://www.w3.org/1999/xlink",Kn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yn=function(t){return Kn(t)?t.slice(6,t.length):""},Un=function(t){return null==t||!1===t};function Xn(t){var e=t.data,i=t,n=t;while(r(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(e=Jn(n.data,e));while(r(i=i.parent))i&&i.data&&(e=Jn(e,i.data));return Qn(e.staticClass,e.class)}function Jn(t,e){return{staticClass:qn(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Qn(t,e){return r(t)||r(e)?qn(t,tr(e)):""}function qn(t,e){return t?e?t+" "+e:t:e||""}function tr(t){return Array.isArray(t)?er(t):l(t)?ir(t):"string"===typeof t?t:""}function er(t){for(var e,i="",n=0,o=t.length;n<o;n++)r(e=tr(t[n]))&&""!==e&&(i&&(i+=" "),i+=e);return i}function ir(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}var nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},rr=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),or=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),sr=function(t){return rr(t)||or(t)};function ar(t){return or(t)?"svg":"math"===t?"math":void 0}var lr=Object.create(null);function hr(t){if(!X)return!0;if(sr(t))return!1;if(t=t.toLowerCase(),null!=lr[t])return lr[t];var e=document.createElement(t);return t.indexOf("-")>-1?lr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:lr[t]=/HTMLUnknownElement/.test(e.toString())}var cr=m("text,number,password,search,email,tel,url");function ur(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function dr(t,e){var i=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i}function fr(t,e){return document.createElementNS(nr[t],e)}function pr(t){return document.createTextNode(t)}function gr(t){return document.createComment(t)}function mr(t,e,i){t.insertBefore(e,i)}function vr(t,e){t.removeChild(e)}function br(t,e){t.appendChild(e)}function yr(t){return t.parentNode}function wr(t){return t.nextSibling}function Cr(t){return t.tagName}function Ir(t,e){t.textContent=e}function Ar(t,e){t.setAttribute(e,"")}var Mr=Object.freeze({createElement:dr,createElementNS:fr,createTextNode:pr,createComment:gr,insertBefore:mr,removeChild:vr,appendChild:br,parentNode:yr,nextSibling:wr,tagName:Cr,setTextContent:Ir,setStyleScope:Ar}),xr={create:function(t,e){_r(e)},update:function(t,e){t.data.ref!==e.data.ref&&(_r(t,!0),_r(e))},destroy:function(t){_r(t,!0)}};function _r(t,e){var i=t.data.ref;if(r(i)){var n=t.context,o=t.componentInstance||t.elm,s=n.$refs;e?Array.isArray(s[i])?b(s[i],o):s[i]===o&&(s[i]=void 0):t.data.refInFor?Array.isArray(s[i])?s[i].indexOf(o)<0&&s[i].push(o):s[i]=[o]:s[i]=o}}var Sr=new yt("",{},[]),kr=["create","activate","update","remove","destroy"];function Er(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Tr(t,e)||o(t.isAsyncPlaceholder)&&n(e.asyncFactory.error))}function Tr(t,e){if("input"!==t.tag)return!0;var i,n=r(i=t.data)&&r(i=i.attrs)&&i.type,o=r(i=e.data)&&r(i=i.attrs)&&i.type;return n===o||cr(n)&&cr(o)}function Rr(t,e,i){var n,o,s={};for(n=e;n<=i;++n)o=t[n].key,r(o)&&(s[o]=n);return s}function Or(t){var e,i,s={},l=t.modules,h=t.nodeOps;for(e=0;e<kr.length;++e)for(s[kr[e]]=[],i=0;i<l.length;++i)r(l[i][kr[e]])&&s[kr[e]].push(l[i][kr[e]]);function c(t){return new yt(h.tagName(t).toLowerCase(),{},[],void 0,t)}function u(t,e){function i(){0===--i.listeners&&d(t)}return i.listeners=e,i}function d(t){var e=h.parentNode(t);r(e)&&h.removeChild(e,t)}function f(t,e,i,n,s,a,l){if(r(t.elm)&&r(a)&&(t=a[l]=At(t)),t.isRootInsert=!s,!p(t,e,i,n)){var c=t.data,u=t.children,d=t.tag;r(d)?(t.elm=t.ns?h.createElementNS(t.ns,d):h.createElement(d,t),I(t),y(t,u,e),r(c)&&C(t,e),b(i,t.elm,n)):o(t.isComment)?(t.elm=h.createComment(t.text),b(i,t.elm,n)):(t.elm=h.createTextNode(t.text),b(i,t.elm,n))}}function p(t,e,i,n){var s=t.data;if(r(s)){var a=r(t.componentInstance)&&s.keepAlive;if(r(s=s.hook)&&r(s=s.init)&&s(t,!1),r(t.componentInstance))return g(t,e),b(i,t.elm,n),o(a)&&v(t,e,i,n),!0}}function g(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(C(t,e),I(t)):(_r(t),e.push(t))}function v(t,e,i,n){var o,a=t;while(a.componentInstance)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Sr,a);e.push(a);break}b(i,t.elm,n)}function b(t,e,i){r(t)&&(r(i)?h.parentNode(i)===t&&h.insertBefore(t,e,i):h.appendChild(t,e))}function y(t,e,i){if(Array.isArray(e)){0;for(var n=0;n<e.length;++n)f(e[n],i,t.elm,null,!0,e,n)}else a(t.text)&&h.appendChild(t.elm,h.createTextNode(String(t.text)))}function w(t){while(t.componentInstance)t=t.componentInstance._vnode;return r(t.tag)}function C(t,i){for(var n=0;n<s.create.length;++n)s.create[n](Sr,t);e=t.data.hook,r(e)&&(r(e.create)&&e.create(Sr,t),r(e.insert)&&i.push(t))}function I(t){var e;if(r(e=t.fnScopeId))h.setStyleScope(t.elm,e);else{var i=t;while(i)r(e=i.context)&&r(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e),i=i.parent}r(e=Ti)&&e!==t.context&&e!==t.fnContext&&r(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e)}function A(t,e,i,n,r,o){for(;n<=r;++n)f(i[n],o,t,e,!1,i,n)}function M(t){var e,i,n=t.data;if(r(n))for(r(e=n.hook)&&r(e=e.destroy)&&e(t),e=0;e<s.destroy.length;++e)s.destroy[e](t);if(r(e=t.children))for(i=0;i<t.children.length;++i)M(t.children[i])}function x(t,e,i){for(;e<=i;++e){var n=t[e];r(n)&&(r(n.tag)?(_(n),M(n)):d(n.elm))}}function _(t,e){if(r(e)||r(t.data)){var i,n=s.remove.length+1;for(r(e)?e.listeners+=n:e=u(t.elm,n),r(i=t.componentInstance)&&r(i=i._vnode)&&r(i.data)&&_(i,e),i=0;i<s.remove.length;++i)s.remove[i](t,e);r(i=t.data.hook)&&r(i=i.remove)?i(t,e):e()}else d(t.elm)}function S(t,e,i,o,s){var a,l,c,u,d=0,p=0,g=e.length-1,m=e[0],v=e[g],b=i.length-1,y=i[0],w=i[b],C=!s;while(d<=g&&p<=b)n(m)?m=e[++d]:n(v)?v=e[--g]:Er(m,y)?(E(m,y,o,i,p),m=e[++d],y=i[++p]):Er(v,w)?(E(v,w,o,i,b),v=e[--g],w=i[--b]):Er(m,w)?(E(m,w,o,i,b),C&&h.insertBefore(t,m.elm,h.nextSibling(v.elm)),m=e[++d],w=i[--b]):Er(v,y)?(E(v,y,o,i,p),C&&h.insertBefore(t,v.elm,m.elm),v=e[--g],y=i[++p]):(n(a)&&(a=Rr(e,d,g)),l=r(y.key)?a[y.key]:k(y,e,d,g),n(l)?f(y,o,t,m.elm,!1,i,p):(c=e[l],Er(c,y)?(E(c,y,o,i,p),e[l]=void 0,C&&h.insertBefore(t,c.elm,m.elm)):f(y,o,t,m.elm,!1,i,p)),y=i[++p]);d>g?(u=n(i[b+1])?null:i[b+1].elm,A(t,u,i,p,b,o)):p>b&&x(e,d,g)}function k(t,e,i,n){for(var o=i;o<n;o++){var s=e[o];if(r(s)&&Er(t,s))return o}}function E(t,e,i,a,l,c){if(t!==e){r(e.elm)&&r(a)&&(e=a[l]=At(e));var u=e.elm=t.elm;if(o(t.isAsyncPlaceholder))r(e.asyncFactory.resolved)?O(t.elm,e,i):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;r(f)&&r(d=f.hook)&&r(d=d.prepatch)&&d(t,e);var p=t.children,g=e.children;if(r(f)&&w(e)){for(d=0;d<s.update.length;++d)s.update[d](t,e);r(d=f.hook)&&r(d=d.update)&&d(t,e)}n(e.text)?r(p)&&r(g)?p!==g&&S(u,p,g,i,c):r(g)?(r(t.text)&&h.setTextContent(u,""),A(u,null,g,0,g.length-1,i)):r(p)?x(p,0,p.length-1):r(t.text)&&h.setTextContent(u,""):t.text!==e.text&&h.setTextContent(u,e.text),r(f)&&r(d=f.hook)&&r(d=d.postpatch)&&d(t,e)}}}function T(t,e,i){if(o(i)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n<e.length;++n)e[n].data.hook.insert(e[n])}var R=m("attrs,class,staticClass,staticStyle,key");function O(t,e,i,n){var s,a=e.tag,l=e.data,h=e.children;if(n=n||l&&l.pre,e.elm=t,o(e.isComment)&&r(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(r(l)&&(r(s=l.hook)&&r(s=s.init)&&s(e,!0),r(s=e.componentInstance)))return g(e,i),!0;if(r(a)){if(r(h))if(t.hasChildNodes())if(r(s=l)&&r(s=s.domProps)&&r(s=s.innerHTML)){if(s!==t.innerHTML)return!1}else{for(var c=!0,u=t.firstChild,d=0;d<h.length;d++){if(!u||!O(u,h[d],i,n)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else y(e,h,i);if(r(l)){var f=!1;for(var p in l)if(!R(p)){f=!0,C(e,i);break}!f&&l["class"]&&ve(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,i,a){if(!n(e)){var l=!1,u=[];if(n(t))l=!0,f(e,u);else{var d=r(t.nodeType);if(!d&&Er(t,e))E(t,e,u,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(P)&&(t.removeAttribute(P),i=!0),o(i)&&O(t,e,u))return T(e,u,!0),t;t=c(t)}var p=t.elm,g=h.parentNode(p);if(f(e,u,p._leaveCb?null:g,h.nextSibling(p)),r(e.parent)){var m=e.parent,v=w(e);while(m){for(var b=0;b<s.destroy.length;++b)s.destroy[b](m);if(m.elm=e.elm,v){for(var y=0;y<s.create.length;++y)s.create[y](Sr,m);var C=m.data.hook.insert;if(C.merged)for(var I=1;I<C.fns.length;I++)C.fns[I]()}else _r(m);m=m.parent}}r(g)?x([t],0,0):r(t.tag)&&M(t)}}return T(e,u,l),e.elm}r(t)&&M(t)}}var jr={create:Nr,update:Nr,destroy:function(t){Nr(t,Sr)}};function Nr(t,e){(t.data.directives||e.data.directives)&&Lr(t,e)}function Lr(t,e){var i,n,r,o=t===Sr,s=e===Sr,a=Dr(t.data.directives,t.context),l=Dr(e.data.directives,e.context),h=[],c=[];for(i in l)n=a[i],r=l[i],n?(r.oldValue=n.value,r.oldArg=n.arg,Pr(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(Pr(r,"bind",e,t),r.def&&r.def.inserted&&h.push(r));if(h.length){var u=function(){for(var i=0;i<h.length;i++)Pr(h[i],"inserted",e,t)};o?Ie(e,"insert",u):u()}if(c.length&&Ie(e,"postpatch",(function(){for(var i=0;i<c.length;i++)Pr(c[i],"componentUpdated",e,t)})),!o)for(i in a)l[i]||Pr(a[i],"unbind",t,t,s)}var Br=Object.create(null);function Dr(t,e){var i,n,r=Object.create(null);if(!t)return r;for(i=0;i<t.length;i++)n=t[i],n.modifiers||(n.modifiers=Br),r[Zr(n)]=n,n.def=Ut(e.$options,"directives",n.name,!0);return r}function Zr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Pr(t,e,i,n,r){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,n,r)}catch(Ms){ie(Ms,i.context,"directive "+t.name+" "+e+" hook")}}var Wr=[xr,jr];function $r(t,e){var i=e.componentOptions;if((!r(i)||!1!==i.Ctor.options.inheritAttrs)&&(!n(t.data.attrs)||!n(e.data.attrs))){var o,s,a,l=e.elm,h=t.data.attrs||{},c=e.data.attrs||{};for(o in r(c.__ob__)&&(c=e.data.attrs=R({},c)),c)s=c[o],a=h[o],a!==s&&Hr(l,o,s,e.data.pre);for(o in(tt||it)&&c.value!==h.value&&Hr(l,"value",c.value),h)n(c[o])&&(Kn(o)?l.removeAttributeNS(Vn,Yn(o)):Hn(o)||l.removeAttribute(o))}}function Hr(t,e,i,n){n||t.tagName.indexOf("-")>-1?zr(t,e,i):Fn(e)?Un(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Hn(e)?t.setAttribute(e,Gn(e,i)):Kn(e)?Un(i)?t.removeAttributeNS(Vn,Yn(e)):t.setAttributeNS(Vn,e,i):zr(t,e,i)}function zr(t,e,i){if(Un(i))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}var Gr={create:$r,update:$r};function Fr(t,e){var i=e.elm,o=e.data,s=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(s)||n(s.staticClass)&&n(s.class)))){var a=Xn(e),l=i._transitionClasses;r(l)&&(a=qn(a,tr(l))),a!==i._prevClass&&(i.setAttribute("class",a),i._prevClass=a)}}var Vr,Kr={create:Fr,update:Fr},Yr="__r",Ur="__c";function Xr(t){if(r(t[Yr])){var e=tt?"change":"input";t[e]=[].concat(t[Yr],t[e]||[]),delete t[Yr]}r(t[Ur])&&(t.change=[].concat(t[Ur],t.change||[]),delete t[Ur])}function Jr(t,e,i){var n=Vr;return function r(){var o=e.apply(null,arguments);null!==o&&to(t,r,i,n)}}var Qr=ae&&!(rt&&Number(rt[1])<=53);function qr(t,e,i,n){if(Qr){var r=Ki,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Vr.addEventListener(t,e,st?{capture:i,passive:n}:i)}function to(t,e,i,n){(n||Vr).removeEventListener(t,e._wrapper||e,i)}function eo(t,e){if(!n(t.data.on)||!n(e.data.on)){var i=e.data.on||{},r=t.data.on||{};Vr=e.elm,Xr(i),Ce(i,r,qr,to,Jr,e.context),Vr=void 0}}var io,no={create:eo,update:eo};function ro(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,o,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(i in r(l.__ob__)&&(l=e.data.domProps=R({},l)),a)i in l||(s[i]="");for(i in l){if(o=l[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),o===a[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=o;var h=n(o)?"":String(o);oo(s,h)&&(s.value=h)}else if("innerHTML"===i&&or(s.tagName)&&n(s.innerHTML)){io=io||document.createElement("div"),io.innerHTML="<svg>"+o+"</svg>";var c=io.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(c.firstChild)s.appendChild(c.firstChild)}else if(o!==a[i])try{s[i]=o}catch(Ms){}}}}function oo(t,e){return!t.composing&&("OPTION"===t.tagName||so(t,e)||ao(t,e))}function so(t,e){var i=!0;try{i=document.activeElement!==t}catch(Ms){}return i&&t.value!==e}function ao(t,e){var i=t.value,n=t._vModifiers;if(r(n)){if(n.number)return g(i)!==g(e);if(n.trim)return i.trim()!==e.trim()}return i!==e}var lo={create:ro,update:ro},ho=C((function(t){var e={},i=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(i).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function co(t){var e=uo(t.style);return t.staticStyle?R(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?O(t):"string"===typeof t?ho(t):t}function fo(t,e){var i,n={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(i=co(r.data))&&R(n,i)}(i=co(t.data))&&R(n,i);var o=t;while(o=o.parent)o.data&&(i=co(o.data))&&R(n,i);return n}var po,go=/^--/,mo=/\s*!important$/,vo=function(t,e,i){if(go.test(e))t.style.setProperty(e,i);else if(mo.test(i))t.style.setProperty(_(e),i.replace(mo,""),"important");else{var n=yo(e);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)t.style[n]=i[r];else t.style[n]=i}},bo=["Webkit","Moz","ms"],yo=C((function(t){if(po=po||document.createElement("div").style,t=A(t),"filter"!==t&&t in po)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<bo.length;i++){var n=bo[i]+e;if(n in po)return n}}));function wo(t,e){var i=e.data,o=t.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var s,a,l=e.elm,h=o.staticStyle,c=o.normalizedStyle||o.style||{},u=h||c,d=uo(e.data.style)||{};e.data.normalizedStyle=r(d.__ob__)?R({},d):d;var f=fo(e,!0);for(a in u)n(f[a])&&vo(l,a,"");for(a in f)s=f[a],s!==u[a]&&vo(l,a,null==s?"":s)}}var Co={create:wo,update:wo},Io=/\s+/;function Ao(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Io).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Mo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Io).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";while(i.indexOf(n)>=0)i=i.replace(n," ");i=i.trim(),i?t.setAttribute("class",i):t.removeAttribute("class")}}function xo(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&R(e,_o(t.name||"v")),R(e,t),e}return"string"===typeof t?_o(t):void 0}}var _o=C((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),So=X&&!et,ko="transition",Eo="animation",To="transition",Ro="transitionend",Oo="animation",jo="animationend";So&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Ro="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oo="WebkitAnimation",jo="webkitAnimationEnd"));var No=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Lo(t){No((function(){No(t)}))}function Bo(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Ao(t,e))}function Do(t,e){t._transitionClasses&&b(t._transitionClasses,e),Mo(t,e)}function Zo(t,e,i){var n=Wo(t,e),r=n.type,o=n.timeout,s=n.propCount;if(!r)return i();var a=r===ko?Ro:jo,l=0,h=function(){t.removeEventListener(a,c),i()},c=function(e){e.target===t&&++l>=s&&h()};setTimeout((function(){l<s&&h()}),o+1),t.addEventListener(a,c)}var Po=/\b(transform|all)(,|$)/;function Wo(t,e){var i,n=window.getComputedStyle(t),r=(n[To+"Delay"]||"").split(", "),o=(n[To+"Duration"]||"").split(", "),s=$o(r,o),a=(n[Oo+"Delay"]||"").split(", "),l=(n[Oo+"Duration"]||"").split(", "),h=$o(a,l),c=0,u=0;e===ko?s>0&&(i=ko,c=s,u=o.length):e===Eo?h>0&&(i=Eo,c=h,u=l.length):(c=Math.max(s,h),i=c>0?s>h?ko:Eo:null,u=i?i===ko?o.length:l.length:0);var d=i===ko&&Po.test(n[To+"Property"]);return{type:i,timeout:c,propCount:u,hasTransform:d}}function $o(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,i){return Ho(e)+Ho(t[i])})))}function Ho(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function zo(t,e){var i=t.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=xo(t.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){var s=o.css,a=o.type,h=o.enterClass,c=o.enterToClass,u=o.enterActiveClass,d=o.appearClass,f=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,v=o.enter,b=o.afterEnter,y=o.enterCancelled,w=o.beforeAppear,C=o.appear,I=o.afterAppear,A=o.appearCancelled,M=o.duration,x=Ti,_=Ti.$vnode;while(_&&_.parent)x=_.context,_=_.parent;var S=!x._isMounted||!t.isRootInsert;if(!S||C||""===C){var k=S&&d?d:h,E=S&&p?p:u,T=S&&f?f:c,R=S&&w||m,O=S&&"function"===typeof C?C:v,j=S&&I||b,N=S&&A||y,L=g(l(M)?M.enter:M);0;var B=!1!==s&&!et,D=Vo(O),P=i._enterCb=Z((function(){B&&(Do(i,T),Do(i,E)),P.cancelled?(B&&Do(i,k),N&&N(i)):j&&j(i),i._enterCb=null}));t.data.show||Ie(t,"insert",(function(){var e=i.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),O&&O(i,P)})),R&&R(i),B&&(Bo(i,k),Bo(i,E),Lo((function(){Do(i,k),P.cancelled||(Bo(i,T),D||(Fo(L)?setTimeout(P,L):Zo(i,a,P)))}))),t.data.show&&(e&&e(),O&&O(i,P)),B||D||P()}}}function Go(t,e){var i=t.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var o=xo(t.data.transition);if(n(o)||1!==i.nodeType)return e();if(!r(i._leaveCb)){var s=o.css,a=o.type,h=o.leaveClass,c=o.leaveToClass,u=o.leaveActiveClass,d=o.beforeLeave,f=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,b=o.duration,y=!1!==s&&!et,w=Vo(f),C=g(l(b)?b.leave:b);0;var I=i._leaveCb=Z((function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),y&&(Do(i,c),Do(i,u)),I.cancelled?(y&&Do(i,h),m&&m(i)):(e(),p&&p(i)),i._leaveCb=null}));v?v(A):A()}function A(){I.cancelled||(!t.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),d&&d(i),y&&(Bo(i,h),Bo(i,u),Lo((function(){Do(i,h),I.cancelled||(Bo(i,c),w||(Fo(C)?setTimeout(I,C):Zo(i,a,I)))}))),f&&f(i,I),y||w||I())}}function Fo(t){return"number"===typeof t&&!isNaN(t)}function Vo(t){if(n(t))return!1;var e=t.fns;return r(e)?Vo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ko(t,e){!0!==e.data.show&&zo(e)}var Yo=X?{create:Ko,activate:Ko,remove:function(t,e){!0!==t.data.show?Go(t,e):e()}}:{},Uo=[Gr,Kr,no,lo,Co,Yo],Xo=Uo.concat(Wr),Jo=Or({nodeOps:Mr,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&os(t,"input")}));var Qo={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?Ie(i,"postpatch",(function(){Qo.componentUpdated(t,e,i)})):qo(t,e,i.context),t._vOptions=[].map.call(t.options,is)):("textarea"===i.tag||cr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ns),t.addEventListener("compositionend",rs),t.addEventListener("change",rs),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){qo(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,is);if(r.some((function(t,e){return!B(t,n[e])}))){var o=t.multiple?e.value.some((function(t){return es(t,r)})):e.value!==e.oldValue&&es(e.value,r);o&&os(t,"change")}}}};function qo(t,e,i){ts(t,e,i),(tt||it)&&setTimeout((function(){ts(t,e,i)}),0)}function ts(t,e,i){var n=e.value,r=t.multiple;if(!r||Array.isArray(n)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],r)o=D(n,is(s))>-1,s.selected!==o&&(s.selected=o);else if(B(is(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function es(t,e){return e.every((function(e){return!B(e,t)}))}function is(t){return"_value"in t?t._value:t.value}function ns(t){t.target.composing=!0}function rs(t){t.target.composing&&(t.target.composing=!1,os(t.target,"input"))}function os(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function ss(t){return!t.componentInstance||t.data&&t.data.transition?t:ss(t.componentInstance._vnode)}var as={bind:function(t,e,i){var n=e.value;i=ss(i);var r=i.data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,zo(i,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value,r=e.oldValue;if(!n!==!r){i=ss(i);var o=i.data&&i.data.transition;o?(i.data.show=!0,n?zo(i,(function(){t.style.display=t.__vOriginalDisplay})):Go(i,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}},ls={model:Qo,show:as},hs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?cs(Ai(e.children)):t}function us(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var o in r)e[A(o)]=r[o];return e}function ds(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fs(t){while(t=t.parent)if(t.data.transition)return!0}function ps(t,e){return e.key===t.key&&e.tag===t.tag}var gs=function(t){return t.tag||Ne(t)},ms=function(t){return"show"===t.name},vs={name:"transition",props:hs,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(gs),i.length)){0;var n=this.mode;0;var r=i[0];if(fs(this.$vnode))return r;var o=cs(r);if(!o)return r;if(this._leaving)return ds(t,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=us(this),h=this._vnode,c=cs(h);if(o.data.directives&&o.data.directives.some(ms)&&(o.data.show=!0),c&&c.data&&!ps(o,c)&&!Ne(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=R({},l);if("out-in"===n)return this._leaving=!0,Ie(u,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ds(t,r);if("in-out"===n){if(Ne(o))return h;var d,f=function(){d()};Ie(l,"afterEnter",f),Ie(l,"enterCancelled",f),Ie(u,"delayLeave",(function(t){d=t}))}}return r}}},bs=R({tag:String,moveClass:String},hs);delete bs.mode;var ys={props:bs,beforeMount:function(){var t=this,e=this._update;this._update=function(i,n){var r=Ri(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,i,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=us(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(n){for(var h=[],c=[],u=0;u<n.length;u++){var d=n[u];d.data.transition=s,d.data.pos=d.elm.getBoundingClientRect(),i[d.key]?h.push(d):c.push(d)}this.kept=t(e,null,h),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ws),t.forEach(Cs),t.forEach(Is),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var i=t.elm,n=i.style;Bo(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(Ro,i._moveCb=function t(n){n&&n.target!==i||n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(Ro,t),i._moveCb=null,Do(i,e))})}})))},methods:{hasMove:function(t,e){if(!So)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Mo(i,t)})),Ao(i,e),i.style.display="none",this.$el.appendChild(i);var n=Wo(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}};function ws(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Cs(t){t.data.newPos=t.elm.getBoundingClientRect()}function Is(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}var As={Transition:vs,TransitionGroup:ys};Mn.config.mustUseProp=$n,Mn.config.isReservedTag=sr,Mn.config.isReservedAttr=Pn,Mn.config.getTagNamespace=ar,Mn.config.isUnknownElement=hr,R(Mn.options.directives,ls),R(Mn.options.components,As),Mn.prototype.__patch__=X?Jo:j,Mn.prototype.$mount=function(t,e){return t=t&&X?ur(t):void 0,Ni(this,t,e)},X&&setTimeout((function(){H.devtools&&ht&&ht.emit("init",Mn)}),0),e["a"]=Mn}).call(this,i("c8ba"))},"2b3e":function(t,e,i){var n=i("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o},"2b79":function(t,e,i){(function(e,n,r){t.exports=n(i("21bf"),i("df2f"),i("5980"))})(0,(function(t){return function(){var e=t,i=e.lib,n=i.Base,r=i.WordArray,o=e.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var i,n=this.cfg,o=n.hasher.create(),s=r.create(),a=s.words,l=n.keySize,h=n.iterations;while(a.length<l){i&&o.update(i),i=o.update(t).finalize(e),o.reset();for(var c=1;c<h;c++)i=o.finalize(i),o.reset();s.concat(i)}return s.sigBytes=4*l,s}});e.EvpKDF=function(t,e,i){return a.create(i).compute(t,e)}}(),t.EvpKDF}))},"2c63":function(t,e,i){t.exports=i("dc14")},"2d7c":function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length,r=0,o=[];while(++i<n){var s=t[i];e(s,i,t)&&(o[r++]=s)}return o}t.exports=i},"2d83":function(t,e,i){"use strict";var n=i("387f");t.exports=function(t,e,i,r,o){var s=new Error(t);return n(s,e,i,r,o)}},"2dcb":function(t,e,i){var n=i("91e9"),r=n(Object.getPrototypeOf,Object);t.exports=r},"2e67":function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2e7b":function(t,e){function i(t){const e="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,r]},s=t.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",h="(\\.[0-9]*)?",c="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",u={className:"number",begin:"\\b"+a+l+h+c+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},f={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},p={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},g=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},u,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},f,p,o],m=[...g];return m.pop(),m.push(s),d.contains=m,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}t.exports=i},"2ec1":function(t,e,i){var n=i("100e"),r=i("9aff");function o(t){return n((function(e,i){var n=-1,o=i.length,s=o>1?i[o-1]:void 0,a=o>2?i[2]:void 0;s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&r(i[0],i[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);while(++n<o){var l=i[n];l&&t(e,l,n,s)}return e}))}t.exports=o},"2fcc":function(t,e){function i(t){var e=this.__data__,i=e["delete"](t);return this.size=e.size,i}t.exports=i},"30b5":function(t,e,i){"use strict";var n=i("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var o;if(i)o=i(e);else if(n.isURLSearchParams(e))o=e.toString();else{var s=[];n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),s.push(r(e)+"="+r(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"30c9":function(t,e,i){var n=i("9520"),r=i("b218");function o(t){return null!=t&&r(t.length)&&!n(t)}t.exports=o},"32b3":function(t,e,i){var n=i("872a"),r=i("9638"),o=Object.prototype,s=o.hasOwnProperty;function a(t,e,i){var o=t[e];s.call(t,e)&&r(o,i)&&(void 0!==i||e in t)||n(t,e,i)}t.exports=a},"32f4":function(t,e,i){var n=i("2d7c"),r=i("d327"),o=Object.prototype,s=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return s.call(t,e)})))}:r;t.exports=l},3300:function(t,e,i){"use strict";var n=i("f3a3"),r=i("80af"),o=i("3fb5"),s=i("ea53"),a=n.assert;function l(t){s.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(t,e,i,n){s.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,i,n){s.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(i,16),this.z=new r(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(l,s),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i,n;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=o[0].cmp(o[1])<0?o[0]:o[1],e=e.toRed(this.red)}if(t.lambda)i=new r(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?i=s[0]:(i=s[1],a(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map((function(t){return{a:new r(t.a,16),b:new r(t.b,16)}})):this._getEndoBasis(i),{beta:e,lambda:i,basis:n}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),i=new r(2).toRed(e).redInvm(),n=i.redNeg(),o=new r(3).toRed(e).redNeg().redSqrt().redMul(i),s=n.redAdd(o).fromRed(),a=n.redSub(o).fromRed();return[s,a]},l.prototype._getEndoBasis=function(t){var e,i,n,o,s,a,l,h,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new r(1),g=new r(0),m=new r(0),v=new r(1),b=0;while(0!==d.cmpn(0)){var y=f.div(d);h=f.sub(y.mul(d)),c=m.sub(y.mul(p));var w=v.sub(y.mul(g));if(!n&&h.cmp(u)<0)e=l.neg(),i=p,n=h.neg(),o=c;else if(n&&2===++b)break;l=h,f=d,d=h,m=p,p=c,v=g,g=w}s=h.neg(),a=c;var C=n.sqr().add(o.sqr()),I=s.sqr().add(a.sqr());return I.cmp(C)>=0&&(s=e,a=i),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],n=e[1],r=n.b.mul(t).divRound(this.n),o=i.b.neg().mul(t).divRound(this.n),s=r.mul(i.a),a=o.mul(n.a),l=r.mul(i.b),h=o.mul(n.b),c=t.sub(s).sub(a),u=l.add(h).neg();return{k1:c,k2:u}},l.prototype.pointFromX=function(t,e){t=new r(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,n=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*o]=a,n[2*o+1]=l,r[2*o]=s.k1,r[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,r,2*o,i),c=0;c<2*o;c++)n[c]=null,r[c]=null;return h},o(h,s.BasePoint),l.prototype.point=function(t,e,i){return new h(this,t,e,i)},l.prototype.pointFromJSON=function(t,e){return h.fromJSON(this,t,e)},h.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,n=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(t,e,i){"string"===typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],i);if(!e[2])return n;function r(e){return t.point(e[0],e[1],i)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(r))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(r))}},n},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},h.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),s=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},h.prototype.jmulAdd=function(t,e,i){var n=[this,e],r=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return e},h.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},o(c,s.BasePoint),l.prototype.jpoint=function(t,e,i){return new c(this,t,e,i)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(i,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(e),r=t.x.redMul(i),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),a=n.redSub(r),l=o.redSub(s);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),c=h.redMul(a),u=n.redMul(h),d=l.redSqr().redIAdd(c).redISub(u).redISub(u),f=l.redMul(u.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,n=t.x.redMul(e),r=this.y,o=t.y.redMul(e).redMul(this.z),s=i.redSub(n),a=r.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),h=l.redMul(s),c=i.redMul(l),u=a.redSqr().redIAdd(h).redISub(c).redISub(c),d=a.redMul(c.redISub(u)).redISub(r.redMul(h)),f=this.z.redMul(s);return this.curve.jpoint(u,d,f)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e<t;e++)i=i.dbl();return i}var n=this.curve.a,r=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var c=o.redSqr(),u=h.redSqr(),d=u.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(l)),p=o.redMul(u),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),v=f.redMul(m);v=v.redIAdd(v).redISub(d);var b=h.redMul(a);e+1<t&&(l=l.redMul(d)),o=g,a=b,h=v}return this.curve.jpoint(o,h.redMul(r),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 t,e,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),s=this.x.redAdd(r).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),t=l,e=a.redMul(s.redISub(l)).redISub(h),i=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),u=this.y.redSqr(),d=u.redSqr(),f=this.x.redAdd(u).redSqr().redISub(c).redISub(d);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),g=p.redSqr(),m=d.redIAdd(d);m=m.redIAdd(m),m=m.redIAdd(m),t=g.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(m),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(t,e,i)},c.prototype._threeDbl=function(){var t,e,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),s=this.x.redAdd(r).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);t=l;var h=o.redIAdd(o);h=h.redIAdd(h),h=h.redIAdd(h),e=a.redMul(s.redISub(l)).redISub(h),i=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),u=this.y.redSqr(),d=this.x.redMul(u),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d);p=p.redIAdd(p);var g=p.redAdd(p);t=f.redSqr().redISub(g),i=this.y.redAdd(this.z).redSqr().redISub(u).redISub(c);var m=u.redSqr();m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m),e=f.redMul(p.redISub(t)).redISub(m)}return this.curve.jpoint(t,e,i)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,n=this.z,r=n.redSqr().redSqr(),o=e.redSqr(),s=i.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(r)),l=e.redAdd(e);l=l.redIAdd(l);var h=l.redMul(s),c=a.redSqr().redISub(h.redAdd(h)),u=h.redISub(c),d=s.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var f=a.redMul(u).redISub(d),p=i.redAdd(i).redMul(n);return this.curve.jpoint(c,f,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr(),n=e.redSqr(),r=t.redAdd(t).redIAdd(t),o=r.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n);s=s.redIAdd(s),s=s.redAdd(s).redIAdd(s),s=s.redISub(o);var a=s.redSqr(),l=n.redIAdd(n);l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var h=r.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),c=e.redMul(h);c=c.redIAdd(c),c=c.redIAdd(c);var u=this.x.redMul(a).redISub(c);u=u.redIAdd(u),u=u.redIAdd(u);var d=this.y.redMul(h.redMul(l.redISub(h)).redISub(s.redMul(a)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var f=this.z.redAdd(s).redSqr().redISub(i).redISub(a);return this.curve.jpoint(u,d,f)},c.prototype.mul=function(t,e){return t=new r(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),i=t.z.redSqr();if(0!==this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),r=i.redMul(t.z);return 0===this.y.redMul(r).redISub(t.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))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)}},3337:function(t,e,i){"use strict";var n=e;n.version=i("2801").version,n.utils=i("f3a3"),n.rand=i("fdac"),n.curve=i("4136"),n.curves=i("0cbb"),n.ec=i("b9a8"),n.eddsa=i("945d")},"334a":function(t,e,i){e=t.exports=i("4250"),e.Stream=e,e.Readable=e,e.Writable=i("19ea"),e.Duplex=i("e666"),e.Transform=i("09dc"),e.PassThrough=i("0ae3"),e.finished=i("ee93"),e.pipeline=i("fbd5")},"343e":function(t,e,i){"use strict";const n=e;n.der=i("3768"),n.pem=i("85b3")},"34ac":function(t,e,i){var n=i("9520"),r=i("1368"),o=i("1a8c"),s=i("dc57"),a=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,h=Function.prototype,c=Object.prototype,u=h.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!o(t)||r(t))return!1;var e=n(t)?f:l;return e.test(s(t))}t.exports=p},"34d5":function(t,e,i){e=t.exports=i("cf35"),e.Stream=e,e.Readable=e,e.Writable=i("49ce"),e.Duplex=i("5e7d"),e.Transform=i("f1c8"),e.PassThrough=i("9d28"),e.finished=i("42a7"),e.pipeline=i("ac4f")},3505:function(t,e,i){var n=i("8707").Buffer,r=i("8c8a");function o(t,e,i){var o=e.length,s=r(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,i?e:s]),s}e.encrypt=function(t,e,i){var r,s=n.allocUnsafe(0);while(e.length){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){s=n.concat([s,o(t,e,i)]);break}r=t._cache.length,s=n.concat([s,o(t,e.slice(0,r),i)]),e=e.slice(r)}return s}},3698:function(t,e){function i(t,e){return null==t?void 0:t[e]}t.exports=i},3729:function(t,e,i){var n=i("9e69"),r=i("00fd"),o=i("29f3"),s="[object Null]",a="[object Undefined]",l=n?n.toStringTag:void 0;function h(t){return null==t?void 0===t?a:s:l&&l in Object(t)?r(t):o(t)}t.exports=h},3768:function(t,e,i){"use strict";const n=i("3fb5"),r=i("c591").Buffer,o=i("8360"),s=i("8b71");function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){o.call(this,"der",t)}function h(t){return t<10?"0"+t:t}function c(t,e,i,n){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),s.tagByName.hasOwnProperty(t))r=s.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);r=t}return r>=31?n.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=s.tagClassByName[i||"universal"]<<6,r)}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(l,o),l.prototype._encodeComposite=function(t,e,i,n){const o=c(t,e,i,this.reporter);if(n.length<128){const t=r.alloc(2);return t[0]=o,t[1]=n.length,this._createEncoderBuffer([t,n])}let s=1;for(let r=n.length;r>=256;r>>=8)s++;const a=r.alloc(2+s);a[0]=o,a[1]=128|s;for(let r=1+s,l=n.length;l>0;r--,l>>=8)a[r]=255&l;return this._createEncoderBuffer([a,n])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},l.prototype._encodeObjid=function(t,e,i){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let r=0;r<t.length;r++){let e=t[r];for(n++;e>=128;e>>=7)n++}const o=r.alloc(n);let s=o.length-1;for(let r=t.length-1;r>=0;r--){let e=t[r];o[s--]=127&e;while((e>>=7)>0)o[s--]=128|127&e}return this._createEncoderBuffer(o)},l.prototype._encodeTime=function(t,e){let i;const n=new Date(t);return"gentime"===e?i=[h(n.getUTCFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[h(n.getUTCFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const i=r.alloc(e);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let r=t;r>=256;r>>=8)i++;const n=new Array(i);for(let r=n.length-1;r>=0;r--)n[r]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(r.from(n))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,i){const n=this._baseState;let r;if(null===n["default"])return!1;const o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n["default"],e,i).join()),o.length!==n.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==n.defaultBuffer[r])return!1;return!0}},"37e6":function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(13).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"380f":function(t,e,i){"use strict";var n=i("f3a3"),r=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},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 t=this.eddsa,e=this.hash(),i=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=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(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},a.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=a},"387f":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ba":function(t,e,i){(function(e,n,r){t.exports=n(i("21bf"),i("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var i=t,n=i.lib,r=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=i.enc,l=(a.Utf8,a.Base64),h=i.algo,c=h.EvpKDF,u=n.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?A:w}return function(e){return{encrypt:function(i,n,r){return t(n).encrypt(e,i,n,r)},decrypt:function(i,n,r){return t(n).decrypt(e,i,n,r)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),i.mode={}),f=n.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=d.CBC=function(){var t=f.extend();function i(t,i,n){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var s=0;s<n;s++)t[i+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize;i.call(this,t,e,r),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=t.slice(e,e+r);n.decryptBlock(t,e),i.call(this,t,e,r),this._prevBlock=o}}),t}(),g=i.pad={},m=g.Pkcs7={pad:function(t,e){for(var i=4*e,n=i-t.sigBytes%i,r=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(r);var l=o.create(s,n);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:m}),reset:function(){var t;u.reset.call(this);var e=this.cfg,i=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,i&&i.words):(this._mode=t.call(n,this,i&&i.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=i.format={},y=b.OpenSSL={stringify:function(t){var e,i=t.ciphertext,n=t.salt;return e=n?o.create([1398893684,1701076831]).concat(n).concat(i):i,e.toString(l)},parse:function(t){var e,i=l.parse(t),n=i.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o.create(n.slice(2,4)),n.splice(0,4),i.sigBytes-=16),v.create({ciphertext:i,salt:e})}},w=n.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var r=t.createEncryptor(i,n),o=r.finalize(e),s=r.cfg;return v.create({ciphertext:o,key:i,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var r=t.createDecryptor(i,n).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),C=i.kdf={},I=C.OpenSSL={execute:function(t,e,i,n){n||(n=o.random(8));var r=c.create({keySize:e+i}).compute(t,n),s=o.create(r.words.slice(e),4*i);return r.sigBytes=4*e,v.create({key:r,iv:s,salt:n})}},A=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:I}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var r=n.kdf.execute(i,t.keySize,t.ivSize);n.iv=r.iv;var o=w.encrypt.call(this,t,e,r.key,n);return o.mixIn(r),o},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var r=n.kdf.execute(i,t.keySize,t.ivSize,e.salt);n.iv=r.iv;var o=w.decrypt.call(this,t,e,r.key,n);return o}})}()}))},3934:function(t,e,i){"use strict";var n=i("c532");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},"399f":function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(10).Buffer}catch(T){}function a(t,e){var i=t.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+t)}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,r){for(var o=0,s=0,a=Math.min(t.length,i),l=e;l<a;l++){var h=t.charCodeAt(l)-48;o*=r,s=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&s<r,"Invalid character"),o+=s}return o}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this._strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){c(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(T){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){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(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?d[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],c=p[t];i="";var u=this.clone();u.negative=0;while(!u.isZero()){var g=u.modrn(c).toString(t);u=u.idivn(c),i=u.isZero()?g+i:d[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var g=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function m(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=t.words[n]>>>r&1}return e}function v(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i._strip()}o.prototype.toArrayLike=function(t,e,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=g(t,o),a="le"===e?"LE":"BE";return this["_toArrayLike"+a](s,r),s},o.prototype._toArrayLikeLE=function(t,e){for(var i=0,n=0,r=0,o=0;r<this.length;r++){var s=this.words[r]<<o|n;t[i++]=255&s,i<t.length&&(t[i++]=s>>8&255),i<t.length&&(t[i++]=s>>16&255),6===o?(i<t.length&&(t[i++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i<t.length){t[i++]=n;while(i<t.length)t[i++]=0}},o.prototype._toArrayLikeBE=function(t,e){for(var i=t.length-1,n=0,r=0,o=0;r<this.length;r++){var s=this.words[r]<<o|n;t[i--]=255&s,i>=0&&(t[i--]=s>>8&255),i>=0&&(t[i--]=s>>16&255),6===o?(i>=0&&(t[i--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(i>=0){t[i--]=n;while(i>=0)t[i--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this._strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var b=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function y(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function w(t,e,i){return y(t,e,i)}function C(t,e){this.x=t,this.y=e}Math.imul||(b=v),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?b(this,t,e):n<63?v(this,t,e):n<1024?y(this,t,e):w(this,t,e),i},C.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},C.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},C.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},C.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},C.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},C.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},C.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},C.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},C.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},C.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),w(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var i=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,s=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=s>>>26,this.words[r]=67108863&s}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=m(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l._strip(),n._strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%t;return e?-r:r},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/t|0,i=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var I={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},r(M,A),M.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(x,A),r(_,A),r(S,A),S.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(I[t])return I[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new x;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return I[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},k.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},r(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"39a9":function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=i("b639"),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(r.prototype),o(r,s),s.from=function(t,e,i){if("number"===typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},s.alloc=function(t,e,i){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"===typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"39f5":function(t,e,i){var n=i("8707").Buffer;function r(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,i=new Array(e),r=0;r<e;r++)i[r]=t.readUInt32BE(4*r);return i}function o(t){for(var e=0;e<t.length;t++)t[e]=0}function s(t,e,i,n,r){for(var o,s,a,l,h=i[0],c=i[1],u=i[2],d=i[3],f=t[0]^e[0],p=t[1]^e[1],g=t[2]^e[2],m=t[3]^e[3],v=4,b=1;b<r;b++)o=h[f>>>24]^c[p>>>16&255]^u[g>>>8&255]^d[255&m]^e[v++],s=h[p>>>24]^c[g>>>16&255]^u[m>>>8&255]^d[255&f]^e[v++],a=h[g>>>24]^c[m>>>16&255]^u[f>>>8&255]^d[255&p]^e[v++],l=h[m>>>24]^c[f>>>16&255]^u[p>>>8&255]^d[255&g]^e[v++],f=o,p=s,g=a,m=l;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^e[v++],s=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&f])^e[v++],a=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^e[v++],l=(n[m>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^e[v++],o>>>=0,s>>>=0,a>>>=0,l>>>=0,[o,s,a,l]}var a=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],n=[],r=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,l=0;l<256;++l){var h=a^a<<1^a<<2^a<<3^a<<4;h=h>>>8^255&h^99,i[s]=h,n[h]=s;var c=t[s],u=t[c],d=t[u],f=257*t[h]^16843008*h;r[0][s]=f<<24|f>>>8,r[1][s]=f<<16|f>>>16,r[2][s]=f<<8|f>>>24,r[3][s]=f,f=16843009*d^65537*u^257*c^16843008*s,o[0][h]=f<<24|f>>>8,o[1][h]=f<<16|f>>>16,o[2][h]=f<<8|f>>>24,o[3][h]=f,0===s?s=a=1:(s=c^t[t[t[d^c]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:o}}();function h(t){this._key=r(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,n=4*(i+1),r=[],o=0;o<e;o++)r[o]=t[o];for(o=e;o<n;o++){var s=r[o-1];o%e===0?(s=s<<8|s>>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=a[o/e|0]<<24):e>6&&o%e===4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),r[o]=r[o-e]^s}for(var h=[],c=0;c<n;c++){var u=n-c,d=r[u-(c%4?0:4)];h[c]=c<4||u<=4?d:l.INV_SUB_MIX[0][l.SBOX[d>>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return t=r(t),s(t,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),i=n.allocUnsafe(16);return i.writeUInt32BE(e[0],0),i.writeUInt32BE(e[1],4),i.writeUInt32BE(e[2],8),i.writeUInt32BE(e[3],12),i},h.prototype.decryptBlock=function(t){t=r(t);var e=t[1];t[1]=t[3],t[3]=e;var i=s(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},"39ff":function(t,e,i){var n=i("0b07"),r=i("2b3e"),o=n(r,"WeakMap");t.exports=o},"3a7c":function(t,e,i){(function(t){function i(t){return Array.isArray?Array.isArray(t):"[object Array]"===m(t)}function n(t){return"boolean"===typeof t}function r(t){return null===t}function o(t){return null==t}function s(t){return"number"===typeof t}function a(t){return"string"===typeof t}function l(t){return"symbol"===typeof t}function h(t){return void 0===t}function c(t){return"[object RegExp]"===m(t)}function u(t){return"object"===typeof t&&null!==t}function d(t){return"[object Date]"===m(t)}function f(t){return"[object Error]"===m(t)||t instanceof Error}function p(t){return"function"===typeof t}function g(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function m(t){return Object.prototype.toString.call(t)}e.isArray=i,e.isBoolean=n,e.isNull=r,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol=l,e.isUndefined=h,e.isRegExp=c,e.isObject=u,e.isDate=d,e.isError=f,e.isFunction=p,e.isPrimitive=g,e.isBuffer=t.isBuffer}).call(this,i("b639").Buffer)},"3b4a":function(t,e,i){var n=i("0b07"),r=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=r},"3daf":function(t,e,i){"use strict";var n=i("f3a3"),r=i("80af"),o=i("3fb5"),s=i("ea53"),a=n.assert;function l(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.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|t.c)}function h(t,e,i,n,o){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&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 r(e,16),this.y=new r(i,16),this.z=n?new r(n,16):this.curve.one,this.t=o&&new r(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()))))}o(l,s),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,i,n){return this.point(t,e,i,n)},l.prototype.pointFromX=function(t,e){t=new r(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),o=this.one.redSub(this.c2.redMul(this.d).redMul(i)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var l=a.fromRed().isOdd();return(e&&!l||!e&&l)&&(a=a.redNeg()),this.point(t,a)},l.prototype.pointFromY=function(t,e){t=new r(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),o=i.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),n=e.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===n.cmp(r)},o(h,s.BasePoint),l.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},l.prototype.point=function(t,e,i,n){return new h(this,t,e,i,n)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),s=o.redSub(i),a=n.redSub(e),l=r.redMul(s),h=o.redMul(a),c=r.redMul(a),u=s.redMul(o);return this.curve.point(l,h,u,c)},h.prototype._projDbl=function(){var t,e,i,n,r,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){n=this.curve._mulA(a);var h=n.redAdd(l);this.zOne?(t=s.redSub(a).redSub(l).redMul(h.redSub(this.curve.two)),e=h.redMul(n.redSub(l)),i=h.redSqr().redSub(h).redSub(h)):(r=this.z.redSqr(),o=h.redSub(r).redISub(r),t=s.redSub(a).redISub(l).redMul(o),e=h.redMul(n.redSub(l)),i=h.redMul(o))}else n=a.redAdd(l),r=this.curve._mulC(this.z).redSqr(),o=n.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(a.redISub(l)),i=n.redMul(o);return this.curve.point(t,e,i)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),o=i.redSub(e),s=r.redSub(n),a=r.redAdd(n),l=i.redAdd(e),h=o.redMul(s),c=a.redMul(l),u=o.redMul(l),d=s.redMul(a);return this.curve.point(h,c,d,u)},h.prototype._projAdd=function(t){var e,i,n=this.z.redMul(t.z),r=n.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),l=r.redSub(a),h=r.redAdd(a),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),u=n.redMul(l).redMul(c);return this.curve.twisted?(e=n.redMul(h).redMul(s.redSub(this.curve._mulA(o))),i=l.redMul(h)):(e=n.redMul(h).redMul(s.redSub(o)),i=this.curve._mulC(l).redMul(h)),this.curve.point(u,e,i)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},h.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},"3f62":function(t,e,i){var n=i("8707").Buffer,r=n.alloc(16,0);function o(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){var e=-1;while(++e<t.length)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){var t,e,i,n=o(this.h),r=[0,0,0,0],a=-1;while(++a<128){for(e=0!==(this.state[~~(a/8)]&1<<7-a%8),e&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),i=0!==(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=s(r)},a.prototype.update=function(t){var e;this.cache=n.concat([this.cache,t]);while(this.cache.length>=16)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=a},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},"409b":function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["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"]]}}},4111:function(t,e,i){"use strict";var n=i("7f7a");e.certificate=i("56b5");var r=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=r;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=s;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=l;var h=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=h;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var u=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=u;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},4136:function(t,e,i){"use strict";var n=e;n.base=i("ea53"),n.short=i("3300"),n.mont=i("676f"),n.edwards=i("3daf")},4186:function(t,e,i){"use strict";(function(e){var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o=i("ee93"),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),h=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var i=t[d].read();null!==i&&(t[c]=null,t[s]=null,t[a]=null,e(f(i,!1)))}}function g(t){e.nextTick(p,t)}function m(t,e){return function(i,n){t.then((function(){e[h]?i(f(void 0,!0)):e[u](i,n)}),n)}}var v=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((n={get stream(){return this[d]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[h])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(i,n){e.nextTick((function(){t[l]?n(t[l]):i(f(void 0,!0))}))}));var n,r=this[c];if(r)n=new Promise(m(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[u])}return this[c]=n,n}},r(n,Symbol.asyncIterator,(function(){return this})),r(n,"return",(function(){var t=this;return new Promise((function(e,i){t[d].destroy(null,(function(t){t?i(t):e(f(void 0,!0))}))}))})),n),v),y=function(t){var e,i=Object.create(b,(e={},r(e,d,{value:t,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,h,{value:t._readableState.endEmitted,writable:!0}),r(e,u,{value:function(t,e){var n=i[d].read();n?(i[c]=null,i[s]=null,i[a]=null,t(f(n,!1))):(i[s]=t,i[a]=e)},writable:!0}),e));return i[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[a];return null!==e&&(i[c]=null,i[s]=null,i[a]=null,e(t)),void(i[l]=t)}var n=i[s];null!==n&&(i[c]=null,i[s]=null,i[a]=null,n(f(void 0,!0))),i[h]=!0})),t.on("readable",g.bind(null,i)),i};t.exports=y}).call(this,i("4362"))},"41c3":function(t,e,i){var n=i("1a8c"),r=i("eac5"),o=i("ec8c"),s=Object.prototype,a=s.hasOwnProperty;function l(t){if(!n(t))return o(t);var e=r(t),i=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&i.push(s);return i}t.exports=l},"41df":function(t,e,i){"use strict";const n=e;n.Reporter=i("d1c8").Reporter,n.DecoderBuffer=i("6283").DecoderBuffer,n.EncoderBuffer=i("6283").EncoderBuffer,n.Node=i("8360")},4228:function(t,e,i){var n=i("82f0"),r=i("8707").Buffer,o=i("bac2"),s=i("09f5"),a=i("6430"),l=i("39f5"),h=i("ae84"),c=i("3fb5");function u(t,e,i){a.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(e),this._prev=r.from(i),this._mode=t,this._autopadding=!0}function d(){this.cache=r.allocUnsafe(0)}function f(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var i=-1;while(++i<e)if(t[i+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function p(t,e,i){var a=o[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof i&&(i=r.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);if("string"===typeof e&&(e=r.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new s(a.module,e,i,!0):"auth"===a.type?new n(a.module,e,i,!0):new u(a.module,e,i)}function g(t,e){var i=o[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=h(e,!1,i.key,i.iv);return p(t,n.key,n.iv)}c(u,a),u.prototype._update=function(t){var e,i;this._cache.add(t);var n=[];while(e=this._cache.get(this._autopadding))i=this._mode.decrypt(this,e),n.push(i);return r.concat(n)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return f(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=r.concat([this.cache,t])},d.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=g,e.createDecipheriv=p},4245:function(t,e,i){var n=i("1290");function r(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}t.exports=r},42454:function(t,e,i){var n=i("f909"),r=i("2ec1"),o=r((function(t,e,i){n(t,e,i)}));t.exports=o},4250:function(t,e,i){"use strict";(function(e,n){var r;t.exports=E,E.ReadableState=k;i("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=i("5bbb"),a=i("b639").Buffer,l=e.Uint8Array||function(){};function h(t){return a.from(t)}function c(t){return a.isBuffer(t)||t instanceof l}var u,d=i(1);u=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=i("96a5"),v=i("493f"),b=i("b9b5"),y=b.getHighWaterMark,w=i("9d8a").codes,C=w.ERR_INVALID_ARG_TYPE,I=w.ERR_STREAM_PUSH_AFTER_EOF,A=w.ERR_METHOD_NOT_IMPLEMENTED,M=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i("3fb5")(E,s);var x=v.errorOrDestroy,_=["error","close","destroy","pause","resume"];function S(t,e,i){if("function"===typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}function k(t,e,n){r=r||i("e666"),t=t||{},"boolean"!==typeof n&&(n=e instanceof r),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=i("7d72").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function E(t){if(r=r||i("e666"),!(this instanceof E))return new E(t);var e=this instanceof r;this._readableState=new k(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function T(t,e,i,n,r){u("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,B(t,s);else if(r||(o=O(s,e)),o)x(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=h(e)),n)s.endEmitted?x(t,new M):R(t,s,e,!0);else if(s.ended)x(t,new I);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?R(t,s,e,!1):P(t,s)):R(t,s,e,!1)}else n||(s.reading=!1,P(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function R(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&D(t)),P(t,e)}function O(t,e){var i;return c(e)||"string"===typeof e||void 0===e||t.objectMode||(i=new C("chunk",["string","Buffer","Uint8Array"],e)),i}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=v.destroy,E.prototype._undestroy=v.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=a.from(t,e),e=""),i=!0),T(this,t,e,!1,i)},E.prototype.unshift=function(t){return T(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){f||(f=i("7d72").StringDecoder);var e=new f(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,r="";while(null!==n)r+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var j=1073741824;function N(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function L(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=N(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t,e){if(u("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Z(t)))}}function D(t){var e=t._readableState;u("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(u("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(Z,t))}function Z(t){var e=t._readableState;u("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function P(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(W,t,e))}function W(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var i=e.length;if(u("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function $(t){return function(){var e=t._readableState;u("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,V(t))}}function H(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){u("readable nexttick read 0"),t.read(0)}function G(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(F,t,e))}function F(t,e){u("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;u("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function Y(t){var e=t._readableState;u("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(U,e,t))}function U(t,e){if(u("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function X(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}E.prototype.read=function(t){u("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return u("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):D(this),null;if(t=L(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var n,r=e.needReadable;return u("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,u("length less than watermark",r)),e.ended||e.reading?(r=!1,u("reading or ended",r)):r&&(u("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=L(i,e))),n=t>0?K(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&Y(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){x(this,new A("_read()"))},E.prototype.pipe=function(t,e){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?h:b;function l(t,e){u("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function h(){u("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",l);var c=$(i);t.on("drain",c);var d=!1;function f(){u("cleanup"),t.removeListener("close",m),t.removeListener("finish",v),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),i.removeListener("end",h),i.removeListener("end",b),i.removeListener("data",p),d=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){u("ondata");var n=t.write(e);u("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==X(r.pipes,t))&&!d&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function g(e){u("onerror",e),b(),t.removeListener("error",g),0===o(t,"error")&&x(t,e)}function m(){t.removeListener("finish",v),b()}function v(){u("onfinish"),t.removeListener("close",m),b()}function b(){u("unpipe"),i.unpipe(t)}return i.on("data",p),S(t,"error",g),t.once("close",m),t.once("finish",v),t.emit("pipe",i),r.flowing||(u("pipe resume"),i.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=X(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},E.prototype.on=function(t,e){var i=s.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?D(this):r.reading||n.nextTick(z,this))),i},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var i=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(H,this),i},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(H,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(u("resume"),t.flowing=!t.readableListening,G(this,t)),t.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(u("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){if(u("wrapped data"),i.decoder&&(r=i.decoder.write(r)),(!i.objectMode||null!==r&&void 0!==r)&&(i.objectMode||r&&r.length)){var o=e.push(r);o||(n=!0,t.pause())}})),t)void 0===this[r]&&"function"===typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<_.length;o++)t.on(_[o],this.emit.bind(this,_[o]));return this._read=function(e){u("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=i("4186")),p(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=K,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(t,e){return void 0===g&&(g=i("919c")),g(E,t,e)})}).call(this,i("c8ba"),i("4362"))},4284:function(t,e){function i(t,e){var i=-1,n=null==t?0:t.length;while(++i<n)if(e(t[i],i,t))return!0;return!1}t.exports=i},"429b":function(t,e,i){t.exports=i("faa1").EventEmitter},"42a2":function(t,e,i){var n=i("b5a7"),r=i("79bc"),o=i("1cec"),s=i("c869"),a=i("39ff"),l=i("3729"),h=i("dc57"),c="[object Map]",u="[object Object]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",g="[object DataView]",m=h(n),v=h(r),b=h(o),y=h(s),w=h(a),C=l;(n&&C(new n(new ArrayBuffer(1)))!=g||r&&C(new r)!=c||o&&C(o.resolve())!=d||s&&C(new s)!=f||a&&C(new a)!=p)&&(C=function(t){var e=l(t),i=e==u?t.constructor:void 0,n=i?h(i):"";if(n)switch(n){case m:return g;case v:return c;case b:return d;case y:return f;case w:return p}return e}),t.exports=C},"42a7":function(t,e,i){"use strict";var n=i("d113").codes.ERR_STREAM_PREMATURE_CLOSE;function r(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t.apply(this,n)}}}function o(){}function s(t){return t.setHeader&&"function"===typeof t.abort}function a(t,e,i){if("function"===typeof e)return a(t,null,e);e||(e={}),i=r(i||o);var l=e.readable||!1!==e.readable&&t.readable,h=e.writable||!1!==e.writable&&t.writable,c=function(){t.writable||d()},u=t._writableState&&t._writableState.finished,d=function(){h=!1,u=!0,l||i.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,f=!0,h||i.call(t)},g=function(e){i.call(t,e)},m=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):h&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return s(t)?(t.on("complete",d),t.on("abort",m),t.req?v():t.on("request",v)):h&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",d),!1!==e.error&&t.on("error",g),t.on("close",m),function(){t.removeListener("complete",d),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",m)}}t.exports=a},4359:function(t,e){function i(t,e){var i=-1,n=t.length;e||(e=Array(n));while(++i<n)e[i]=t[i];return e}t.exports=i},4362:function(t,e,i){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=i("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44a3":function(t,e,i){"use strict";var n=i("80af"),r=i("f3a3"),o=r.assert,s=r.cachedProperty,a=r.parseBytes;function l(t,e){this.eddsa=t,"object"!==typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},"467f":function(t,e,i){"use strict";var n=i("2d83");t.exports=function(t,e,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?e(n("Request failed with status code "+i.status,i.config,null,i.request,i)):t(i)}},4681:function(t,e,i){"use strict";var n=i("966d");function r(t,e){var i=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(s,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(s,i,t),i._writableState&&(i._writableState.errorEmitted=!0)):e&&e(t)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}t.exports={destroy:r,undestroy:o}},"48e6":function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(5).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"493f":function(t,e,i){"use strict";(function(e){function i(t,i){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):i?(e.nextTick(r,o),i(t)):e.nextTick(r,o)})),this)}function n(t,e){s(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){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)}function s(t,e){t.emit("error",e)}function a(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:i,undestroy:o,errorOrDestroy:a}}).call(this,i("4362"))},"49ce":function(t,e,i){"use strict";(function(e,n){function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){F(e,t)}}var o;t.exports=k,k.WritableState=S;var s={deprecate:i("b7d1")},a=i("f12a"),l=i("b639").Buffer,h=e.Uint8Array||function(){};function c(t){return l.from(t)}function u(t){return l.isBuffer(t)||t instanceof h}var d,f=i("9019"),p=i("05f0"),g=p.getHighWaterMark,m=i("d113").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,w=m.ERR_STREAM_CANNOT_PIPE,C=m.ERR_STREAM_DESTROYED,I=m.ERR_STREAM_NULL_VALUES,A=m.ERR_STREAM_WRITE_AFTER_END,M=m.ERR_UNKNOWN_ENCODING,x=f.errorOrDestroy;function _(){}function S(t,e,n){o=o||i("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){B(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function k(t){o=o||i("5e7d");var e=this instanceof o;if(!e&&!d.call(k,this))return new k(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),a.call(this)}function E(t,e){var i=new A;x(t,i),n.nextTick(e,i)}function T(t,e,i,r){var o;return null===i?o=new I:"string"===typeof i||e.objectMode||(o=new v("chunk",["string","Buffer"],i)),!o||(x(t,o),n.nextTick(r,o),!1)}function R(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,i)),e}function O(t,e,i,n,r,o){if(!i){var s=R(e,n,r);n!==s&&(i=!0,r="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,a,n,r,o);return l}function j(t,e,i,n,r,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new C("write")):i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function N(t,e,i,r,o){--e.pendingcb,i?(n.nextTick(o,r),n.nextTick(z,t,e),t._writableState.errorEmitted=!0,x(t,r)):(o(r),t._writableState.errorEmitted=!0,x(t,r),z(t,e))}function L(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function B(t,e){var i=t._writableState,r=i.sync,o=i.writecb;if("function"!==typeof o)throw new y;if(L(i),e)N(t,i,r,e,o);else{var s=W(i)||t.destroyed;s||i.corked||i.bufferProcessing||!i.bufferedRequest||P(t,i),r?n.nextTick(D,t,i,s,o):D(t,i,s,o)}}function D(t,e,i,n){i||Z(t,e),e.pendingcb--,n(),z(t,e)}function Z(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function P(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,o=new Array(n),s=e.corkedRequestsFree;s.entry=i;var a=0,l=!0;while(i)o[a]=i,i.isBuf||(l=!1),i=i.next,a+=1;o.allBuffers=l,j(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{while(i){var h=i.chunk,c=i.encoding,u=i.callback,d=e.objectMode?1:h.length;if(j(t,e,!1,d,h,c,u),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function W(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function $(t,e){t._final((function(i){e.pendingcb--,i&&x(t,i),e.prefinished=!0,t.emit("prefinish"),z(t,e)}))}function H(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick($,t,e)))}function z(t,e){var i=W(e);if(i&&(H(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return i}function G(t,e,i){e.ending=!0,z(t,e),i&&(e.finished?n.nextTick(i):t.once("finish",i)),e.ended=!0,t.writable=!1}function F(t,e,i){var n=t.entry;t.entry=null;while(n){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree.next=t}i("3fb5")(k,a),S.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===k&&(t&&t._writableState instanceof S)}})):d=function(t){return t instanceof this},k.prototype.pipe=function(){x(this,new w)},k.prototype.write=function(t,e,i){var n=this._writableState,r=!1,o=!n.objectMode&&u(t);return o&&!l.isBuffer(t)&&(t=c(t)),"function"===typeof e&&(i=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof i&&(i=_),n.ending?E(this,i):(o||T(this,n,t,i))&&(n.pendingcb++,r=O(this,n,o,t,e,i)),r},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||P(this,t))},k.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(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(t,e,i){i(new b("_write()"))},k.prototype._writev=null,k.prototype.end=function(t,e,i){var n=this._writableState;return"function"===typeof t?(i=t,t=null,e=null):"function"===typeof e&&(i=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||G(this,n,i),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(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(t,e){e(t)}}).call(this,i("c8ba"),i("4362"))},"49f4":function(t,e,i){var n=i("6044");function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r},"4a7a":function(t,e,i){!function(e,i){t.exports=i()}("undefined"!=typeof self&&self,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=8)}([function(t,e,i){var n=i(4),r=i(5),o=i(6);t.exports=function(t){return n(t)||r(t)||o()}},function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,i){},function(t,e){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){"use strict";var n=i(2);i.n(n).a},function(t,e,i){"use strict";i.r(e);var n=i(0),r=i.n(n),o=i(1),s=i.n(o),a=i(3),l=i.n(a),h={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()}},methods:{maybeAdjustScroll:function(){var t,e=(null===(t=this.$refs.dropdownMenu)||void 0===t?void 0:t.children[this.typeAheadPointer])||!1;if(e){var i=this.getDropdownViewport(),n=e.getBoundingClientRect(),r=n.top,o=n.bottom,s=n.height;if(r<i.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>i.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(i.height-s)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},c={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}}},methods:{typeAheadUp:function(){for(var t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect:function(){var t=this.filteredOptions[this.typeAheadPointer];t&&this.select(t)}}},u={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(t){this.mutableLoading=t}},methods:{toggleLoading:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==t?!this.mutableLoading:t}}};function d(t,e,i,n,r,o,s,a){var l,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(h.functional){h._injectStyles=l;var c=h.render;h.render=function(t,e){return l.call(e),c(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:h}}var f={Deselect:d({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[e("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[],!1,null,null,null).exports,OpenIndicator:d({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[e("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[],!1,null,null,null).exports},p={inserted:function(t,e,i){var n=i.context;if(n.appendToBody){var r=n.$refs.toggle.getBoundingClientRect(),o=r.height,s=r.top,a=r.left,l=r.width,h=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=n.calculatePosition(t,n,{width:l+"px",left:h+a+"px",top:c+s+o+"px"}),document.body.appendChild(t)}},unbind:function(t,e,i){i.context.appendToBody&&(t.unbindPosition&&"function"==typeof t.unbindPosition&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}},g=function(t){var e={};return Object.keys(t).sort().forEach((function(i){e[i]=t[i]})),JSON.stringify(e)},m=0,v=function(){return++m};function b(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?b(Object(i),!0).forEach((function(e){l()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var w={components:y({},f),mixins:[h,c,u],directives:{appendToBody:p},props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(t){return t}},selectable:{type:Function,default:function(t){return!0}},getOptionLabel:{type:Function,default:function(t){return"object"===s()(t)?t.hasOwnProperty(this.label)?t[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(t),".\n")+"https://vue-select.org/api/props.html#getoptionlabel"):t}},getOptionKey:{type:Function,default:function(t){if("object"!==s()(t))return t;try{return t.hasOwnProperty("id")?t.id:g(t)}catch(e){return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(t,e,i){return(e||"").toLowerCase().indexOf(i.toLowerCase())>-1}},filter:{type:Function,default:function(t,e){var i=this;return t.filter((function(t){var n=i.getOptionLabel(t);return"number"==typeof n&&(n=n.toString()),i.filterBy(t,n,e)}))}},createOption:{type:Function,default:function(t){return"object"===s()(this.optionList[0])?l()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return["function","boolean"].includes(s()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var e=t.clearSearchOnSelect,i=t.multiple;return e&&!i}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(t,e){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,e,i){var n=i.width,r=i.top,o=i.left;t.style.top=r,t.style.left=o,t.style.width=n}}},data:function(){return{uid:v(),search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},watch:{options:function(t,e){var i=this;!this.taggable&&("function"==typeof i.resetOnOptionsChange?i.resetOnOptionsChange(t,e,i.selectedValue):i.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?"open":"close")}},created:function(){this.mutableLoading=this.loading,void 0!==this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value),this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(t){var e=this;Array.isArray(t)?this.$data._value=t.map((function(t){return e.findOptionFromReducedValue(t)})):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.$emit("option:selecting",t),this.isOptionSelected(t)||(this.taggable&&!this.optionExists(t)&&this.$emit("option:created",t),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect:function(t){var e=this;this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter((function(i){return!e.optionComparator(i,t)}))),this.$emit("option:deselected",t)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(t){var e=this;void 0===this.value&&(this.$data._value=t),null!==t&&(t=Array.isArray(t)?t.map((function(t){return e.reduce(t)})):this.reduce(t)),this.$emit("input",t)},toggleDropdown:function(t){var e=t.target!==this.searchEl;e&&t.preventDefault();var i=[].concat(r()(this.$refs.deselectButtons||[]),r()([this.$refs.clearButton]||!1));void 0===this.searchEl||i.filter(Boolean).some((function(e){return e.contains(t.target)||e===t.target}))?t.preventDefault():this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var e=this;return this.selectedValue.some((function(i){return e.optionComparator(i,t)}))},optionComparator:function(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue:function(t){var e=this,i=[].concat(r()(this.options),r()(this.pushedTags)).filter((function(i){return JSON.stringify(e.reduce(i))===JSON.stringify(t)}));return 1===i.length?i[0]:i.find((function(t){return e.optionComparator(t,e.$data._value)}))||t},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=r()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var e=this;return this.optionList.some((function(i){return e.optionComparator(i,t)}))},normalizeOptionForSlot:function(t){return"object"===s()(t)?t:l()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,e=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var e=this,i=function(t){return t.preventDefault(),!e.isComposing&&e.typeAheadSelect()},n={8:function(t){return e.maybeDeleteValue()},9:function(t){return e.onTab()},27:function(t){return e.onEscape()},38:function(t){return t.preventDefault(),e.typeAheadUp()},40:function(t){return t.preventDefault(),e.typeAheadDown()}};this.selectOnKeyCodes.forEach((function(t){return n[t]=i}));var r=this.mapKeydown(n,this);if("function"==typeof r[t.keyCode])return r[t.keyCode](t)}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var t=this.value;return this.isTrackingValues&&(t=this.$data._value),t?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:y({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(e){return t.search=e.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.loading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:y({},e,{deselect:this.deselect}),footer:y({},e,{deselect:this.deselect})}},childComponents:function(){return y({},f,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&this.open&&!this.mutableLoading},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var i=this.createOption(this.search);this.optionExists(i)||e.unshift(i)}return e},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}}},C=(i(7),d(w,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-select",class:t.stateClasses,attrs:{dir:t.dir}},[t._t("header",null,null,t.scope.header),t._v(" "),i("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+t.uid+"__combobox",role:"combobox","aria-expanded":t.dropdownOpen.toString(),"aria-owns":"vs"+t.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(e){return t.toggleDropdown(e)}}},[i("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[t._l(t.selectedValue,(function(e){return t._t("selected-option-container",[i("span",{key:t.getOptionKey(e),staticClass:"vs__selected"},[t._t("selected-option",[t._v("\n "+t._s(t.getOptionLabel(e))+"\n ")],null,t.normalizeOptionForSlot(e)),t._v(" "),t.multiple?i("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:t.disabled,type:"button",title:"Deselect "+t.getOptionLabel(e),"aria-label":"Deselect "+t.getOptionLabel(e)},on:{click:function(i){return t.deselect(e)}}},[i(t.childComponents.Deselect,{tag:"component"})],1):t._e()],2)],{option:t.normalizeOptionForSlot(e),deselect:t.deselect,multiple:t.multiple,disabled:t.disabled})})),t._v(" "),t._t("search",[i("input",t._g(t._b({staticClass:"vs__search"},"input",t.scope.search.attributes,!1),t.scope.search.events))],null,t.scope.search)],2),t._v(" "),i("div",{ref:"actions",staticClass:"vs__actions"},[i("button",{directives:[{name:"show",rawName:"v-show",value:t.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:t.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:t.clearSelection}},[i(t.childComponents.Deselect,{tag:"component"})],1),t._v(" "),t._t("open-indicator",[t.noDrop?t._e():i(t.childComponents.OpenIndicator,t._b({tag:"component"},"component",t.scope.openIndicator.attributes,!1))],null,t.scope.openIndicator),t._v(" "),t._t("spinner",[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[t._v("Loading...")])],null,t.scope.spinner)],2)]),t._v(" "),i("transition",{attrs:{name:t.transition}},[t.dropdownOpen?i("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+t.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+t.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},mouseup:t.onMouseUp}},[t._t("list-header",null,null,t.scope.listHeader),t._v(" "),t._l(t.filteredOptions,(function(e,n){return i("li",{key:t.getOptionKey(e),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--selected":t.isOptionSelected(e),"vs__dropdown-option--highlight":n===t.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(e)},attrs:{role:"option",id:"vs"+t.uid+"__option-"+n,"aria-selected":n===t.typeAheadPointer||null},on:{mouseover:function(i){t.selectable(e)&&(t.typeAheadPointer=n)},mousedown:function(i){i.preventDefault(),i.stopPropagation(),t.selectable(e)&&t.select(e)}}},[t._t("option",[t._v("\n "+t._s(t.getOptionLabel(e))+"\n ")],null,t.normalizeOptionForSlot(e))],2)})),t._v(" "),0===t.filteredOptions.length?i("li",{staticClass:"vs__no-options"},[t._t("no-options",[t._v("Sorry, no matching options.")],null,t.scope.noOptions)],2):t._e(),t._v(" "),t._t("list-footer",null,null,t.scope.listFooter)],2):i("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+t.uid+"__listbox",role:"listbox"}})]),t._v(" "),t._t("footer",null,null,t.scope.footer)],2)}),[],!1,null,null,null).exports),I={ajax:u,pointer:c,pointerScroll:h};i.d(e,"VueSelect",(function(){return C})),i.d(e,"mixins",(function(){return I})),e.default=C}])}))},"4a7b":function(t,e,i){"use strict";var n=i("c532");t.exports=function(t,e){e=e||{};var i={},r=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function h(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(i[r]=l(void 0,t[r])):i[r]=l(t[r],e[r])}n.forEach(r,(function(t){n.isUndefined(e[t])||(i[t]=l(void 0,e[t]))})),n.forEach(o,h),n.forEach(s,(function(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(i[r]=l(void 0,t[r])):i[r]=l(void 0,e[r])})),n.forEach(a,(function(n){n in e?i[n]=l(t[n],e[n]):n in t&&(i[n]=l(void 0,t[n]))}));var c=r.concat(o).concat(s).concat(a),u=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return n.forEach(u,h),i}},"4dd0":function(t,e,i){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,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=i("ae84"),a=i("fda6"),l=i("8707").Buffer;t.exports=function(t,e){var i,h=t.toString(),c=h.match(n);if(c){var u="aes"+c[1],d=l.from(c[2],"hex"),f=l.from(c[3].replace(/[\r\n]/g,""),"base64"),p=s(e,d.slice(0,8),parseInt(c[1],10)).key,g=[],m=a.createDecipheriv(u,p,d);g.push(m.update(f)),g.push(m.final()),i=l.concat(g)}else{var v=h.match(o);i=l.from(v[2].replace(/[\r\n]/g,""),"base64")}var b=h.match(r)[1];return{tag:b,data:i}}},"4e2b":function(t,e,i){"use strict";var n=i("da3e"),r=i("3fb5"),o=i("5ee7"),s=i("0184");function a(){this.tmp=new Array(2),this.keys=null}function l(t){s.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}r(l,s),t.exports=l,l.create=function(t){return new l(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var i=o.readUInt32BE(e,0),r=o.readUInt32BE(e,4);o.pc1(i,r,t.tmp,0),i=t.tmp[0],r=t.tmp[1];for(var s=0;s<t.keys.length;s+=2){var a=h[s>>>1];i=o.r28shl(i,a),r=o.r28shl(r,a),o.pc2(i,r,t.keys,s)}},l.prototype._update=function(t,e,i,n){var r=this._desState,s=o.readUInt32BE(t,e),a=o.readUInt32BE(t,e+4);o.ip(s,a,r.tmp,0),s=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,s,a,r.tmp,0):this._decrypt(r,s,a,r.tmp,0),s=r.tmp[0],a=r.tmp[1],o.writeUInt32BE(i,s,n),o.writeUInt32BE(i,a,n+4)},l.prototype._pad=function(t,e){for(var i=t.length-e,n=e;n<t.length;n++)t[n]=i;return!0},l.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)n.equal(t[i],e);return t.slice(0,t.length-e)},l.prototype._encrypt=function(t,e,i,n,r){for(var s=e,a=i,l=0;l<t.keys.length;l+=2){var h=t.keys[l],c=t.keys[l+1];o.expand(a,t.tmp,0),h^=t.tmp[0],c^=t.tmp[1];var u=o.substitute(h,c),d=o.permute(u),f=a;a=(s^d)>>>0,s=f}o.rip(a,s,n,r)},l.prototype._decrypt=function(t,e,i,n,r){for(var s=i,a=e,l=t.keys.length-2;l>=0;l-=2){var h=t.keys[l],c=t.keys[l+1];o.expand(s,t.tmp,0),h^=t.tmp[0],c^=t.tmp[1];var u=o.substitute(h,c),d=o.permute(u),f=s;s=(a^d)>>>0,a=f}o.rip(s,a,n,r)}},"4f50":function(t,e,i){var n=i("b760"),r=i("e538"),o=i("c8fe"),s=i("4359"),a=i("fa21"),l=i("d370"),h=i("6747"),c=i("dcbe"),u=i("0d24"),d=i("9520"),f=i("1a8c"),p=i("60ed"),g=i("73ac"),m=i("8adb"),v=i("8de2");function b(t,e,i,b,y,w,C){var I=m(t,i),A=m(e,i),M=C.get(A);if(M)n(t,i,M);else{var x=w?w(I,A,i+"",t,e,C):void 0,_=void 0===x;if(_){var S=h(A),k=!S&&u(A),E=!S&&!k&&g(A);x=A,S||k||E?h(I)?x=I:c(I)?x=s(I):k?(_=!1,x=r(A,!0)):E?(_=!1,x=o(A,!0)):x=[]:p(A)||l(A)?(x=I,l(I)?x=v(I):f(I)&&!d(I)||(x=a(A))):_=!1}_&&(C.set(A,x),y(x,A,b,w,C),C["delete"](A)),n(t,i,x)}}t.exports=b},"4fd1":function(t,e,i){var n=i("3fb5"),r=i("b672"),o=i("8707").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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function l(){this.init(),this._w=a,r.call(this,128,112)}function h(t,e,i){return i^t&(e^i)}function c(t,e,i){return t&e|i&(t|e)}function u(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0<e>>>0?1:0}n(l,r),l.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},l.prototype._update=function(t){for(var e=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,o=0|this._dh,a=0|this._eh,l=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,C=0|this._bl,I=0|this._cl,A=0|this._dl,M=0|this._el,x=0|this._fl,_=0|this._gl,S=0|this._hl,k=0;k<32;k+=2)e[k]=t.readInt32BE(4*k),e[k+1]=t.readInt32BE(4*k+4);for(;k<160;k+=2){var E=e[k-30],T=e[k-30+1],R=f(E,T),O=p(T,E);E=e[k-4],T=e[k-4+1];var j=g(E,T),N=m(T,E),L=e[k-14],B=e[k-14+1],D=e[k-32],Z=e[k-32+1],P=O+B|0,W=R+L+v(P,O)|0;P=P+N|0,W=W+j+v(P,N)|0,P=P+Z|0,W=W+D+v(P,Z)|0,e[k]=W,e[k+1]=P}for(var $=0;$<160;$+=2){W=e[$],P=e[$+1];var H=c(i,n,r),z=c(w,C,I),G=u(i,w),F=u(w,i),V=d(a,M),K=d(M,a),Y=s[$],U=s[$+1],X=h(a,l,b),J=h(M,x,_),Q=S+K|0,q=y+V+v(Q,S)|0;Q=Q+J|0,q=q+X+v(Q,J)|0,Q=Q+U|0,q=q+Y+v(Q,U)|0,Q=Q+P|0,q=q+W+v(Q,P)|0;var tt=F+z|0,et=G+H+v(tt,F)|0;y=b,S=_,b=l,_=x,l=a,x=M,M=A+Q|0,a=o+q+v(M,A)|0,o=r,A=I,r=n,I=C,n=i,C=w,w=Q+tt|0,i=q+et+v(w,Q)|0}this._al=this._al+w|0,this._bl=this._bl+C|0,this._cl=this._cl+I|0,this._dl=this._dl+A|0,this._el=this._el+M|0,this._fl=this._fl+x|0,this._gl=this._gl+_|0,this._hl=this._hl+S|0,this._ah=this._ah+i+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,C)|0,this._ch=this._ch+r+v(this._cl,I)|0,this._dh=this._dh+o+v(this._dl,A)|0,this._eh=this._eh+a+v(this._el,M)|0,this._fh=this._fh+l+v(this._fl,x)|0,this._gh=this._gh+b+v(this._gl,_)|0,this._hh=this._hh+y+v(this._hl,S)|0},l.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},"50d8":function(t,e){function i(t,e){var i=-1,n=Array(t);while(++i<t)n[i]=e(i);return n}t.exports=i},5165:function(t,e,i){(function(t){var n=i("8c8a");function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,i){while(e._cache.length<i.length)e._cache=t.concat([e._cache,r(e)]);var o=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),n(i,o)}}).call(this,i("b639").Buffer)},5239:function(t,e,i){var n=i("8707").Buffer;function r(t,e,i){var n,r,s,a=-1,l=8,h=0;while(++a<l)n=t._cipher.encryptBlock(t._prev),r=e&1<<7-a?128:0,s=n[0]^r,h+=(128&s)>>a%8,t._prev=o(t._prev,i?r:s);return h}function o(t,e){var i=t.length,r=-1,o=n.allocUnsafe(t.length);t=n.concat([t,n.from([e])]);while(++r<i)o[r]=t[r]<<1|t[r+1]>>7;return o}e.encrypt=function(t,e,i){var o=e.length,s=n.allocUnsafe(o),a=-1;while(++a<o)s[a]=r(t,e[a],i);return s}},5270:function(t,e,i){"use strict";var n=i("c532"),r=i("c401"),o=i("2e67"),s=i("2444");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){a(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||s.adapter;return e(t).then((function(e){return a(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5291:function(t,e,i){var n=i("0106"),r=i("8707").Buffer;function o(t,e){return r.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}t.exports=o},"55a3":function(t,e){function i(t){return this.__data__.has(t)}t.exports=i},"561d":function(t,e,i){(function(e){var n=i("48e6"),r=i("7a10"),o=new r,s=new n(24),a=new n(11),l=new n(10),h=new n(3),c=new n(7),u=i("58a2"),d=i("11dc");function f(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new n(t),this}function p(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new n(t),this}t.exports=v;var g={};function m(t,e){var i=e.toString("hex"),n=[i,t.toString(16)].join("_");if(n in g)return g[n];var r,d=0;if(t.isEven()||!u.simpleSieve||!u.fermatTest(t)||!o.test(t))return d+=1,d+="02"===i||"05"===i?8:4,g[n]=d,d;switch(o.test(t.shrn(1))||(d+=2),i){case"02":t.mod(s).cmp(a)&&(d+=8);break;case"05":r=t.mod(l),r.cmp(h)&&r.cmp(c)&&(d+=8);break;default:d+=4}return g[n]=d,d}function v(t,e,i){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=f,this.setPrivateKey=p):this._primeCode=8}function b(t,i){var n=new e(t.toArray());return i?n.toString(i):n}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=m(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(t){t=new n(t),t=t.toRed(this._prime);var i=t.redPow(this._priv).fromRed(),r=new e(i.toArray()),o=this.getPrime();if(r.length<o.length){var s=new e(o.length-r.length);s.fill(0),r=e.concat([s,r])}return r},v.prototype.getPublicKey=function(t){return b(this._pub,t)},v.prototype.getPrivateKey=function(t){return b(this._priv,t)},v.prototype.getPrime=function(t){return b(this.__prime,t)},v.prototype.getGenerator=function(t){return b(this._gen,t)},v.prototype.setGenerator=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.__gen=t,this._gen=new n(t),this}}).call(this,i("b639").Buffer)},"56b5":function(t,e,i){"use strict";var n=i("7f7a"),r=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())})),l=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),h=n.define("RDNSequence",(function(){this.seqof(l)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),u=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),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(u),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())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));t.exports=p},"57a5":function(t,e,i){var n=i("91e9"),r=n(Object.keys,Object);t.exports=r},"57e2":function(t,e,i){"use strict";(function(e){var n;function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o=i("42a7"),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),h=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var i=t[d].read();null!==i&&(t[c]=null,t[s]=null,t[a]=null,e(f(i,!1)))}}function g(t){e.nextTick(p,t)}function m(t,e){return function(i,n){t.then((function(){e[h]?i(f(void 0,!0)):e[u](i,n)}),n)}}var v=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((n={get stream(){return this[d]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[h])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(i,n){e.nextTick((function(){t[l]?n(t[l]):i(f(void 0,!0))}))}));var n,r=this[c];if(r)n=new Promise(m(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[u])}return this[c]=n,n}},r(n,Symbol.asyncIterator,(function(){return this})),r(n,"return",(function(){var t=this;return new Promise((function(e,i){t[d].destroy(null,(function(t){t?i(t):e(f(void 0,!0))}))}))})),n),v),y=function(t){var e,i=Object.create(b,(e={},r(e,d,{value:t,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,h,{value:t._readableState.endEmitted,writable:!0}),r(e,u,{value:function(t,e){var n=i[d].read();n?(i[c]=null,i[s]=null,i[a]=null,t(f(n,!1))):(i[s]=t,i[a]=e)},writable:!0}),e));return i[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[a];return null!==e&&(i[c]=null,i[s]=null,i[a]=null,e(t)),void(i[l]=t)}var n=i[s];null!==n&&(i[c]=null,i[s]=null,i[a]=null,n(f(void 0,!0))),i[h]=!0})),t.on("readable",g.bind(null,i)),i};t.exports=y}).call(this,i("4362"))},"585a":function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(this,i("c8ba"))},"58a2":function(t,e,i){var n=i("11dc");t.exports=y,y.simpleSieve=v,y.fermatTest=b;var r=i("48e6"),o=new r(24),s=i("7a10"),a=new s,l=new r(1),h=new r(2),c=new r(5),u=(new r(16),new r(8),new r(10)),d=new r(3),f=(new r(7),new r(11)),p=new r(4),g=(new r(12),null);function m(){if(null!==g)return g;var t=1048576,e=[];e[0]=2;for(var i=1,n=3;n<t;n+=2){for(var r=Math.ceil(Math.sqrt(n)),o=0;o<i&&e[o]<=r;o++)if(n%e[o]===0)break;i!==o&&e[o]<=r||(e[i++]=n)}return g=e,e}function v(t){for(var e=m(),i=0;i<e.length;i++)if(0===t.modn(e[i]))return 0===t.cmpn(e[i]);return!0}function b(t){var e=r.mont(t);return 0===h.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function y(t,e){if(t<16)return new r(2===e||5===e?[140,123]:[140,39]);var i,s;e=new r(e);while(1){i=new r(n(Math.ceil(t/8)));while(i.bitLength()>t)i.ishrn(1);if(i.isEven()&&i.iadd(l),i.testn(1)||i.iadd(h),e.cmp(h)){if(!e.cmp(c))while(i.mod(u).cmp(d))i.iadd(p)}else while(i.mod(o).cmp(f))i.iadd(p);if(s=i.shrn(1),v(s)&&v(i)&&b(s)&&b(i)&&a.test(s)&&a.test(i))return i}}},5919:function(t,e,i){"use strict";e.sha1=i("13e2"),e.sha224=i("07f2"),e.sha256=i("6eed"),e.sha384=i("8b95"),e.sha512=i("b525")},5980:function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){(function(){var e=t,i=e.lib,n=i.Base,r=e.enc,o=r.Utf8,s=e.algo;s.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),s=this._iKey=e.clone(),a=r.words,l=s.words,h=0;h<i;h++)a[h]^=1549556828,l[h]^=909522486;r.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,i=e.finalize(t);e.reset();var n=e.finalize(this._oKey.clone().concat(i));return n}})})()}))},"5a76":function(t,e,i){var n=i("f576");t.exports=function(t){return(new n).update(t).digest()}},"5bbb":function(t,e,i){t.exports=i("faa1").EventEmitter},"5bc3":function(t,e){function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}t.exports=n,t.exports["default"]=t.exports,t.exports.__esModule=!0},"5e1a":function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=i("8707").Buffer,o=i(4);function s(t,e,i){t.copy(e,i)}t.exports=function(){function t(){n(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";var e=this.head,i=""+e.data;while(e=e.next)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;var e=r.allocUnsafe(t>>>0),i=this.head,n=0;while(i)s(i.data,e,n),n+=i.data.length,i=i.next;return e},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},"5e2e":function(t,e,i){var n=i("28c9"),r=i("69d5"),o=i("b4c0"),s=i("fba5"),a=i("67ca");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},"5e7d":function(t,e,i){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=h;var r=i("cf35"),o=i("49ce");i("3fb5")(h,r);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];h.prototype[l]||(h.prototype[l]=o.prototype[l])}function h(t){if(!(this instanceof h))return new h(t);r.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i("4362"))},"5ee7":function(t,e,i){"use strict";e.readUInt32BE=function(t,e){var i=t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e];return i>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,n){for(var r=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>>a+s&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}i[n+0]=r>>>0,i[n+1]=o>>>0},e.rip=function(t,e,i,n){for(var r=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)r<<=1,r|=e>>>a+s&1,r<<=1,r|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;i[n+0]=r>>>0,i[n+1]=o>>>0},e.pc1=function(t,e,i,n){for(var r=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>a+s&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+s&1}for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[n+0]=r>>>0,i[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,r){for(var o=0,s=0,a=n.length>>>1,l=0;l<a;l++)o<<=1,o|=t>>>n[l]&1;for(l=a;l<n.length;l++)s<<=1,s|=e>>>n[l]&1;i[r+0]=o>>>0,i[r+1]=s>>>0},e.expand=function(t,e,i){var n=0,r=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)r|=t>>>o&63,r<<=6;r|=(31&t)<<1|t>>>31,e[i+0]=n>>>0,e[i+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,n=0;n<4;n++){var o=t>>>18-6*n&63,s=r[64*n+o];i<<=4,i|=s}for(n=0;n<4;n++){o=e>>>18-6*n&63,s=r[256+64*n+o];i<<=4,i|=s}return i>>>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];e.permute=function(t){for(var e=0,i=0;i<o.length;i++)e<<=1,e|=t>>>o[i]&1;return e>>>0},e.padSplit=function(t,e,i){var n=t.toString(2);while(n.length<e)n="0"+n;for(var r=[],o=0;o<e;o+=i)r.push(n.slice(o,o+i));return r.join(" ")}},"5f02":function(t,e,i){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},6044:function(t,e,i){var n=i("0b07"),r=n(Object,"create");t.exports=r},"60ed":function(t,e,i){var n=i("3729"),r=i("2dcb"),o=i("1310"),s="[object Object]",a=Function.prototype,l=Object.prototype,h=a.toString,c=l.hasOwnProperty,u=h.call(Object);function d(t){if(!o(t)||n(t)!=s)return!1;var e=r(t);if(null===e)return!0;var i=c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&h.call(i)==u}t.exports=d},6283:function(t,e,i){"use strict";const n=i("3fb5"),r=i("d1c8").Reporter,o=i("c591").Buffer;function s(t,e){r.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return a.isEncoderBuffer(t)||(t=new a(t,e)),this.length+=t.length,t}),this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(s,r),e.DecoderBuffer=s,s.isDecoderBuffer=function(t){if(t instanceof s)return!0;const e="object"===typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"===typeof t.offset&&"number"===typeof t.length&&"function"===typeof t.save&&"function"===typeof t.restore&&"function"===typeof t.isEmpty&&"function"===typeof t.readUInt8&&"function"===typeof t.skip&&"function"===typeof t.raw;return e},s.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},s.prototype.restore=function(t){const e=new s(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},s.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const i=new s(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},s.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.isEncoderBuffer=function(t){if(t instanceof a)return!0;const e="object"===typeof t&&"EncoderBuffer"===t.constructor.name&&"number"===typeof t.length&&"function"===typeof t.join;return e},a.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},"62c9":function(t,e,i){var n=i("8707").Buffer;function r(t,e,i){var r=t._cipher.encryptBlock(t._prev),o=r[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([i?e:o])]),o}e.encrypt=function(t,e,i){var o=e.length,s=n.allocUnsafe(o),a=-1;while(++a<o)s[a]=r(t,e[a],i);return s}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63ea":function(t,e,i){var n=i("c05f");function r(t,e){return n(t,e)}t.exports=r},6430:function(t,e,i){var n=i("8707").Buffer,r=i("d485").Transform,o=i("7d72").StringDecoder,s=i("3fb5");function a(t){r.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(a,r),a.prototype.update=function(t,e,i){"string"===typeof t&&(t=n.from(t,e));var r=this._update(t);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,i){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(r){n=r}finally{i(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(i){e=i}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return i&&(n+=this._decoder.end()),n},t.exports=a},6442:function(t,e,i){e.publicEncrypt=i("ad25"),e.privateDecrypt=i("0f2c"),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},6605:function(t,e){(function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css["atrule"].inside.rest=t.languages.css;var i=t.languages.markup;i&&(i.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/(^|["'\s])style\s*=\s*(?:"[^"]*"|'[^']*')/i,lookbehind:!0,inside:{"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{style:{pattern:/(["'])[\s\S]+(?=["']$)/,lookbehind:!0,alias:"language-css",inside:t.languages.css},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},"attr-name":/^style/i}}},i.tag))})(Prism)},6747:function(t,e){var i=Array.isArray;t.exports=i},"676f":function(t,e,i){"use strict";var n=i("80af"),r=i("3fb5"),o=i("ea53"),s=i("f3a3");function a(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),n=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e),r=n.redSqrt();return 0===r.redSqr().cmp(n)},r(l,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new l(this,t,e)},a.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),i=this.x.redSub(this.z),n=i.redSqr(),r=e.redSub(n),o=e.redMul(n),s=r.redMul(n.redAdd(this.curve.a24.redMul(r)));return this.curve.point(o,s)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=t.x.redAdd(t.z),o=t.x.redSub(t.z),s=o.redMul(i),a=r.redMul(n),l=e.z.redMul(s.redAdd(a).redSqr()),h=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(l,h)},l.prototype.mul=function(t){for(var e=t.clone(),i=this,n=this.curve.point(null,null),r=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(i=i.diffAdd(n,r),n=n.dbl()):(n=i.diffAdd(n,r),i=i.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},"67ca":function(t,e,i){var n=i("cb5a");function r(t,e){var i=this.__data__,r=n(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}t.exports=r},"69d5":function(t,e,i){var n=i("cb5a"),r=Array.prototype,o=r.splice;function s(t){var e=this.__data__,i=n(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():o.call(e,i,1),--this.size,!0}t.exports=s},"69f2":function(t,e,i){e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(!i)throw new Error(t+" is not supported (we accept pull requests)");return new i};e.sha=i("087f"),e.sha1=i("7e78"),e.sha224=i("72aa"),e.sha256=i("a255"),e.sha384=i("b837"),e.sha512=i("4fd1")},"6aa2":function(t,e,i){"use strict";var n=i("7d92"),r=i("7658"),o=i("da3e");function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),i=r.toArray(t.nonce,t.nonceEnc||"hex"),n=r.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,n)}t.exports=s,s.prototype._init=function(t,e,i){var n=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=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(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,i,n){"string"!==typeof e&&(n=i,i=e,e=null),t=r.toArray(t,e),i=r.toArray(i,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=i,i=e,e=null),i&&(i=r.toArray(i,n||"hex"),this._update(i));var o=[];while(o.length<t)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,t);return this._update(i),this._reseed++,r.encode(s,e)}},"6ade":function(t,e,i){var n=i("8c8a"),r=i("8707").Buffer,o=i("bd9d");function s(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}var a=16;e.encrypt=function(t,e){var i=Math.ceil(e.length/a),o=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(i*a)]);for(var l=0;l<i;l++){var h=s(t),c=o+l*a;t._cache.writeUInt32BE(h[0],c+0),t._cache.writeUInt32BE(h[1],c+4),t._cache.writeUInt32BE(h[2],c+8),t._cache.writeUInt32BE(h[3],c+12)}var u=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,u)}},"6eed":function(t,e,i){"use strict";var n=i("c3c0"),r=i("edc9"),o=i("aa56"),s=i("da3e"),a=n.sum32,l=n.sum32_4,h=n.sum32_5,c=o.ch32,u=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,g=o.g1_256,m=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,m),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var i=this.W,n=0;n<16;n++)i[n]=t[e+n];for(;n<i.length;n++)i[n]=l(g(i[n-2]),i[n-7],p(i[n-15]),i[n-16]);var r=this.h[0],o=this.h[1],m=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],C=this.h[7];for(s(this.k.length===i.length),n=0;n<i.length;n++){var I=h(C,f(b),c(b,y,w),this.k[n],i[n]),A=a(d(r),u(r,o,m));C=w,w=y,y=b,b=a(v,I),v=m,m=o,o=r,r=a(I,A)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],C)},b.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},"6fcd":function(t,e,i){var n=i("50d8"),r=i("d370"),o=i("6747"),s=i("0d24"),a=i("c098"),l=i("73ac"),h=Object.prototype,c=h.hasOwnProperty;function u(t,e){var i=o(t),h=!i&&r(t),u=!i&&!h&&s(t),d=!i&&!h&&!u&&l(t),f=i||h||u||d,p=f?n(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return p}t.exports=u},"6fe7":function(t,e,i){var n=i("39a9").Buffer,r=i("1a2a"),o=i("a958"),s=i("3337").ec,a=i("399f"),l=i("2aee"),h=i("cd91");function c(t,e,i,r,s){var a=l(e);if(a.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return u(t,a)}if("dsa"===a.type){if("dsa"!==r)throw new Error("wrong private key type");return d(t,a,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");t=n.concat([s,t]);var h=a.modulus.byteLength(),c=[0,1];while(t.length+c.length+1<h)c.push(255);c.push(0);var f=-1;while(++f<t.length)c.push(t[f]);var p=o(c,a);return p}function u(t,e){var i=h[e.curve.join(".")];if(!i)throw new Error("unknown curve "+e.curve.join("."));var r=new s(i),o=r.keyFromPrivate(e.privateKey),a=o.sign(t);return n.from(a.toDER())}function d(t,e,i){var n,r=e.params.priv_key,o=e.params.p,s=e.params.q,l=e.params.g,h=new a(0),c=g(t,s).mod(s),u=!1,d=p(r,s,t,i);while(!1===u)n=v(s,d,i),h=b(l,n,o,s),u=n.invm(s).imul(c.add(r.mul(h))).mod(s),0===u.cmpn(0)&&(u=!1,h=new a(0));return f(h,u)}function f(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var i=t.length+e.length+4,r=[48,i,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}function p(t,e,i,o){if(t=n.from(t.toArray()),t.length<e.byteLength()){var s=n.alloc(e.byteLength()-t.length);t=n.concat([s,t])}var a=i.length,l=m(i,e),h=n.alloc(a);h.fill(1);var c=n.alloc(a);return c=r(o,c).update(h).update(n.from([0])).update(t).update(l).digest(),h=r(o,c).update(h).digest(),c=r(o,c).update(h).update(n.from([1])).update(t).update(l).digest(),h=r(o,c).update(h).digest(),{k:c,v:h}}function g(t,e){var i=new a(t),n=(t.length<<3)-e.bitLength();return n>0&&i.ishrn(n),i}function m(t,e){t=g(t,e),t=t.mod(e);var i=n.from(t.toArray());if(i.length<e.byteLength()){var r=n.alloc(e.byteLength()-i.length);i=n.concat([r,i])}return i}function v(t,e,i){var o,s;do{o=n.alloc(0);while(8*o.length<t.bitLength())e.v=r(i,e.k).update(e.v).digest(),o=n.concat([o,e.v]);s=g(o,t),e.k=r(i,e.k).update(e.v).update(n.from([0])).digest(),e.v=r(i,e.k).update(e.v).digest()}while(-1!==s.cmp(t));return s}function b(t,e,i,n){return t.toRed(a.mont(i)).redPow(e).fromRed().mod(n)}t.exports=c,t.exports.getKey=p,t.exports.makeKey=v},7037:function(t,e){function i(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(t.exports=i=function(t){return typeof t},t.exports["default"]=t.exports,t.exports.__esModule=!0):(t.exports=i=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports["default"]=t.exports,t.exports.__esModule=!0),i(e)}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},7181:function(t,e,i){"use strict";function n(t){const e=t.currentTarget.getBoundingClientRect(),i=t.clientX-e.left,n=t.clientY-e.top,r=Math.sqrt(t.currentTarget.clientWidth**2+t.currentTarget.clientHeight**2)/2,o=i-r+"px",s=n-r+"px",a=2*r+"px";return{x:o,y:s,size:a}}function r(t){const{currentTarget:e}=t,{size:i,y:r,x:o}=n(t),s=document.createElement("span");s.classList.add("ripple"),s.style.width=s.style.height=i,s.style.top=r,s.style.left=o,e.appendChild(s),setTimeout(()=>s.remove(),1e3)}function o(t,e){null===t||void 0===t||t[e?"addEventListener":"removeEventListener"]("click",r)}var s={bind:(t,{value:e})=>o(t,e),update:(t,{value:e})=>o(t,e),unbind:t=>o(t,!1)};function a(t,e){const i=null===e||void 0===e?void 0:e.value;i&&window.addEventListener("resize",i),t._onResize=i}function l(t){t._onResize&&(window.removeEventListener("resize",t._onResize),delete t._onResize)}var h={inserted:a,unbind:l},c={name:"Btn"};function u(t,e,i,n,r,o,s,a,l,h){"boolean"!==typeof s&&(l=a,a=s,s=!1);const c="function"===typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),n&&(c._scopeId=n),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=s?function(t){e.call(this,h(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}const d="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function f(t){return(t,e)=>m(t,e)}let p;const g={};function m(t,e){const i=d?e.media||"default":t,n=g[i]||(g[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===p&&(p=document.head||document.getElementsByTagName("head")[0]),p.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{const t=n.ids.size-1,e=document.createTextNode(i),r=n.element.childNodes;r[t]&&n.element.removeChild(r[t]),r.length?n.element.insertBefore(e,r[t]):n.element.appendChild(e)}}}const v=c;var b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("button",{staticClass:"btn",on:{click:function(e){return t.$emit("click")}}},[i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"}},[i("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}})])])},y=[];const w=function(t){t&&t("data-v-41f7b064_0",{source:".btn[data-v-41f7b064]{outline:0;border:none;background:0 0;cursor:pointer}.btn svg[data-v-41f7b064]{height:24px;width:24px}.btn:disabled svg[data-v-41f7b064]{fill:#d6d5d5;cursor:default}",map:void 0,media:void 0})},C="data-v-41f7b064",I=void 0,A=!1,M=u({render:b,staticRenderFns:y},w,v,C,A,I,!1,f,void 0,void 0);var x={components:{Btn:M,VNode:{functional:!0,render:(t,e)=>e.props.node?e.props.node:t("span",e.props.name)}},directives:{ripple:s,resize:h},props:{vertical:Boolean,navSlider:Boolean,ripple:Boolean,navAuto:Boolean,navItems:{type:Array,required:!0},tabItemActive:{type:Object,default:()=>{}}},data:()=>({pagination:{has:!1,maxOffset:0,minOffset:0,translate:0,offset:0}}),computed:{classes(){return{tab__pagination:!0,"tab__pagination--vertical":this.vertical,"tab__pagination--auto":this.navAuto&&!this.vertical}},styles(){return{transform:`translate${this.vertical?"Y":"X"}(-${this.pagination.translate}px)`}},paginateIndicator(){return{next:this.pagination.translate<this.pagination.maxOffset,prev:this.pagination.translate>0}},orientation(){return this.vertical?"portrait":"landscape"}},watch:{vertical(){Object.assign(this.$data,this.$options.data()),this.resizable()},navItems:"resizable"},methods:{select(t){this.$emit("select",{tabItem:t,byUser:!0}),this.sliderHandler(null===t||void 0===t?void 0:t.model),this.pagination.has&&this.paginationCollapse(t)},sliderHandler(t){var e,i,n;const r=null===(e=this.$refs)||void 0===e?void 0:e.navItems,{navItemsLeft:o,navItemsTop:s}=this.getElementRect({el:r,prefix:"navItems"}),{navActiveWidth:a,navActiveHeight:l,navActiveLeft:h,navActiveTop:c}=this.getElementRect({el:null===(i=this.$refs)||void 0===i||null===(n=i[t||this.tabItemActive.model])||void 0===n?void 0:n[0],prefix:"navActive"}),{children:u}=r,d=u[u.length-1];d.removeAttribute("style"),Object.assign(d.style,{portrait:{height:l+"px",top:c-s+"px"},landscape:{width:a+"px",left:h-o+"px"}}[this.orientation])},getPagination(){var t,e;const i=null===(t=this.$refs)||void 0===t?void 0:t.navItems,{navItemsWidth:n}=this.getElementRect({el:i,prefix:"navItems"}),{navWidth:r,navHeight:o}=this.getElementRect({el:null===(e=this.$refs)||void 0===e?void 0:e.nav,prefix:"nav"}),s=[...null===i||void 0===i?void 0:i.children].slice(0,-1).map(t=>t.offsetHeight).reduce((t,e)=>Math.abs(t+e),0),a=(t,e,i)=>{const n=Object.entries({has:t,maxOffset:e,minOffset:i,offset:i}).map(([t,e])=>[t,Math.abs(e)]);return Object.fromEntries(n)};Object.assign(this.pagination,{portrait:a(s>o,s-o,o),landscape:a(n>r,n-r,r)}[this.orientation])},paginationHandler(t){const{maxOffset:e,offset:i,translate:n,minOffset:r}=this.pagination;if("prev"===t&&this.paginateIndicator.prev){if(i<=r&&(this.pagination.offset=r),n-i<i)return void(this.pagination.translate=0);this.pagination.translate=n-i}"next"===t&&this.paginateIndicator.next&&(n+i>e&&(this.pagination.offset=e-n),this.pagination.translate=n+this.pagination.offset)},paginationCollapse({model:t}){var e,i,n;const{navActiveRight:r,navActiveLeft:o,navActiveTop:s,navActiveBottom:a,navActiveWidth:l,navActiveHeight:h}=this.getElementRect({el:null===(e=this.$refs)||void 0===e||null===(i=e[t])||void 0===i?void 0:i[0],prefix:"navActive"}),{navRight:c,navLeft:u,navTop:d,navBottom:f}=this.getElementRect({el:null===(n=this.$refs)||void 0===n?void 0:n.nav,prefix:"nav"}),{translate:p,maxOffset:g}=this.pagination;let m=p;this.vertical&&a>f&&(m+=h),this.vertical&&s<d&&(m=h>m?0:m-h),!this.vertical&&r>c&&(m+=l),!this.vertical&&o<u&&(m=l>m?0:m-l),m>g&&(m+=g-m),this.pagination.translate=Math.abs(m)},resizable(){this.$nextTick(()=>{this.getPagination(),this.sliderHandler()})},getElementRect({el:t,prefix:e}){if(!t)return;const{parse:i,stringify:n}=JSON,r=Object.entries(i(n(t.getBoundingClientRect()))),o=r.map(([t,i])=>[e+t.charAt(0).toUpperCase()+t.slice(1),i]);return Object.fromEntries(o)}}};const _=x;var S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"resize",rawName:"v-resize",value:t.resizable,expression:"resizable"}],class:t.classes},[i("div",{staticClass:"tab__pagination__prev"},[t.pagination.has?i("Btn",{attrs:{disabled:!t.paginateIndicator.prev},on:{click:function(e){return t.paginationHandler("prev")}}}):t._e()],1),t._v(" "),i("nav",{ref:"nav",staticClass:"tab__nav"},[i("ul",{ref:"navItems",staticClass:"tab__nav__items",style:t.styles},[t._l(t.navItems,(function(e,n){return i("li",{directives:[{name:"ripple",rawName:"v-ripple",value:t.ripple&&!e.disabled,expression:"ripple && !navItem.disabled"}],key:"tab-item-"+n,ref:e.model,refInFor:!0,staticClass:"tab__nav__item",class:{active:e.model===t.tabItemActive.model,disabled:e.disabled},on:{click:function(i){return i.preventDefault(),t.select(e)}}},[i("VNode",{attrs:{node:e.nameSlot,name:e.name}})],1)})),t._v(" "),t.navSlider?i("hr",{staticClass:"tab__slider"}):t._e()],2)]),t._v(" "),i("div",{staticClass:"tab__pagination__next"},[t.pagination.has?i("Btn",{attrs:{disabled:!t.paginateIndicator.next},on:{click:function(e){return t.paginationHandler("next")}}}):t._e()],1)])},k=[];const E=function(t){t&&(t("data-v-2de04152_0",{source:".tab__pagination[data-v-2de04152]{display:flex;justify-content:space-between;align-items:center;vertical-align:middle;max-width:100%;flex:0 1 auto;position:relative;contain:content}.tab__pagination .tab__pagination__prev[data-v-2de04152],.tab__pagination__next[data-v-2de04152]{flex:1 40px;min-width:40px}.tab__pagination__next[data-v-2de04152] .btn svg{transform:rotate(180deg)}.tab__nav[data-v-2de04152]{position:relative;display:flex;overflow:hidden;flex:1 100%}.tab__nav__items[data-v-2de04152]{display:flex;margin:0;padding:0;flex:1 auto;transition:.3s cubic-bezier(.25,.8,.5,1);height:100%}.tab__nav__items .tab__nav__item[data-v-2de04152]{list-style:none;text-align:center;cursor:pointer;padding:.9rem 1rem;letter-spacing:.0892857143em;display:flex;justify-content:center;align-items:center;text-align:center;color:gray;text-transform:uppercase;font-size:.875rem;font-weight:500;white-space:normal;transition:background .1s ease;position:relative;overflow:hidden;min-width:90px;max-width:360px;user-select:none}.tab__nav__items .tab__nav__item[data-v-2de04152]:hover:not(.disabled){background:#faf9f9}.tab__nav__items .active[data-v-2de04152]{color:#000;color:#1867c0}.tab__nav__items .active[data-v-2de04152]:hover{background:#1b7ef01c!important}.tab__nav__items .disabled[data-v-2de04152]{background:#f3f2f2}.tab__slider[data-v-2de04152]{height:2px;width:2px;background:#1867c0;border:none;margin:0;padding:0;bottom:0;position:absolute;transition:left .3s cubic-bezier(.25,.8,.5,1),top .3s cubic-bezier(.25,.8,.5,1)}.tab__pagination--vertical[data-v-2de04152]{flex-direction:column}.tab__pagination--vertical .tab__nav__items[data-v-2de04152]{flex-direction:column;flex:1 auto;position:relative}.tab__pagination--vertical .tab__nav__item *[data-v-2de04152]{padding:0;margin:0}.tab__pagination--vertical[data-v-2de04152] .tab__pagination__prev svg{transform:rotate(90deg)}.tab__pagination--vertical[data-v-2de04152] .tab__pagination__next svg{transform:rotate(270deg)}.tab__pagination--vertical .tab__nav__item[data-v-2de04152]{justify-content:left;padding-top:1.6rem;padding-bottom:1.6rem}.tabs--dark .tab__nav__item[data-v-2de04152]:hover{background:#2f3236}.tab__pagination--auto .tab__nav__item[data-v-2de04152]{flex:1 auto}",map:void 0,media:void 0}),t("data-v-2de04152_1",{source:".ripple{background-color:#1866c04d;border-radius:50%;position:absolute;transform:scale(0);animation:ripple .6s linear;z-index:2}@keyframes ripple{to{transform:scale(2.5);opacity:0}}",map:void 0,media:void 0}))},T="data-v-2de04152",R=void 0,O=!1,j=u({render:S,staticRenderFns:k},E,_,T,O,R,!1,f,void 0,void 0);var N={name:"Tabs",components:{NavTab:j},props:{dark:Boolean,vertical:Boolean,ripple:{type:Boolean,default:!0},slideDuration:{type:[String,Number],default:200},slideVertical:Boolean,slide:{type:Boolean,default:!0},navAuto:Boolean,navSlider:{type:Boolean,default:!0}},data:()=>({slideSide:"",navItems:[],tabItemActive:{model:"",name:"",disabled:!1},tabItemIndexes:{current:0,last:0,previous:0},tabItems:[]}),computed:{classes(){return{tabs:!0,"tabs--vertical":this.vertical,"tabs--dark":this.dark}},transition(){return{slide:this.slide,duration:this.slide?this.slideDuration:0,vertical:this.slideVertical,side:this.slideSide}}},watch:{tabItemActive(t,e){this.tabItemIndexes.previous=this.findIndexTab(e),this.tabItemIndexes.current=this.findIndexTab(t),this.tabItems[this.tabItemIndexes.current].activeModel=t.model,this.tabItemIndexes.previous>-1&&(this.setTabItemTransitionSide(),this.tabItems[this.tabItemIndexes.previous].activeModel=t.model)}},mounted(){this.activeTabItem({tabItem:this.navItems[0],byUser:!1})},methods:{setTabItem(t){var e;"TabItem"===(null===t||void 0===t||null===(e=t.$options)||void 0===e?void 0:e._componentTag)&&(this.tabItems.push(t),this.setNavItem(t))},setNavItem({model:t,name:e,disabled:i,nameSlot:n}){this.navItems.push({model:t,name:e,disabled:i,nameSlot:n}),this.tabItemIndexes.last=this.navItems.length-1},activeTabItem({tabItem:t,byUser:e}){t.disabled||(this.tabItemActive=t,this.$emit("input",null===t||void 0===t?void 0:t.name),e&&this.$emit("change",null===t||void 0===t?void 0:t.name))},disableTabItem(t){const{current:e,last:i}=this.tabItemIndexes;if(t===e){const t=e===i?e-1:e+1;this.activeTabItem({tabItem:this.navItems[t],byUser:!0})}},setTabItemTransitionSide(){const{current:t,previous:e}=this.tabItemIndexes;this.slideSide=t>e?"right":"left"},findIndexTab(t){return this.tabItems.findIndex(e=>e.model==t.model)}}};const L=N;var B=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes},[t._t("nav",[i("NavTab",t._b({on:{select:t.activeTabItem}},"NavTab",{ripple:t.ripple,navAuto:t.navAuto,navItems:t.navItems,vertical:t.vertical,navSlider:t.navSlider,tabItemActive:t.tabItemActive},!1))],{items:t.navItems,active:t.tabItemActive}),t._v(" "),i("div",{staticClass:"tabs__content"},[t._t("default")],2)],2)},D=[];const Z=function(t){t&&t("data-v-281cca8c_0",{source:".tabs[data-v-281cca8c]{background:#fff;display:flex;flex-direction:column;border-radius:.23rem;height:100%;width:100%}.tabs__content[data-v-281cca8c]{display:flex;position:relative;overflow:hidden;justify-content:center;align-items:center;height:100%;width:100%;flex:1 100%}.tabs--vertical[data-v-281cca8c]{flex-direction:row}.tabs--dark[data-v-281cca8c]{background:#222831}.tabs--dark .tabs__nav__item[data-v-281cca8c]{color:#f1f1f1}.tabs--dark .tabs__nav__items .active[data-v-281cca8c]{color:#fff}.tabs--dark .tabs__nav__items .disabled[data-v-281cca8c]{background:#2c2f35}.tabs--dark .tab__pagination[data-v-281cca8c] .btn svg{fill:#d6d5d5}.tabs--dark .tab__pagination[data-v-281cca8c] .btn:disabled svg{fill:#56575c}.tabs--dark .tab__pagination[data-v-281cca8c] .tab__nav__item:hover{background:#424750}",map:void 0,media:void 0})},P="data-v-281cca8c",W=void 0,$=!1,H=u({render:B,staticRenderFns:D},Z,L,P,$,W,!1,f,void 0,void 0),z=i("1c46");var G={name:"TabItem",props:{name:{type:String,default:"Tab Item"},disabled:Boolean},data:()=>({activeModel:"",model:z.randomBytes(10).toString("hex")}),created(){this.tabs.setTabItem(this)},computed:{tabs(){return this.$parent},transition(){return this.tabs.transition},isActived(){return this.activeModel===this.model&&!this.disabled},slideDirection(){return this.transition.slide?this.transition.vertical?{left:"slide-top",right:"slide-bottom"}[this.transition.side]:{left:"slide-left",right:"slide-right"}[this.transition.side]:""},ownNavItemIndex(){return this.tabs.navItems.findIndex(t=>t.model===this.model)}},watch:{disabled(t){var e;t&&(null===(e=this.tabs)||void 0===e||e.disableTabItem(this.ownNavItemIndex)),this.tabs.navItems[this.ownNavItemIndex].disabled=t}}};const F=G;var V=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:t.slideDirection}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isActived,expression:"isActived"}],staticClass:"tab-item",style:{"transition-duration":this.transition.duration+"ms"}},[t._t("default")],2)])},K=[];const Y=function(t){t&&t("data-v-a315dbc4_0",{source:".tab-item[data-v-a315dbc4]{position:absolute;top:0;left:0;z-index:1;height:100%;width:100%;transition:transform cubic-bezier(.25,.8,.5,1)}.slide-left-enter[data-v-a315dbc4],.slide-right-leave-to[data-v-a315dbc4]{transform:translateX(-100%)}.slide-left-leave-to[data-v-a315dbc4],.slide-right-enter[data-v-a315dbc4]{transform:translateX(100%)}.slide-bottom-leave-to[data-v-a315dbc4],.slide-top-enter[data-v-a315dbc4]{transform:translateY(-100%)}.slide-bottom-enter[data-v-a315dbc4],.slide-top-leave-to[data-v-a315dbc4]{transform:translateY(100%)}",map:void 0,media:void 0})},U="data-v-a315dbc4",X=void 0,J=!1,Q=u({render:V,staticRenderFns:K},Y,F,U,J,X,!1,f,void 0,void 0);var q=Object.freeze({__proto__:null,Tabs:H,TabItem:Q});const tt=function(t){Object.entries(q).forEach(([e,i])=>{t.component(e,i)})};e["a"]=tt},"72aa":function(t,e,i){var n=i("3fb5"),r=i("a255"),o=i("b672"),s=i("8707").Buffer,a=new Array(64);function l(){this.init(),this._w=a,o.call(this,64,56)}n(l,r),l.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},l.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=l},"72af":function(t,e,i){var n=i("99cd"),r=n();t.exports=r},"72f0":function(t,e){function i(t){return function(){return t}}t.exports=i},"72fe":function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){return function(e){var i=t,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[];(function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var i=0;i<16;i++){var n=e+i,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,s=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],v=t[e+6],b=t[e+7],y=t[e+8],w=t[e+9],C=t[e+10],I=t[e+11],A=t[e+12],M=t[e+13],x=t[e+14],_=t[e+15],S=o[0],k=o[1],E=o[2],T=o[3];S=h(S,k,E,T,s,7,a[0]),T=h(T,S,k,E,l,12,a[1]),E=h(E,T,S,k,f,17,a[2]),k=h(k,E,T,S,p,22,a[3]),S=h(S,k,E,T,g,7,a[4]),T=h(T,S,k,E,m,12,a[5]),E=h(E,T,S,k,v,17,a[6]),k=h(k,E,T,S,b,22,a[7]),S=h(S,k,E,T,y,7,a[8]),T=h(T,S,k,E,w,12,a[9]),E=h(E,T,S,k,C,17,a[10]),k=h(k,E,T,S,I,22,a[11]),S=h(S,k,E,T,A,7,a[12]),T=h(T,S,k,E,M,12,a[13]),E=h(E,T,S,k,x,17,a[14]),k=h(k,E,T,S,_,22,a[15]),S=c(S,k,E,T,l,5,a[16]),T=c(T,S,k,E,v,9,a[17]),E=c(E,T,S,k,I,14,a[18]),k=c(k,E,T,S,s,20,a[19]),S=c(S,k,E,T,m,5,a[20]),T=c(T,S,k,E,C,9,a[21]),E=c(E,T,S,k,_,14,a[22]),k=c(k,E,T,S,g,20,a[23]),S=c(S,k,E,T,w,5,a[24]),T=c(T,S,k,E,x,9,a[25]),E=c(E,T,S,k,p,14,a[26]),k=c(k,E,T,S,y,20,a[27]),S=c(S,k,E,T,M,5,a[28]),T=c(T,S,k,E,f,9,a[29]),E=c(E,T,S,k,b,14,a[30]),k=c(k,E,T,S,A,20,a[31]),S=u(S,k,E,T,m,4,a[32]),T=u(T,S,k,E,y,11,a[33]),E=u(E,T,S,k,I,16,a[34]),k=u(k,E,T,S,x,23,a[35]),S=u(S,k,E,T,l,4,a[36]),T=u(T,S,k,E,g,11,a[37]),E=u(E,T,S,k,b,16,a[38]),k=u(k,E,T,S,C,23,a[39]),S=u(S,k,E,T,M,4,a[40]),T=u(T,S,k,E,s,11,a[41]),E=u(E,T,S,k,p,16,a[42]),k=u(k,E,T,S,v,23,a[43]),S=u(S,k,E,T,w,4,a[44]),T=u(T,S,k,E,A,11,a[45]),E=u(E,T,S,k,_,16,a[46]),k=u(k,E,T,S,f,23,a[47]),S=d(S,k,E,T,s,6,a[48]),T=d(T,S,k,E,b,10,a[49]),E=d(E,T,S,k,x,15,a[50]),k=d(k,E,T,S,m,21,a[51]),S=d(S,k,E,T,A,6,a[52]),T=d(T,S,k,E,p,10,a[53]),E=d(E,T,S,k,C,15,a[54]),k=d(k,E,T,S,l,21,a[55]),S=d(S,k,E,T,y,6,a[56]),T=d(T,S,k,E,_,10,a[57]),E=d(E,T,S,k,v,15,a[58]),k=d(k,E,T,S,M,21,a[59]),S=d(S,k,E,T,g,6,a[60]),T=d(T,S,k,E,I,10,a[61]),E=d(E,T,S,k,f,15,a[62]),k=d(k,E,T,S,w,21,a[63]),o[0]=o[0]+S|0,o[1]=o[1]+k|0,o[2]=o[2]+E|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;i[r>>>5]|=128<<24-r%32;var o=e.floor(n/4294967296),s=n;i[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(i.length+1),this._process();for(var a=this._hash,l=a.words,h=0;h<4;h++){var c=l[h];l[h]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,i,n,r,o,s){var a=t+(e&i|~e&n)+r+s;return(a<<o|a>>>32-o)+e}function c(t,e,i,n,r,o,s){var a=t+(e&n|i&~n)+r+s;return(a<<o|a>>>32-o)+e}function u(t,e,i,n,r,o,s){var a=t+(e^i^n)+r+s;return(a<<o|a>>>32-o)+e}function d(t,e,i,n,r,o,s){var a=t+(i^(e|~n))+r+s;return(a<<o|a>>>32-o)+e}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},"73ac":function(t,e,i){var n=i("743f"),r=i("b047"),o=i("99d3"),s=o&&o.isTypedArray,a=s?r(s):n;t.exports=a},"743f":function(t,e,i){var n=i("3729"),r=i("b218"),o=i("1310"),s="[object Arguments]",a="[object Array]",l="[object Boolean]",h="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",b="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",I="[object Float64Array]",A="[object Int8Array]",M="[object Int16Array]",x="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]",T={};function R(t){return o(t)&&r(t.length)&&!!T[n(t)]}T[C]=T[I]=T[A]=T[M]=T[x]=T[_]=T[S]=T[k]=T[E]=!0,T[s]=T[a]=T[y]=T[l]=T[w]=T[h]=T[c]=T[u]=T[d]=T[f]=T[p]=T[g]=T[m]=T[v]=T[b]=!1,t.exports=R},7530:function(t,e,i){var n=i("1a8c"),r=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(r)return r(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();t.exports=o},"75cc":function(t,e,i){"use strict";(function(t,n){function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i("8707"),s=i("11dc"),a=o.Buffer,l=o.kMaxLength,h=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function u(t,e){if("number"!==typeof t||t!==t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function d(t,e,i){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>i||t>l)throw new RangeError("buffer too small")}function f(e,i,n,r){if(!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof i)r=i,i=0,n=e.length;else if("function"===typeof n)r=n,n=e.length-i;else if("function"!==typeof r)throw new TypeError('"cb" argument must be a function');return u(i,e.length),d(n,i,e.length),p(e,i,n,r)}function p(t,e,i,r){if(n.browser){var o=t.buffer,a=new Uint8Array(o,e,i);return h.getRandomValues(a),r?void n.nextTick((function(){r(null,t)})):t}if(!r){var l=s(i);return l.copy(t,e),t}s(i,(function(i,n){if(i)return r(i);n.copy(t,e),r(null,t)}))}function g(e,i,n){if("undefined"===typeof i&&(i=0),!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return u(i,e.length),void 0===n&&(n=e.length-i),d(n,i,e.length),p(e,i,n)}h&&h.getRandomValues||!n.browser?(e.randomFill=f,e.randomFillSync=g):(e.randomFill=r,e.randomFillSync=r)}).call(this,i("c8ba"),i("4362"))},7658:function(t,e,i){"use strict";var n=e;function r(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)i[n]=0|t[n];return i}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(n=0;n<t.length;n+=2)i.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var r=t.charCodeAt(n),o=r>>8,s=255&r;o?i.push(o,s):i.push(s)}return i}function o(t){return 1===t.length?"0"+t:t}function s(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e}n.toArray=r,n.zero2=o,n.toHex=s,n.encode=function(t,e){return"hex"===e?s(t):t}},"780f":function(t,e,i){"use strict";t.exports=o;var n=i("27bf"),r=Object.create(i("3a7c"));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r.inherits=i("3fb5"),r.inherits(o,n),o.prototype._transform=function(t,e,i){i(null,t)}},"79bc":function(t,e,i){var n=i("0b07"),r=i("2b3e"),o=n(r,"Map");t.exports=o},"7a10":function(t,e,i){var n=i("d0eb"),r=i("fdac");function o(t){this.rand=t||new r.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new n(this.rand.generate(i))}while(r.cmp(t)>=0);return r},o.prototype._randrange=function(t,e){var i=e.sub(t);return t.add(this._randbelow(i))},o.prototype.test=function(t,e,i){var r=t.bitLength(),o=n.mont(t),s=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),l=0;!a.testn(l);l++);for(var h=t.shrn(l),c=a.toRed(o),u=!0;e>0;e--){var d=this._randrange(new n(2),a);i&&i(d);var f=d.toRed(o).redPow(h);if(0!==f.cmp(s)&&0!==f.cmp(c)){for(var p=1;p<l;p++){if(f=f.redSqr(),0===f.cmp(s))return!1;if(0===f.cmp(c))break}if(p===l)return!1}}return u},o.prototype.getDivisor=function(t,e){var i=t.bitLength(),r=n.mont(t),o=new n(1).toRed(r);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var l=t.shrn(a),h=s.toRed(r);e>0;e--){var c=this._randrange(new n(2),s),u=t.gcd(c);if(0!==u.cmpn(1))return u;var d=c.toRed(r).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var f=1;f<a;f++){if(d=d.redSqr(),0===d.cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(h))break}if(f===a)return d=d.redSqr(),d.fromRed().subn(1).gcd(t)}}return!1}},"7a48":function(t,e,i){var n=i("6044"),r=Object.prototype,o=r.hasOwnProperty;function s(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}t.exports=s},"7a77":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"7aac":function(t,e,i){"use strict";var n=i("c532");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),n.isString(r)&&a.push("path="+r),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b83":function(t,e,i){var n=i("7c64"),r=i("93ed"),o=i("2478"),s=i("a524"),a=i("1fc8");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},"7b97":function(t,e,i){var n=i("7e64"),r=i("a2be"),o=i("1c3c"),s=i("b1e5"),a=i("42a2"),l=i("6747"),h=i("0d24"),c=i("73ac"),u=1,d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype,m=g.hasOwnProperty;function v(t,e,i,g,v,b){var y=l(t),w=l(e),C=y?f:a(t),I=w?f:a(e);C=C==d?p:C,I=I==d?p:I;var A=C==p,M=I==p,x=C==I;if(x&&h(t)){if(!h(e))return!1;y=!0,A=!1}if(x&&!A)return b||(b=new n),y||c(t)?r(t,e,i,g,v,b):o(t,e,C,i,g,v,b);if(!(i&u)){var _=A&&m.call(t,"__wrapped__"),S=M&&m.call(e,"__wrapped__");if(_||S){var k=_?t.value():t,E=S?e.value():e;return b||(b=new n),v(k,E,i,g,b)}}return!!x&&(b||(b=new n),s(t,e,i,g,v,b))}t.exports=v},"7c64":function(t,e,i){var n=i("e24b"),r=i("5e2e"),o=i("79bc");function s(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}t.exports=s},"7d1f":function(t,e,i){var n=i("087d"),r=i("6747");function o(t,e,i){var o=e(t);return r(t)?o:n(o,i(t))}t.exports=o},"7d2a":function(t,e){var i=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(e<0||e>i||e!==e)throw new TypeError("Bad key length")}},"7d72":function(t,e,i){"use strict";var n=i("8707").Buffer,r=n.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function s(t){var e=o(t);if("string"!==typeof e&&(n.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){var e;switch(this.encoding=s(t),this.encoding){case"utf16le":this.text=p,this.end=g,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function l(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function h(t,e,i){var n=e.length-1;if(n<i)return 0;var r=l(e[n]);return r>=0?(r>0&&(t.lastNeed=r-1),r):--n<i||-2===r?0:(r=l(e[n]),r>=0?(r>0&&(t.lastNeed=r-2),r):--n<i||-2===r?0:(r=l(e[n]),r>=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0))}function c(t,e,i){if(128!==(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"<22>"}}function u(t){var e=this.lastTotal-this.lastNeed,i=c(this,t,e);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function d(t,e){var i=h(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e}function p(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function g(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function m(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function b(t){return t.toString(this.encoding)}function y(t){return t&&t.length?this.write(t):""}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},a.prototype.end=f,a.prototype.text=d,a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},"7d92":function(t,e,i){var n=e;n.utils=i("c3c0"),n.common=i("edc9"),n.sha=i("5919"),n.ripemd=i("bb44"),n.hmac=i("2137"),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},"7e64":function(t,e,i){var n=i("5e2e"),r=i("efb6"),o=i("2fcc"),s=i("802a"),a=i("55a3"),l=i("d02c");function h(t){var e=this.__data__=new n(t);this.size=e.size}h.prototype.clear=r,h.prototype["delete"]=o,h.prototype.get=s,h.prototype.has=a,h.prototype.set=l,t.exports=h},"7e78":function(t,e,i){var n=i("3fb5"),r=i("b672"),o=i("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,r.call(this,64,56)}function h(t){return t<<1|t>>>31}function c(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function d(t,e,i,n){return 0===t?e&i|~e&n:2===t?e&i|e&n|i&n:e^i^n}n(l,r),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e=this._w,i=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,a=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=h(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var f=0;f<80;++f){var p=~~(f/20),g=c(i)+d(p,n,r,o)+a+e[f]+s[p]|0;a=o,o=r,r=u(n),n=i,i=g}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},"7ed2":function(t,e){var i="__lodash_hash_undefined__";function n(t){return this.__data__.set(t,i),this}t.exports=n},"7f7a":function(t,e,i){"use strict";const n=e;n.bignum=i("bc12"),n.define=i("ef3a").define,n.base=i("41df"),n.constants=i("0211"),n.decoders=i("20f6"),n.encoders=i("343e")},"802a":function(t,e){function i(t){return this.__data__.get(t)}t.exports=i},"80af":function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(11).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},"82f0":function(t,e,i){var n=i("39f5"),r=i("8707").Buffer,o=i("6430"),s=i("3fb5"),a=i("3f62"),l=i("8c8a"),h=i("bd9d");function c(t,e){var i=0;t.length!==e.length&&i++;for(var n=Math.min(t.length,e.length),r=0;r<n;++r)i+=t[r]^e[r];return i}function u(t,e,i){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var n=new a(i),o=e.length,s=o%16;n.update(e),s&&(s=16-s,n.update(r.alloc(s,0))),n.update(r.alloc(8,0));var l=8*o,c=r.alloc(8);c.writeUIntBE(l,0,8),n.update(c),t._finID=n.state;var u=r.from(t._finID);return h(u),u}function d(t,e,i,s){o.call(this);var l=r.alloc(4,0);this._cipher=new n.AES(e);var h=this._cipher.encryptBlock(l);this._ghash=new a(h),i=u(this,i,h),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}s(d,o),d.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var i=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(i),this._len+=t.length,i},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},d.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=d},8360:function(t,e,i){"use strict";const n=i("d1c8").Reporter,r=i("6283").EncoderBuffer,o=i("6283").DecoderBuffer,s=i("da3e"),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"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a),h=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(t,e,i){const n={};this._baseState=n,n.name=i,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n["default"]=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const t=this._baseState,e={};u.forEach((function(i){e[i]=t[i]}));const i=new this.constructor(e.parent);return i._baseState=e,i},c.prototype._wrap=function(){const t=this._baseState;l.forEach((function(e){this[e]=function(){const i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},c.prototype._init=function(t){const e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){const e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(s(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0);const n=t[i];e[n]=i})),e})))},h.forEach((function(t){c.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){c.prototype[t]=function(){const e=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(i),this}})),c.prototype.use=function(t){s(t);const e=this._baseState;return s(null===e.use),e.use=t,this},c.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this},c.prototype.def=function(t){const e=this._baseState;return s(null===e["default"]),e["default"]=t,e.optional=!0,this},c.prototype.explicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){const e=this._baseState;return s(null===e.key),e.key=t,this},c.prototype.any=function(){const t=this._baseState;return t.any=!0,this},c.prototype.choice=function(t){const e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){const e=this._baseState;return s(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){const i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));let n,r=i["default"],s=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(s=this._peekTag(t,n,i.any),t.isError(s))return s}else{const n=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),s=!0}catch(l){s=!1}t.restore(n)}}if(i.obj&&s&&(n=t.enterObject()),s){if(null!==i.explicit){const e=this._decodeTag(t,i.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===i.use&&null===i.choice){let e;i.any&&(e=t.save());const n=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(n))return n;i.any?r=t.raw(e):t=n}if(e&&e.track&&null!==i.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const n=new o(r);r=this._getUse(i.contains,t._reporterState.obj)._decode(n,e)}}return i.obj&&s&&(r=t.leaveObject(n)),null===i.key||null===r&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,r),r},c.prototype._decodeGeneric=function(t,e,i){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(t,e){const i=this._baseState;let n=null,r=!1;return Object.keys(i.choice).some((function(o){const s=t.save(),a=i.choice[o];try{const i=a._decode(t,e);if(t.isError(i))return!1;n={type:o,value:i},r=!0}catch(l){return t.restore(s),!1}return!0}),this),r?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},c.prototype._encode=function(t,e,i){const n=this._baseState;if(null!==n["default"]&&n["default"]===t)return;const r=this._encodeValue(t,e,i);return void 0===r||this._skipDefault(r,e,i)?void 0:r},c.prototype._encodeValue=function(t,e,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);let o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r["default"])return;t=r["default"]}let s=null,a=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)s=this._getUse(r.contains,i)._encode(t,e),a=!0;else if(r.children)s=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");const n=e.enterKey(i._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");const r=i._encode(t[i._baseState.key],e,t);return e.leaveKey(n),r}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(i){const n=this._baseState;return this._getUse(n.args[0],t)._encode(i,e)}),i))}else null!==r.use?o=this._getUse(r.use,i)._encode(t,e):(s=this._encodePrimitive(r.tag,t),a=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(t,a,i,s))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(t,e){const i=this._baseState,n=i.choice[t.type];return n||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},"83b9":function(t,e,i){"use strict";var n=i("d925"),r=i("e683");t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},"83d5":function(t,e){t.exports=function(t,e){var i=t.length,n=-1;while(++n<i)t[n]^=e[n];return t}},"85b3":function(t,e,i){"use strict";const n=i("3fb5"),r=i("3768");function o(t){r.call(this,t),this.enc="pem"}n(o,r),t.exports=o,o.prototype.encode=function(t,e){const i=r.prototype.encode.call(this,t),n=i.toString("base64"),o=["-----BEGIN "+e.label+"-----"];for(let r=0;r<n.length;r+=64)o.push(n.slice(r,r+64));return o.push("-----END "+e.label+"-----"),o.join("\n")}},"85e3":function(t,e){function i(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}t.exports=i},8707:function(t,e,i){var n=i("b639"),r=n.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),o(r,s),s.from=function(t,e,i){if("number"===typeof t)throw new TypeError("Argument must not be a number");return r(t,e,i)},s.alloc=function(t,e,i){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"===typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"872a":function(t,e,i){var n=i("3b4a");function r(t,e,i){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}t.exports=r},8947:function(t,e,i){var n=i("bac2"),r=i("82f0"),o=i("8707").Buffer,s=i("09f5"),a=i("6430"),l=i("39f5"),h=i("ae84"),c=i("3fb5");function u(t,e,i){a.call(this),this._cache=new f,this._cipher=new l.AES(e),this._prev=o.from(i),this._mode=t,this._autopadding=!0}c(u,a),u.prototype._update=function(t){var e,i;this._cache.add(t);var n=[];while(e=this._cache.get())i=this._mode.encrypt(this,e),n.push(i);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function p(t,e,i){var a=n[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof i&&(i=o.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new s(a.module,e,i):"auth"===a.type?new r(a.module,e,i):new u(a.module,e,i)}function g(t,e){var i=n[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=h(e,!1,i.key,i.iv);return p(t,r.key,r.iv)}u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=o.concat([this.cache,t])},f.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},f.prototype.flush=function(){var t=16-this.cache.length,e=o.allocUnsafe(t),i=-1;while(++i<t)e.writeUInt8(t,i);return o.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=g},"8adb":function(t,e){function i(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=i},"8b71":function(t,e,i){"use strict";function n(t){const e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);const n=t[i];e[n]=i})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},"8b95":function(t,e,i){"use strict";var n=i("c3c0"),r=i("b525");function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,r),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},"8be6":function(t,e,i){var n=i("8707").Buffer;t.exports=function(t,e,i){if(n.isBuffer(t))return t;if("string"===typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},"8c4f":function(t,e,i){"use strict";
/*!
* vue-router v3.5.1
* (c) 2021 Evan You
* @license MIT
*/function n(t,e){0}function r(t,e){for(var i in e)t[i]=e[i];return t}var o=/[!'()*]/g,s=function(t){return"%"+t.charCodeAt(0).toString(16)},a=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,s).replace(a,",")};function h(t){try{return decodeURIComponent(t)}catch(e){0}return t}function c(t,e,i){void 0===e&&(e={});var n,r=i||d;try{n=r(t||"")}catch(a){n={}}for(var o in e){var s=e[o];n[o]=Array.isArray(s)?s.map(u):u(s)}return n}var u=function(t){return null==t||"object"===typeof t?t:String(t)};function d(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var i=t.replace(/\+/g," ").split("="),n=h(i.shift()),r=i.length>0?h(i.join("=")):null;void 0===e[n]?e[n]=r:Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]})),e):e}function f(t){var e=t?Object.keys(t).map((function(e){var i=t[e];if(void 0===i)return"";if(null===i)return l(e);if(Array.isArray(i)){var n=[];return i.forEach((function(t){void 0!==t&&(null===t?n.push(l(e)):n.push(l(e)+"="+l(t)))})),n.join("&")}return l(e)+"="+l(i)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function g(t,e,i,n){var r=n&&n.options.stringifyQuery,o=e.query||{};try{o=m(o)}catch(a){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,r),matched:t?b(t):[]};return i&&(s.redirectedFrom=y(i,r)),Object.freeze(s)}function m(t){if(Array.isArray(t))return t.map(m);if(t&&"object"===typeof t){var e={};for(var i in t)e[i]=m(t[i]);return e}return t}var v=g(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function y(t,e){var i=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;void 0===r&&(r="");var o=e||f;return(i||"/")+o(n)+r}function w(t,e,i){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&(i||t.hash===e.hash&&C(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(i||t.hash===e.hash&&C(t.query,e.query)&&C(t.params,e.params))))}function C(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var i=Object.keys(t).sort(),n=Object.keys(e).sort();return i.length===n.length&&i.every((function(i,r){var o=t[i],s=n[r];if(s!==i)return!1;var a=e[i];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?C(o,a):String(o)===String(a)}))}function I(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&A(t.query,e.query)}function A(t,e){for(var i in e)if(!(i in t))return!1;return!0}function M(t){for(var e=0;e<t.matched.length;e++){var i=t.matched[e];for(var n in i.instances){var r=i.instances[n],o=i.enteredCbs[n];if(r&&o){delete i.enteredCbs[n];for(var s=0;s<o.length;s++)r._isBeingDestroyed||o[s](r)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var i=e.props,n=e.children,o=e.parent,s=e.data;s.routerView=!0;var a=o.$createElement,l=i.name,h=o.$route,c=o._routerViewCache||(o._routerViewCache={}),u=0,d=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&u++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=u,d){var p=c[l],g=p&&p.component;return g?(p.configProps&&_(g,s,p.route,p.configProps),a(g,s,n)):a()}var m=h.matched[u],v=m&&m.components[l];if(!m||!v)return c[l]=null,a();c[l]={component:v},s.registerRouteInstance=function(t,e){var i=m.instances[l];(e&&i!==t||!e&&i===t)&&(m.instances[l]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){m.instances[l]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[l]&&(m.instances[l]=t.componentInstance),M(h)};var b=m.props&&m.props[l];return b&&(r(c[l],{route:h,configProps:b}),_(v,s,h,b)),a(v,s,n)}};function _(t,e,i,n){var o=e.props=S(i,n);if(o){o=e.props=r({},o);var s=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(s[a]=o[a],delete o[a])}}function S(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function k(t,e,i){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var r=e.split("/");i&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function E(t){var e="",i="",n=t.indexOf("#");n>=0&&(e=t.slice(n),t=t.slice(0,n));var r=t.indexOf("?");return r>=0&&(i=t.slice(r+1),t=t.slice(0,r)),{path:t,query:i,hash:e}}function T(t){return t.replace(/\/\//g,"/")}var R=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},O=J,j=Z,N=P,L=H,B=X,D=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Z(t,e){var i,n=[],r=0,o=0,s="",a=e&&e.delimiter||"/";while(null!=(i=D.exec(t))){var l=i[0],h=i[1],c=i.index;if(s+=t.slice(o,c),o=c+l.length,h)s+=h[1];else{var u=t[o],d=i[2],f=i[3],p=i[4],g=i[5],m=i[6],v=i[7];s&&(n.push(s),s="");var b=null!=d&&null!=u&&u!==d,y="+"===m||"*"===m,w="?"===m||"*"===m,C=i[2]||a,I=p||g;n.push({name:f||r++,prefix:d||"",delimiter:C,optional:w,repeat:y,partial:b,asterisk:!!v,pattern:I?G(I):v?".*":"[^"+z(C)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&n.push(s),n}function P(t,e){return H(Z(t,e),e)}function W(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function $(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t,e){for(var i=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(i[n]=new RegExp("^(?:"+t[n].pattern+")$",V(e)));return function(e,n){for(var r="",o=e||{},s=n||{},a=s.pretty?W:encodeURIComponent,l=0;l<t.length;l++){var h=t[l];if("string"!==typeof h){var c,u=o[h.name];if(null==u){if(h.optional){h.partial&&(r+=h.prefix);continue}throw new TypeError('Expected "'+h.name+'" to be defined')}if(R(u)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=a(u[d]),!i[l].test(c))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(c)+"`");r+=(0===d?h.prefix:h.delimiter)+c}}else{if(c=h.asterisk?$(u):a(u),!i[l].test(c))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+c+'"');r+=h.prefix+c}}else r+=h}return r}}function z(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function G(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function V(t){return t&&t.sensitive?"":"i"}function K(t,e){var i=t.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}function Y(t,e,i){for(var n=[],r=0;r<t.length;r++)n.push(J(t[r],e,i).source);var o=new RegExp("(?:"+n.join("|")+")",V(i));return F(o,e)}function U(t,e,i){return X(Z(t,i),e,i)}function X(t,e,i){R(e)||(i=e||i,e=[]),i=i||{};for(var n=i.strict,r=!1!==i.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"===typeof a)o+=z(a);else{var l=z(a.prefix),h="(?:"+a.pattern+")";e.push(a),a.repeat&&(h+="(?:"+l+h+")*"),h=a.optional?a.partial?l+"("+h+")?":"(?:"+l+"("+h+"))?":l+"("+h+")",o+=h}}var c=z(i.delimiter||"/"),u=o.slice(-c.length)===c;return n||(o=(u?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=r?"$":n&&u?"":"(?="+c+"|$)",F(new RegExp("^"+o,V(i)),e)}function J(t,e,i){return R(e)||(i=e||i,e=[]),i=i||{},t instanceof RegExp?K(t,e):R(t)?Y(t,e,i):U(t,e,i)}O.parse=j,O.compile=N,O.tokensToFunction=L,O.tokensToRegExp=B;var Q=Object.create(null);function q(t,e,i){e=e||{};try{var n=Q[t]||(Q[t]=O.compile(t));return"string"===typeof e.pathMatch&&(e[0]=e.pathMatch),n(e,{pretty:!0})}catch(r){return""}finally{delete e[0]}}function tt(t,e,i,n){var o="string"===typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){o=r({},t);var s=o.params;return s&&"object"===typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&e){o=r({},o),o._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var l=e.matched[e.matched.length-1].path;o.path=q(l,a,"path "+e.path)}else 0;return o}var h=E(o.path||""),u=e&&e.path||"/",d=h.path?k(h.path,u,i||o.append):u,f=c(h.query,o.query,n&&n.options.parseQuery),p=o.hash||h.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var et,it=[String,Object],nt=[String,Array],rt=function(){},ot={name:"RouterLink",props:{to:{type:it,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:nt,default:"click"}},render:function(t){var e=this,i=this.$router,n=this.$route,o=i.resolve(this.to,n,this.append),s=o.location,a=o.route,l=o.href,h={},c=i.options.linkActiveClass,u=i.options.linkExactActiveClass,d=null==c?"router-link-active":c,f=null==u?"router-link-exact-active":u,p=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?f:this.exactActiveClass,v=a.redirectedFrom?g(null,tt(a.redirectedFrom),null,i):a;h[m]=w(n,v,this.exactPath),h[p]=this.exact||this.exactPath?h[m]:I(n,v);var b=h[m]?this.ariaCurrentValue:null,y=function(t){st(t)&&(e.replace?i.replace(s,rt):i.push(s,rt))},C={click:st};Array.isArray(this.event)?this.event.forEach((function(t){C[t]=y})):C[this.event]=y;var A={class:h},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:a,navigate:y,isActive:h[p],isExactActive:h[m]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)A.on=C,A.attrs={href:l,"aria-current":b};else{var x=at(this.$slots.default);if(x){x.isStatic=!1;var _=x.data=r({},x.data);for(var S in _.on=_.on||{},_.on){var k=_.on[S];S in C&&(_.on[S]=Array.isArray(k)?k:[k])}for(var E in C)E in _.on?_.on[E].push(C[E]):_.on[E]=y;var T=x.data.attrs=r({},x.data.attrs);T.href=l,T["aria-current"]=b}else A.on=C}return t(this.tag,A,this.$slots.default)}};function st(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function at(t){if(t)for(var e,i=0;i<t.length;i++){if(e=t[i],"a"===e.tag)return e;if(e.children&&(e=at(e.children)))return e}}function lt(t){if(!lt.installed||et!==t){lt.installed=!0,et=t;var e=function(t){return void 0!==t},i=function(t,i){var n=t.$options._parentVnode;e(n)&&e(n=n.data)&&e(n=n.registerRouteInstance)&&n(t,i)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",x),t.component("RouterLink",ot);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var ht="undefined"!==typeof window;function ct(t,e,i,n,r){var o=e||[],s=i||Object.create(null),a=n||Object.create(null);t.forEach((function(t){ut(o,s,a,t,r)}));for(var l=0,h=o.length;l<h;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),h--,l--);return{pathList:o,pathMap:s,nameMap:a}}function ut(t,e,i,n,r,o){var s=n.path,a=n.name;var l=n.pathToRegexpOptions||{},h=ft(s,r,l.strict);"boolean"===typeof n.caseSensitive&&(l.sensitive=n.caseSensitive);var c={path:h,regex:dt(h,l),components:n.components||{default:n.component},alias:n.alias?"string"===typeof n.alias?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:a,parent:r,matchAs:o,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach((function(n){var r=o?T(o+"/"+n.path):void 0;ut(t,e,i,n,c,r)})),e[c.path]||(t.push(c.path),e[c.path]=c),void 0!==n.alias)for(var u=Array.isArray(n.alias)?n.alias:[n.alias],d=0;d<u.length;++d){var f=u[d];0;var p={path:f,children:n.children};ut(t,e,i,p,r,c.path||"/")}a&&(i[a]||(i[a]=c))}function dt(t,e){var i=O(t,[],e);return i}function ft(t,e,i){return i||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:T(e.path+"/"+t)}function pt(t,e){var i=ct(t),n=i.pathList,r=i.pathMap,o=i.nameMap;function s(t){ct(t,n,r,o)}function a(t,e){var i="object"!==typeof t?o[t]:void 0;ct([e||t],n,r,o,i),i&&ct(i.alias.map((function(t){return{path:t,children:[e]}})),n,r,o,i)}function l(){return n.map((function(t){return r[t]}))}function h(t,i,s){var a=tt(t,i,!1,e),l=a.name;if(l){var h=o[l];if(!h)return d(null,a);var c=h.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof a.params&&(a.params={}),i&&"object"===typeof i.params)for(var u in i.params)!(u in a.params)&&c.indexOf(u)>-1&&(a.params[u]=i.params[u]);return a.path=q(h.path,a.params,'named route "'+l+'"'),d(h,a,s)}if(a.path){a.params={};for(var f=0;f<n.length;f++){var p=n[f],g=r[p];if(gt(g.regex,a.path,a.params))return d(g,a,s)}}return d(null,a)}function c(t,i){var n=t.redirect,r="function"===typeof n?n(g(t,i,null,e)):n;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,i);var s=r,a=s.name,l=s.path,c=i.query,u=i.hash,f=i.params;if(c=s.hasOwnProperty("query")?s.query:c,u=s.hasOwnProperty("hash")?s.hash:u,f=s.hasOwnProperty("params")?s.params:f,a){o[a];return h({_normalized:!0,name:a,query:c,hash:u,params:f},void 0,i)}if(l){var p=mt(l,t),m=q(p,f,'redirect route with path "'+p+'"');return h({_normalized:!0,path:m,query:c,hash:u},void 0,i)}return d(null,i)}function u(t,e,i){var n=q(i,e.params,'aliased route with path "'+i+'"'),r=h({_normalized:!0,path:n});if(r){var o=r.matched,s=o[o.length-1];return e.params=r.params,d(s,e)}return d(null,e)}function d(t,i,n){return t&&t.redirect?c(t,n||i):t&&t.matchAs?u(t,i,t.matchAs):g(t,i,n,e)}return{match:h,addRoute:a,getRoutes:l,addRoutes:s}}function gt(t,e,i){var n=e.match(t);if(!n)return!1;if(!i)return!0;for(var r=1,o=n.length;r<o;++r){var s=t.keys[r-1];s&&(i[s.name||"pathMatch"]="string"===typeof n[r]?h(n[r]):n[r])}return!0}function mt(t,e){return k(t,e.parent?e.parent.path:"/",!0)}var vt=ht&&window.performance&&window.performance.now?window.performance:Date;function bt(){return vt.now().toFixed(3)}var yt=bt();function wt(){return yt}function Ct(t){return yt=t}var It=Object.create(null);function At(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),i=r({},window.history.state);return i.key=wt(),window.history.replaceState(i,"",e),window.addEventListener("popstate",_t),function(){window.removeEventListener("popstate",_t)}}function Mt(t,e,i,n){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick((function(){var o=St(),s=r.call(t,e,i,n?o:null);s&&("function"===typeof s.then?s.then((function(t){Nt(t,o)})).catch((function(t){0})):Nt(s,o))}))}}function xt(){var t=wt();t&&(It[t]={x:window.pageXOffset,y:window.pageYOffset})}function _t(t){xt(),t.state&&t.state.key&&Ct(t.state.key)}function St(){var t=wt();if(t)return It[t]}function kt(t,e){var i=document.documentElement,n=i.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}function Et(t){return Ot(t.x)||Ot(t.y)}function Tt(t){return{x:Ot(t.x)?t.x:window.pageXOffset,y:Ot(t.y)?t.y:window.pageYOffset}}function Rt(t){return{x:Ot(t.x)?t.x:0,y:Ot(t.y)?t.y:0}}function Ot(t){return"number"===typeof t}var jt=/^#\d/;function Nt(t,e){var i="object"===typeof t;if(i&&"string"===typeof t.selector){var n=jt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(n){var r=t.offset&&"object"===typeof t.offset?t.offset:{};r=Rt(r),e=kt(n,r)}else Et(t)&&(e=Tt(t))}else i&&Et(t)&&(e=Tt(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var Lt=ht&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Bt(t,e){xt();var i=window.history;try{if(e){var n=r({},i.state);n.key=wt(),i.replaceState(n,"",t)}else i.pushState({key:Ct(bt())},"",t)}catch(o){window.location[e?"replace":"assign"](t)}}function Dt(t){Bt(t,!0)}function Zt(t,e,i){var n=function(r){r>=t.length?i():t[r]?e(t[r],(function(){n(r+1)})):n(r+1)};n(0)}var Pt={redirected:2,aborted:4,cancelled:8,duplicated:16};function Wt(t,e){return Gt(t,e,Pt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Vt(e)+'" via a navigation guard.')}function $t(t,e){var i=Gt(t,e,Pt.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return i.name="NavigationDuplicated",i}function Ht(t,e){return Gt(t,e,Pt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function zt(t,e){return Gt(t,e,Pt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Gt(t,e,i,n){var r=new Error(n);return r._isRouter=!0,r.from=t,r.to=e,r.type=i,r}var Ft=["params","query","hash"];function Vt(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return Ft.forEach((function(i){i in t&&(e[i]=t[i])})),JSON.stringify(e,null,2)}function Kt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Yt(t,e){return Kt(t)&&t._isRouter&&(null==e||t.type===e)}function Ut(t){return function(e,i,n){var r=!1,o=0,s=null;Xt(t,(function(t,e,i,a){if("function"===typeof t&&void 0===t.cid){r=!0,o++;var l,h=te((function(e){qt(e)&&(e=e.default),t.resolved="function"===typeof e?e:et.extend(e),i.components[a]=e,o--,o<=0&&n()})),c=te((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=Kt(t)?t:new Error(e),n(s))}));try{l=t(h,c)}catch(d){c(d)}if(l)if("function"===typeof l.then)l.then(h,c);else{var u=l.component;u&&"function"===typeof u.then&&u.then(h,c)}}})),r||n()}}function Xt(t,e){return Jt(t.map((function(t){return Object.keys(t.components).map((function(i){return e(t.components[i],t.instances[i],t,i)}))})))}function Jt(t){return Array.prototype.concat.apply([],t)}var Qt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function qt(t){return t.__esModule||Qt&&"Module"===t[Symbol.toStringTag]}function te(t){var e=!1;return function(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];if(!e)return e=!0,t.apply(this,i)}}var ee=function(t,e){this.router=t,this.base=ie(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ie(t){if(!t)if(ht){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function ne(t,e){var i,n=Math.max(t.length,e.length);for(i=0;i<n;i++)if(t[i]!==e[i])break;return{updated:e.slice(0,i),activated:e.slice(i),deactivated:t.slice(i)}}function re(t,e,i,n){var r=Xt(t,(function(t,n,r,o){var s=oe(t,e);if(s)return Array.isArray(s)?s.map((function(t){return i(t,n,r,o)})):i(s,n,r,o)}));return Jt(n?r.reverse():r)}function oe(t,e){return"function"!==typeof t&&(t=et.extend(t)),t.options[e]}function se(t){return re(t,"beforeRouteLeave",le,!0)}function ae(t){return re(t,"beforeRouteUpdate",le)}function le(t,e){if(e)return function(){return t.apply(e,arguments)}}function he(t){return re(t,"beforeRouteEnter",(function(t,e,i,n){return ce(t,i,n)}))}function ce(t,e,i){return function(n,r,o){return t(n,r,(function(t){"function"===typeof t&&(e.enteredCbs[i]||(e.enteredCbs[i]=[]),e.enteredCbs[i].push(t)),o(t)}))}}ee.prototype.listen=function(t){this.cb=t},ee.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ee.prototype.onError=function(t){this.errorCbs.push(t)},ee.prototype.transitionTo=function(t,e,i){var n,r=this;try{n=this.router.match(t,this.current)}catch(s){throw this.errorCbs.forEach((function(t){t(s)})),s}var o=this.current;this.confirmTransition(n,(function(){r.updateRoute(n),e&&e(n),r.ensureURL(),r.router.afterHooks.forEach((function(t){t&&t(n,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(n)})))}),(function(t){i&&i(t),t&&!r.ready&&(Yt(t,Pt.redirected)&&o===v||(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)}))))}))},ee.prototype.confirmTransition=function(t,e,i){var r=this,o=this.current;this.pending=t;var s=function(t){!Yt(t)&&Kt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):(n(!1,"uncaught error during route navigation:"),console.error(t))),i&&i(t)},a=t.matched.length-1,l=o.matched.length-1;if(w(t,o)&&a===l&&t.matched[a]===o.matched[l])return this.ensureURL(),s($t(o,t));var h=ne(this.current.matched,t.matched),c=h.updated,u=h.deactivated,d=h.activated,f=[].concat(se(u),this.router.beforeHooks,ae(c),d.map((function(t){return t.beforeEnter})),Ut(d)),p=function(e,i){if(r.pending!==t)return s(Ht(o,t));try{e(t,o,(function(e){!1===e?(r.ensureURL(!0),s(zt(o,t))):Kt(e)?(r.ensureURL(!0),s(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(s(Wt(o,t)),"object"===typeof e&&e.replace?r.replace(e):r.push(e)):i(e)}))}catch(n){s(n)}};Zt(f,p,(function(){var i=he(d),n=i.concat(r.router.resolveHooks);Zt(n,p,(function(){if(r.pending!==t)return s(Ht(o,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){M(t)}))}))}))},ee.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},ee.prototype.setupListeners=function(){},ee.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=v,this.pending=null};var ue=function(t){function e(e,i){t.call(this,e,i),this._startLocation=de(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,i=e.options.scrollBehavior,n=Lt&&i;n&&this.listeners.push(At());var r=function(){var i=t.current,r=de(t.base);t.current===v&&r===t._startLocation||t.transitionTo(r,(function(t){n&&Mt(e,t,i,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,i){var n=this,r=this,o=r.current;this.transitionTo(t,(function(t){Bt(T(n.base+t.fullPath)),Mt(n.router,t,o,!1),e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var n=this,r=this,o=r.current;this.transitionTo(t,(function(t){Dt(T(n.base+t.fullPath)),Mt(n.router,t,o,!1),e&&e(t)}),i)},e.prototype.ensureURL=function(t){if(de(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?Bt(e):Dt(e)}},e.prototype.getCurrentLocation=function(){return de(this.base)},e}(ee);function de(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var fe=function(t){function e(e,i,n){t.call(this,e,i),n&&pe(this.base)||ge()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,i=e.options.scrollBehavior,n=Lt&&i;n&&this.listeners.push(At());var r=function(){var e=t.current;ge()&&t.transitionTo(me(),(function(i){n&&Mt(t.router,i,e,!0),Lt||ye(i.fullPath)}))},o=Lt?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,i){var n=this,r=this,o=r.current;this.transitionTo(t,(function(t){be(t.fullPath),Mt(n.router,t,o,!1),e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var n=this,r=this,o=r.current;this.transitionTo(t,(function(t){ye(t.fullPath),Mt(n.router,t,o,!1),e&&e(t)}),i)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;me()!==e&&(t?be(e):ye(e))},e.prototype.getCurrentLocation=function(){return me()},e}(ee);function pe(t){var e=de(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}function ge(){var t=me();return"/"===t.charAt(0)||(ye("/"+t),!1)}function me(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function ve(t){var e=window.location.href,i=e.indexOf("#"),n=i>=0?e.slice(0,i):e;return n+"#"+t}function be(t){Lt?Bt(ve(t)):window.location.hash=t}function ye(t){Lt?Dt(ve(t)):window.location.replace(ve(t))}var we=function(t){function e(e,i){t.call(this,e,i),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,i){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),i)},e.prototype.go=function(t){var e=this,i=this.index+t;if(!(i<0||i>=this.stack.length)){var n=this.stack[i];this.confirmTransition(n,(function(){var t=e.current;e.index=i,e.updateRoute(n),e.router.afterHooks.forEach((function(e){e&&e(n,t)}))}),(function(t){Yt(t,Pt.duplicated)&&(e.index=i)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ee),Ce=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Lt&&!1!==t.fallback,this.fallback&&(e="hash"),ht||(e="abstract"),this.mode=e,e){case"history":this.history=new ue(this,t.base);break;case"hash":this.history=new fe(this,t.base,this.fallback);break;case"abstract":this.history=new we(this,t.base);break;default:0}},Ie={currentRoute:{configurable:!0}};function Ae(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function Me(t,e,i){var n="hash"===i?"#"+e:e;return t?T(t+"/"+n):n}Ce.prototype.match=function(t,e,i){return this.matcher.match(t,e,i)},Ie.currentRoute.get=function(){return this.history&&this.history.current},Ce.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var i=e.apps.indexOf(t);i>-1&&e.apps.splice(i,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var i=this.history;if(i instanceof ue||i instanceof fe){var n=function(t){var n=i.current,r=e.options.scrollBehavior,o=Lt&&r;o&&"fullPath"in t&&Mt(e,t,n,!1)},r=function(t){i.setupListeners(),n(t)};i.transitionTo(i.getCurrentLocation(),r,r)}i.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ce.prototype.beforeEach=function(t){return Ae(this.beforeHooks,t)},Ce.prototype.beforeResolve=function(t){return Ae(this.resolveHooks,t)},Ce.prototype.afterEach=function(t){return Ae(this.afterHooks,t)},Ce.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ce.prototype.onError=function(t){this.history.onError(t)},Ce.prototype.push=function(t,e,i){var n=this;if(!e&&!i&&"undefined"!==typeof Promise)return new Promise((function(e,i){n.history.push(t,e,i)}));this.history.push(t,e,i)},Ce.prototype.replace=function(t,e,i){var n=this;if(!e&&!i&&"undefined"!==typeof Promise)return new Promise((function(e,i){n.history.replace(t,e,i)}));this.history.replace(t,e,i)},Ce.prototype.go=function(t){this.history.go(t)},Ce.prototype.back=function(){this.go(-1)},Ce.prototype.forward=function(){this.go(1)},Ce.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ce.prototype.resolve=function(t,e,i){e=e||this.history.current;var n=tt(t,e,i,this),r=this.match(n,e),o=r.redirectedFrom||r.fullPath,s=this.history.base,a=Me(s,o,this.mode);return{location:n,route:r,href:a,normalizedTo:n,resolved:r}},Ce.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ce.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Ce.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ce.prototype,Ie),Ce.install=lt,Ce.version="3.5.1",Ce.isNavigationFailure=Yt,Ce.NavigationFailureType=Pt,Ce.START_LOCATION=v,ht&&window.Vue&&window.Vue.use(Ce),e["a"]=Ce},"8c7a":function(t,e,i){(function(e){var i="undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},n=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,i=0,n={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof r?new r(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t["__id"]||Object.defineProperty(t,"__id",{value:++i}),t["__id"]},clone:function t(e,i){var r,o;switch(i=i||{},n.util.type(e)){case"Object":if(o=n.util.objId(e),i[o])return i[o];for(var s in r={},i[o]=r,e)e.hasOwnProperty(s)&&(r[s]=t(e[s],i));return r;case"Array":return o=n.util.objId(e),i[o]?i[o]:(r=[],i[o]=r,e.forEach((function(e,n){r[n]=t(e,i)})),r);default:return e}},getLanguage:function(t){while(t&&!e.test(t.className))t=t.parentElement;return t?(t.className.match(e)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var i in e)if(e[i].src==t)return e[i]}return null}},isActive:function(t,e,i){var n="no-"+e;while(t){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!i}},languages:{extend:function(t,e){var i=n.util.clone(n.languages[t]);for(var r in e)i[r]=e[r];return i},insertBefore:function(t,e,i,r){r=r||n.languages;var o=r[t],s={};for(var a in o)if(o.hasOwnProperty(a)){if(a==e)for(var l in i)i.hasOwnProperty(l)&&(s[l]=i[l]);i.hasOwnProperty(a)||(s[a]=o[a])}var h=r[t];return r[t]=s,n.languages.DFS(n.languages,(function(e,i){i===h&&e!=t&&(this[e]=s)})),s},DFS:function t(e,i,r,o){o=o||{};var s=n.util.objId;for(var a in e)if(e.hasOwnProperty(a)){i.call(e,a,e[a],r||a);var l=e[a],h=n.util.type(l);"Object"!==h||o[s(l)]?"Array"!==h||o[s(l)]||(o[s(l)]=!0,t(l,i,a,o)):(o[s(l)]=!0,t(l,i,null,o))}}},plugins:{},highlightAll:function(t,e){n.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,i){var r={callback:i,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),n.hooks.run("before-all-elements-highlight",r);for(var o,s=0;o=r.elements[s++];)n.highlightElement(o,!0===e,r.callback)},highlightElement:function(i,r,o){var s=n.util.getLanguage(i),a=n.languages[s];i.className=i.className.replace(e,"").replace(/\s+/g," ")+" language-"+s;var l=i.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(e,"").replace(/\s+/g," ")+" language-"+s);var h=i.textContent,c={element:i,language:s,grammar:a,code:h};function u(t){c.highlightedCode=t,n.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,n.hooks.run("after-highlight",c),n.hooks.run("complete",c),o&&o.call(c.element)}if(n.hooks.run("before-sanity-check",c),!c.code)return n.hooks.run("complete",c),void(o&&o.call(c.element));if(n.hooks.run("before-highlight",c),c.grammar)if(r&&t.Worker){var d=new Worker(n.filename);d.onmessage=function(t){u(t.data)},d.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(n.highlight(c.code,c.grammar,c.language));else u(n.util.encode(c.code))},highlight:function(t,e,i){var o={code:t,grammar:e,language:i};return n.hooks.run("before-tokenize",o),o.tokens=n.tokenize(o.code,o.grammar),n.hooks.run("after-tokenize",o),r.stringify(n.util.encode(o.tokens),o.language)},tokenize:function(t,e){var i=e.rest;if(i){for(var n in i)e[n]=i[n];delete e.rest}var r=new a;return l(r,r.head,t),s(t,r,e,r.head,0),c(r)},hooks:{all:{},add:function(t,e){var i=n.hooks.all;i[t]=i[t]||[],i[t].push(e)},run:function(t,e){var i=n.hooks.all[t];if(i&&i.length)for(var r,o=0;r=i[o++];)r(e)}},Token:r};function r(t,e,i,n){this.type=t,this.content=e,this.alias=i,this.length=0|(n||"").length}function o(t,e,i,n){t.lastIndex=e;var r=t.exec(i);if(r&&n&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function s(t,e,i,a,c,u){for(var d in i)if(i.hasOwnProperty(d)&&i[d]){var f=i[d];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(u&&u.cause==d+","+p)return;var g=f[p],m=g.inside,v=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var C=g.pattern||g,I=a.next,A=c;I!==e.tail;A+=I.value.length,I=I.next){if(u&&A>=u.reach)break;var M=I.value;if(e.length>t.length)return;if(!(M instanceof r)){var x,_=1;if(b){if(x=o(C,A,t,v),!x)break;var S=x.index,k=x.index+x[0].length,E=A;E+=I.value.length;while(S>=E)I=I.next,E+=I.value.length;if(E-=I.value.length,A=E,I.value instanceof r)continue;for(var T=I;T!==e.tail&&(E<k||"string"===typeof T.value);T=T.next)_++,E+=T.value.length;_--,M=t.slice(A,E),x.index-=A}else if(x=o(C,0,M,v),!x)continue;S=x.index;var R=x[0],O=M.slice(0,S),j=M.slice(S+R.length),N=A+M.length;u&&N>u.reach&&(u.reach=N);var L=I.prev;O&&(L=l(e,L,O),A+=O.length),h(e,L,_);var B=new r(d,m?n.tokenize(R,m):R,y,R);I=l(e,L,B),j&&l(e,I,j),_>1&&s(t,e,i,I.prev,A,{cause:d+","+p,reach:N})}}}}}function a(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,i){var n=e.next,r={value:i,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function h(t,e,i){for(var n=e.next,r=0;r<i&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function c(t){var e=[],i=t.head.next;while(i!==t.tail)e.push(i.value),i=i.next;return e}if(t.Prism=n,r.stringify=function t(e,i){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,i)})),r}var o={type:e.type,content:t(e.content,i),tag:"span",classes:["token",e.type],attributes:{},language:i},s=e.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),n.hooks.run("wrap",o);var a="";for(var l in o.attributes)a+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener?(n.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var i=JSON.parse(e.data),r=i.language,o=i.code,s=i.immediateClose;t.postMessage(n.highlight(o,n.languages[r],r)),s&&t.close()}),!1),n):n;var u=n.util.currentScript();function d(){n.manual||n.highlightAll()}if(u&&(n.filename=u.src,u.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var f=document.readyState;"loading"===f||"interactive"===f&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return n}(i);
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/t.exports&&(t.exports=n),"undefined"!==typeof e&&(e.Prism=n)}).call(this,i("c8ba"))},"8c8a":function(t,e,i){(function(e){t.exports=function(t,i){for(var n=Math.min(t.length,i.length),r=new e(n),o=0;o<n;++o)r[o]=t[o]^i[o];return r}}).call(this,i("b639").Buffer)},"8de2":function(t,e,i){var n=i("8eeb"),r=i("9934");function o(t){return n(t,r(t))}t.exports=o},"8df4":function(t,e,i){"use strict";var n=i("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;t((function(t){i.reason||(i.reason=new n(t),e(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8df7":function(t,e,i){"use strict";const n=i("3fb5"),r=i("c591").Buffer,o=i("cfbd");function s(t){o.call(this,t),this.enc="pem"}n(s,o),t.exports=s,s.prototype.decode=function(t,e){const i=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,l=-1;for(let r=0;r<i.length;r++){const t=i[r].match(s);if(null!==t&&t[2]===n){if(-1!==a){if("END"!==t[1])break;l=r;break}if("BEGIN"!==t[1])break;a=r}}if(-1===a||-1===l)throw new Error("PEM section not found for: "+n);const h=i.slice(a+1,l).join("");h.replace(/[^a-z0-9+/=]+/gi,"");const c=r.from(h,"base64");return o.prototype.decode.call(this,c,e)}},"8eeb":function(t,e,i){var n=i("32b3"),r=i("872a");function o(t,e,i,o){var s=!i;i||(i={});var a=-1,l=e.length;while(++a<l){var h=e[a],c=o?o(i[h],t[h],h,i,t):void 0;void 0===c&&(c=t[h]),s?r(i,h,c):n(i,h,c)}return i}t.exports=o},9019:function(t,e,i){"use strict";(function(e){function i(t,i){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):i?(e.nextTick(r,o),i(t)):e.nextTick(r,o)})),this)}function n(t,e){s(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){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)}function s(t,e){t.emit("error",e)}function a(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:i,undestroy:o,errorOrDestroy:a}}).call(this,i("4362"))},9152:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<<a)-1,h=l>>1,c=-7,u=i?r-1:0,d=i?-1:1,f=t[e+u];for(u+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+u],u+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+u],u+=d,c-=8);if(0===o)o=1-h;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=h}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,l,h=8*o-r-1,c=(1<<h)-1,u=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+u>=1?d/l:d*Math.pow(2,1-u),e*l>=2&&(s++,l/=2),s+u>=c?(a=0,s=c):s+u>=1?(a=(e*l-1)*Math.pow(2,r),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,h+=r;h>0;t[i+f]=255&s,f+=p,s/=256,h-=8);t[i+f-p]|=128*g}},"919c":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"91e9":function(t,e){function i(t,e){return function(i){return t(e(i))}}t.exports=i},"93e6":function(t,e,i){"use strict";var n=i("0632").Buffer,r=i("334a").Transform,o=i("3fb5");function s(t,e){if(!n.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}function a(t){r.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(a,r),a.prototype._transform=function(t,e,i){var n=null;try{this.update(t,e)}catch(r){n=r}i(n)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(i){e=i}t(e)},a.prototype.update=function(t,e){if(s(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));var i=this._block,r=0;while(this._blockOffset+t.length-r>=this._blockSize){for(var o=this._blockOffset;o<this._blockSize;)i[o++]=t[r++];this._update(),this._blockOffset=0}while(r<t.length)i[this._blockOffset++]=t[r++];for(var a=0,l=8*t.length;l>0;++a)this._length[a]+=l,l=this._length[a]/4294967296|0,l>0&&(this._length[a]-=4294967296*l);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},"93ed":function(t,e,i){var n=i("4245");function r(t){var e=n(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=r},"945d":function(t,e,i){"use strict";var n=i("7d92"),r=i("0cbb"),o=i("f3a3"),s=o.assert,a=o.parseBytes,l=i("380f"),h=i("44a3");function c(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=r[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=c,c.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),n=this.hashInt(i.messagePrefix(),t),r=this.g.mul(n),o=this.encodePoint(r),s=this.hashInt(o,i.pubBytes(),t).mul(i.priv()),l=n.add(s).umod(this.curve.n);return this.makeSignature({R:r,S:l,Rencoded:o})},c.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var n=this.keyFromPublic(i),r=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S()),s=e.R().add(n.pub().mul(r));return s.eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return l.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return l.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){t=o.parseBytes(t);var e=t.length-1,i=t.slice(0,e).concat(-129&t[e]),n=0!==(128&t[e]),r=o.intFromLE(i);return this.curve.pointFromY(r,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},9483:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n,r=function(){return Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))};function o(t,e){void 0===e&&(e={});var i=e.registrationOptions;void 0===i&&(i={}),delete e.registrationOptions;var o=function(t){var i=[],n=arguments.length-1;while(n-- >0)i[n]=arguments[n+1];e&&e[t]&&e[t].apply(e,i)};"serviceWorker"in navigator&&n.then((function(){r()?(l(t,o,i),navigator.serviceWorker.ready.then((function(t){o("ready",t)})).catch((function(t){return s(o,t)}))):(a(t,o,i),navigator.serviceWorker.ready.then((function(t){o("ready",t)})).catch((function(t){return s(o,t)})))}))}function s(t,e){navigator.onLine||t("offline"),t("error",e)}function a(t,e,i){navigator.serviceWorker.register(t,i).then((function(t){e("registered",t),t.waiting?e("updated",t):t.onupdatefound=function(){e("updatefound",t);var i=t.installing;i.onstatechange=function(){"installed"===i.state&&(navigator.serviceWorker.controller?e("updated",t):e("cached",t))}}})).catch((function(t){return s(e,t)}))}function l(t,e,i){fetch(t).then((function(n){404===n.status?(e("error",new Error("Service worker not found at "+t)),h()):-1===n.headers.get("content-type").indexOf("javascript")?(e("error",new Error("Expected "+t+" to have javascript content-type, but received "+n.headers.get("content-type"))),h()):a(t,e,i)})).catch((function(t){return s(e,t)}))}function h(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(t){t.unregister()})).catch((function(t){return s(emit,t)}))}"undefined"!==typeof window&&(n="undefined"!==typeof Promise?new Promise((function(t){return window.addEventListener("load",t)})):{then:function(t){return window.addEventListener("load",t)}})},"94f8":function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){return function(e){var i=t,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[],l=[];(function(){function t(t){for(var i=e.sqrt(t),n=2;n<=i;n++)if(!(t%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}var n=2,r=0;while(r<64)t(n)&&(r<8&&(a[r]=i(e.pow(n,.5))),l[r]=i(e.pow(n,1/3)),r++),n++})();var h=[],c=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],a=i[4],c=i[5],u=i[6],d=i[7],f=0;f<64;f++){if(f<16)h[f]=0|t[e+f];else{var p=h[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=h[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;h[f]=g+h[f-7]+v+h[f-16]}var b=a&c^~a&u,y=n&r^n&o^r&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),I=d+C+b+l[f]+h[f],A=w+y;d=u,u=c,c=a,a=s+I|0,s=o,o=r,r=n,n=I+A|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+a|0,i[5]=i[5]+c|0,i[6]=i[6]+u|0,i[7]=i[7]+d|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=e.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});i.SHA256=o._createHelper(c),i.HmacSHA256=o._createHmacHelper(c)}(Math),t.SHA256}))},9520:function(t,e,i){var n=i("3729"),r=i("1a8c"),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function h(t){if(!r(t))return!1;var e=n(t);return e==s||e==a||e==o||e==l}t.exports=h},9523:function(t,e){function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},"956a":function(t,e,i){var n=i("1e3c"),r=i("fda6"),o=i("bac2"),s=i("0be8"),a=i("ae84");function l(t,e){var i,n;if(t=t.toLowerCase(),o[t])i=o[t].key,n=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");i=8*s[t].key,n=s[t].iv}var r=a(e,!1,i,n);return c(t,r.key,r.iv)}function h(t,e){var i,n;if(t=t.toLowerCase(),o[t])i=o[t].key,n=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");i=8*s[t].key,n=s[t].iv}var r=a(e,!1,i,n);return u(t,r.key,r.iv)}function c(t,e,i){if(t=t.toLowerCase(),o[t])return r.createCipheriv(t,e,i);if(s[t])return new n({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function u(t,e,i){if(t=t.toLowerCase(),o[t])return r.createDecipheriv(t,e,i);if(s[t])return new n({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function d(){return Object.keys(s).concat(r.getCiphers())}e.createCipher=e.Cipher=l,e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=h,e.createDecipheriv=e.Decipheriv=u,e.listCiphers=e.getCiphers=d},9638:function(t,e){function i(t,e){return t===e||t!==t&&e!==e}t.exports=i},"966d":function(t,e,i){"use strict";(function(e){function i(t,i,n,r){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,i)}));case 3:return e.nextTick((function(){t.call(null,i,n)}));case 4:return e.nextTick((function(){t.call(null,i,n,r)}));default:o=new Array(a-1),s=0;while(s<o.length)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:i}:t.exports=e}).call(this,i("4362"))},"96a5":function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}var h=i("b639"),c=h.Buffer,u=i(2),d=u.inspect,f=d&&d.custom||"inspect";function p(t,e,i){c.prototype.copy.call(t,e,i)}t.exports=function(){function t(){s(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,i=""+e.data;while(e=e.next)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),i=this.head,n=0;while(i)p(i.data,e,n),n+=i.data.length,i=i.next;return e}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,n=e.data;t-=n.length;while(e=e.next){var r=e.data,o=t>r.length?r.length:t;if(o===r.length?n+=r:n+=r.slice(0,t),t-=o,0===t){o===r.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=r.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),i=this.head,n=1;i.data.copy(e),t-=i.data.length;while(i=i.next){var r=i.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),t-=o,0===t){o===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,e}},{key:f,value:function(t,e){return d(this,r({},e,{depth:0,customInspect:!1}))}}]),t}()},"970b":function(t,e){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},"980c":function(t,e,i){var n=i("39a9").Buffer,r=i("399f"),o=i("3337").ec,s=i("2aee"),a=i("cd91");function l(t,e,i,o,a){var l=s(i);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return h(t,e,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return c(t,e,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=n.concat([a,e]);var u=l.modulus.byteLength(),d=[1],f=0;while(e.length+d.length+2<u)d.push(255),f++;d.push(0);var p=-1;while(++p<e.length)d.push(e[p]);d=n.from(d);var g=r.mont(l.modulus);t=new r(t).toRed(g),t=t.redPow(new r(l.publicExponent)),t=n.from(t.fromRed().toArray());var m=f<8?1:0;u=Math.min(t.length,d.length),t.length!==d.length&&(m=1),p=-1;while(++p<u)m|=t[p]^d[p];return 0===m}function h(t,e,i){var n=a[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new o(n),s=i.data.subjectPrivateKey.data;return r.verify(e,t,s)}function c(t,e,i){var n=i.data.p,o=i.data.q,a=i.data.g,l=i.data.pub_key,h=s.signature.decode(t,"der"),c=h.s,d=h.r;u(c,o),u(d,o);var f=r.mont(n),p=c.invm(o),g=a.toRed(f).redPow(new r(e).mul(p).mod(o)).fromRed().mul(l.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===g.cmp(d)}function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=l},"98e6":function(t,e,i){"use strict";var n=i("3fb5"),r=i("f576"),o=i("b5ca"),s=i("69f2"),a=i("6430");function l(t){a.call(this,"digest"),this._hash=t}n(l,a),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new r:"rmd160"===t||"ripemd160"===t?new o:new l(s(t))}},9934:function(t,e,i){var n=i("6fcd"),r=i("41c3"),o=i("30c9");function s(t){return o(t)?n(t,!0):r(t)}t.exports=s},"99cd":function(t,e){function i(t){return function(e,i,n){var r=-1,o=Object(e),s=n(e),a=s.length;while(a--){var l=s[t?a:++r];if(!1===i(o[l],l,o))break}return e}}t.exports=i},"99d3":function(t,e,i){(function(t){var n=i("585a"),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===r,a=s&&n.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=l}).call(this,i("62e4")(t))},"9aff":function(t,e,i){var n=i("9638"),r=i("30c9"),o=i("c098"),s=i("1a8c");function a(t,e,i){if(!s(i))return!1;var a=typeof e;return!!("number"==a?r(i)&&o(e,i.length):"string"==a&&e in i)&&n(i[e],t)}t.exports=a},"9d28":function(t,e,i){"use strict";t.exports=r;var n=i("f1c8");function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}i("3fb5")(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},"9d8a":function(t,e,i){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r={};function o(t,e,i){function o(t,i,n){return"string"===typeof e?e:e(t,i,n)}i||(i=Error);var s=function(t){function e(e,i,n){return t.call(this,o(e,i,n))||this}return n(e,t),e}(i);s.prototype.name=i.name,s.prototype.code=t,r[t]=s}function s(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function l(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function h(t,e,i){return"number"!==typeof i&&(i=0),!(i+e.length>t.length)&&-1!==t.indexOf(e,i)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,i){var n,r;if("string"===typeof e&&a(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",l(t," argument"))r="The ".concat(t," ").concat(n," ").concat(s(e,"type"));else{var o=h(t,".")?"property":"argument";r='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(s(e,"type"))}return r+=". Received type ".concat(typeof i),r}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},"9e69":function(t,e,i){var n=i("2b3e"),r=n.Symbol;t.exports=r},"9f9d":function(t,e,i){(function(e,i){var n;if(e.process&&e.process.browser)n="utf-8";else if(e.process&&e.process.version){var r=parseInt(i.version.split(".")[0].slice(1),10);n=r>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,i("c8ba"),i("4362"))},a099:function(t,e,i){e.pbkdf2=i("206d"),e.pbkdf2Sync=i("e07b")},a255:function(t,e,i){var n=i("3fb5"),r=i("b672"),o=i("8707").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,2756734187,3204031479,3329325298],a=new Array(64);function l(){this.init(),this._w=a,r.call(this,64,56)}function h(t,e,i){return i^t&(e^i)}function c(t,e,i){return t&e|i&(t|e)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}n(l,r),l.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},l.prototype._update=function(t){for(var e=this._w,i=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,a=0|this._e,l=0|this._f,g=0|this._g,m=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=p(e[v-2])+e[v-7]+f(e[v-15])+e[v-16]|0;for(var b=0;b<64;++b){var y=m+d(a)+h(a,l,g)+s[b]+e[b]|0,w=u(i)+c(i,n,r)|0;m=g,g=l,l=a,a=o+y|0,o=r,r=n,n=i,i=y+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=l+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},l.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},a2be:function(t,e,i){var n=i("d612"),r=i("4284"),o=i("c584"),s=1,a=2;function l(t,e,i,l,h,c){var u=i&s,d=t.length,f=e.length;if(d!=f&&!(u&&f>d))return!1;var p=c.get(t),g=c.get(e);if(p&&g)return p==e&&g==t;var m=-1,v=!0,b=i&a?new n:void 0;c.set(t,e),c.set(e,t);while(++m<d){var y=t[m],w=e[m];if(l)var C=u?l(w,y,m,e,t,c):l(y,w,m,t,e,c);if(void 0!==C){if(C)continue;v=!1;break}if(b){if(!r(e,(function(t,e){if(!o(b,e)&&(y===t||h(y,t,i,l,c)))return b.push(e)}))){v=!1;break}}else if(y!==w&&!h(y,w,i,l,c)){v=!1;break}}return c["delete"](t),c["delete"](e),v}t.exports=l},a454:function(t,e,i){var n=i("72f0"),r=i("3b4a"),o=i("cd9d"),s=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=s},a524:function(t,e,i){var n=i("4245");function r(t){return n(this,t).has(t)}t.exports=r},a65d:function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=6)}([function(t,e,i){"use strict";function n(){f=!1}function r(t){if(t){if(t!==u){if(t.length!==g.length)throw new Error("Custom alphabet for shortid must be "+g.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,i){return e!==i.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+g.length+" unique characters. These characters were not unique: "+e.join(", "));u=t,n()}}else u!==g&&(u=g,n())}function o(t){return r(t),u}function s(t){p.seed(t),d!==t&&(n(),d=t)}function a(){u||r(g);for(var t,e=u.split(""),i=[],n=p.nextValue();e.length>0;)n=p.nextValue(),t=Math.floor(n*e.length),i.push(e.splice(t,1)[0]);return i.join("")}function l(){return f||(f=a())}function h(t){return l()[t]}function c(){return u||g}var u,d,f,p=i(19),g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";t.exports={get:c,characters:o,seed:s,lookup:h,shuffled:l}},function(t,e,i){"use strict";var n=i(5),r=i.n(n);e.a={animateIn:function(t){r()({targets:t,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(t,e){r()({targets:t,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateOutBottom:function(t,e){r()({targets:t,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateReset:function(t){r()({targets:t,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(t,e,i){r()({targets:t,duration:10,easing:"easeOutQuad",left:e,opacity:i})},animatePanEnd:function(t,e){r()({targets:t,opacity:0,duration:300,easing:"easeOutExpo",complete:e})},clearAnimation:function(t){var e=r.a.timeline();t.forEach((function(t){e.add({targets:t.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){t.remove()}})}))}}},function(t,e,i){"use strict";t.exports=i(16)},function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i(8),r=i(1),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=i(2);i(11).polyfill();var a=function t(e){var i=this;return this.id=s.generate(),this.options=e,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,c(this),h(this),this.group=function(e){e||(e={}),e.globalToasts||(e.globalToasts={}),Object.assign(e.globalToasts,i.global);var n=new t(e);return i.groups.push(n),n},this.register=function(t,e,n){return n=n||{},u(i,t,e,n)},this.show=function(t,e){return l(i,t,e)},this.success=function(t,e){return e=e||{},e.type="success",l(i,t,e)},this.info=function(t,e){return e=e||{},e.type="info",l(i,t,e)},this.error=function(t,e){return e=e||{},e.type="error",l(i,t,e)},this.remove=function(t){i.toasts=i.toasts.filter((function(e){return e.el.hash!==t.hash})),t.parentNode&&t.parentNode.removeChild(t)},this.clear=function(t){return r.a.clearAnimation(i.toasts,(function(){t&&t()})),i.toasts=[],!0},this},l=function(t,e,r){r=r||{};var s=null;if("object"!==(void 0===r?"undefined":o(r)))return console.error("Options should be a type of object. given : "+r),null;t.options.singleton&&t.toasts.length>0&&(t.cached_options=r,t.toasts[t.toasts.length-1].goAway(0));var a=Object.assign({},t.options);return Object.assign(a,r),s=i.i(n.a)(t,e,a),t.toasts.push(s),s},h=function(t){var e=t.options.globalToasts,i=function(e,i){return"string"==typeof i&&t[i]?t[i].apply(t,[e,{}]):l(t,e,i)};e&&(t.global={},Object.keys(e).forEach((function(n){t.global[n]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e[n].apply(null,[t,i])}})))},c=function(t){var e=document.createElement("div");e.id=t.id,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","false"),document.body.appendChild(e),t.container=e},u=function(t,e,i,n){t.options.globalToasts||(t.options.globalToasts={}),t.options.globalToasts[e]=function(t,e){var r=null;return"string"==typeof i&&(r=i),"function"==typeof i&&(r=i(t)),e(r,n)},h(t)}},function(t,e,i){i(22);var n=i(21)(null,null,null,null);t.exports=n.exports},function(t,e,i){(function(i){var n,r,o,s={scope:{}};s.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},s.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==i&&null!=i?i:t},s.global=s.getGlobal(this),s.SYMBOL_PREFIX="jscomp_symbol_",s.initSymbol=function(){s.initSymbol=function(){},s.global.Symbol||(s.global.Symbol=s.Symbol)},s.symbolCounter_=0,s.Symbol=function(t){return s.SYMBOL_PREFIX+(t||"")+s.symbolCounter_++},s.initSymbolIterator=function(){s.initSymbol();var t=s.global.Symbol.iterator;t||(t=s.global.Symbol.iterator=s.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&s.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return s.arrayIterator(this)}}),s.initSymbolIterator=function(){}},s.arrayIterator=function(t){var e=0;return s.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},s.iteratorPrototype=function(t){return s.initSymbolIterator(),t={next:t},t[s.global.Symbol.iterator]=function(){return this},t},s.array=s.array||{},s.iteratorFromArray=function(t,e){s.initSymbolIterator(),t instanceof String&&(t+="");var i=0,n={next:function(){if(i<t.length){var r=i++;return{value:e(r,t[r]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},s.polyfill=function(t,e,i,n){if(e){for(i=s.global,t=t.split("."),n=0;n<t.length-1;n++){var r=t[n];r in i||(i[r]={}),i=i[r]}t=t[t.length-1],n=i[t],e=e(n),e!=n&&null!=e&&s.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},s.polyfill("Array.prototype.keys",(function(t){return t||function(){return s.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var a=this;!function(i,s){r=[],n=s,void 0!==(o="function"==typeof n?n.apply(e,r):n)&&(t.exports=o)}(0,(function(){function t(t){if(!Z.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var i=t.length,n=2<=arguments.length?arguments[1]:void 0,r=[],o=0;o<i;o++)if(o in t){var s=t[o];e.call(n,s,o,t)&&r.push(s)}return r}function i(t){return t.reduce((function(t,e){return t.concat(Z.arr(e)?i(e):e)}),[])}function n(e){return Z.arr(e)?e:(Z.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function r(t,e){return t.some((function(t){return t===e}))}function o(t){var e,i={};for(e in t)i[e]=t[e];return i}function s(t,e){var i,n=o(t);for(i in t)n[i]=e.hasOwnProperty(i)?e[i]:t[i];return n}function l(t,e){var i,n=o(t);for(i in e)n[i]=Z.und(t[i])?e[i]:t[i];return n}function h(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);t=parseInt(e[1],16);var i=parseInt(e[2],16);e=parseInt(e[3],16);return"rgba("+t+","+i+","+e+",1)"}function c(t){function e(t,e,i){return 0>i&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:.5>i?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(i[1])/360;var n=parseInt(i[2])/100,r=parseInt(i[3])/100;i=i[4]||1;if(0==n)r=n=t=r;else{var o=.5>r?r*(1+n):r+n-r*n,s=2*r-o;r=e(s,o,t+1/3),n=e(s,o,t);t=e(s,o,t-1/3)}return"rgba("+255*r+","+255*n+","+255*t+","+i+")"}function u(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function d(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function f(t,e){return Z.fnc(t)?t(e.target,e.id,e.total):t}function p(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function g(t,e){return Z.dom(t)&&r(D,e)?"transform":Z.dom(t)&&(t.getAttribute(e)||Z.svg(t)&&t[e])?"attribute":Z.dom(t)&&"transform"!==e&&p(t,e)?"css":null!=t[e]?"object":void 0}function m(t,i){var n=d(i);n=-1<i.indexOf("scale")?1:0+n;if(!(t=t.style.transform))return n;for(var r=[],o=[],s=[],a=/(\w+)\((.+?)\)/g;r=a.exec(t);)o.push(r[1]),s.push(r[2]);return t=e(s,(function(t,e){return o[e]===i})),t.length?t[0]:n}function v(t,e){switch(g(t,e)){case"transform":return m(t,e);case"css":return p(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=u(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(i[0],"")),i[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function y(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,i=0,n=0;n<t.numberOfItems;n++){var r=t.getItem(n);0<n&&(i+=y(e,r)),e=r}return i}function C(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return y({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+y(e.getItem(e.numberOfItems-1),e.getItem(0))}}function I(t,e){function i(i){return i=void 0===i?0:i,t.el.getPointAtLength(1<=e+i?e+i:0)}var n=i(),r=i(-1),o=i(1);switch(t.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-r.y,o.x-r.x)/Math.PI}}function A(t,e){var i,n=/-?\d*\.?\d+/g;if(i=Z.pth(t)?t.totalLength:t,Z.col(i))if(Z.rgb(i)){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i);i=r?"rgba("+r[1]+",1)":i}else i=Z.hex(i)?h(i):Z.hsl(i)?c(i):void 0;else r=(r=u(i))?i.substr(0,i.length-r.length):i,i=e&&!/\s/g.test(i)?r+e:r;return i+="",{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:Z.str(t)||e?i.split(n):[]}}function M(t){return t=t?i(Z.arr(t)?t.map(n):n(t)):[],e(t,(function(t,e,i){return i.indexOf(t)===e}))}function x(t){var e=M(t);return e.map((function(t,i){return{target:t,id:i,total:e.length}}))}function _(t,e){var i=o(e);if(Z.arr(t)){var r=t.length;2!==r||Z.obj(t[0])?Z.fnc(e.duration)||(i.duration=e.duration/r):t={value:t}}return n(t).map((function(t,i){return i=i?0:e.delay,t=Z.obj(t)&&!Z.pth(t)?t:{value:t},Z.und(t.delay)&&(t.delay=i),t})).map((function(t){return l(t,i)}))}function S(t,e){var i,n={};for(i in t){var r=f(t[i],e);Z.arr(r)&&(r=r.map((function(t){return f(t,e)})),1===r.length&&(r=r[0])),n[i]=r}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function k(t){return Z.arr(t)?P.apply(this,t):W[t]}function E(t,e){var i;return t.tweens.map((function(n){n=S(n,e);var r=n.value,o=v(e.target,t.name),s=i?i.to.original:o,a=(s=Z.arr(r)?r[0]:s,b(Z.arr(r)?r[1]:r,s));o=u(a)||u(s)||u(o);return n.from=A(s,o),n.to=A(a,o),n.start=i?i.end:t.offset,n.end=n.start+n.delay+n.duration,n.easing=k(n.easing),n.elasticity=(1e3-Math.min(Math.max(n.elasticity,1),999))/1e3,n.isPath=Z.pth(r),n.isColor=Z.col(n.from.original),n.isColor&&(n.round=1),i=n}))}function T(t,n){return e(i(t.map((function(t){return n.map((function(e){var i=g(t.target,e.name);if(i){var n=E(e,t);e={type:i,property:e.name,animatable:t,tweens:n,duration:n[n.length-1].end,delay:n[0].delay}}else e=void 0;return e}))}))),(function(t){return!Z.und(t)}))}function R(t,e,i,n){var r="delay"===t;return e.length?(r?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):r?n.delay:i.offset+n.delay+n.duration}function O(t){var e,i=s(L,t),n=s(B,t),r=x(t.targets),o=[],a=l(i,n);for(e in t)a.hasOwnProperty(e)||"targets"===e||o.push({name:e,offset:a.offset,tweens:_(t[e],n)});return t=T(r,o),l(i,{children:[],animatables:r,animations:t,duration:R("duration",t,i,n),delay:R("delay",t,i,n)})}function j(t){function i(){return window.Promise&&new Promise((function(t){return u=t}))}function n(t){return f.reversed?f.duration-t:t}function r(t){for(var i=0,n={},r=f.animations,o=r.length;i<o;){var s=r[i],a=s.animatable,l=s.tweens,h=l.length-1,c=l[h];h&&(c=e(l,(function(e){return t<e.end}))[0]||c);l=Math.min(Math.max(t-c.start-c.delay,0),c.duration)/c.duration;for(var u=isNaN(l)?1:c.easing(l,c.elasticity),d=(l=c.to.strings,c.round),g=(h=[],void 0),m=(g=c.to.numbers.length,0);m<g;m++){var v=void 0,b=(v=c.to.numbers[m],c.from.numbers[m]);v=c.isPath?I(c.value,u*v):b+u*(v-b);d&&(c.isColor&&2<m||(v=Math.round(v*d)/d)),h.push(v)}if(c=l.length)for(g=l[0],u=0;u<c;u++)d=l[u+1],m=h[u],isNaN(m)||(g=d?g+(m+d):g+(m+" "));else g=h[0];$[s.type](a.target,s.property,g,n,a.id),s.currentValue=g,i++}if(i=Object.keys(n).length)for(r=0;r<i;r++)N||(N=p(document.body,"transform")?"transform":"-webkit-transform"),f.animatables[r].target.style[N]=n[r].join(" ");f.currentTime=t,f.progress=t/f.duration*100}function o(t){f[t]&&f[t](f)}function s(){f.remaining&&!0!==f.remaining&&f.remaining--}function a(t){var e=f.duration,a=f.offset,p=a+f.delay,g=f.currentTime,m=f.reversed,v=n(t);if(f.children.length){var b=f.children,y=b.length;if(v>=f.currentTime)for(var w=0;w<y;w++)b[w].seek(v);else for(;y--;)b[y].seek(v)}(v>=p||!e)&&(f.began||(f.began=!0,o("begin")),o("run")),v>a&&v<e?r(v):(v<=a&&0!==g&&(r(0),m&&s()),(v>=e&&g!==e||!e)&&(r(e),m||s())),o("update"),t>=e&&(f.remaining?(h=l,"alternate"===f.direction&&(f.reversed=!f.reversed)):(f.pause(),f.completed||(f.completed=!0,o("complete"),"Promise"in window&&(u(),d=i()))),c=0)}t=void 0===t?{}:t;var l,h,c=0,u=null,d=i(),f=O(t);return f.reset=function(){var t=f.direction,e=f.loop;for(f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.completed=!1,f.reversed="reverse"===t,f.remaining="alternate"===t&&1===e?2:e,r(0),t=f.children.length;t--;)f.children[t].reset()},f.tick=function(t){l=t,h||(h=l),a((c+l-h)*j.speed)},f.seek=function(t){a(n(t))},f.pause=function(){var t=H.indexOf(f);-1<t&&H.splice(t,1),f.paused=!0},f.play=function(){f.paused&&(f.paused=!1,h=0,c=n(f.currentTime),H.push(f),z||G())},f.reverse=function(){f.reversed=!f.reversed,h=0,c=n(f.currentTime)},f.restart=function(){f.pause(),f.reset(),f.play()},f.finished=d,f.reset(),f.autoplay&&f.play(),f}var N,L={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},B={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},D="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),Z={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return Z.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||Z.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return Z.hex(t)||Z.rgb(t)||Z.hsl(t)}},P=function(){function t(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}return function(e,i,n,r){if(0<=e&&1>=e&&0<=n&&1>=n){var o=new Float32Array(11);if(e!==i||n!==r)for(var s=0;11>s;++s)o[s]=t(.1*s,e,n);return function(s){if(e===i&&n===r)return s;if(0===s)return 0;if(1===s)return 1;for(var a=0,l=1;10!==l&&o[l]<=s;++l)a+=.1;--l;l=a+(s-o[l])/(o[l+1]-o[l])*.1;var h=3*(1-3*n+3*e)*l*l+2*(3*n-6*e)*l+3*e;if(.001<=h){for(a=0;4>a&&0!==(h=3*(1-3*n+3*e)*l*l+2*(3*n-6*e)*l+3*e);++a){var c=t(l,e,n)-s;l=l-c/h}s=l}else if(0===h)s=l;else{l=a,a=a+.1;var u=0;do{c=l+(a-l)/2,h=t(c,e,n)-s,0<h?a=c:l=c}while(1e-7<Math.abs(h)&&10>++u);s=c}return t(s,i,r)}}}}(),W=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,i="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,i){return 1-t(1-e,i)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,i){return.5>e?t(2*e,i)/2:1-t(-2*e+2,i)/2}]},r={linear:P(.25,.25,.75,.75)},o={};for(e in n)o.type=e,n[o.type].forEach(function(t){return function(e,n){r["ease"+t.type+i[n]]=Z.fnc(e)?e:P.apply(a,e)}}(o)),o={type:o.type};return r}(),$={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,r){n[r]||(n[r]=[]),n[r].push(e+"("+i+")")}},H=[],z=0,G=function(){function t(){z=requestAnimationFrame(e)}function e(e){var i=H.length;if(i){for(var n=0;n<i;)H[n]&&H[n].tick(e),n++;t()}else cancelAnimationFrame(z),z=0}return t}();return j.version="2.2.0",j.speed=1,j.running=H,j.remove=function(t){t=M(t);for(var e=H.length;e--;)for(var i=H[e],n=i.animations,o=n.length;o--;)r(t,n[o].animatable.target)&&(n.splice(o,1),n.length||i.pause())},j.getValue=v,j.path=function(e,i){var n=Z.str(e)?t(e)[0]:e,r=i||100;return function(t){return{el:n,property:t,totalLength:C(n)*(r/100)}}},j.setDashoffset=function(t){var e=C(t);return t.setAttribute("stroke-dasharray",e),e},j.bezier=P,j.easings=W,j.timeline=function(t){var e=j(t);return e.pause(),e.duration=0,e.add=function(i){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),n(i).forEach((function(i){var n=l(i,s(B,t||{}));n.targets=n.targets||t.targets,i=e.duration;var r=n.offset;n.autoplay=!1,n.direction=e.direction,n.offset=Z.und(r)?i:b(r,i),e.began=!0,e.completed=!0,e.seek(n.offset),n=j(n),n.began=!0,n.completed=!0,n.duration>i&&(e.duration=n.duration),e.children.push(n)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},j.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},j}))}).call(e,i(25))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),o=i.n(r),s={install:function(t,e){e||(e={});var i=new n.a(e);t.component("toasted",o.a),t.toasted=t.prototype.$toasted=i}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=s),e.default=s},function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i(1),r=this,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(t,e,i){return setTimeout((function(){i.cached_options.position&&i.cached_options.position.includes("bottom")?n.a.animateOutBottom(t,(function(){i.remove(t)})):n.a.animateOut(t,(function(){i.remove(t)}))}),e),!0},a=function(t,e){return("object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":o(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?t.appendChild(e):t.innerHTML=e,r},l=function(t,e){var i=!1;return{el:t,text:function(e){return a(t,e),this},goAway:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800;return i=!0,s(t,n,e)},remove:function(){e.remove(t)},disposed:function(){return i}}}},function(t,e,i){"use strict";var n=i(12),r=i.n(n),o=i(1),s=i(7),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=i(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}});var h={},c=null,u=function(t){return t.className=t.className||null,t.onComplete=t.onComplete||null,t.position=t.position||"top-right",t.duration=t.duration||null,t.keepOnHover=t.keepOnHover||!1,t.theme=t.theme||"toasted-primary",t.type=t.type||"default",t.containerClass=t.containerClass||null,t.fullWidth=t.fullWidth||!1,t.icon=t.icon||null,t.action=t.action||null,t.fitToScreen=t.fitToScreen||null,t.closeOnSwipe=void 0===t.closeOnSwipe||t.closeOnSwipe,t.iconPack=t.iconPack||"material",t.className&&"string"==typeof t.className&&(t.className=t.className.split(" ")),t.className||(t.className=[]),t.theme&&t.className.push(t.theme.trim()),t.type&&t.className.push(t.type),t.containerClass&&"string"==typeof t.containerClass&&(t.containerClass=t.containerClass.split(" ")),t.containerClass||(t.containerClass=[]),t.position&&t.containerClass.push(t.position.trim()),t.fullWidth&&t.containerClass.push("full-width"),t.fitToScreen&&t.containerClass.push("fit-to-screen"),h=t,t},d=function(t,e){var n=document.createElement("div");if(n.classList.add("toasted"),n.hash=l.generate(),e.className&&e.className.forEach((function(t){n.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":a(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":a(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?n.appendChild(t):n.innerHTML=t,f(e,n),e.closeOnSwipe){var h=new r.a(n,{prevent_default:!1});h.on("pan",(function(t){var e=t.deltaX;n.classList.contains("panning")||n.classList.add("panning");var i=1-Math.abs(e/80);i<0&&(i=0),o.a.animatePanning(n,e,i)})),h.on("panend",(function(t){var i=t.deltaX;Math.abs(i)>80?o.a.animatePanEnd(n,(function(){"function"==typeof e.onComplete&&e.onComplete(),n.parentNode&&c.remove(n)})):(n.classList.remove("panning"),o.a.animateReset(n))}))}if(Array.isArray(e.action))e.action.forEach((function(t){var e=g(t,i.i(s.a)(n,c));e&&n.appendChild(e)}));else if("object"===a(e.action)){var u=g(e.action,i.i(s.a)(n,c));u&&n.appendChild(u)}return n},f=function(t,e){if(t.icon){var i=document.createElement("i");switch(i.setAttribute("aria-hidden","true"),t.iconPack){case"fontawesome":i.classList.add("fa");var n=t.icon.name?t.icon.name:t.icon;n.includes("fa-")?i.classList.add(n.trim()):i.classList.add("fa-"+n.trim());break;case"mdi":i.classList.add("mdi");var r=t.icon.name?t.icon.name:t.icon;r.includes("mdi-")?i.classList.add(r.trim()):i.classList.add("mdi-"+r.trim());break;case"custom-class":var o=t.icon.name?t.icon.name:t.icon;"string"==typeof o?o.split(" ").forEach((function(t){i.classList.add(t)})):Array.isArray(o)&&o.forEach((function(t){i.classList.add(t.trim())}));break;case"callback":var s=t.icon&&t.icon instanceof Function?t.icon:null;s&&(i=s(i));break;default:i.classList.add("material-icons"),i.textContent=t.icon.name?t.icon.name:t.icon}t.icon.after&&i.classList.add("after"),p(t,i,e)}},p=function(t,e,i){t.icon&&(t.icon.after&&t.icon.name?i.appendChild(e):(t.icon.name,i.insertBefore(e,i.firstChild)))},g=function(t,e){if(!t)return null;var i=document.createElement("a");if(i.classList.add("action"),i.classList.add("ripple"),t.text&&(i.text=t.text),t.href&&(i.href=t.href),t.target&&(i.target=t.target),t.icon){i.classList.add("icon");var n=document.createElement("i");switch(h.iconPack){case"fontawesome":n.classList.add("fa"),t.icon.includes("fa-")?n.classList.add(t.icon.trim()):n.classList.add("fa-"+t.icon.trim());break;case"mdi":n.classList.add("mdi"),t.icon.includes("mdi-")?n.classList.add(t.icon.trim()):n.classList.add("mdi-"+t.icon.trim());break;case"custom-class":"string"==typeof t.icon?t.icon.split(" ").forEach((function(t){i.classList.add(t)})):Array.isArray(t.icon)&&t.icon.forEach((function(t){i.classList.add(t.trim())}));break;default:n.classList.add("material-icons"),n.textContent=t.icon}i.appendChild(n)}return t.class&&("string"==typeof t.class?t.class.split(" ").forEach((function(t){i.classList.add(t)})):Array.isArray(t.class)&&t.class.forEach((function(t){i.classList.add(t.trim())}))),t.push&&i.addEventListener("click",(function(i){i.preventDefault(),h.router?(h.router.push(t.push),t.push.dontClose||e.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),t.onClick&&"function"==typeof t.onClick&&i.addEventListener("click",(function(i){t.onClick&&(i.preventDefault(),t.onClick(i,e))})),i};e.a=function(t,e,n){c=t,n=u(n);var r=c.container;n.containerClass.unshift("toasted-container"),r.className!==n.containerClass.join(" ")&&(r.className="",n.containerClass.forEach((function(t){r.classList.add(t)})));var a=d(e,n);e&&r.appendChild(a),a.style.opacity=0,o.a.animateIn(a);var l=n.duration,h=void 0;if(null!==l){var f=function(){return setInterval((function(){null===a.parentNode&&window.clearInterval(h),a.classList.contains("panning")||(l-=20),l<=0&&(o.a.animateOut(a,(function(){"function"==typeof n.onComplete&&n.onComplete(),a.parentNode&&c.remove(a)})),window.clearInterval(h))}),20)};h=f(),n.keepOnHover&&(a.addEventListener("mouseover",(function(){window.clearInterval(h)})),a.addEventListener("mouseout",(function(){h=f()})))}return i.i(s.a)(a,c)}},function(t,e,i){e=t.exports=i(10)(),e.push([t.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var i=this[e];i[2]?t.push("@media "+i[2]+"{"+i[1]+"}"):t.push(i[1])}return t.join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(t,e,i){"use strict";function n(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var i=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r)for(var o=Object.keys(Object(r)),s=0,a=o.length;s<a;s++){var l=o[s],h=Object.getOwnPropertyDescriptor(r,l);void 0!==h&&h.enumerable&&(i[l]=r[l])}}return i}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:n})}t.exports={assign:n,polyfill:r}},function(t,e,i){var n;!function(r,o,s,a){"use strict";function l(t,e,i){return setTimeout(f(t,i),e)}function h(t,e,i){return!!Array.isArray(t)&&(c(t,i[e],i),!0)}function c(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function u(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,n,i),t.apply(this,arguments)}}function d(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&pt(n,i)}function f(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==vt?t.apply(e&&e[0]||a,e):t}function g(t,e){return t===a?e:t}function m(t,e,i){c(w(e),(function(e){t.addEventListener(e,i,!1)}))}function v(t,e,i){c(w(e),(function(e){t.removeEventListener(e,i,!1)}))}function b(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function w(t){return t.trim().split(/\s+/g)}function C(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function A(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];C(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function M(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<gt.length;){if(i=gt[o],(n=i?i+r:e)in t)return n;o++}return a}function x(){return At++}function _(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function S(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){p(t.options.enable,[t])&&i.handler(e)},this.init()}function k(t){var e=t.options.inputClass;return new(e||(_t?H:St?F:xt?K:$))(t,E)}function E(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&Et&&n-r==0,s=e&(Rt|Ot)&&n-r==0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,T(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function T(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=j(e)),r>1&&!i.firstMultiple?i.firstMultiple=j(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=N(n);e.timeStamp=wt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Z(a,l),e.distance=D(a,l),R(i,e),e.offsetDirection=B(e.deltaX,e.deltaY);var h=L(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=yt(h.x)>yt(h.y)?h.x:h.y,e.scale=s?W(s.pointers,n):1,e.rotation=s?P(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,O(i,e);var c=t.element;b(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function R(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Et&&o.eventType!==Rt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function O(t,e){var i,n,r,o,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=Ot&&(l>kt||s.velocity===a)){var h=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,u=L(l,h,c);n=u.x,r=u.y,i=yt(u.x)>yt(u.y)?u.x:u.y,o=B(h,c),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}function j(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:bt(t.pointers[i].clientX),clientY:bt(t.pointers[i].clientY)},i++;return{timeStamp:wt(),pointers:e,center:N(e),deltaX:t.deltaX,deltaY:t.deltaY}}function N(t){var e=t.length;if(1===e)return{x:bt(t[0].clientX),y:bt(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:bt(i/e),y:bt(n/e)}}function L(t,e,i){return{x:e/t||0,y:i/t||0}}function B(t,e){return t===e?jt:yt(t)>=yt(e)?t<0?Nt:Lt:e<0?Bt:Dt}function D(t,e,i){i||(i=$t);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function Z(t,e,i){i||(i=$t);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function P(t,e){return Z(e[1],e[0],Ht)+Z(t[1],t[0],Ht)}function W(t,e){return D(e[0],e[1],Ht)/D(t[0],t[1],Ht)}function $(){this.evEl=Gt,this.evWin=Ft,this.pressed=!1,S.apply(this,arguments)}function H(){this.evEl=Yt,this.evWin=Ut,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function z(){this.evTarget=Jt,this.evWin=Qt,this.started=!1,S.apply(this,arguments)}function G(t,e){var i=I(t.touches),n=I(t.changedTouches);return e&(Rt|Ot)&&(i=A(i.concat(n),"identifier",!0)),[i,n]}function F(){this.evTarget=te,this.targetIds={},S.apply(this,arguments)}function V(t,e){var i=I(t.touches),n=this.targetIds;if(e&(Et|Tt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,s=I(t.changedTouches),a=[],l=this.target;if(o=i.filter((function(t){return b(t.target,l)})),e===Et)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;for(r=0;r<s.length;)n[s[r].identifier]&&a.push(s[r]),e&(Rt|Ot)&&delete n[s[r].identifier],r++;return a.length?[A(o.concat(a),"identifier",!0),a]:void 0}function K(){S.apply(this,arguments);var t=f(this.handler,this);this.touch=new F(this.manager,t),this.mouse=new $(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Y(t,e){t&Et?(this.primaryTouch=e.changedPointers[0].identifier,U.call(this,e)):t&(Rt|Ot)&&U.call(this,e)}function U(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches,r=function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)};setTimeout(r,ee)}}function X(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),s=Math.abs(i-r.y);if(o<=ie&&s<=ie)return!0}return!1}function J(t,e){this.manager=t,this.set(e)}function Q(t){if(y(t,ae))return ae;var e=y(t,le),i=y(t,he);return e&&i?ae:e||i?e?le:he:y(t,se)?se:oe}function q(t){this.options=pt({},this.defaults,t||{}),this.id=x(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=ue,this.simultaneous={},this.requireFail=[]}function tt(t){return t&me?"cancel":t&pe?"end":t&fe?"move":t&de?"start":""}function et(t){return t==Dt?"down":t==Bt?"up":t==Nt?"left":t==Lt?"right":""}function it(t,e){var i=e.manager;return i?i.get(t):t}function nt(){q.apply(this,arguments)}function rt(){nt.apply(this,arguments),this.pX=null,this.pY=null}function ot(){nt.apply(this,arguments)}function st(){q.apply(this,arguments),this._timer=null,this._input=null}function at(){nt.apply(this,arguments)}function lt(){nt.apply(this,arguments)}function ht(){q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ct(t,e){return e=e||{},e.recognizers=g(e.recognizers,ct.defaults.preset),new ut(t,e)}function ut(t,e){this.options=pt({},ct.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=k(this),this.touchAction=new J(this,this.options.touchAction),dt(this,!0),c(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function dt(t,e){var i,n=t.element;n.style&&(c(t.options.cssProps,(function(r,o){i=M(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}function ft(t,e){var i=o.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}var pt,gt=["","webkit","Moz","MS","ms","o"],mt=o.createElement("div"),vt="function",bt=Math.round,yt=Math.abs,wt=Date.now;pt="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var Ct=u((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===a)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),It=u((function(t,e){return Ct(t,e,!0)}),"merge","Use `assign`."),At=1,Mt=/mobile|tablet|ip(ad|hone|od)|android/i,xt="ontouchstart"in r,_t=M(r,"PointerEvent")!==a,St=xt&&Mt.test(navigator.userAgent),kt=25,Et=1,Tt=2,Rt=4,Ot=8,jt=1,Nt=2,Lt=4,Bt=8,Dt=16,Zt=Nt|Lt,Pt=Bt|Dt,Wt=Zt|Pt,$t=["x","y"],Ht=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(_(this.element),this.evWin,this.domHandler)}};var zt={mousedown:Et,mousemove:Tt,mouseup:Rt},Gt="mousedown",Ft="mousemove mouseup";d($,S,{handler:function(t){var e=zt[t.type];e&Et&&0===t.button&&(this.pressed=!0),e&Tt&&1!==t.which&&(e=Rt),this.pressed&&(e&Rt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Vt={pointerdown:Et,pointermove:Tt,pointerup:Rt,pointercancel:Ot,pointerout:Ot},Kt={2:"touch",3:"pen",4:"mouse",5:"kinect"},Yt="pointerdown",Ut="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Yt="MSPointerDown",Ut="MSPointerMove MSPointerUp MSPointerCancel"),d(H,S,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Vt[n],o=Kt[t.pointerType]||t.pointerType,s="touch"==o,a=C(e,t.pointerId,"pointerId");r&Et&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(Rt|Ot)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))}});var Xt={touchstart:Et,touchmove:Tt,touchend:Rt,touchcancel:Ot},Jt="touchstart",Qt="touchstart touchmove touchend touchcancel";d(z,S,{handler:function(t){var e=Xt[t.type];if(e===Et&&(this.started=!0),this.started){var i=G.call(this,t,e);e&(Rt|Ot)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}}});var qt={touchstart:Et,touchmove:Tt,touchend:Rt,touchcancel:Ot},te="touchstart touchmove touchend touchcancel";d(F,S,{handler:function(t){var e=qt[t.type],i=V.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ie=25;d(K,S,{handler:function(t,e,i){var n="touch"==i.pointerType,r="mouse"==i.pointerType;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)Y.call(this,e,i);else if(r&&X.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ne=M(mt.style,"touchAction"),re=ne!==a,oe="auto",se="manipulation",ae="none",le="pan-x",he="pan-y",ce=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){t[i]=!e||r.CSS.supports("touch-action",i)})),t}();J.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&ce[t]&&(this.manager.element.style[ne]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,(function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),Q(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,r=y(n,ae)&&!ce[ae],o=y(n,he)&&!ce[he],s=y(n,le)&&!ce[le];if(r){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}return s&&o?void 0:r||o&&i&Zt||s&&i&Pt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ue=1,de=2,fe=4,pe=8,ge=pe,me=16;q.prototype={defaults:{},set:function(t){return pt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(h(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=it(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return h(t,"dropRecognizeWith",this)||(t=it(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(h(t,"requireFailure",this))return this;var e=this.requireFail;return t=it(t,this),-1===C(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this))return this;t=it(t,this);var e=C(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n<pe&&e(i.options.event+tt(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=pe&&e(i.options.event+tt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|ue)))return!1;t++}return!0},recognize:function(t){var e=pt({},t);if(!p(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ge|me|32)&&(this.state=ue),this.state=this.process(e),this.state&(de|fe|pe|me)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},d(nt,q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(de|fe),r=this.attrTest(t);return n&&(i&Ot||!r)?e|me:n||r?i&Rt?e|pe:e&de?e|fe:de:32}}),d(rt,nt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Zt&&e.push(he),t&Pt&&e.push(le),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Zt?(r=0===o?jt:o<0?Nt:Lt,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===s?jt:s<0?Bt:Dt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return nt.prototype.attrTest.call(this,t)&&(this.state&de||!(this.state&de)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(ot,nt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&de)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(st,q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Rt|Ot)&&!r)this.reset();else if(t.eventType&Et)this.reset(),this._timer=l((function(){this.state=ge,this.tryEmit()}),e.time,this);else if(t.eventType&Rt)return ge;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ge&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=wt(),this.manager.emit(this.options.event,this._input)))}}),d(at,nt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&de)}}),d(lt,nt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Zt|Pt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Zt|Pt)?e=t.overallVelocity:i&Zt?e=t.overallVelocityX:i&Pt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&yt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(ht,q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&Et&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=Rt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||D(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=ge,this.tryEmit()}),e.interval,this),de):ge}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ge&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ct.VERSION="2.0.7",ct.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[at,{enable:!1}],[ot,{enable:!1},["rotate"]],[lt,{direction:Zt}],[rt,{direction:Zt},["swipe"]],[ht],[ht,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ut.prototype={set:function(t){return pt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ge)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(de|fe|pe)&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof q)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(h(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(h(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=C(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var i=this.handlers;return c(w(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==a){var i=this.handlers;return c(w(t),(function(t){e?i[t]&&i[t].splice(C(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&ft(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&dt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},pt(ct,{INPUT_START:Et,INPUT_MOVE:Tt,INPUT_END:Rt,INPUT_CANCEL:Ot,STATE_POSSIBLE:ue,STATE_BEGAN:de,STATE_CHANGED:fe,STATE_ENDED:pe,STATE_RECOGNIZED:ge,STATE_CANCELLED:me,STATE_FAILED:32,DIRECTION_NONE:jt,DIRECTION_LEFT:Nt,DIRECTION_RIGHT:Lt,DIRECTION_UP:Bt,DIRECTION_DOWN:Dt,DIRECTION_HORIZONTAL:Zt,DIRECTION_VERTICAL:Pt,DIRECTION_ALL:Wt,Manager:ut,Input:S,TouchAction:J,TouchInput:F,MouseInput:$,PointerEventInput:H,TouchMouseInput:K,SingleTouchInput:z,Recognizer:q,AttrRecognizer:nt,Tap:ht,Pan:rt,Swipe:lt,Pinch:ot,Rotate:at,Press:st,on:m,off:v,each:c,merge:It,extend:Ct,assign:pt,inherit:d,bindFn:f,prefixed:M}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ct,(n=function(){return ct}.call(e,i,e,t))!==a&&(t.exports=n)}(window,document)},function(t,e){t.exports=function(t,e,i){for(var n=(2<<Math.log(e.length-1)/Math.LN2)-1,r=-~(1.6*n*i/e.length),o="";;)for(var s=t(r),a=r;a--;)if(o+=e[s[a]&n]||"",o.length===+i)return o}},function(t,e,i){"use strict";function n(t){var e="",i=Math.floor(.001*(Date.now()-a));return i===o?r++:(r=0,o=i),e+=s(l),e+=s(t),r>0&&(e+=s(r)),e+s(i)}var r,o,s=i(15),a=(i(0),1567752802062),l=7;t.exports=n},function(t,e,i){"use strict";function n(t){for(var e,i=0,n="";!e;)n+=s(o,r.get(),1),e=t<Math.pow(16,i+1),i++;return n}var r=i(0),o=i(18),s=i(13);t.exports=n},function(t,e,i){"use strict";function n(e){return a.seed(e),t.exports}function r(e){return c=e,t.exports}function o(t){return void 0!==t&&a.characters(t),a.shuffled()}function s(){return l(c)}var a=i(0),l=i(14),h=i(17),c=i(20)||0;t.exports=s,t.exports.generate=s,t.exports.seed=n,t.exports.worker=r,t.exports.characters=o,t.exports.isValid=h},function(t,e,i){"use strict";function n(t){return!(!t||"string"!=typeof t||t.length<6)&&!new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t)}var r=i(0);t.exports=n},function(t,e,i){"use strict";var n,r="object"==typeof window&&(window.crypto||window.msCrypto);n=r&&r.getRandomValues?function(t){return r.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],i=0;i<t;i++)e.push(Math.floor(256*Math.random()));return e},t.exports=n},function(t,e,i){"use strict";function n(){return(o=(9301*o+49297)%233280)/233280}function r(t){o=t}var o=1;t.exports={nextValue:n,seed:r}},function(t,e,i){"use strict";t.exports=0},function(t,e){t.exports=function(t,e,i,n){var r,o=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,o=t.default);var a="function"==typeof o?o.options:o;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),i&&(a._scopeId=i),n){var l=Object.create(a.computed||null);Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}})),a.computed=l}return{esModule:r,exports:o,options:a}}},function(t,e,i){var n=i(9);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),i(23)("df0682cc",n,!0,{})},function(t,e,i){function n(t){for(var e=0;e<t.length;e++){var i=t[e],n=c[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(o(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(r=0;r<i.parts.length;r++)s.push(o(i.parts[r]));c[i.id]={id:i.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,i,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(p)return g;n.parentNode.removeChild(n)}if(b){var o=f++;n=d||(d=r()),e=s.bind(null,n,o,!1),i=s.bind(null,n,o,!0)}else n=r(),e=a.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}function s(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute(v,e.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h=i(24),c={},u=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,p=!1,g=function(){},m=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,i,r){p=i,m=r||{};var o=h(t,e);return n(o),function(e){for(var i=[],r=0;r<o.length;r++){var s=o[r],a=c[s.id];a.refs--,i.push(a)}e?(o=h(t,e),n(o)):o=[];for(r=0;r<i.length;r++){a=i[r];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete c[a.id]}}}};var y=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var i=[],n={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],l=o[2],h=o[3],c={id:t+":"+r,css:a,media:l,sourceMap:h};n[s]?n[s].parts.push(c):i.push(n[s]={id:s,parts:[c]})}return i}},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i}])}))},a958:function(t,e,i){(function(e){var n=i("399f"),r=i("11dc");function o(t){var e=s(t),i=e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed();return{blinder:i,unblinder:e.invm(t.modulus)}}function s(t){var e,i=t.modulus.byteLength();do{e=new n(r(i))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,i){var r=o(i),s=i.modulus.byteLength(),a=new n(t).mul(r.blinder).umod(i.modulus),l=a.toRed(n.mont(i.prime1)),h=a.toRed(n.mont(i.prime2)),c=i.coefficient,u=i.prime1,d=i.prime2,f=l.redPow(i.exponent1).fromRed(),p=h.redPow(i.exponent2).fromRed(),g=f.isub(p).imul(c).umod(u).imul(d);return p.iadd(g).imul(r.unblinder).umod(i.modulus).toArrayLike(e,"be",s)}a.getr=s,t.exports=a}).call(this,i("b639").Buffer)},a994:function(t,e,i){var n=i("7d1f"),r=i("32f4"),o=i("ec69");function s(t){return n(t,o,r)}t.exports=s},aa56:function(t,e,i){"use strict";var n=i("c3c0"),r=n.rotr32;function o(t,e,i,n){return 0===t?s(e,i,n):1===t||3===t?l(e,i,n):2===t?a(e,i,n):void 0}function s(t,e,i){return t&e^~t&i}function a(t,e,i){return t&e^t&i^e&i}function l(t,e,i){return t^e^i}function h(t){return r(t,2)^r(t,13)^r(t,22)}function c(t){return r(t,6)^r(t,11)^r(t,25)}function u(t){return r(t,7)^r(t,18)^t>>>3}function d(t){return r(t,17)^r(t,19)^t>>>10}e.ft_1=o,e.ch32=s,e.maj32=a,e.p32=l,e.s0_256=h,e.s1_256=c,e.g0_256=u,e.g1_256=d},ac41:function(t,e){function i(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}t.exports=i},ac4f:function(t,e,i){"use strict";var n;function r(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=i("d113").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function h(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,s){s=r(s);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=i("42a7")),n(t,{readable:e,writable:o},(function(t){if(t)return s(t);l=!0,s()}));var c=!1;return function(e){if(!l&&!c)return c=!0,h(t)?t.abort():"function"===typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function u(t){t()}function d(t,e){return t.pipe(e)}function f(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n,r=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,i){var s=i<e.length-1,a=i>0;return c(t,s,a,(function(t){n||(n=t),t&&o.forEach(u),s||(o.forEach(u),r(n))}))}));return e.reduce(d)}t.exports=p},ad25:function(t,e,i){var n=i("2aee"),r=i("11dc"),o=i("98e6"),s=i("f460"),a=i("83d5"),l=i("0106"),h=i("5291"),c=i("a958"),u=i("8707").Buffer;function d(t,e){var i=t.modulus.byteLength(),n=e.length,h=o("sha1").update(u.alloc(0)).digest(),c=h.length,d=2*c;if(n>i-d-2)throw new Error("message too long");var f=u.alloc(i-n-d-2),p=i-c-1,g=r(c),m=a(u.concat([h,f,u.alloc(1,1),e],p),s(g,p)),v=a(g,s(m,c));return new l(u.concat([u.alloc(1),v,m],i))}function f(t,e,i){var n,r=e.length,o=t.modulus.byteLength();if(r>o-11)throw new Error("message too long");return n=i?u.alloc(o-r-3,255):p(o-r-3),new l(u.concat([u.from([0,i?1:2]),n,u.alloc(1),e],o))}function p(t){var e,i=u.allocUnsafe(t),n=0,o=r(2*t),s=0;while(n<t)s===o.length&&(o=r(2*t),s=0),e=o[s++],e&&(i[n++]=e);return i}t.exports=function(t,e,i){var r;r=t.padding?t.padding:i?1:4;var o,s=n(t);if(4===r)o=d(s,e);else if(1===r)o=f(s,e,i);else{if(3!==r)throw new Error("unknown padding");if(o=new l(e),o.cmp(s.modulus)>=0)throw new Error("data too long for modulus")}return i?c(o,s):h(o,s)}},ad71:function(t,e,i){"use strict";(function(e,n){var r=i("966d");t.exports=I;var o,s=i("e3db");I.ReadableState=C;i("faa1").EventEmitter;var a=function(t,e){return t.listeners(e).length},l=i("429b"),h=i("8707").Buffer,c=e.Uint8Array||function(){};function u(t){return h.from(t)}function d(t){return h.isBuffer(t)||t instanceof c}var f=Object.create(i("3a7c"));f.inherits=i("3fb5");var p=i(3),g=void 0;g=p&&p.debuglog?p.debuglog("stream"):function(){};var m,v=i("5e1a"),b=i("4681");f.inherits(I,l);var y=["error","close","destroy","pause","resume"];function w(t,e,i){if("function"===typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}function C(t,e){o=o||i("b19a"),t=t||{};var n=e instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||(m=i("7d72").StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function I(t){if(o=o||i("b19a"),!(this instanceof I))return new I(t);this._readableState=new C(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function A(t,e,i,n,r){var o,s=t._readableState;null===e?(s.reading=!1,T(t,s)):(r||(o=x(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=u(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):M(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?M(t,s,e,!1):j(t,s)):M(t,s,e,!1))):n||(s.reading=!1));return _(s)}function M(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&R(t)),j(t,e)}function x(t,e){var i;return d(e)||"string"===typeof e||void 0===e||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}function _(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}Object.defineProperty(I.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),I.prototype.destroy=b.destroy,I.prototype._undestroy=b.undestroy,I.prototype._destroy=function(t,e){this.push(null),e(t)},I.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=h.from(t,e),e=""),i=!0),A(this,t,e,!1,i)},I.prototype.unshift=function(t){return A(this,t,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(t){return m||(m=i("7d72").StringDecoder),this._readableState.decoder=new m(t),this._readableState.encoding=t,this};var S=8388608;function k(t){return t>=S?t=S:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=k(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function T(t,e){if(!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,R(t)}}function R(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(O,t):O(t))}function O(t){g("emit readable"),t.emit("readable"),P(t)}function j(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(N,t,e))}function N(t,e){var i=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark){if(g("maybeReadMore read 0"),t.read(0),i===e.length)break;i=e.length}e.readingMore=!1}function L(t){return function(){var e=t._readableState;g("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,P(t))}}function B(t){g("readable nexttick read 0"),t.read(0)}function D(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(Z,t,e))}function Z(t,e){e.reading||(g("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;g("flow",e.flowing);while(e.flowing&&null!==t.read());}function W(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=$(t,e.buffer,e.decoder),i);var i}function $(t,e,i){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():i?H(t,e):z(t,e),n}function H(t,e){var i=e.head,n=1,r=i.data;t-=r.length;while(i=i.next){var o=i.data,s=t>o.length?o.length:t;if(s===o.length?r+=o:r+=o.slice(0,t),t-=s,0===t){s===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(s));break}++n}return e.length-=n,r}function z(t,e){var i=h.allocUnsafe(t),n=e.head,r=1;n.data.copy(i),t-=n.data.length;while(n=n.next){var o=n.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),t-=s,0===t){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function G(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(F,e,t))}function F(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function V(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}I.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return g("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):R(this),null;if(t=E(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var n,r=e.needReadable;return g("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,g("length less than watermark",r)),e.ended||e.reading?(r=!1,g("reading or ended",r)):r&&(g("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(i,e))),n=t>0?W(t,e):null,null===n?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&G(this)),null!==n&&this.emit("data",n),n},I.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},I.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t);break}o.pipesCount+=1,g("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,l=s?c:C;function h(t,e){g("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function c(){g("onend"),t.end()}o.endEmitted?r.nextTick(l):i.once("end",l),t.on("unpipe",h);var u=L(i);t.on("drain",u);var d=!1;function f(){g("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),t.removeListener("drain",u),t.removeListener("error",v),t.removeListener("unpipe",h),i.removeListener("end",c),i.removeListener("end",C),i.removeListener("data",m),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||u()}var p=!1;function m(e){g("ondata"),p=!1;var n=t.write(e);!1!==n||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==V(o.pipes,t))&&!d&&(g("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,p=!0),i.pause())}function v(e){g("onerror",e),C(),t.removeListener("error",v),0===a(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",y),C()}function y(){g("onfinish"),t.removeListener("close",b),C()}function C(){g("unpipe"),i.unpipe(t)}return i.on("data",m),w(t,"error",v),t.once("close",b),t.once("finish",y),t.emit("pipe",i),o.flowing||(g("pipe resume"),i.resume()),t},I.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,i);return this}var s=V(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},I.prototype.on=function(t,e){var i=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&R(this):r.nextTick(B,this))}return i},I.prototype.addListener=I.prototype.on,I.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!0,D(this,t)),this},I.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},I.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(g("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){if(g("wrapped data"),i.decoder&&(r=i.decoder.write(r)),(!i.objectMode||null!==r&&void 0!==r)&&(i.objectMode||r&&r.length)){var o=e.push(r);o||(n=!0,t.pause())}})),t)void 0===this[r]&&"function"===typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){g("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),I._fromList=W}).call(this,i("c8ba"),i("4362"))},ae84:function(t,e,i){var n=i("8707").Buffer,r=i("f576");function o(t,e,i,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");var s=i/8,a=n.alloc(s),l=n.alloc(o||0),h=n.alloc(0);while(s>0||o>0){var c=new r;c.update(h),c.update(t),e&&c.update(e),h=c.digest();var u=0;if(s>0){var d=a.length-s;u=Math.min(s,h.length),h.copy(a,d,0,u),s-=u}if(u<h.length&&o>0){var f=l.length-o,p=Math.min(o,h.length-u);h.copy(l,f,u,u+p),o-=p}}return h.fill(0),{key:a,iv:l}}t.exports=o},b047:function(t,e){function i(t){return function(e){return t(e)}}t.exports=i},b19a:function(t,e,i){"use strict";var n=i("966d"),r=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=u;var o=Object.create(i("3a7c"));o.inherits=i("3fb5");var s=i("ad71"),a=i("dc14");o.inherits(u,s);for(var l=r(a.prototype),h=0;h<l.length;h++){var c=l[h];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(t){if(!(this instanceof u))return new u(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},b1e5:function(t,e,i){var n=i("a994"),r=1,o=Object.prototype,s=o.hasOwnProperty;function a(t,e,i,o,a,l){var h=i&r,c=n(t),u=c.length,d=n(e),f=d.length;if(u!=f&&!h)return!1;var p=u;while(p--){var g=c[p];if(!(h?g in e:s.call(e,g)))return!1}var m=l.get(t),v=l.get(e);if(m&&v)return m==e&&v==t;var b=!0;l.set(t,e),l.set(e,t);var y=h;while(++p<u){g=c[p];var w=t[g],C=e[g];if(o)var I=h?o(C,w,g,e,t,l):o(w,C,g,t,e,l);if(!(void 0===I?w===C||a(w,C,i,o,l):I)){b=!1;break}y||(y="constructor"==g)}if(b&&!y){var A=t.constructor,M=e.constructor;A==M||!("constructor"in t)||!("constructor"in e)||"function"==typeof A&&A instanceof A&&"function"==typeof M&&M instanceof M||(b=!1)}return l["delete"](t),l["delete"](e),b}t.exports=a},b218:function(t,e){var i=9007199254740991;function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}t.exports=n},b4c0:function(t,e,i){var n=i("cb5a");function r(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}t.exports=r},b4e8:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},b50d:function(t,e,i){"use strict";var n=i("c532"),r=i("467f"),o=i("7aac"),s=i("30b5"),a=i("83b9"),l=i("c345"),h=i("3934"),c=i("2d83");t.exports=function(t){return new Promise((function(e,i){var u=t.data,d=t.headers;n.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var m=a(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),s(m,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?f.response:f.responseText,s={data:o,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};r(e,i,s),f=null}},f.onabort=function(){f&&(i(c("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){i(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(c(e,t,"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||h(m))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(d[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&n.forEach(d,(function(t,e){"undefined"===typeof u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),i(t),f=null)})),u||(u=null),f.send(u)}))}},b525:function(t,e,i){"use strict";var n=i("c3c0"),r=i("edc9"),o=i("da3e"),s=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,h=n.shr64_lo,c=n.sum64,u=n.sum64_hi,d=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,v=r.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 y(){if(!(this instanceof y))return new y;v.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(t,e,i,n,r){var o=t&i^~t&r;return o<0&&(o+=4294967296),o}function C(t,e,i,n,r,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function I(t,e,i,n,r){var o=t&i^t&r^i&r;return o<0&&(o+=4294967296),o}function A(t,e,i,n,r,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function M(t,e){var i=s(t,e,28),n=s(e,t,2),r=s(e,t,7),o=i^n^r;return o<0&&(o+=4294967296),o}function x(t,e){var i=a(t,e,28),n=a(e,t,2),r=a(e,t,7),o=i^n^r;return o<0&&(o+=4294967296),o}function _(t,e){var i=s(t,e,14),n=s(t,e,18),r=s(e,t,9),o=i^n^r;return o<0&&(o+=4294967296),o}function S(t,e){var i=a(t,e,14),n=a(t,e,18),r=a(e,t,9),o=i^n^r;return o<0&&(o+=4294967296),o}function k(t,e){var i=s(t,e,1),n=s(t,e,8),r=l(t,e,7),o=i^n^r;return o<0&&(o+=4294967296),o}function E(t,e){var i=a(t,e,1),n=a(t,e,8),r=h(t,e,7),o=i^n^r;return o<0&&(o+=4294967296),o}function T(t,e){var i=s(t,e,19),n=s(e,t,29),r=l(t,e,6),o=i^n^r;return o<0&&(o+=4294967296),o}function R(t,e){var i=a(t,e,19),n=a(e,t,29),r=h(t,e,6),o=i^n^r;return o<0&&(o+=4294967296),o}n.inherits(y,v),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var i=this.W,n=0;n<32;n++)i[n]=t[e+n];for(;n<i.length;n+=2){var r=T(i[n-4],i[n-3]),o=R(i[n-4],i[n-3]),s=i[n-14],a=i[n-13],l=k(i[n-30],i[n-29]),h=E(i[n-30],i[n-29]),c=i[n-32],u=i[n-31];i[n]=f(r,o,s,a,l,h,c,u),i[n+1]=p(r,o,s,a,l,h,c,u)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var i=this.W,n=this.h[0],r=this.h[1],s=this.h[2],a=this.h[3],l=this.h[4],h=this.h[5],f=this.h[6],p=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],k=this.h[11],E=this.h[12],T=this.h[13],R=this.h[14],O=this.h[15];o(this.k.length===i.length);for(var j=0;j<i.length;j+=2){var N=R,L=O,B=_(v,b),D=S(v,b),Z=w(v,b,y,k,E,T),P=C(v,b,y,k,E,T),W=this.k[j],$=this.k[j+1],H=i[j],z=i[j+1],G=g(N,L,B,D,Z,P,W,$,H,z),F=m(N,L,B,D,Z,P,W,$,H,z);N=M(n,r),L=x(n,r),B=I(n,r,s,a,l,h),D=A(n,r,s,a,l,h);var V=u(N,L,B,D),K=d(N,L,B,D);R=E,O=T,E=y,T=k,y=v,k=b,v=u(f,p,G,F),b=d(p,p,G,F),f=l,p=h,l=s,h=a,s=n,a=r,n=u(G,F,V,K),r=d(G,F,V,K)}c(this.h,0,n,r),c(this.h,2,s,a),c(this.h,4,l,h),c(this.h,6,f,p),c(this.h,8,v,b),c(this.h,10,y,k),c(this.h,12,E,T),c(this.h,14,R,O)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},b5a7:function(t,e,i){var n=i("0b07"),r=i("2b3e"),o=n(r,"DataView");t.exports=o},b5ca:function(t,e,i){"use strict";var n=i("b639").Buffer,r=i("3fb5"),o=i("93e6"),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],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function g(t,e,i,n,r,o,s,a){return p(t+(e^i^n)+o+s|0,a)+r|0}function m(t,e,i,n,r,o,s,a){return p(t+(e&i|~e&n)+o+s|0,a)+r|0}function v(t,e,i,n,r,o,s,a){return p(t+((e|~i)^n)+o+s|0,a)+r|0}function b(t,e,i,n,r,o,s,a){return p(t+(e&n|i&~n)+o+s|0,a)+r|0}function y(t,e,i,n,r,o,s,a){return p(t+(e^(i|~n))+o+s|0,a)+r|0}r(f,o),f.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,f=0|this._e,w=0|this._a,C=0|this._b,I=0|this._c,A=0|this._d,M=0|this._e,x=0;x<80;x+=1){var _,S;x<16?(_=g(i,n,r,o,f,t[a[x]],u[0],h[x]),S=y(w,C,I,A,M,t[l[x]],d[0],c[x])):x<32?(_=m(i,n,r,o,f,t[a[x]],u[1],h[x]),S=b(w,C,I,A,M,t[l[x]],d[1],c[x])):x<48?(_=v(i,n,r,o,f,t[a[x]],u[2],h[x]),S=v(w,C,I,A,M,t[l[x]],d[2],c[x])):x<64?(_=b(i,n,r,o,f,t[a[x]],u[3],h[x]),S=m(w,C,I,A,M,t[l[x]],d[3],c[x])):(_=y(i,n,r,o,f,t[a[x]],u[4],h[x]),S=g(w,C,I,A,M,t[l[x]],d[4],c[x])),i=f,f=o,o=p(r,10),r=n,n=_,w=M,M=A,A=p(I,10),I=C,C=S}var k=this._b+r+A|0;this._b=this._c+o+M|0,this._c=this._d+f+w|0,this._d=this._e+i+C|0,this._e=this._a+n+I|0,this._a=k},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},b639:function(t,e,i){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var n=i("1fb5"),r=i("9152"),o=i("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=h.prototype):(null===t&&(t=new h(e)),t.length=e),t}function h(t,e,i){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(t,e,i);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,i)}function c(t,e,i,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,i,n):"string"===typeof e?p(t,e,i):v(t,e)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,i,n){return u(e),e<=0?l(t,e):void 0!==i?"string"===typeof n?l(t,e).fill(i,n):l(t,e).fill(i):l(t,e)}function f(t,e){if(u(e),t=l(t,e<0?0:0|b(e)),!h.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function p(t,e,i){if("string"===typeof i&&""!==i||(i="utf8"),!h.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,i);t=l(t,n);var r=t.write(e,i);return r!==n&&(t=t.slice(0,r)),t}function g(t,e){var i=e.length<0?0:0|b(e.length);t=l(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function m(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),h.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=h.prototype):t=g(t,e),t}function v(t,e){if(h.isBuffer(e)){var i=0|b(e.length);return t=l(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),h.alloc(+t)}function w(t,e){if(h.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function C(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,i);case"utf8":case"utf-8":return O(this,e,i);case"ascii":return L(this,e,i);case"latin1":case"binary":return B(this,e,i);case"base64":return R(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function I(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function A(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:M(t,e,i,n,r);if("number"===typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):M(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function M(t,e,i,n,r){var o,s=1,a=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,i/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var c=-1;for(o=i;o<a;o++)if(h(t,o)===h(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(i+l>a&&(i=a-l),o=i;o>=0;o--){for(var u=!0,d=0;d<l;d++)if(h(t,o+d)!==h(e,d)){u=!1;break}if(u)return o}return-1}function x(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n),n>r&&(n=r)):n=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[i+s]=a}return s}function _(t,e,i,n){return tt(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return tt(J(e),t,i,n)}function k(t,e,i,n){return S(t,e,i,n)}function E(t,e,i,n){return tt(q(e),t,i,n)}function T(t,e,i,n){return tt(Q(e,t.length-i),t,i,n)}function R(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function O(t,e,i){i=Math.min(t.length,i);var n=[],r=e;while(r<i){var o,s,a,l,h=t[r],c=null,u=h>239?4:h>223?3:h>191?2:1;if(r+u<=i)switch(u){case 1:h<128&&(c=h);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&h)<<6|63&o,l>127&&(c=l));break;case 3:o=t[r+1],s=t[r+2],128===(192&o)&&128===(192&s)&&(l=(15&h)<<12|(63&o)<<6|63&s,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(l=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,u=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=u}return N(n)}e.Buffer=h,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,i){return c(null,t,e,i)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(t,e,i){return d(null,t,e,i)},h.allocUnsafe=function(t){return f(null,t)},h.allocUnsafeSlow=function(t){return f(null,t)},h.isBuffer=function(t){return!(null==t||!t._isBuffer)},h.compare=function(t,e){if(!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=h.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var s=t[i];if(!h.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r),r+=s.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)I(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)I(this,e,e+3),I(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)I(this,e,e+7),I(this,e+1,e+6),I(this,e+2,e+5),I(this,e+3,e+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):C.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},h.prototype.compare=function(t,e,i,n,r){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,s=i-e,a=Math.min(o,s),l=this.slice(n,r),c=t.slice(e,i),u=0;u<a;++u)if(l[u]!==c[u]){o=l[u],s=c[u];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},h.prototype.indexOf=function(t,e,i){return A(this,t,e,i,!0)},h.prototype.lastIndexOf=function(t,e,i){return A(this,t,e,i,!1)},h.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"===typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return x(this,t,e,i);case"utf8":case"utf-8":return _(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return k(this,t,e,i);case"base64":return E(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var i="",n=0;while(n<e)i+=String.fromCharCode.apply(String,t.slice(n,n+=j));return i}function L(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function B(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function D(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=U(t[o]);return r}function Z(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function P(t,e,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function W(t,e,i,n,r,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function $(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function H(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function G(t,e,i,n,o){return o||z(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function F(t,e,i,n,o){return o||z(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}h.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),h.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=h.prototype;else{var r=e-t;i=new h(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i},h.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return n},h.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);var n=this[t+--e],r=1;while(e>0&&(r*=256))n+=this[t+--e]*r;return n},h.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||P(t,e,this.length);var n=e,r=1,o=this[t+--n];while(n>0&&(r*=256))o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},h.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},h.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;W(this,t,e,i,r,0)}var o=1,s=0;this[e]=255&t;while(++s<i&&(o*=256))this[e+s]=t/o&255;return e+i},h.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;W(this,t,e,i,r,0)}var o=i-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+i},h.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);W(this,t,e,i,r-1,-r)}var o=0,s=1,a=0;this[e]=255&t;while(++o<i&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},h.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);W(this,t,e,i,r-1,-r)}var o=i-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},h.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||W(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,i){return G(this,t,e,!0,i)},h.prototype.writeFloatBE=function(t,e,i){return G(this,t,e,!1,i)},h.prototype.writeDoubleLE=function(t,e,i){return F(this,t,e,!0,i)},h.prototype.writeDoubleBE=function(t,e,i){return F(this,t,e,!1,i)},h.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,o=n-i;if(this===t&&i<e&&e<n)for(r=o-1;r>=0;--r)t[r+e]=this[r+i];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},h.prototype.fill=function(t,e,i,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,i=this.length):"string"===typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(o=e;o<i;++o)this[o]=t;else{var s=h.isBuffer(t)?t:X(new h(t,n).toString()),a=s.length;for(o=0;o<i-e;++o)this[o+e]=s[o%a]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function K(t){if(t=Y(t).replace(V,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],s=0;s<n;++s){if(i=t.charCodeAt(s),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function J(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function Q(t,e){for(var i,n,r,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;i=t.charCodeAt(s),n=i>>8,r=i%256,o.push(r),o.push(n)}return o}function q(t){return n.toByteArray(K(t))}function tt(t,e,i,n){for(var r=0;r<n;++r){if(r+i>=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("c8ba"))},b672:function(t,e,i){var n=i("8707").Buffer;function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=n.from(t,e));for(var i=this._block,r=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var l=s%r,h=Math.min(o-a,r-l),c=0;c<h;c++)i[l+c]=t[a+c];s+=h,a+=h,s%r===0&&this._update(i)}return this._len+=o,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,r=(i-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},b692:function(t,e,i){var n=i("39a9").Buffer,r=i("98e6"),o=i("34d5"),s=i("3fb5"),a=i("6fe7"),l=i("980c"),h=i("b4e8");function c(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new c(t)}function f(t){return new u(t)}Object.keys(h).forEach((function(t){h[t].id=n.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),s(c,o.Writable),c.prototype._write=function(t,e,i){this._hash.update(t),i()},c.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},c.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),n=a(i,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},s(u,o.Writable),u.prototype._write=function(t,e,i){this._hash.update(t),i()},u.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,i){"string"===typeof e&&(e=n.from(e,i)),this.end();var r=this._hash.digest();return l(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},b73f:function(t,e,i){"use strict";var n=i("80af"),r=i("f3a3"),o=r.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function l(t,e){var i=t[e.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var r=0,o=0,s=e.place;o<n;o++,s++)r<<=8,r|=t[s],r>>>=0;return!(r<=127)&&(e.place=s,r)}function h(t){var e=0,i=t.length-1;while(!t[e]&&!(128&t[e+1])&&e<i)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var i=1+(Math.log(e)/Math.LN2>>>3);t.push(128|i);while(--i)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=s,s.prototype._importDER=function(t,e){t=r.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var o=l(t,i);if(!1===o)return!1;if(o+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var s=l(t,i);if(!1===s)return!1;var h=t.slice(i.place,s+i.place);if(i.place+=s,2!==t[i.place++])return!1;var c=l(t,i);if(!1===c)return!1;if(t.length!==c+i.place)return!1;var u=t.slice(i.place,c+i.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new n(h),this.s=new n(u),this.recoveryParam=null,!0},s.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=h(e),i=h(i);while(!i[0]&&!(128&i[1]))i=i.slice(1);var n=[2];c(n,e.length),n=n.concat(e),n.push(2),c(n,i.length);var o=n.concat(i),s=[48];return c(s,o.length),s=s.concat(o),r.encode(s,t)}},b760:function(t,e,i){var n=i("872a"),r=i("9638");function o(t,e,i){(void 0!==i&&!r(t[e],i)||void 0===i&&!(e in t))&&n(t,e,i)}t.exports=o},b7d1:function(t,e,i){(function(e){function i(t,e){if(n("noDeprecation"))return t;var i=!1;function r(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}return r}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=i}).call(this,i("c8ba"))},b837:function(t,e,i){var n=i("3fb5"),r=i("4fd1"),o=i("b672"),s=i("8707").Buffer,a=new Array(160);function l(){this.init(),this._w=a,o.call(this,128,112)}n(l,r),l.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},l.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,i,n){t.writeInt32BE(e,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},b9a8:function(t,e,i){"use strict";var n=i("80af"),r=i("6aa2"),o=i("f3a3"),s=i("0cbb"),a=i("fdac"),l=o.assert,h=i("bb34"),c=i("b73f");function u(t){if(!(this instanceof u))return new u(t);"string"===typeof t&&(l(Object.prototype.hasOwnProperty.call(s,t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=u,u.prototype.keyPair=function(t){return new h(this,t)},u.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},u.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},u.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(e.generate(i));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return i>0&&(t=t.ushrn(i)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},u.prototype.sign=function(t,e,i,o){"object"===typeof i&&(o=i,i=null),o||(o={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),l=t.toArray("be",s),h=new r({hash:this.hash,entropy:a,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),u=this.n.sub(new n(1)),d=0;;d++){var f=o.k?o.k(d):new n(h.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(u)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var v=f.invm(this.n).mul(m.mul(e.getPrivate()).iadd(t));if(v=v.umod(this.n),0!==v.cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new c({r:m,s:v,recoveryParam:b})}}}}}},u.prototype.verify=function(t,e,i,r){t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r),e=new c(e,"hex");var o=e.r,s=e.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,l=s.invm(this.n),h=l.mul(t).umod(this.n),u=l.mul(o).umod(this.n);return this.curve._maxwellTrick?(a=this.g.jmulAdd(h,i.getPublic(),u),!a.isInfinity()&&a.eqXToP(o)):(a=this.g.mulAdd(h,i.getPublic(),u),!a.isInfinity()&&0===a.getX().umod(this.n).cmp(o))},u.prototype.recoverPubKey=function(t,e,i,r){l((3&i)===i,"The recovery param is more than two bits"),e=new c(e,r);var o=this.n,s=new n(t),a=e.r,h=e.s,u=1&i,d=i>>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),u):this.curve.pointFromX(a,u);var f=e.r.invm(o),p=o.sub(s).mul(f).umod(o),g=h.mul(f).umod(o);return this.g.mulAdd(p,a,g)},u.prototype.getKeyRecoveryParam=function(t,e,i,n){if(e=new c(e,n),null!==e.recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var o;try{o=this.recoverPubKey(t,e,r)}catch(t){continue}if(o.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},b9b5:function(t,e,i){"use strict";var n=i("9d8a").codes.ERR_INVALID_OPT_VALUE;function r(t,e,i){return null!=t.highWaterMark?t.highWaterMark:e?t[i]:null}function o(t,e,i,o){var s=r(e,o,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?i:"highWaterMark";throw new n(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},bac2:function(t,e,i){var n={ECB:i("0145"),CBC:i("c119"),CFB:i("3505"),CFB8:i("62c9"),CFB1:i("5239"),OFB:i("5165"),CTR:i("6ade"),GCM:i("6ade")},r=i("e85f");for(var o in r)r[o].module=n[r[o].mode];t.exports=r},bb34:function(t,e,i){"use strict";var n=i("80af"),r=i("f3a3"),o=r.assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,i){return e instanceof s?e:new s(t,{pub:e,pubEnc:i})},s.fromPrivate=function(t,e,i){return e instanceof s?e:new s(t,{priv:e,privEnc:i})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.validate()||o(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},bb44:function(t,e,i){"use strict";var n=i("c3c0"),r=i("edc9"),o=n.rotl32,s=n.sum32,a=n.sum32_3,l=n.sum32_4,h=r.BlockHash;function c(){if(!(this instanceof c))return new c;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,e,i,n){return t<=15?e^i^n:t<=31?e&i|~e&n:t<=47?(e|~i)^n:t<=63?e&n|i&~n:e^(i|~n)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,h),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var i=this.h[0],n=this.h[1],r=this.h[2],h=this.h[3],c=this.h[4],b=i,y=n,w=r,C=h,I=c,A=0;A<80;A++){var M=s(o(l(i,u(A,n,r,h),t[p[A]+e],d(A)),m[A]),c);i=c,c=h,h=o(r,10),r=n,n=M,M=s(o(l(b,u(79-A,y,w,C),t[g[A]+e],f(A)),v[A]),I),b=I,I=C,C=o(w,10),w=y,y=M}M=a(this.h[1],r,C),this.h[1]=a(this.h[2],h,I),this.h[2]=a(this.h[3],c,b),this.h[3]=a(this.h[4],i,y),this.h[4]=a(this.h[0],n,w),this.h[0]=M},c.prototype._digest=function(t){return"hex"===t?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],g=[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],m=[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],v=[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]},bbc0:function(t,e,i){var n=i("6044"),r="__lodash_hash_undefined__",o=Object.prototype,s=o.hasOwnProperty;function a(t){var e=this.__data__;if(n){var i=e[t];return i===r?void 0:i}return s.call(e,t)?e[t]:void 0}t.exports=a},bc12:function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(12).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},bc3a:function(t,e,i){t.exports=i("cee4")},bcb2:function(t,e,i){!function(e,i){t.exports=i()}("undefined"!=typeof self&&self,(function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./dist/",e(e.s=5)}([function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgd2lkdGg9IjI0MCIKICAgaGVpZ2h0PSIxNDQiCiAgIGlkPSJzdmc0MTM2IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlua3NjYXBlOnZlcnNpb249IjAuOTEgcjEzNzI1IgogICBzb2RpcG9kaTpkb2NuYW1lPSJqc29uZWRpdG9yLWljb25zLnN2ZyI+CiAgPHRpdGxlCiAgICAgaWQ9InRpdGxlNjUxMiI+SlNPTiBFZGl0b3IgSWNvbnM8L3RpdGxlPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTQxNDgiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgICAgPGRjOnRpdGxlPkpTT04gRWRpdG9yIEljb25zPC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczQxNDYiIC8+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIHBhZ2Vjb2xvcj0iI2ZmNjNmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxIgogICAgIG9iamVjdHRvbGVyYW5jZT0iMTAiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAiCiAgICAgZ3VpZGV0b2xlcmFuY2U9IjEwIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxOTIwIgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9IjEwMjYiCiAgICAgaWQ9Im5hbWVkdmlldzQxNDQiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6em9vbT0iNCIKICAgICBpbmtzY2FwZTpjeD0iMTMuMjI5MTgxIgogICAgIGlua3NjYXBlOmN5PSIxMTkuODI0MjkiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmc0MTM2IgogICAgIHNob3dndWlkZXM9ImZhbHNlIgogICAgIGJvcmRlcmxheWVyPSJmYWxzZSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0idHJ1ZSIKICAgICBzaG93Ym9yZGVyPSJ0cnVlIj4KICAgIDxpbmtzY2FwZTpncmlkCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBpZD0iZ3JpZDQ2NDAiCiAgICAgICBlbXBzcGFjaW5nPSIyNCIgLz4KICA8L3NvZGlwb2RpOm5hbWVkdmlldz4KICA8IS0tIENyZWF0ZWQgd2l0aCBTVkctZWRpdCAtIGh0dHA6Ly9zdmctZWRpdC5nb29nbGVjb2RlLmNvbS8gLS0+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIGlkPSJzdmdfMSIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSI0IgogICAgIHg9IjQiIC8+CiAgPHJlY3QKICAgICBpZD0ic3ZnXzEtNyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk5NSIKICAgICB4PSIyOC4wMDAwMDYiCiAgICAgc3R5bGU9ImZpbGw6I2VjM2YyOTtmaWxsLW9wYWNpdHk6MC45NDExNzY0NztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiCiAgICAgeD0iNTIuMDAwMDA0IgogICAgIHk9IjMuOTk5OTk1IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIGlkPSJyZWN0NDE2NSIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDE3NSIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk4NTIiCiAgICAgeD0iMTcyLjAwMDAyIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQxNzUtMyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk5NSIKICAgICB4PSIxOTYiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8ZwogICAgIGlkPSJnNDI5OSIKICAgICBzdHlsZT0ic3Ryb2tlOm5vbmUiPgogICAgPHJlY3QKICAgICAgIHg9IjcuMDAwMDA0OCIKICAgICAgIHk9IjEwLjk5OTk5OCIKICAgICAgIHdpZHRoPSI5Ljk5OTk5MjQiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk4NiIKICAgICAgIGlkPSJzdmdfMS0xIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICAgIDxyZWN0CiAgICAgICB4PSIxMS4wMDAwMDUiCiAgICAgICB5PSI3LjAwMDAxMTQiCiAgICAgICB3aWR0aD0iMS45OTk5OTU1IgogICAgICAgaGVpZ2h0PSI5Ljk5OTk4MzgiCiAgICAgICBpZD0ic3ZnXzEtMS0xIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8L2c+CiAgPGcKICAgICBpZD0iZzQyOTktMyIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LC0wLjcwNzEwNjc4LDAuNzA3MTA2NzgsMC43MDcxMDY3OCwxOS4wMjk0MzUsMTIuMDAwMDAxKSIKICAgICBzdHlsZT0ic3Ryb2tlOm5vbmUiPgogICAgPHJlY3QKICAgICAgIHg9IjcuMDAwMDA0OCIKICAgICAgIHk9IjEwLjk5OTk5OCIKICAgICAgIHdpZHRoPSI5Ljk5OTk5MjQiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk4NiIKICAgICAgIGlkPSJzdmdfMS0xLTAiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogICAgPHJlY3QKICAgICAgIHg9IjExLjAwMDAwNSIKICAgICAgIHk9IjcuMDAwMDExNCIKICAgICAgIHdpZHRoPSIxLjk5OTk5NTUiCiAgICAgICBoZWlnaHQ9IjkuOTk5OTgzOCIKICAgICAgIGlkPSJzdmdfMS0xLTEtOSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPC9nPgogIDxyZWN0CiAgICAgaWQ9InN2Z18xLTctNSIKICAgICBoZWlnaHQ9IjYuOTk5OTkwNSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIHk9IjcuMDAwMDA0OCIKICAgICB4PSI1NS4wMDAwMDQiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiM0YzRjNGM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI1OCIKICAgICB5PSIxMC4wMDAwMSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIGhlaWdodD0iNi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDM1NCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTUtNyIKICAgICBoZWlnaHQ9IjYuOTk5OTkwNSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIHk9IjEwLjAwMDAwNSIKICAgICB4PSI1OC4wMDAwMDQiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzNjODBkZjtzdHJva2Utd2lkdGg6MDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eTowLjk0MTE3NjQ3IiAvPgogIDxnCiAgICAgaWQ9Imc0Mzc4Ij4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDowIgogICAgICAgeD0iMTk4IgogICAgICAgeT0iMTAuOTk5OTk5IgogICAgICAgd2lkdGg9IjcuOTk5OTkwOSIKICAgICAgIGhlaWdodD0iMS45OTk5OTY1IgogICAgICAgaWQ9InN2Z18xLTctNS0zIiAvPgogICAgPHJlY3QKICAgICAgIGlkPSJyZWN0NDM3NCIKICAgICAgIGhlaWdodD0iMS45OTk5OTQ2IgogICAgICAgd2lkdGg9IjExLjk5OTk5NSIKICAgICAgIHk9IjcuMDAwMDAwNSIKICAgICAgIHg9IjE5OCIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgICA8cmVjdAogICAgICAgaWQ9InJlY3Q0Mzc2IgogICAgICAgaGVpZ2h0PSIxLjk5OTk5OTUiCiAgICAgICB3aWR0aD0iMy45OTk5OTI4IgogICAgICAgeT0iMTQuOTk5OTk2IgogICAgICAgeD0iMTk4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICA8L2c+CiAgPGcKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwtMjMuOTk5OTk1LDIzLjk5OTk5NSkiCiAgICAgaWQ9Imc0MzgzIj4KICAgIDxyZWN0CiAgICAgICBpZD0icmVjdDQzODUiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk2NSIKICAgICAgIHdpZHRoPSI3Ljk5OTk5MDkiCiAgICAgICB5PSIxMC45OTk5OTkiCiAgICAgICB4PSIxOTgiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDowIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTgiCiAgICAgICB5PSI3LjAwMDAwMDUiCiAgICAgICB3aWR0aD0iMTEuOTk5OTk1IgogICAgICAgaGVpZ2h0PSIxLjk5OTk5NDYiCiAgICAgICBpZD0icmVjdDQzODciIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIKICAgICAgIHg9IjE5OCIKICAgICAgIHk9IjE0Ljk5OTk5NiIKICAgICAgIHdpZHRoPSIzLjk5OTk5MjgiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk5NSIKICAgICAgIGlkPSJyZWN0NDM4OSIgLz4KICA8L2c+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGlkPSJyZWN0Mzc1NC00IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9Ijc2IgogICAgIHk9IjMuOTk5OTE5OSIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiNmZmZmZmY7c3Ryb2tlLXdpZHRoOjAuMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Im0gODUuMTA0NDcsNi4wMTU3Mzg0IC0wLjAxNTYsMS40MDYzIGMgMy4wMjY2OSwtMC4yNDAyIDAuMzMwMDgsMy42NTA3OTk2IDIuNDg0MzgsNC41NzgwOTk2IC0yLjE4Njk0LDEuMDkzOCAwLjQ5MTkxLDQuOTA2OSAtMi40NTMxMyw0LjU3ODEgbCAtMC4wMTU2LDEuNDIxOSBjIDUuNzA4MjgsMC41NTkgMS4wMzI2NCwtNS4xMDA1IDQuNzAzMTMsLTUuMjY1NiBsIDAsLTEuNDA2MyBjIC0zLjYxMzAzLC0wLjAyNyAxLjExODkzLC01LjcwNjk5OTYgLTQuNzAzMTMsLTUuMzEyNDk5NiB6IgogICAgIGlkPSJwYXRoNDM1MSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDowLjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDgyLjc4MTI1LDUuOTk4NDM4NCAwLjAxNTYsMS40MDYzIGMgLTMuMDI2NjgsLTAuMjQwMiAtMC4zMzAwNywzLjY1MDY5OTYgLTIuNDg0MzcsNC41NzgwOTk2IDIuMTg2OTQsMS4wOTM4IC0wLjQ5MTkyLDQuOTA2OSAyLjQ1MzEyLDQuNTc4MSBsIDAuMDE1NiwxLjQyMTkgYyAtNS43MDgyNywwLjU1OSAtMS4wMzI2MywtNS4xMDA0IC00LjcwMzEyLC01LjI2NTYgbCAwLC0xLjQwNjMgYyAzLjYxMzAzLC0wLjAyNyAtMS4xMTg5NCwtNS43MDcwOTk2IDQuNzAzMTIsLTUuMzEyNDk5NiB6IgogICAgIGlkPSJwYXRoNDM1MS05IgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjYyIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgaWQ9InJlY3QzNzU0LTI1IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9IjEwMCIKICAgICB5PSIzLjk5OTkxOTkiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTAzLjcxOSw1LjY3MTkzODQgMCwxMi43MTg3OTk2IDMuMDMxMjUsMCAwLC0xLjUzMTMgLTEuMzQzNzUsMCAwLC05LjYyNDk5OTYgMS4zNzUsMCAwLC0xLjU2MjUgeiIKICAgICBpZD0icGF0aDI5ODciCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgZD0ibSAxMTIuMjE4NSw1LjY3MjE5ODQgMCwxMi43MTg3OTk2IC0zLjAzMTI1LDAgMCwtMS41MzEzIDEuMzQzNzUsMCAwLC05LjYyNDk5OTYgLTEuMzc1LDAgMCwtMS41NjI1IHoiCiAgICAgaWQ9InBhdGgyOTg3LTEiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgaWQ9InJlY3QzNzU0LTczIgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9IjEyNCIKICAgICB5PSIzLjk5OTkxOTkiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTI2LjI4MjQsMTcuNjAyOTM4IDEuNzg5NTcsMCAxLjE0MTQzLC0yLjg2NDEgNS42NTM2NCwwIDEuMTQ4NTYsMi44NjQxIDEuNzY1NjUsMCAtNC43ODY4NywtMTEuMTYxMDk5NiAtMS45MTkwMywwIHoiCiAgICAgaWQ9InBhdGgzNzgwIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTI5LjcyNzA0LDEzLjQ3ODgzOCA0LjYwODUyLDAuMDEgLTIuMzA0MjYsLTUuNTQ5Nzk5NiB6IgogICAgIGlkPSJwYXRoMzc4MiIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIKICAgICBpZD0icmVjdDM3NTQtMzUiCiAgICAgd2lkdGg9IjE2IgogICAgIGhlaWdodD0iMTYiCiAgICAgeD0iMTQ4IgogICAgIHk9IjMuOTk5OTE5OSIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgZD0ibSAxNTYuNDc2NTUsNS44OTE3Mzg0IDAsMi4xNzk3IDAuNDYwOTMsMi4zOTgzOTk2IDEuODI4MTMsMCAwLjM5ODQ0LC0yLjM5ODM5OTYgMCwtMi4xNzk3IHoiCiAgICAgaWQ9InBhdGg1MDA4LTIiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTUyLjUxNTYxLDUuODkwNjM4NCAwLDIuMTc5NyAwLjQ2MDk0LDIuMzk4Mzk5NiAxLjgyODEyLDAgMC4zOTg0NCwtMi4zOTgzOTk2IDAsLTIuMTc5NyB6IgogICAgIGlkPSJwYXRoNTAwOC0yLTgiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0ic3ZnXzEtNy0yIgogICAgIGhlaWdodD0iMS45OTk5OTYxIgogICAgIHdpZHRoPSIxMS45OTk5OTYiCiAgICAgeT0iNjQiCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTItMiIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9IjUyIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSI4NS4wMDAwMDgiCiAgICAgeT0iNTIiCiAgICAgd2lkdGg9IjIuOTk5OTkwNyIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICBpZD0icmVjdDQ1NjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICB5PSI1OCIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDU2MyIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDU2NSIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9IjU4IgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NTY3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iNjQiCiAgICAgeD0iODAuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjAuOTg0MzEzNzM7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICB5PSI2NCIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDU2OSIgLz4KICA8Y2lyY2xlCiAgICAgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOm5vbmU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiM0YzRjNGM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGlkPSJwYXRoNDU3MSIKICAgICBjeD0iMTEwLjA2MDgxIgogICAgIGN5PSI1Ny45MzkyMDkiCiAgICAgcj0iNC43NDM4ODM2IiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSIxMTYuNjQ1NjYiCiAgICAgeT0iLTMxLjc5NzUyIgogICAgIHdpZHRoPSI0LjIyOTcxMyIKICAgICBoZWlnaHQ9IjYuNDA1Mzg4NCIKICAgICBpZD0icmVjdDQ1NjMtMiIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LDAuNzA3MTA2NzgsLTAuNzA3MTA2NzgsMC43MDcxMDY3OCwwLDApIiAvPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Ik0gMTI1LDU2IDEzOC43NzAyNyw1Ni4wOTUgMTMyLDY0IFoiCiAgICAgaWQ9InBhdGg0NjEzIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjIiAvPgogIDxwYXRoCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgaWQ9InBhdGg0NjE1IgogICAgIGQ9Ik0gMTQ5LDY0IDE2Mi43NzAyNyw2My45MDUgMTU2LDU2IFoiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSI1NCIKICAgICB5PSI1MyIKICAgICB3aWR0aD0iMTEuOTk5OTk2IgogICAgIGhlaWdodD0iMS45OTk5OTYxIgogICAgIGlkPSJyZWN0NDYzOCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTItMjQiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NTciCiAgICAgd2lkdGg9IjEyLjk5OTk5IgogICAgIHk9Ii01NiIKICAgICB4PSI1MyIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDAsMCkiIC8+CiAgPHJlY3QKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLDEsLTEsMCwwLDApIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjAuOTg0MzEzNzM7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiCiAgICAgeD0iNTMiCiAgICAgeT0iLTY2IgogICAgIHdpZHRoPSIxMi45OTk5OSIKICAgICBoZWlnaHQ9IjEuOTk5OTk1NyIKICAgICBpZD0icmVjdDQ2NTciIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ2NTkiCiAgICAgaGVpZ2h0PSIwLjk5OTk5MjkxIgogICAgIHdpZHRoPSIxMS45OTk5OTkiCiAgICAgeT0iNTciCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI1NCIKICAgICB5PSI4OC4wMDAxMjIiCiAgICAgd2lkdGg9IjExLjk5OTk5NiIKICAgICBoZWlnaHQ9IjEuOTk5OTk2MSIKICAgICBpZD0icmVjdDQ2NjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iODAuMDAwMDA4IgogICAgIHk9Ijc2LjAwMDEyMiIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDY2MyIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDY2NSIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9Ijc2LjAwMDEyMiIKICAgICB4PSI4NS4wMDAwMDgiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NjY3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iODIuMDAwMTIyIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iODUuMDAwMDA4IgogICAgIHk9IjgyLjAwMDEyMiIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDY2OSIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI4MC4wMDAwMDgiCiAgICAgeT0iODguMDAwMTIyIgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgaGVpZ2h0PSIyLjk5OTk5MDUiCiAgICAgaWQ9InJlY3Q0NjcxIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NjczIgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iODguMDAwMTIyIgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPGNpcmNsZQogICAgIHI9IjQuNzQzODgzNiIKICAgICBjeT0iODEuOTM5MzMxIgogICAgIGN4PSIxMTAuMDYwODEiCiAgICAgaWQ9ImNpcmNsZTQ2NzUiCiAgICAgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOm5vbmU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiNkM2QzZDM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHJlY3QKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LDAuNzA3MTA2NzgsLTAuNzA3MTA2NzgsMC43MDcxMDY3OCwwLDApIgogICAgIGlkPSJyZWN0NDY3NyIKICAgICBoZWlnaHQ9IjYuNDA1Mzg4NCIKICAgICB3aWR0aD0iNC4yMjk3MTMiCiAgICAgeT0iLTE0LjgyNjgxNiIKICAgICB4PSIxMzMuNjE2MyIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojZDNkM2QzO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHBhdGgKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBpZD0icGF0aDQ2NzkiCiAgICAgZD0ibSAxMjUsODAuMDAwMDA1IDEzLjc3MDI3LDAuMDk0OTkgTCAxMzIsODcuOTk5OTkyIFoiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Ik0gMTQ5LDg4LjAwMDIgMTYyLjc3MDI3LDg3LjkwNTIgMTU2LDgwLjAwMDIgWiIKICAgICBpZD0icGF0aDQ2ODEiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ2ODMiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NjEiCiAgICAgd2lkdGg9IjExLjk5OTk5NiIKICAgICB5PSI3Ny4wMDAxMjIiCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMCwxLC0xLDAsMCwwKSIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iNzcuMDAwMTIyIgogICAgIHk9Ii01NiIKICAgICB3aWR0aD0iMTIuOTk5OTkiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NTciCiAgICAgaWQ9InJlY3Q0Njg1IiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0Njg3IgogICAgIGhlaWdodD0iMS45OTk5OTU3IgogICAgIHdpZHRoPSIxMi45OTk5OSIKICAgICB5PSItNjYiCiAgICAgeD0iNzcuMDAwMTIyIgogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLDEsLTEsMCwwLDApIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIgogICAgIHg9IjU0IgogICAgIHk9IjgxLjAwMDEyMiIKICAgICB3aWR0aD0iMTEuOTk5OTk5IgogICAgIGhlaWdodD0iMC45OTk5OTI5MSIKICAgICBpZD0icmVjdDQ2ODkiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtMSIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iMTUuOTk5OTkiCiAgICAgeT0iMTAxIgogICAgIHg9Ijc2LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtMCIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iMTUuOTk5OTkiCiAgICAgeT0iMTA1IgogICAgIHg9Ijc2LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtNyIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iOSIKICAgICB5PSIxMDkiCiAgICAgeD0iNzYuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDc2MS0xLTEiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NDUiCiAgICAgd2lkdGg9IjEyIgogICAgIHk9IjEyNSIKICAgICB4PSI3Ni4wMDAwMDgiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NzYxLTEtMS00IgogICAgIGhlaWdodD0iMS45OTk5OTQ1IgogICAgIHdpZHRoPSIxMCIKICAgICB5PSIxMzciCiAgICAgeD0iNzYuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDc2MS0xLTEtNC00IgogICAgIGhlaWdodD0iMS45OTk5OTQ1IgogICAgIHdpZHRoPSIxMCIKICAgICB5PSIxMjkiCiAgICAgeD0iODIiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NzYxLTEtMS00LTQtMyIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iOSIKICAgICB5PSIxMzMiCiAgICAgeD0iODIiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MC44O2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjIuNjYxNTc4NjY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICBkPSJtIDM2LjM5ODQzOCwxMDAuMDI1NCBjIC0wLjQyMzM2MiwtMC4wMTMgLTAuODQ2ODQ3LDAuMDEgLTEuMjY1NjI2LDAuMDYyIC0xLjY1NjU2MiwwLjIxOTYgLTMuMjQ0NTY3LDAuOTczOSAtNC41MDc4MTIsMi4yMjY2IEwgMjksMTAwLjU5OTEgbCAtMi4zMjQyMTksNy43MTI5IDcuODI2MTcyLC0xLjkwNjIgLTEuODA0Njg3LC0xLjkwNjMgYyAxLjU5NzcwMiwtMS41MzA4IDQuMDQ4NzA2LC0xLjg0NTMgNS45ODQzNzUsLTAuNzIwNyAxLjk3MTE2MiwxLjE0NTIgMi44ODE5NTQsMy4zOTc1IDIuMzA4NTkzLDUuNTUwOCAtMC41NzMzNjEsMi4xNTMzIC0yLjUzMzg2NSwzLjY5NTMgLTQuODMwMDc4LDMuNjk1MyBsIDAsMy4wNzQyIGMgMy41NTA3NTYsMCA2LjcxMDQ0MiwtMi40MTEzIDcuNjUwMzkxLC01Ljk0MTQgMC45Mzk5NDksLTMuNTMwMSAtMC42MTg0NjMsLTcuMjczNiAtMy43MTA5MzgsLTkuMDcwMyAtMS4xNTk2NzgsLTAuNjczOCAtMi40MzEwODcsLTEuMDIzMSAtMy43MDExNzEsLTEuMDYyNSB6IgogICAgIGlkPSJwYXRoNDEzOCIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjAuODtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoyLjY2MTU3ODY2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgZD0ibSA1OS43MjI2NTYsOTkuOTYyOSBjIC0xLjI3MDA4NCwwLjAzOSAtMi41NDE0OTMsMC4zODg3IC0zLjcwMTE3MiwxLjA2MjUgLTMuMDkyNDc1LDEuNzk2NyAtNC42NTA4ODYsNS41NDAyIC0zLjcxMDkzNyw5LjA3MDMgMC45Mzk5NDksMy41MzAxIDQuMDk3NjgsNS45NDE0IDcuNjQ4NDM3LDUuOTQxNCBsIDAsLTMuMDc0MiBjIC0yLjI5NjIxNCwwIC00LjI1NjcxNywtMS41NDIgLTQuODMwMDc4LC0zLjY5NTMgLTAuNTczMzYxLC0yLjE1MzMgMC4zMzc0MzIsLTQuNDA1NiAyLjMwODU5NCwtNS41NTA4IDEuOTM1NzMxLC0xLjEyNDYgNC4zODg2MywtMC44MTAyIDUuOTg2MzI2LDAuNzIwNyBsIC0xLjgwNjYzOCwxLjkwNjMgNy44MjgxMjgsMS45MDYyIC0yLjMyNDIyLC03LjcxMjkgLTEuNjI2OTYsMS43MTY4IGMgLTEuMjYzMzgsLTEuMjUzMSAtMi44NDg5MTcsLTIuMDA4OCAtNC41MDU4NTUsLTIuMjI4NSAtMC40MTg3NzgsLTAuMDU1IC0wLjg0MjI2MywtMC4wNzYgLTEuMjY1NjI1LC0wLjA2MiB6IgogICAgIGlkPSJwYXRoNDEzOC0xIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGQ9Im0gMTAuNSwxMDAgMCwyIC0yLjQ5OTk5OTYsMCBMIDEyLDEwNyBsIDQsLTUgLTIuNSwwIDAsLTIgLTMsMCB6IgogICAgIGlkPSJwYXRoMzA1NS0wLTc3IiAvPgogIDxwYXRoCiAgICAgc3R5bGU9Im9wYWNpdHk6MC44O2ZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS45NjU5OTk5NjtzdHJva2UtbGluZWNhcDpzcXVhcmU7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgZD0ibSA0Ljk4NTA1NzQsMTA4LjAxNSAxNC4wMjk4ODU2LC0wLjAzIgogICAgIGlkPSJwYXRoNTI0NC01LTAtNSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1saW5lY2FwOnNxdWFyZTtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDQuOTg0OTg3NCwxMzIuMDE1IDE0LjAyOTg4NjYsLTAuMDMiCiAgICAgaWQ9InBhdGg1MjQ0LTUtMC01LTgiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MC40O2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiM0ZDRkNGQ7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjIuNjYxNTc4NjY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICBkPSJtIDM2LjM5ODQzOCwxMjMuOTYyOSBjIC0wLjQyMzM2MiwtMC4wMTMgLTAuODQ2ODQ3LDAuMDEgLTEuMjY1NjI2LDAuMDYyIC0xLjY1NjU2MiwwLjIxOTYgLTMuMjQ0NTY3LDAuOTczOSAtNC41MDc4MTIsMi4yMjY2IEwgMjksMTI0LjUzNjYgbCAtMi4zMjQyMTksNy43MTI5IDcuODI2MTcyLC0xLjkwNjIgLTEuODA0Njg3LC0xLjkwNjMgYyAxLjU5NzcwMiwtMS41MzA4IDQuMDQ4NzA2LC0xLjg0NTMgNS45ODQzNzUsLTAuNzIwNyAxLjk3MTE2MiwxLjE0NTMgMi44ODE5NTQsMy4zOTc1IDIuMzA4NTkzLDUuNTUwOCAtMC41NzMzNjEsMi4xNTMzIC0yLjUzMzg2NCwzLjY5NTMgLTQuODMwMDc4LDMuNjk1MyBsIDAsMy4wNzQyIGMgMy41NTA3NTcsMCA2LjcxMDQ0MiwtMi40MDkzIDcuNjUwMzkxLC01LjkzOTQgMC45Mzk5NDksLTMuNTMwMSAtMC42MTg0NjMsLTcuMjc1NiAtMy43MTA5MzgsLTkuMDcyMyAtMS4xNTk2NzgsLTAuNjczNyAtMi40MzEwODcsLTEuMDIzMSAtMy43MDExNzEsLTEuMDYyNSB6IgogICAgIGlkPSJwYXRoNDEzOC0xMiIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjAuNDtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojNGQ0ZDRkO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoyLjY2MTU3ODY2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgZD0ibSA1OS43MjI2NTYsMTIzLjk2MjkgYyAtMS4yNzAwODQsMC4wMzkgLTIuNTQxNDkzLDAuMzg4OCAtMy43MDExNzIsMS4wNjI1IC0zLjA5MjQ3NSwxLjc5NjcgLTQuNjUwODg2LDUuNTQyMiAtMy43MTA5MzcsOS4wNzIzIDAuOTM5OTQ5LDMuNTMwMSA0LjA5NzY4LDUuOTM5NCA3LjY0ODQzNyw1LjkzOTQgbCAwLC0zLjA3NDIgYyAtMi4yOTYyMTQsMCAtNC4yNTY3MTcsLTEuNTQyIC00LjgzMDA3OCwtMy42OTUzIC0wLjU3MzM2MSwtMi4xNTMzIDAuMzM3NDMyLC00LjQwNTUgMi4zMDg1OTQsLTUuNTUwOCAxLjkzNTczMSwtMS4xMjQ2IDQuMzg4NjMsLTAuODEwMiA1Ljk4NjMyNiwwLjcyMDcgbCAtMS44MDY2MzgsMS45MDYzIDcuODI4MTI4LDEuOTA2MiAtMi4zMjQyMiwtNy43MTI5IC0xLjYyNjk2LDEuNzE2OCBjIC0xLjI2MzM4LC0xLjI1MzEgLTIuODQ4OTE3LC0yLjAwODggLTQuNTA1ODU1LC0yLjIyODUgLTAuNDE4Nzc4LC0wLjA1NSAtMC44NDIyNjMsLTAuMDc2IC0xLjI2NTYyNSwtMC4wNjIgeiIKICAgICBpZD0icGF0aDQxMzgtMS0zIiAvPgogIDxwYXRoCiAgICAgaWQ9InBhdGg2MTkxIgogICAgIGQ9Im0gMTAuNSwxMTYgMCwtMiAtMi40OTk5OTk2LDAgTCAxMiwxMDkgbCA0LDUgLTIuNSwwIDAsMiAtMywwIHoiCiAgICAgc3R5bGU9Im9wYWNpdHk6MC44O2ZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS45NjU5OTk5NjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGQ9Im0gMTAuNSwxMjkgMCwtMiAtMi40OTk5OTk2LDAgTCAxMiwxMjIgbCA0LDUgLTIuNSwwIDAsMiAtMywwIHoiCiAgICAgaWQ9InBhdGg2MTkzIiAvPgogIDxwYXRoCiAgICAgaWQ9InBhdGg2MTk1IgogICAgIGQ9Im0gMTAuNSwxMzUgMCwyIC0yLjQ5OTk5OTYsMCBMIDEyLDE0MiBsIDQsLTUgLTIuNSwwIDAsLTIgLTMsMCB6IgogICAgIHN0eWxlPSJvcGFjaXR5OjAuODtmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuOTY1OTk5OTY7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cGF0aAogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgc3R5bGU9ImZpbGw6IzRkNGQ0ZDtmaWxsLW9wYWNpdHk6MC45MDE5NjA3ODtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaWQ9InBhdGg0NTAwIgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIHNvZGlwb2RpOmN4PSIxMS41NTU4MSIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjQyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6cjI9IjIuNTU1ODA1MiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6cmFuZG9taXplZD0iMCIKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzI0MiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MyAwLC00LjQyNjc4NSAwLC00LjQyNjc4NCAzLjgzMzcwODIsMi4yMTMzOTIgeiIKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXg9Ii0xLjI3NzkwMjYiIC8+CiAgPHBhdGgKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXg9IjEuMjc3OTAyIgogICAgIGQ9Im0gLTMxLjUwMDAwNCw2MC4wNzMyNDIgLTMuODMzNzA4LDIuMjEzMzkyIC0zLjgzMzcwNywyLjIxMzM5MyAwLC00LjQyNjc4NSAwLC00LjQyNjc4NCAzLjgzMzcwNywyLjIxMzM5MiB6IgogICAgIGlua3NjYXBlOnJhbmRvbWl6ZWQ9IjAiCiAgICAgaW5rc2NhcGU6cm91bmRlZD0iMCIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOnIyPSIyLjU1NTgwNTIiCiAgICAgc29kaXBvZGk6cjE9IjUuMTExNjEwNCIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjQyIgogICAgIHNvZGlwb2RpOmN4PSItMzYuNjExNjE0IgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIGlkPSJwYXRoNDUwMiIKICAgICBzdHlsZT0iZmlsbDojNGQ0ZDRkO2ZpbGwtb3BhY2l0eTowLjkwMTk2MDc4O3N0cm9rZTojZDNkM2QzO3N0cm9rZS13aWR0aDowO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTp0eXBlPSJzdGFyIgogICAgIHRyYW5zZm9ybT0ic2NhbGUoLTEsMSkiIC8+CiAgPHBhdGgKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzIxMiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MiAwLC00LjQyNjc4NCAwLC00LjQyNjc4NSAzLjgzMzcwODIsMi4yMTMzOTIgeiIKICAgICBpbmtzY2FwZTpyYW5kb21pemVkPSIwIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6ZmxhdHNpZGVkPSJmYWxzZSIKICAgICBzb2RpcG9kaTphcmcyPSIxLjA0NzE5NzYiCiAgICAgc29kaXBvZGk6YXJnMT0iMCIKICAgICBzb2RpcG9kaTpyMj0iMi41NTU4MDUyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6Y3k9IjYwLjA3MzIxMiIKICAgICBzb2RpcG9kaTpjeD0iMTEuNTU1ODEiCiAgICAgc29kaXBvZGk6c2lkZXM9IjMiCiAgICAgaWQ9InBhdGg0NTA0IgogICAgIHN0eWxlPSJmaWxsOiM0ZDRkNGQ7ZmlsbC1vcGFjaXR5OjAuOTAxOTYwNzg7c3Ryb2tlOiNkM2QzZDM7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMCwxLC0xLDAsNzIuMDA3NCw3MS43ODc3KSIKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXk9IjEuMjc3OTAyOSIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOnRyYW5zZm9ybS1jZW50ZXIteT0iLTEuMjc3OTAyNiIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLC0xLC0xLDAsOTYsOTYpIgogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgc3R5bGU9ImZpbGw6IzRkNGQ0ZDtmaWxsLW9wYWNpdHk6MC45MDE5NjA3ODtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaWQ9InBhdGg0NTA2IgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIHNvZGlwb2RpOmN4PSIxMS41NTU4MSIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjEyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6cjI9IjIuNTU1ODA1MiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6cmFuZG9taXplZD0iMCIKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzIxMiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MiAwLC00LjQyNjc4NCAwLC00LjQyNjc4NSAzLjgzMzcwODIsMi4yMTMzOTIgeiIgLz4KICA8cGF0aAogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjYyIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIGlkPSJwYXRoNDYxNS01IgogICAgIGQ9Im0gMTcxLjgyNTc0LDY1LjE3NDE5MyAxNi4zNDg1NCwwIC04LjE3NDI3LC0xMy4zNDg0NTQgeiIKICAgICBzdHlsZT0iZmlsbDojZmJiOTE3O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTojZmJiOTE3O3N0cm9rZS13aWR0aDoxLjY1MTYxMzk1O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0ib3BhY2l0eToxO2ZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MXB4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgZD0ibSAxNzksNTUgMCw2IDIsMCAwLC02IgogICAgIGlkPSJwYXRoNDMwMCIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjYyIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJvcGFjaXR5OjE7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDE3OSw2MiAwLDIgMiwwIDAsLTIiCiAgICAgaWQ9InBhdGg0MzAwLTYiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOiNmZmZmZmY7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utb3BhY2l0eTowLjgiCiAgICAgZD0iTSA5OS45OTQzNjksMTEzLjAyMjEgMTAyLDExNC45ODM1MyBsIDcsLTYuOTU1OCAzLDAuOTcyMjcgMiwtMSAxLC0yIDAsLTMgLTMsMyAtMywtMyAzLC0zIC0zLDAgLTIsMSAtMSwyIDAuOTk0MzcsMy4wMjIxIHoiCiAgICAgaWQ9InBhdGg0MjY4IgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2NjY2NjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQxNzUtMy01IgogICAgIGhlaWdodD0iMTYiCiAgICAgd2lkdGg9IjE2IgogICAgIHk9IjQiCiAgICAgeD0iMjIwIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDIzNCw2IDAsMiAtNSw1IDAsNSAtMiwwIDAsLTUgLTUsLTUgMCwtMiIKICAgICBpZD0icGF0aDM1NDYiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2NjIiAvPgogIDxnCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzI4LDAsMCwtMS41OTk5OTkyLC0xMzkuOTk5OSwxMjcuMTk5OTkpIgogICAgIGlkPSJnNDM4My02Ij4KICAgIDxyZWN0CiAgICAgICBpZD0icmVjdDQzODUtMiIKICAgICAgIGhlaWdodD0iMS4yNDk5OTA1IgogICAgICAgd2lkdGg9IjUuOTk5OTkyNCIKICAgICAgIHk9IjEyLjYyNTAwNSIKICAgICAgIHg9IjE5OC4wMDAwMiIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTguMDAwMDIiCiAgICAgICB5PSIxNS4xMjUwMDciCiAgICAgICB3aWR0aD0iNy40OTk5OTI4IgogICAgICAgaGVpZ2h0PSIxLjI0OTk5NDkiCiAgICAgICBpZD0icmVjdDQzODctOSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTguMDAwMDIiCiAgICAgICB5PSI3LjYyNTAwMjQiCiAgICAgICB3aWR0aD0iMi45OTk5OTA5IgogICAgICAgaGVpZ2h0PSIxLjI0OTk5MDUiCiAgICAgICBpZD0icmVjdDQzODktMS0wIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIKICAgICAgIHg9IjE5OC4wMDAwMiIKICAgICAgIHk9IjEwLjEyNTAwNCIKICAgICAgIHdpZHRoPSI0LjQ5OTk5MTkiCiAgICAgICBoZWlnaHQ9IjEuMjQ5OTkwNSIKICAgICAgIGlkPSJyZWN0NDM4OS0xLTkiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowLjY4NDY1MzUycHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gMjA3LjAwMDAxLDE2LjM3NTAwNCAwLC01LjYyNTAwNSAtMi4yNSwwIDMsLTMuMTI1MDAxNCAzLDMuMTI1MDAxNCAtMi4yNSwwIDAsNS42MjUwMDUgLTEuNSwwIgogICAgICAgaWQ9InBhdGg0NDAyIgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2MiIC8+CiAgPC9nPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDE2NCwxMDAgMCwzIC02LDYgMCw3IC00LDAgMCwtNyAtNiwtNiAwLC0zIgogICAgIGlkPSJwYXRoMzU0Ni0yLTIiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2NjIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICBpZD0ic3ZnXzEtMyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIyOCIKICAgICB4PSI0IiAvPgogIDxwYXRoCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2MiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBpZD0icGF0aDQ0MDItNS03IgogICAgIGQ9Im0gMTUsNDEgMCwtNyAtNCwwIDAsMyAtNSwtNCA1LC00IDAsMyA2LDAgMCw5IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAuNjg0NjUzNTJweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIiAvPgo8L3N2Zz4K"},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){function i(t,e){var i=t[1]||"",r=t[3];if(!r)return i;if(e&&"function"==typeof btoa){var o=n(r);return[i].concat(r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}))).concat([o]).join("\n")}return[i].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(t,e,i){function n(t){for(var e=0;e<t.length;e++){var i=t[e],n=c[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(o(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(r=0;r<i.parts.length;r++)s.push(o(i.parts[r]));c[i.id]={id:i.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,i,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(p)return g;n.parentNode.removeChild(n)}if(b){var o=f++;n=d||(d=r()),e=s.bind(null,n,o,!1),i=s.bind(null,n,o,!0)}else n=r(),e=a.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}function s(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute(v,e.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h=i(10),c={},u=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,p=!1,g=function(){},m=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,i,r){p=i,m=r||{};var o=h(t,e);return n(o),function(e){for(var i=[],r=0;r<o.length;r++){var s=o[r],a=c[s.id];a.refs--,i.push(a)}e?(o=h(t,e),n(o)):o=[];for(r=0;r<i.length;r++){a=i[r];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete c[a.id]}}}};var y=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e,i){"use strict";var n=i(12),r=i.n(n),o=i(13);i.n(o),e.a={name:"v-jsoneditor",data:function(){return{editor:null,style:{},max:!1,internalChange:!1}},props:{options:{type:Object,default:function(){return{}}},value:[Object,Array,Number,String,Boolean],height:{type:String},plus:{type:Boolean,default:!0}},methods:{onChange:function(){var t,e=this,i=null,n={};try{n=this.editor.get()}catch(t){i=t}i?this.$emit("error",i):this.editor&&(this.internalChange=!0,this.$emit("input",n),this.$nextTick((function(){e.internalChange=!1}))),this.options.onChange&&(t=this.options).onChange.apply(t,arguments)},initView:function(){if(!this.editor){var t=this.$refs.jsoneditor,e=this.options.onChange;delete this.options.onChange;var i=Object.assign(this.options,{onChange:this.onChange});this.editor=new r.a(t,i),this.options.onChange=e}this.editor.set(void 0!==this.value?this.value:{})},destroyView:function(){this.editor&&(this.editor.destroy(),this.editor=null)}},watch:{value:{handler:function(t){this.editor&&void 0!==t&&!this.internalChange&&this.editor.set(t)},deep:!0},max:function(t){var e=this;this.$nextTick((function(){e.initView()}))},options:{handler:function(t){this.options&&this.options.mode&&this.editor&&this.editor.setMode(this.options.mode)},deep:!0}},mounted:function(){this.initView()},beforeDestroy:function(){this.destroyView()},computed:{getHeight:function(){return this.height&&!this.max?{height:this.height}:{}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6);e.default=n.a,n.a.install=function(t){t.component(n.a.name,n.a)},"undefined"!=typeof window&&window.Vue&&window.Vue.component(n.a.name,n.a)},function(t,e,i){"use strict";function n(t){i(7)}var r=i(4),o=i(15),s=i(11),a=n,l=s(r.a,o.a,!1,a,"data-v-79481ed6",null);e.a=l.exports},function(t,e,i){var n=i(8);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),i(3)("a599bfce",n,!0,{})},function(t,e,i){var n=i(1);e=t.exports=i(2)(!1),e.push([t.i,".jsoneditor-container.max-box[data-v-79481ed6]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000}.jsoneditor-container.min-box[data-v-79481ed6]{position:relative;min-width:300px;width:100%}.jsoneditor-box[data-v-79481ed6]{height:100%}.jsoneditor-container:hover .max-btn[data-v-79481ed6]{display:block}.max-btn[data-v-79481ed6]{display:none;position:absolute;top:7px;right:110px;color:#fff;width:24px;height:24px;background:transparent url("+n(i(9))+") no-repeat;background-position:3px;border:1px solid transparent;border-radius:3px}.max-btn[data-v-79481ed6]:hover{border:1px solid #d7e6fe}",""])},function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTIzNzY1NTcxODU1IiBjbGFzcz0iaWNvbiIgc3R5bGU9IiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE5MjciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTYzLjk4OTM4MyAxMDUuNDQyNDk0bDAgMjY4LjM5Njg0M2MwIDE4LjkzNTI1OCAxNS4zNjgwMTIgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTQgMTguOTM2MjgxIDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0TDEzMi41OTc5NzEgMTgwLjE1NjEyNmwyMTguMTA3NDgzIDIxOC4xNzYwNDVjMTIuODI5MTkgMTIuODMwMjEzIDMzLjYxODY3OSAxMi44MzAyMTMgNDYuNTE1NDA3IDAgMTIuODMwMjEzLTEyLjg5Nzc1MSAxMi44MzAyMTMtMzMuNjg2MjE3IDAtNDYuNTE2NDNsLTIxOC4xNzYwNDUtMjE4LjEwNzQ4MyAxOTMuNjgzMjExIDBjMTguOTM1MjU4IDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0IDAtMTguOTM1MjU4LTE1LjM2OTAzNi0zNC4zMDQyOTQtMzQuMzA0Mjk0LTM0LjMwNDI5NEwxMDQuMzMxMTgzIDY1LjA5OTY3Qzc5LjI4ODgzNCA2NS4wOTk2NyA2My45ODkzODMgNzcuOTk5NDY4IDYzLjk4OTM4MyAxMDUuNDQyNDk0TDYzLjk4OTM4MyAxMDUuNDQyNDk0eiIgcC1pZD0iMTkyOCIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik05MTcuNjg4NzE5IDY1LjA5OTY3IDY0OS4yOTA4NTMgNjUuMDk5NjdjLTE4LjkzNTI1OCAwLTM0LjMwNDI5NCAxNS4zNjkwMzYtMzQuMzA0Mjk0IDM0LjMwNDI5NCAwIDE4LjkzNjI4MSAxNS4zNjkwMzYgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTRsMTkzLjY4MzIxMSAwLTIxOC4xNzYwNDUgMjE4LjEwNzQ4M2MtMTIuODMwMjEzIDEyLjgyOTE5LTEyLjgzMDIxMyAzMy42MTg2NzkgMCA0Ni41MTY0MyAxMi44OTc3NTEgMTIuODMwMjEzIDMzLjY4NjIxNyAxMi44MzAyMTMgNDYuNTE1NDA3IDBMODg5LjQyMDkwOSAxODAuMTU2MTI2bDAgMTkzLjY4MzIxMWMwIDE4LjkzNTI1OCAxNS4zNjkwMzYgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTQgMTguOTM2MjgxIDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0TDk1OC4wMjk0OTYgMTA1LjQ0MjQ5NEM5NTguMDI5NDk2IDc3Ljk5OTQ2OCA5NDIuNzk5NjMgNjUuMDk5NjcgOTE3LjY4ODcxOSA2NS4wOTk2N0w5MTcuNjg4NzE5IDY1LjA5OTY3eiIgcC1pZD0iMTkyOSIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDQuMzMxMTgzIDk1Ny4wMTMzNTNsMjY4LjM5Nzg2NiAwYzE4LjkzNTI1OCAwIDM0LjMwNDI5NC0xNS4zNjgwMTIgMzQuMzA0Mjk0LTM0LjMwNDI5NCAwLTE4LjkzNjI4MS0xNS4zNjkwMzYtMzQuMzA0Mjk0LTM0LjMwNDI5NC0zNC4zMDQyOTRMMTc5LjA0NTgzOSA4ODguNDA0NzY2bDIxOC4xNzYwNDUtMjE4LjEwNzQ4M2MxMi44MzAyMTMtMTIuODI5MTkgMTIuODMwMjEzLTMzLjYxODY3OSAwLTQ2LjUxNTQwNy0xMi44OTc3NTEtMTIuODMwMjEzLTMzLjY4NjIxNy0xMi44MzAyMTMtNDYuNTE1NDA3IDBsLTIxOC4xMDc0ODMgMjE4LjE3NjA0NUwxMzIuNTk4OTk0IDY0OC4yNzQ3MWMwLTE4LjkzNTI1OC0xNS4zNjgwMTItMzQuMzA0Mjk0LTM0LjMwNDI5NC0zNC4zMDQyOTQtMTguOTM2MjgxIDAtMzQuMzA0Mjk0IDE1LjM2OTAzNi0zNC4zMDQyOTQgMzQuMzA0Mjk0bDAgMjY4LjM5Nzg2NkM2My45ODkzODMgOTQ0LjExNTYwMiA3OS4yODg4MzQgOTU3LjAxMzM1MyAxMDQuMzMxMTgzIDk1Ny4wMTMzNTNMMTA0LjMzMTE4MyA5NTcuMDEzMzUzeiIgcC1pZD0iMTkzMCIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik05NTguMDI5NDk2IDkxNi42NzE1NTMgOTU4LjAyOTQ5NiA2NDguMjc0NzFjMC0xOC45MzUyNTgtMTUuMzY4MDEyLTM0LjMwNDI5NC0zNC4zMDQyOTQtMzQuMzA0Mjk0LTE4LjkzNTI1OCAwLTM0LjMwNDI5NCAxNS4zNjkwMzYtMzQuMzA0Mjk0IDM0LjMwNDI5NGwwIDE5My42ODMyMTFMNjcxLjMxMzQyNSA2MjMuNzgxODc2Yy0xMi44MjkxOS0xMi44MzAyMTMtMzMuNjE4Njc5LTEyLjgzMDIxMy00Ni41MTU0MDcgMC0xMi44MzAyMTMgMTIuODk3NzUxLTEyLjgzMDIxMyAzMy42ODYyMTcgMCA0Ni41MTU0MDdsMjE4LjE3NjA0NSAyMTguMTA3NDgzTDY0OS4yOTA4NTMgODg4LjQwNDc2NmMtMTguOTM1MjU4IDAtMzQuMzA0Mjk0IDE1LjM2ODAxMi0zNC4zMDQyOTQgMzQuMzA0Mjk0IDAgMTguOTM2MjgxIDE1LjM2OTAzNiAzNC4zMDQyOTQgMzQuMzA0Mjk0IDM0LjMwNDI5NGwyNjguMzk3ODY2IDBDOTQyLjc5OTYzIDk1Ny4wMTMzNTMgOTU4LjAyOTQ5NiA5NDQuMTE1NjAyIDk1OC4wMjk0OTYgOTE2LjY3MTU1M0w5NTguMDI5NDk2IDkxNi42NzE1NTN6IiBwLWlkPSIxOTMxIiBmaWxsPSIjZTZlNmU2Ij48L3BhdGg+PC9zdmc+"},function(t,e){t.exports=function(t,e){for(var i=[],n={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],l=o[2],h=o[3],c={id:t+":"+r,css:a,media:l,sourceMap:h};n[s]?n[s].parts.push(c):i.push(n[s]={id:s,parts:[c]})}return i}},function(t,e){t.exports=function(t,e,i,n,r,o){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var h,c="function"==typeof a?a.options:a;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId=r),o?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):n&&(h=n),h){var u=c.functional,d=u?c.render:c.beforeCreate;u?(c._injectStyles=h,c.render=function(t,e){return h.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,h):[h]}return{esModule:s,exports:a,options:c}}},function(t,e,i){
/*!
* jsoneditor.js
*
* @brief
* JSONEditor is a web-based tool to view, edit, format, and validate JSON.
* It has various modes such as a tree editor, a code editor, and a plain text
* editor.
*
* Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
*
* @license
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*
* Copyright (c) 2011-2020 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 9.1.1
* @date 2020-09-23
*/
!function(e,i){t.exports=i()}(window,(function(){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return i={},t.m=e=[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){try{return JSON.parse(t)}catch(e){throw a(t),e}}function o(t){function e(){return t.charAt(a)}function i(){return t.charAt(a+1)}function n(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function r(){if("/"===e()&&"*"===i()){for(a+=2;a<t.length&&("*"!==e()||"/"!==i());)a++;a+=2,"\n"===e()&&a++}}function o(i){var n="";n+='"',a++;for(var r=e();a<t.length&&r!==i;)'"'===r&&"\\"!==t.charAt(a-1)?n+='\\"':r in d?n+=d[r]:("\\"===r&&(a++,"'"!==(r=e())&&(n+="\\")),n+=r),a++,r=e();return r===i&&(n+='"',a++),n}var s=[],a=0,l=0,h=!1,c=t.match(/^\s*(\/\*(.|[\r\n])*?\*\/)?\s*[\da-zA-Z_$]+\s*\(([\s\S]*)\)\s*;?\s*$/);c&&(t=c[3]);for(var u,d={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},f={None:"null",True:"true",False:"false"};a<t.length;){r(),function(){if("/"===e()&&"/"===i())for(a+=2;a<t.length&&"\n"!==e();)a++}();var p,g=e();"{"===g&&l++,"}"===g&&l--," "===(u=g)||" "<=u&&u<=""||""===u||""===u||" "===u?(s.push(" "),a++):"'"===g?s.push(o(g)):'"'===g?s.push(o('"')):"`"===g?s.push(o("´")):""===g?s.push(o("")):"“"===g?s.push(o("”")):"}"===g?(s.push(g),a++,p=function(){for(var i="";a<t.length&&n(e());)i+=e(),a++;return i}(),r(),"{"===function(){for(var e=a;e<t.length&&n(t[e]);)e++;return t[e]}()&&(s.push(","),0===l&&(h=!0)),s.push(p)):","===g&&-1!==["]","}"].indexOf(function(){for(var e=a+1;e<t.length&&n(t[e]);)e++;return t[e]}())?a++:/[a-zA-Z_$]/.test(g)&&-1!==["{",","].indexOf(function(){for(var t=s.length-1;0<=t;){var e=s[t];if(!n(e))return e;t--}return""}())?s.push(function(){for(var t="",i=e(),n=/[a-zA-Z_$\d]/;n.test(i);)t+=i,a++,i=e();return t in f?f[t]:-1===["null","true","false"].indexOf(t)?'"'+t+'"':t}()):/\w/.test(g)?s.push(function(){for(var t,i=e(),n="";/\w/.test(i);)n+=i,a++,i=e();if(0<n.length&&"("===i){if(a++,'"'===(i=e()))t=o(i),i=e();else for(t="";")"!==i&&""!==i;)t+=i,a++,i=e();return")"===i?(a++,t):n+"("+t+i}return"string"==typeof f[n]?f[n]:n}()):(s.push(g),a++)}return h&&(s.unshift("[\n"),s.push("\n]")),s.join("")}function s(t){return t.replace(/[\u007F-\uFFFF]/g,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))}function a(t){void 0!==ct.a?ct.a.parse(t):JSON.parse(t)}function l(t,e){for(var i in e)st(e,i)&&(t[i]=e[i]);return t}function h(t){for(var e in t)st(t,e)&&delete t[e];return t}function c(t){return null===t?"null":void 0===t?"undefined":t instanceof Number||"number"==typeof t?"number":t instanceof String||"string"==typeof t?"string":t instanceof Boolean||"boolean"==typeof t?"boolean":t instanceof RegExp?"regexp":d(t)?"array":"object"}function u(t){return("string"==typeof t||t instanceof String)&&mt.test(t)}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return t.ownerDocument.defaultView}function p(t){return t.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function g(t){return t.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function m(t,e){var i=t.className.split(" ");-1===i.indexOf(e)&&(i.push(e),t.className=i.join(" "))}function v(t){t.className=""}function b(t,e){var i=t.className.split(" "),n=i.indexOf(e);-1!==n&&(i.splice(n,1),t.className=i.join(" "))}function y(t){for(var e=t.childNodes,i=0,n=e.length;i<n;i++){var r=e[i];r.style&&r.removeAttribute("style");var o=r.attributes;if(o)for(var s=o.length-1;0<=s;s--){var a=o[s];!0===a.specified&&r.removeAttribute(a.name)}y(r)}}function w(t){var e,i;document.createRange&&((e=document.createRange()).selectNodeContents(t),e.collapse(!1),(i=window.getSelection()).removeAllRanges(),i.addRange(e))}function C(t){var e,i;t&&"DIV"===t.nodeName&&window.getSelection&&document.createRange&&((i=document.createRange()).selectNodeContents(t),(e=window.getSelection()).removeAllRanges(),e.addRange(i))}function I(){if(window.getSelection){var t=window.getSelection();if(t.getRangeAt&&t.rangeCount)return t.getRangeAt(0)}return null}function A(t){var e;t&&window.getSelection&&((e=window.getSelection()).removeAllRanges(),e.addRange(t))}function M(){var t=I();return t&&"startOffset"in t&&"endOffset"in t&&t.startContainer&&t.startContainer===t.endContainer?{startOffset:t.startOffset,endOffset:t.endOffset,container:t.startContainer.parentNode}:null}function x(t){var e;document.createRange&&window.getSelection&&window.getSelection()&&(e=document.createRange(),t.container.firstChild||t.container.appendChild(document.createTextNode("")),e.setStart(t.container.firstChild,t.startOffset),e.setEnd(t.container.firstChild,t.endOffset),A(e))}function _(t,e){if(void 0===e&&(e={_text:"",flush:function(){var t=this._text;return this._text="",t},set:function(t){this._text=t}}),t.nodeValue){var i=t.nodeValue.replace(/\s*\n\s*/g,"");return""!==i?e.flush()+i:""}if(t.hasChildNodes()){for(var n=t.childNodes,r="",o=0,s=n.length;o<s;o++){var a,l,h=n[o];"DIV"===h.nodeName||"P"===h.nodeName?((l=(a=n[o-1])?a.nodeName:void 0)&&"DIV"!==l&&"P"!==l&&"BR"!==l&&(""!==r&&(r+="\n"),e.flush()),r+=_(h,e),e.set("\n")):"BR"===h.nodeName?(r+=e.flush(),e.set("\n")):r+=_(h,e)}return r}return""}function S(t,e){for(var i=t?t.parentNode:void 0;i;){if(i===e)return!0;i=i.parentNode}return!1}function k(){var t,e;return-1===vt&&(t=-1,"undefined"!=typeof navigator&&"Microsoft Internet Explorer"===navigator.appName&&(e=navigator.userAgent,null!=new RegExp("MSIE ([0-9]+[.0-9]+)").exec(e)&&(t=parseFloat(RegExp.$1))),vt=t),vt}function E(){return"undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Firefox")}function T(t,e,i,n){if(t.addEventListener)return void 0===n&&(n=!1),"mousewheel"===e&&E()&&(e="DOMMouseScroll"),t.addEventListener(e,i,n),i;if(t.attachEvent){var r=function(){return i.call(t,window.event)};return t.attachEvent("on"+e,r),r}}function R(t,e,i,n){t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&E()&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent&&t.detachEvent("on"+e,i)}function O(t,e){for(var i=t.parentNode;i;){if(i===e)return!0;i=i.parentNode}return!1}function j(t){function e(e){for(var i="";void 0!==t[n]&&t[n]!==e;)i+=t[n],n++;if(t[n]!==e)throw new Error("Invalid JSON path: unexpected end, character "+e+" expected");return i}for(var i=[],n=0;void 0!==t[n];)if("."===t[n])n++,i.push(function(){for(var e="";void 0!==t[n]&&/[\w$]/.test(t[n]);)e+=t[n],n++;if(""===e)throw new Error("Invalid JSON path: property name expected at index "+n);return e}());else{if("["!==t[n])throw new Error('Invalid JSON path: unexpected character "'+t[n]+'" at index '+n);if("'"===t[++n]||'"'===t[n]){var r=t[n];if(n++,i.push(e(r)),t[n]!==r)throw new Error("Invalid JSON path: closing quote ' expected at index "+n);n++}else{var o=e("]").trim();if(0===o.length)throw new Error("Invalid JSON path: array value expected at index "+n);o="*"===o?o:JSON.parse(o),i.push(o)}if("]"!==t[n])throw new Error("Invalid JSON path: closing bracket ] expected at index "+n);n++}return i}function N(t){return t.map((function(t){return"number"==typeof t?"["+t+"]":"string"==typeof t&&t.match(/^[A-Za-z0-9_$]+$/)?"."+t:'["'+t+'"]'})).join("")}function L(t){var e,i;return"enum"!==t.keyword||!Array.isArray(t.schema)||(i=t.schema)&&(5<(i=i.map((function(t){return JSON.stringify(t)}))).length&&(e=["("+(i.length-5)+" more...)"],(i=i.slice(0,5)).push(e)),t.message="should be equal to one of: "+i.join(", ")),"additionalProperties"===t.keyword&&(t.message="should NOT have additional property: "+t.params.additionalProperty),t}function B(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function D(t){return"object"===n(t)&&Array.isArray(t.path)&&"string"==typeof t.message}function Z(t,e,i){var n=void 0!==i?i:0;return e.left-n>=t.left&&e.right+n<=t.right&&e.top-n>=t.top&&e.bottom+n<=t.bottom}function P(t,e,i){var n;return function(){var r=this,o=arguments,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}}function W(t,e){for(var i=e.length,n=0,r=t.length,o=e.length;e.charAt(n)===t.charAt(n)&&n<i;)n++;for(;e.charAt(o-1)===t.charAt(r-1)&&n<o&&0<r;)o--,r--;return{start:n,end:o}}function $(t){function e(e){var i=t.value.substring(0,e);return{row:(i.match(/\n/g)||[]).length+1,column:i.length-i.lastIndexOf("\n")}}var i,n,r,o,s,a=0,l=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(a=t.selectionStart,l=t.selectionEnd):(n=document.selection.createRange())&&n.parentElement()===t&&(o=t.value.length,i=t.value.replace(/\r\n/g,"\n"),(r=t.createTextRange()).moveToBookmark(n.getBookmark()),(s=t.createTextRange()).collapse(!1),-1<r.compareEndPoints("StartToEnd",s)?a=l=o:(a=-r.moveStart("character",-o),a+=i.slice(0,a).split("\n").length-1,-1<r.compareEndPoints("EndToEnd",s)?l=o:(l=-r.moveEnd("character",-o),l+=i.slice(0,l).split("\n").length-1))),{startIndex:a,endIndex:l,start:e(a),end:e(l)}}function H(t,e,i){var n=t.value||"";if(0<e&&0<i){var r=n.split("\n",e);e=Math.min(r.length,e),i=Math.min(r[e-1].length,i-1);var o=1===e?i:i+1;return r.slice(0,e-1).join("\n").length+o}return-1}function z(t,e){var i,n=[];if(!e||!e.length)return n;try{i=dt.a.parse(t)}catch(t){return n}return e.forEach((function(t){var e=G(j(t)),r=i.pointers[e];r&&n.push({path:t,line:r.key?r.key.line:r.value?r.value.line:0,column:r.key?r.key.column:r.value?r.value.column:0})})),n}function G(t){return t.map((function(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")})).join("")}function F(t){var e=document.createElement("div");return e.style.color=t,e.style.color.split(/\s+/).join("").toLowerCase()||null}function V(t){return!!F(t)}function K(t,e){if(!t)return"";var i="";return t.title&&(i+=t.title),t.description&&(0<i.length&&(i+="\n"),i+=t.description),t.default&&(0<i.length&&(i+="\n\n"),i+=Object(ft.c)("default",void 0,e)+"\n",i+=JSON.stringify(t.default,null,2)),Array.isArray(t.examples)&&0<t.examples.length&&(0<i.length&&(i+="\n\n"),i+=Object(ft.c)("examples",void 0,e)+"\n",t.examples.forEach((function(e,n){i+=JSON.stringify(e,null,2),n!==t.examples.length-1&&(i+="\n")}))),i}function Y(t,e){for(var i=t,n=0;n<e.length&&null!=i;n++)i=i[e[n]];return i}function U(t,e){for(var i=t.replace(/ \(copy( \d+)?\)$/,""),n=i,r=1;-1!==e.indexOf(n);)n=i+" (copy"+(1<r?" "+r:"")+")",r++;return n}function X(t,e){var i={};if(Array.isArray(t))for(var n=Math.min(t.length,pt),r=0;r<n;r++)!function t(e,i,n,r){(Array.isArray(e)||nt(e))&&!r||(i[n||""]=!0),nt(e)&&Object.keys(e).forEach((function(o){t(e[o],i,n+"."+o,r)}))}(t[r],i,"",e);else i[""]=!0;return Object.keys(i).sort()}function J(t,e,i){var n=e&&"."!==e?j(e):[],r="desc"===i?-1:1,o=t.slice();return o.sort((function(t,e){var i=Y(t,n),o=Y(e,n);return r*(o<i?1:i<o?-1:0)})),o}function Q(t,e){var i="desc"===e?-1:1,n=Object.keys(t).sort((function(t,e){return i*lt()(t,e)})),r={};return n.forEach((function(e){r[e]=t[e]})),r}function q(t){if(""===t)return"";var e=t.toLowerCase();if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;var i=Number(t),n=parseFloat(t);return isNaN(i)||isNaN(n)?t:i}function tt(t,e){return"number"==typeof e&&gt<e&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf())}function et(t){if(t<900)return t.toFixed()+" B";var e=t/1e3;if(e<900)return e.toFixed(1)+" KB";var i=e/1e3;if(i<900)return i.toFixed(1)+" MB";var n=i/1e3;return n<900?n.toFixed(1)+" GB":(n/1e3).toFixed(1)+" TB"}function it(t,e){return t.length<=e?t:t.slice(0,e)+"..."}function nt(t){return"object"===n(t)&&null!==t&&!Array.isArray(t)}function rt(t,e){return-1!==t.indexOf(e)}function ot(t,e){if(!e&&!t)return!1;if(e&&!t||!e&&t)return!0;if(e.length!==t.length)return!0;for(var i=0;i<t.length;++i){var r=function(i){if(!("error"===t[i].type?e.find((function(e){return e.line===t[i].line})):e.find((function(e){return e.dataPath===t[i].dataPath&&e.schemaPath===t[i].schemaPath}))))return{v:!0}}(i);if("object"===n(r))return r.v}return!1}function st(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i.r(e),i.d(e,"parse",(function(){return r})),i.d(e,"repair",(function(){return o})),i.d(e,"escapeUnicodeChars",(function(){return s})),i.d(e,"validate",(function(){return a})),i.d(e,"extend",(function(){return l})),i.d(e,"clear",(function(){return h})),i.d(e,"getType",(function(){return c})),i.d(e,"isUrl",(function(){return u})),i.d(e,"isArray",(function(){return d})),i.d(e,"getWindow",(function(){return f})),i.d(e,"getAbsoluteLeft",(function(){return p})),i.d(e,"getAbsoluteTop",(function(){return g})),i.d(e,"addClassName",(function(){return m})),i.d(e,"removeAllClassNames",(function(){return v})),i.d(e,"removeClassName",(function(){return b})),i.d(e,"stripFormatting",(function(){return y})),i.d(e,"setEndOfContentEditable",(function(){return w})),i.d(e,"selectContentEditable",(function(){return C})),i.d(e,"getSelection",(function(){return I})),i.d(e,"setSelection",(function(){return A})),i.d(e,"getSelectionOffset",(function(){return M})),i.d(e,"setSelectionOffset",(function(){return x})),i.d(e,"getInnerText",(function(){return _})),i.d(e,"hasParentNode",(function(){return S})),i.d(e,"getInternetExplorerVersion",(function(){return k})),i.d(e,"isFirefox",(function(){return E})),i.d(e,"addEventListener",(function(){return T})),i.d(e,"removeEventListener",(function(){return R})),i.d(e,"isChildOf",(function(){return O})),i.d(e,"parsePath",(function(){return j})),i.d(e,"stringifyPath",(function(){return N})),i.d(e,"improveSchemaError",(function(){return L})),i.d(e,"isPromise",(function(){return B})),i.d(e,"isValidValidationError",(function(){return D})),i.d(e,"insideRect",(function(){return Z})),i.d(e,"debounce",(function(){return P})),i.d(e,"textDiff",(function(){return W})),i.d(e,"getInputSelection",(function(){return $})),i.d(e,"getIndexForPosition",(function(){return H})),i.d(e,"getPositionForPath",(function(){return z})),i.d(e,"compileJSONPointer",(function(){return G})),i.d(e,"getColorCSS",(function(){return F})),i.d(e,"isValidColor",(function(){return V})),i.d(e,"makeFieldTooltip",(function(){return K})),i.d(e,"get",(function(){return Y})),i.d(e,"findUniqueName",(function(){return U})),i.d(e,"getChildPaths",(function(){return X})),i.d(e,"sort",(function(){return J})),i.d(e,"sortObjectKeys",(function(){return Q})),i.d(e,"parseString",(function(){return q})),i.d(e,"isTimestamp",(function(){return tt})),i.d(e,"formatSize",(function(){return et})),i.d(e,"limitCharacters",(function(){return it})),i.d(e,"isObject",(function(){return nt})),i.d(e,"contains",(function(){return rt})),i.d(e,"isValidationErrorChanged",(function(){return ot})),i(24);var at=i(11),lt=i.n(at),ht=i(22),ct=i.n(ht),ut=i(33),dt=i.n(ut),ft=i(1),pt=1e4,gt=9466848e5,mt=/^https?:\/\/\S+$/,vt=-1},function(t,e,i){"use strict";function n(t){var e;t&&((e=s.find((function(e){return e===t})))?c=e:console.error("Language not found"))}function r(t){if(t)for(var e in t)!function(e){s.find((function(t){return t===e}))||s.push(e),a[e]=Object.assign({},a[l],a[e],t[e])}(e)}function o(t,e,i){var n=a[i=i||c][t]||a[l][t]||t;if(e)for(var r in e)n=n.replace("${"+r+"}",e[r]);return n}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i(24);var s=["en","pt-BR","zh-CN","tr","ja","fr-FR","de"],a={en:{array:"Array",auto:"Auto",appendText:"Append",appendTitle:"Append a new field with type 'auto' after this field (Ctrl+Shift+Ins)",appendSubmenuTitle:"Select the type of the field to be appended",appendTitleAuto:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascending",ascendingTitle:"Sort the childs of this ${type} in ascending order",actionsMenu:"Click to open the actions menu (Ctrl+M)",cannotParseFieldError:"Cannot parse field into JSON",cannotParseValueError:"Cannot parse value into JSON",collapseAll:"Collapse all fields",compactTitle:"Compact JSON data, remove all whitespaces (Ctrl+Shift+\\)",descending:"Descending",descendingTitle:"Sort the childs of this ${type} in descending order",drag:"Drag to move this field (Alt+Shift+Arrows)",duplicateKey:"duplicate key",duplicateText:"Duplicate",duplicateTitle:"Duplicate selected fields (Ctrl+D)",duplicateField:"Duplicate this field (Ctrl+D)",duplicateFieldError:"Duplicate field name",empty:"empty",expandAll:"Expand all fields",expandTitle:"Click to expand/collapse this field (Ctrl+E). \nCtrl+Click to expand/collapse including all childs.",formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+\\)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default",containsInvalidProperties:"Contains invalid properties",containsInvalidItems:"Contains invalid items"},"zh-CN":{array:"数组",auto:"自动",appendText:"追加",appendTitle:"在此字段后追加一个类型为“auto”的新字段 (Ctrl+Shift+Ins)",appendSubmenuTitle:"选择要追加的字段类型",appendTitleAuto:"追加类型为“auto”的新字段 (Ctrl+Shift+Ins)",ascending:"升序",ascendingTitle:"升序排列${type}的子节点",actionsMenu:"点击打开动作菜单(Ctrl+M)",cannotParseFieldError:"无法将字段解析为JSON",cannotParseValueError:"无法将值解析为JSON",collapseAll:"缩进所有字段",compactTitle:"压缩JSON数据删除所有空格 (Ctrl+Shift+\\)",descending:"降序",descendingTitle:"降序排列${type}的子节点",drag:"拖拽移动该节点(Alt+Shift+Arrows)",duplicateKey:"重复键",duplicateText:"复制",duplicateTitle:"复制选中字段(Ctrl+D)",duplicateField:"复制该字段(Ctrl+D)",duplicateFieldError:"重复的字段名称",empty:"清空",expandAll:"展开所有字段",expandTitle:"点击 展开/收缩 该字段(Ctrl+E). \nCtrl+Click 展开/收缩 包含所有子节点.",formatTitle:"使用适当的缩进和换行符格式化JSON数据 (Ctrl+\\)",insert:"插入",insertTitle:"在此字段前插入类型为“auto”的新字段 (Ctrl+Ins)",insertSub:"选择要插入的字段类型",object:"对象",ok:"Ok",redo:"重做 (Ctrl+Shift+Z)",removeText:"移除",removeTitle:"移除选中字段 (Ctrl+Del)",removeField:"移除该字段 (Ctrl+Del)",repairTitle:"修复JSON修复引号和转义符删除注释和JSONP表示法将JavaScript对象转换为JSON。",selectNode:"选择一个节点...",showAll:"展示全部",showMore:"展示更多",showMoreStatus:"显示${totalChilds}的${visibleChilds}项目.",sort:"排序",sortTitle:"排序${type}的子节点",sortTitleShort:"内容排序",sortFieldLabel:"字段:",sortDirectionLabel:"方向:",sortFieldTitle:"选择用于对数组或对象排序的嵌套字段",sortAscending:"升序排序",sortAscendingTitle:"按照该字段升序排序",sortDescending:"降序排序",sortDescendingTitle:"按照该字段降序排序",string:"字符串",transform:"变换",transformTitle:"筛选,排序,或者转换${type}的子节点",transformTitleShort:"筛选,排序,或者转换内容",extract:"提取",extractTitle:"提取这个 ${type}",transformQueryTitle:"输入JMESPath查询",transformWizardLabel:"向导",transformWizardFilter:"筛选",transformWizardSortBy:"排序",transformWizardSelectFields:"选择字段",transformQueryLabel:"查询",transformPreviewLabel:"预览",type:"类型",typeTitle:"更改字段类型",openUrl:"Ctrl+Click 或者 Ctrl+Enter 在新窗口打开链接",undo:"撤销上次动作 (Ctrl+Z)",validationCannotMove:"无法将字段移入其子节点",autoType:'字段类型 "auto". 字段类型由值自动确定 可以为 stringnumberboolean或者 null.',objectType:'字段类型 "object". 对象包含一组无序的键/值对.',arrayType:'字段类型 "array". 数组包含值的有序集合.',stringType:'字段类型 "string". 字段类型由值自动确定,但始终作为字符串返回.',modeCodeText:"代码",modeCodeTitle:"切换至代码高亮",modeFormText:"表单",modeFormTitle:"切换至表单编辑",modeTextText:"文本",modeTextTitle:"切换至文本编辑",modeTreeText:"树",modeTreeTitle:"切换至树编辑",modeViewText:"视图",modeViewTitle:"切换至树视图",modePreviewText:"预览",modePreviewTitle:"切换至预览模式",examples:"例子",default:"缺省",containsInvalidProperties:"包含无效的属性",containsInvalidItems:"包含无效项目"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possível analisar o campo no JSON",cannotParseValueError:"Não é possível analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+\\)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:"Clique para expandir/encolher este campo (Ctrl+E). \nCtrl+Click para expandir/encolher incluindo todos os filhos.",formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+\\)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds} itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia",containsInvalidProperties:"Contém propriedades inválidas",containsInvalidItems:"Contém itens inválidos"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taşımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"Aşağıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluştur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluştur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıştırılamıyor",cannotParseValueError:"JSON'a değer ayrıştırılamıyor",empty:"boş",expandAll:"Tüm alanları aç",expandTitle:"Bu alanı açmak/kapatmak için tıkla (Ctrl+E). \nAlt alanlarda dahil tüm alanları açmak için Ctrl+Click ",insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiş alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"Dönüştür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüştür",transformTitleShort:"İçerikleri filterele, sırala veya dönüştür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Önizleme",type:"Tip",typeTitle:"Bu alanın tipini değiştir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son değişikliği geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taşınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak değerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamış bir anahtar / değer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli değerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü değerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"Ağaç",modeTreeTitle:"Ağaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"Ağaç görünümüne geç",examples:"Örnekler",default:"Varsayılan",containsInvalidProperties:"Geçersiz özellikler içeriyor",containsInvalidItems:"Geçersiz öğeler içeriyor"},ja:{array:"配列",auto:"オート",appendText:"追加",appendTitle:'次のフィールドに"オート"のフィールドを追加 (Ctrl+Shift+Ins)',appendSubmenuTitle:"追加するフィールドの型を選択してください",appendTitleAuto:'"オート"のフィールドを追加 (Ctrl+Shift+Ins)',ascending:"昇順",ascendingTitle:"${type}の子要素を昇順に並べ替え",actionsMenu:"クリックしてアクションメニューを開く (Ctrl+M)",collapseAll:"すべてを折りたたむ",descending:"降順",descendingTitle:"${type}の子要素を降順に並べ替え",drag:"ドラッグして選択中のフィールドを移動 (Alt+Shift+Arrows)",duplicateKey:"複製キー",duplicateText:"複製",duplicateTitle:"選択中のフィールドを複製 (Ctrl+D)",duplicateField:"選択中のフィールドを複製 (Ctrl+D)",duplicateFieldError:"フィールド名が重複しています",cannotParseFieldError:"JSONのフィールドを解析できません",cannotParseValueError:"JSONの値を解析できません",empty:"空",expandAll:"すべてを展開",expandTitle:"クリックしてフィールドを展開/折りたたむ (Ctrl+E). \nCtrl+Click ですべての子要素を展開/折りたたむ",insert:"挿入",insertTitle:"選択中のフィールドの前に新しいフィールドを挿入 (Ctrl+Ins)",insertSub:"挿入するフィールドの型を選択",object:"オブジェクト",ok:"実行",redo:"やり直す (Ctrl+Shift+Z)",removeText:"削除",removeTitle:"選択中のフィールドを削除 (Ctrl+Del)",removeField:"選択中のフィールドを削除 (Ctrl+Del)",selectNode:"ノードを選択...",showAll:"すべてを表示",showMore:"もっと見る",showMoreStatus:"${totalChilds}個のアイテムのうち ${visibleChilds}個を表示しています。",sort:"並べ替え",sortTitle:"${type}の子要素を並べ替え",sortTitleShort:"並べ替え",sortFieldLabel:"フィールド:",sortDirectionLabel:"順序:",sortFieldTitle:"配列またはオブジェクトを並び替えるためのフィールドを選択",sortAscending:"昇順",sortAscendingTitle:"選択中のフィールドを昇順に並び替え",sortDescending:"降順",sortDescendingTitle:"選択中のフィールドを降順に並び替え",string:"文字列",transform:"変換",transformTitle:"${type}の子要素をフィルター・並び替え・変換する",transformTitleShort:"内容をフィルター・並び替え・変換する",extract:"抽出",extractTitle:"${type}を抽出",transformQueryTitle:"JMESPathクエリを入力",transformWizardLabel:"ウィザード",transformWizardFilter:"フィルター",transformWizardSortBy:"並び替え",transformWizardSelectFields:"フィールドを選択",transformQueryLabel:"クエリ",transformPreviewLabel:"プレビュー",type:"型",typeTitle:"選択中のフィールドの型を変更",openUrl:"Ctrl+Click または Ctrl+Enter で 新規ウィンドウでURLを開く",undo:"元に戻す (Ctrl+Z)",validationCannotMove:"子要素に移動できません ",autoType:"オート: フィールドの型は値から自動的に決定されます。 (文字列・数値・ブール・null)",objectType:"オブジェクト: オブジェクトは順序が決まっていないキーと値のペア組み合わせです。",arrayType:"配列: 配列は順序が決まっている値の集合体です。",stringType:"文字列: フィールド型は値から決定されませんが、常に文字列として返されます。",modeCodeText:"コードモード",modeCodeTitle:"ハイライトモードに切り替え",modeFormText:"フォームモード",modeFormTitle:"フォームモードに切り替え",modeTextText:"テキストモード",modeTextTitle:"テキストモードに切り替え",modeTreeText:"ツリーモード",modeTreeTitle:"ツリーモードに切り替え",modeViewText:"ビューモード",modeViewTitle:"ビューモードに切り替え",modePreviewText:"プレビュー",modePreviewTitle:"プレビューに切り替え",examples:"例",default:"デフォルト",containsInvalidProperties:"無効なプロパティが含まれています",containsInvalidItems:"無効なアイテムが含まれています"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",descendingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Étendre",expandTitle:"Étendre/regrouper ce champ (Ctrl+E). \nCtrl+Click pour étendre/regrouper avec tous les champs.",insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nœud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:'Champ de type "chaîne". Ce type de champ n\'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.',modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut",containsInvalidProperties:"Contient des propriétés non valides",containsInvalidItems:"Contient des éléments invalides"},de:{array:"Auflistung",auto:"Auto",appendText:"anhängen",appendTitle:"Fügen Sie nach diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Umschalt+Ein)",appendSubmenuTitle:"Wählen Sie den Typ des neuen Feldes",appendTitleAuto:"Ein neues Feld vom Typ 'auto' hinzufügen (Strg+Umschalt+Ein)",ascending:"Aufsteigend",ascendingTitle:"Sortieren Sie die Elemente dieses ${type} in aufsteigender Reihenfolge",actionsMenu:"Klicken Sie zum Öffnen des Aktionsmenüs (Strg+M)",cannotParseFieldError:"Feld kann nicht in JSON geparst werden",cannotParseValueError:"Wert kann nicht in JSON geparst werden",collapseAll:"Alle Felder zuklappen",compactTitle:"JSON-Daten verdichten, alle Leerzeichen entfernen (Strg+Umschalt+\\)",descending:"Absteigend",descendingTitle:"Sortieren Sie die Elemente dieses ${type} in absteigender Reihenfolge",drag:"Ziehen, um dieses Feld zu verschieben (Alt+Umschalt+Pfeile)",duplicateKey:"Doppelter Schlüssel",duplicateText:"Duplikat",duplicateTitle:"Ausgewählte Felder duplizieren (Strg+D)",duplicateField:"Dieses Feld duplizieren (Strg+D)",duplicateFieldError:"Doppelter Feldname",empty:"leer",expandAll:"Alle Felder anzeigen",expandTitle:"Klicken Sie, um dieses Feld zu erweitern/zu kollabieren (Strg+E). \nStrg+Klicken Sie, um dieses Feld einschließlich aller Elemente zu erweitern/zu kollabieren.",formatTitle:"JSON-Daten mit korrekter Einrückung und Zeilenvorschüben formatieren (Strg+\\)",insert:"einfügen",insertTitle:"Fügen Sie vor diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Einfg)",insertSub:"Wählen Sie den Typ des neuen Feldes",object:"Objekt",ok:"Ok",redo:"Wiederholen (Strg+Umschalt+Z)",removeText:"entfernen",removeTitle:"Ausgewählte Felder entfernen (Strg+Entf)",removeField:"Dieses Feld entfernen (Strg+Entf)",repairTitle:"JSON reparieren: Anführungszeichen und Escape-Zeichen korrigieren, Kommentare und JSONP-Notation entfernen, JavaScript-Objekte in JSON umwandeln.",searchTitle:"Suchfelder und Werte",searchNextResultTitle:"Nächstes Ergebnis (Enter)",searchPreviousResultTitle:"Vorheriges Ergebnis (Umschalt + Eingabe)",selectNode:"Wählen Sie einen Knoten aus...",showAll:"alle anzeigen",showMore:"mehr anzeigen",showMoreStatus:"Anzeige von ${visibleChilds} von ${totalChilds}-Elementen.",sort:"Sortieren",sortTitle:"Sortieren Sie die Elemente dieses ${type}",sortTitleShort:"Inhalt sortieren",sortFieldLabel:"Feld:",sortDirectionLabel:"Richtung:",sortFieldTitle:"Wählen Sie das verschachtelte Feld, nach dem das Array oder Objekt sortiert werden soll.",sortAscending:"Aufsteigend",sortAscendingTitle:"Sortieren Sie das ausgewählte Feld in aufsteigender Reihenfolge",sortDescending:"Absteigend",sortDescendingTitle:"Sortieren Sie das ausgewählte Feld in absteigender Reihenfolge",string:"Zeichenfolge",transform:"Verwandeln",transformTitle:"Die Elemente dieses ${type} filtern, sortieren oder transformieren",transformTitleShort:"Inhalte filtern, sortieren oder transformieren",extract:"Auszug",extractTitle:"Extrahieren Sie diesen ${type}",transformQueryTitle:"Eine JMESPath-Abfrage eingeben",transformWizardLabel:"Zauberer",transformWizardFilter:"Filter",transformWizardSortBy:"Sortieren nach",transformWizardSelectFields:"Felder auswählen",transformQueryLabel:"Anfrage",transformPreviewLabel:"Vorschau",type:"Geben Sie ein.",typeTitle:"Ändern Sie den Typ dieses Feldes",openUrl:"Strg+Klicken oder Strg+Eingabe, um die URL in einem neuen Fenster zu öffnen",undo:"Letzte Aktion rückgängig machen (Strg+Z)",validationCannotMove:"Kann ein Feld nicht in ein Kind seiner selbst verschieben",autoType:'Feldtyp "auto". Der Feldtyp wird automatisch aus dem Wert bestimmt und kann ein String, eine Zahl, boolesch oder null sein.',objectType:'Feldtyp "Objekt". Ein Objekt enthält eine ungeordnete Menge von Schlüssel/Wert-Paaren.',arrayType:'Feldtyp "Array". Ein Array enthält eine geordnete Sammlung von Werten.',stringType:'Feldtyp "Zeichenfolge". Der Feldtyp wird nicht aus dem Wert bestimmt, sondern immer als Zeichenfolge zurückgegeben.',modeEditorTitle:"Editor-Modus umschalten",modeCodeText:"Code",modeCodeTitle:"Umschalten auf Code-Highlighter",modeFormText:"Formular",modeFormTitle:"Zum Formular-Editor wechseln",modeTextText:"Text",modeTextTitle:"Zum Editor für einfachen Text wechseln",modeTreeText:"Baum",modeTreeTitle:"Zum Baum-Editor wechseln",modeViewText:"Siehe",modeViewTitle:"Zur Baumansicht wechseln",modePreviewText:"Vorschau",modePreviewTitle:"In den Vorschau-Modus wechseln",examples:"Beispiele",default:"Standardmäßig",containsInvalidProperties:"Enthält ungültige Eigenschaften",containsInvalidItems:"Enthält ungültige Elemente"}},l="en",h="undefined"!=typeof navigator?navigator.language||navigator.userLanguage:void 0,c=s.find((function(t){return t===h}))||l},function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return s}));var n=document.body,r=10485760,o=2e4,s=2147483648},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.d(e,"a",(function(){return a}));var r=i(12),o=i(0),s=i(1),a=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom={};var n=this,r=this.dom;this.anchor=void 0,this.items=e,this.eventListeners={},this.selection=void 0,this.onClose=i?i.close:void 0;var o=document.createElement("div");o.className="jsoneditor-contextmenu-root",r.root=o;var a=document.createElement("div");a.className="jsoneditor-contextmenu",r.menu=a,o.appendChild(a);var l=document.createElement("ul");l.className="jsoneditor-menu",a.appendChild(l),r.list=l,r.items=[];var h=document.createElement("button");h.type="button",r.focusButton=h;var c=document.createElement("li");c.style.overflow="hidden",c.style.height="0",c.appendChild(h),l.appendChild(c),function t(e,i,r){r.forEach((function(r){var o,a,l,h,c,u,d,f,p,g,m,v,b,y,w;"separator"===r.type?((o=document.createElement("div")).className="jsoneditor-separator",(a=document.createElement("li")).appendChild(o),e.appendChild(a)):(l={},h=document.createElement("li"),e.appendChild(h),(c=document.createElement("button")).type="button",c.className=r.className,l.button=c,r.title&&(c.title=r.title),r.click&&(c.onclick=function(t){t.preventDefault(),n.hide(),r.click()}),h.appendChild(c),r.submenu?((u=document.createElement("div")).className="jsoneditor-icon",c.appendChild(u),(d=document.createElement("div")).className="jsoneditor-text"+(r.click?"":" jsoneditor-right-margin"),d.appendChild(document.createTextNode(r.text)),c.appendChild(d),(f=r.click?(c.className+=" jsoneditor-default",(p=document.createElement("button")).type="button",(l.buttonExpand=p).className="jsoneditor-expand",(g=document.createElement("div")).className="jsoneditor-expand",p.appendChild(g),h.appendChild(p),r.submenuTitle&&(p.title=r.submenuTitle),p):((m=document.createElement("div")).className="jsoneditor-expand",c.appendChild(m),c)).onclick=function(t){t.preventDefault(),n._onExpandItem(l),f.focus()},v=[],l.subItems=v,b=document.createElement("ul"),(l.ul=b).className="jsoneditor-menu",b.style.height="0",h.appendChild(b),t(b,v,r.submenu)):((y=document.createElement("div")).className="jsoneditor-icon",c.appendChild(y),(w=document.createElement("div")).className="jsoneditor-text",w.appendChild(document.createTextNode(Object(s.c)(r.text))),c.appendChild(w)),i.push(l))}))}(l,this.dom.items,e),this.maxHeight=0,e.forEach((function(t){var i=24*(e.length+(t.submenu?t.submenu.length:0));n.maxHeight=Math.max(n.maxHeight,i)}))}var e,i;return e=t,(i=[{key:"_getVisibleButtons",value:function(){var t=[],e=this;return this.dom.items.forEach((function(i){t.push(i.button),i.buttonExpand&&t.push(i.buttonExpand),i.subItems&&i===e.expandedItem&&i.subItems.forEach((function(e){t.push(e.button),e.buttonExpand&&t.push(e.buttonExpand)}))})),t}},{key:"show",value:function(e,i,n){this.hide();var s=!0,a=e.parentNode,l=e.getBoundingClientRect(),h=a.getBoundingClientRect(),c=i.getBoundingClientRect(),u=this;this.dom.absoluteAnchor=Object(r.a)(e,i,(function(){u.hide()})),l.bottom+this.maxHeight<c.bottom||l.top-this.maxHeight>c.top&&(s=!1);var d,f=n?0:l.top-h.top;s?(d=e.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=f+d+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=Object(o.getSelection)(),this.anchor=e,setTimeout((function(){u.dom.focusButton.focus()}),0),t.visibleMenu&&t.visibleMenu.hide(),t.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),t.visibleMenu===this&&(t.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(t){var e,i=this,n=t===this.expandedItem,r=this.expandedItem;r&&(r.ul.style.height="0",r.ul.style.padding="",setTimeout((function(){i.expandedItem!==r&&(r.ul.style.display="",Object(o.removeClassName)(r.ul.parentNode,"jsoneditor-selected"))}),300),this.expandedItem=void 0),n||((e=t.ul).style.display="block",e.clientHeight,setTimeout((function(){if(i.expandedItem===t){for(var n=0,r=0;r<e.childNodes.length;r++)n+=e.childNodes[r].clientHeight;e.style.height=n+"px",e.style.padding="5px 10px"}}),0),Object(o.addClassName)(e.parentNode,"jsoneditor-selected"),this.expandedItem=t)}},{key:"_onKeyDown",value:function(t){var e,i,n,r,s=t.target,a=t.which,l=!1;27===a?(this.selection&&Object(o.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),l=!0):9===a?t.shiftKey?0===(i=(e=this._getVisibleButtons()).indexOf(s))&&(e[e.length-1].focus(),l=!0):(i=(e=this._getVisibleButtons()).indexOf(s))===e.length-1&&(e[0].focus(),l=!0):37===a?("jsoneditor-expand"===s.className&&(i=(e=this._getVisibleButtons()).indexOf(s),(n=e[i-1])&&n.focus()),l=!0):38===a?(i=(e=this._getVisibleButtons()).indexOf(s),(n=e[i-1])&&"jsoneditor-expand"===n.className&&(n=e[i-2]),(n=n||e[e.length-1])&&n.focus(),l=!0):39===a?(i=(e=this._getVisibleButtons()).indexOf(s),(r=e[i+1])&&"jsoneditor-expand"===r.className&&r.focus(),l=!0):40===a&&(i=(e=this._getVisibleButtons()).indexOf(s),(r=e[i+1])&&"jsoneditor-expand"===r.className&&(r=e[i+2]),(r=r||e[0])&&(r.focus(),l=!0),l=!0),l&&(t.stopPropagation(),t.preventDefault())}}])&&n(e.prototype,i),t}();a.visibleMenu=void 0},function(t,e,i){"use strict";function n(t,e){var i,n,r=e.sort,o=e.filter,s=e.projection,l="";return o?(i="@"!==o.field?["0"].concat(Object(a.parsePath)("."+o.field)):["0"],n="string"==typeof Object(a.get)(t,i)?o.value:Object(a.parseString)(o.value),l+="[? "+o.field+" "+o.relation+" `"+JSON.stringify(n)+"`]"):l+=Array.isArray(t)?"[*]":"@",r&&("desc"===r.direction?l+=" | reverse(sort_by(@, &"+r.field+"))":l+=" | sort_by(@, &"+r.field+")"),s&&("]"!==l[l.length-1]&&(l+=" | [*]"),1===s.fields.length?l+="."+s.fields[0]:1<s.fields.length&&(l+=".{"+s.fields.map((function(t){var e=t.split(".");return e[e.length-1]+": "+t})).join(", ")+"}")),l}function r(t,e){return s.a.search(t,e)}i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));var o=i(34),s=i.n(o),a=i(0)},function(t,e,i){"use strict";function n(t,e,i,n){var r=Array.isArray(e)?Object(a.getChildPaths)(e):[""],l=n&&n.path&&Object(a.contains)(r,n.path)?n.path:r[0],h=n&&n.direction||"asc",c='<div class="pico-modal-contents"><div class="pico-modal-header">'+Object(s.c)("sort")+"</div><form><table><tbody><tr> <td>"+Object(s.c)("sortFieldLabel")+' </td> <td class="jsoneditor-modal-input"> <div class="jsoneditor-select-wrapper"> <select id="field" title="'+Object(s.c)("sortFieldTitle")+'"> </select> </div> </td></tr><tr> <td>'+Object(s.c)("sortDirectionLabel")+' </td> <td class="jsoneditor-modal-input"> <div id="direction" class="jsoneditor-button-group"><input type="button" value="'+Object(s.c)("sortAscending")+'" title="'+Object(s.c)("sortAscendingTitle")+'" data-value="asc" class="jsoneditor-button-first jsoneditor-button-asc"/><input type="button" value="'+Object(s.c)("sortDescending")+'" title="'+Object(s.c)("sortDescendingTitle")+'" data-value="desc" class="jsoneditor-button-last jsoneditor-button-desc"/> </div> </td></tr><tr><td colspan="2" class="jsoneditor-modal-input jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+Object(s.c)("ok")+'" /></td></tr></tbody></table></form></div>';o()({parent:t,content:c,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate((function(t){function e(t){a.value=t,a.className="jsoneditor-button-group jsoneditor-button-group-value-"+a.value}var n=t.modalElem().querySelector("form"),o=t.modalElem().querySelector("#ok"),s=t.modalElem().querySelector("#field"),a=t.modalElem().querySelector("#direction");r.forEach((function(t){var e,i=document.createElement("option");i.text=""===(e=t)?"@":"."===e[0]?e.slice(1):e,i.value=t,s.appendChild(i)})),s.value=l||r[0],e(h||"asc"),a.onclick=function(t){e(t.target.getAttribute("data-value"))},o.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.close(),i({path:s.value,direction:a.value})},n&&(n.onsubmit=o.onclick)})).afterClose((function(t){t.destroy()})).show()}i.r(e),i.d(e,"showSortModal",(function(){return n}));var r=i(14),o=i.n(r),s=i(1),a=i(0)},function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i,o){return"boolean"==typeof t||t instanceof Boolean||null===t||"number"==typeof t||t instanceof Number||"string"==typeof t||t instanceof String||t instanceof Date?JSON.stringify(t):Array.isArray(t)?function(t,e,i,n){for(var o=e?i+e:void 0,s=e?"[\n":"[",a=0;a<t.length;a++){var l=t[a];if(e&&(s+=o),s+=void 0!==l&&"function"!=typeof l?r(l,e,o,n):"null",a<t.length-1&&(s+=e?",\n":","),s.length>n)return s+"..."}return s+(e?"\n"+i+"]":"]")}(t,e,i,o):t&&"object"===n(t)?function(t,e,i,n){var o,s=e?i+e:void 0,a=!0,l=e?"{\n":"{";if("function"==typeof t.toJSON)return r(t.toJSON(),e,i,n);for(o in t)if(function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,o)){var h=t[o];if(a?a=!1:l+=e?",\n":",",l+=e?s+'"'+o+'": ':'"'+o+'":',(l+=r(h,e,s,n)).length>n)return l+"..."}return l+(e?"\n"+i+"}":"}")}(t,e,i,o):void 0}function o(t,e){for(var i="";0<e--;)i+=t;return i}function s(t){var e=t.container,i=t.json,n=t.queryDescription,s=void 0===n?p:n,a=t.createQuery,h=t.executeQuery,g=t.onTransform,m=i,v='<label class="pico-modal-contents"><div class="pico-modal-header">'+Object(u.c)("transform")+"</div><p>"+s+'</p><div class="jsoneditor-jmespath-label">'+Object(u.c)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard"> <table class="jsoneditor-jmespath-wizard-table"> <tbody> <tr> <th>'+Object(u.c)("transformWizardFilter")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" > <select id="filterField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" > <select id="filterRelation"> <option value="==">==</option> <option value="!=">!=</option> <option value="<">&lt;</option> <option value="<=">&lt;=</option> <option value=">">&gt;</option> <option value=">=">&gt;=</option> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" > <input type="text" class="value" placeholder="value..." id="filterValue" /> </div> </td> </tr> <tr> <th>'+Object(u.c)("transformWizardSortBy")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-sort-field"> <select id="sortField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" > <select id="sortOrder"> <option value="asc">Ascending</option> <option value="desc">Descending</option> </select> </div> </td> </tr> <tr id="selectFieldsPart"> <th>'+Object(u.c)("transformWizardSelectFields")+'</th> <td class="jsoneditor-jmespath-filter"> <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select> </td> </tr> </tbody> </table></div><div class="jsoneditor-jmespath-label">'+Object(u.c)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="query" rows="4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" title="'+Object(u.c)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+Object(u.c)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="preview" class="jsoneditor-transform-preview" readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+Object(u.c)("ok")+'" autofocus /></div></div>';l()({parent:e,content:v,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate((function(t){function e(t){return""===t?"@":"."===t[0]?t.slice(1):t}function n(t,e){try{A.value=a(t,e),p.disabled=!1,O()}catch(t){var i='Error: an error happened when executing "createQuery": '+(t.message||t.toString());A.value="",p.disabled=!0,M.className="jsoneditor-transform-preview jsoneditor-error",M.value=i}}function s(){var t={};if(v.value&&b.value&&y.value&&(t.filter={field:v.value,relation:b.value,value:y.value}),w.value&&C.value&&(t.sort={field:w.value,direction:C.value}),I.value){for(var e,r=[],o=0;o<I.options.length;o++)I.options[o].selected&&(e=I.options[o].value,r.push(e));t.projection={fields:r}}n(i,t)}var l=t.modalElem(),u=l.querySelector("#wizard"),p=l.querySelector("#ok"),v=l.querySelector("#filterField"),b=l.querySelector("#filterRelation"),y=l.querySelector("#filterValue"),w=l.querySelector("#sortField"),C=l.querySelector("#sortOrder"),I=l.querySelector("#selectFields"),A=l.querySelector("#query"),M=l.querySelector("#preview");Array.isArray(m)||(u.style.fontStyle="italic",u.textContent="(wizard not available for objects, only for arrays)"),Object(d.getChildPaths)(i).forEach((function(t){var i=e(t),n=document.createElement("option");n.text=i,n.value=i,v.appendChild(n);var r=document.createElement("option");r.text=i,r.value=i,w.appendChild(r)}));var x,_=Object(d.getChildPaths)(i,!0).filter((function(t){return""!==t}));0<_.length?_.forEach((function(t){var i=e(t),n=document.createElement("option");n.text=i,n.value=i,I.appendChild(n)})):(x=l.querySelector("#selectFieldsPart"))&&(x.style.display="none");var S=new c.a(v,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),k=new c.a(b,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"compare..."}),E=new c.a(w,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),T=new c.a(C,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"order..."}),R=new c.a(I,{multiple:!0,clearable:!0,defaultSelected:!1,placeholder:"select fields..."});S.on("selectr.change",s),k.on("selectr.change",s),y.oninput=s,E.on("selectr.change",s),T.on("selectr.change",s),R.on("selectr.change",s),l.querySelector(".pico-modal-contents").onclick=function(t){"A"!==t.target.nodeName&&t.preventDefault()};var O=Object(d.debounce)((function(){try{var t=h(m,A.value);M.className="jsoneditor-transform-preview",M.value=function(t,e,i){var n;n=o(" ",2);var s,a,l=r(t,n,"",i);return l.length>i?(s=l,("number"==typeof(a=i)?s.slice(0,a):s)+"..."):l}(t,0,f.b),p.disabled=!1}catch(t){M.className="jsoneditor-transform-preview jsoneditor-error",M.value=t.toString(),p.disabled=!0}}),300);A.oninput=O,p.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.close(),g(A.value)},n(i,{}),setTimeout((function(){A.select(),A.focus(),A.selectionStart=3,A.selectionEnd=3}))})).afterClose((function(t){t.destroy()})).show()}i.r(e),i.d(e,"showTransformModal",(function(){return s}));var a=i(14),l=i.n(a),h=i(10),c=i.n(h),u=i(1),d=i(0),f=i(2),p='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.'},function(t,e,i){"use strict";function n(t,e,i,n){var r=n?" !== ":" === ",o=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(t){case"null":return e+r+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+o+"typeof "+e+r+'"object"'+o+a+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+o+a+"("+e+" % 1)"+o+e+r+e+(i?o+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(i?o+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function r(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=!0;return e}function o(t){return"number"==typeof t?"["+t+"]":d.test(t)?"."+t:"['"+s(t)+"']"}function s(t){return t.replace(f,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function a(t){return"'"+s(t)+"'"}function l(t,e){return'""'==t?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function h(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function c(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}t.exports={copy:function(t,e){for(var i in e=e||{},t)e[i]=t[i];return e},checkDataType:n,checkDataTypes:function(t,e,i){if(1===t.length)return n(t[0],e,i,!0);var o,s="",a=r(t);for(o in a.array&&a.object&&(s=a.null?"(":"(!"+e+" || ",s+="typeof "+e+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)s+=(s?" && ":"")+n(o,e,i,!0);return s},coerceToTypes:function(t,e){if(Array.isArray(e)){for(var i=[],n=0;n<e.length;n++){var r=e[n];(u[r]||"array"===t&&"array"===r)&&(i[i.length]=r)}if(i.length)return i}else{if(u[e])return[e];if("array"===t&&"array"===e)return["array"]}},toHash:r,getProperty:o,escapeQuotes:s,equal:i(18),ucs2length:i(47),varOccurences:function(t,e){e+="[^0-9]";var i=t.match(new RegExp(e,"g"));return i?i.length:0},varReplace:function(t,e,i){return e+="([^0-9])",i=i.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),i+"$1")},schemaHasRules:function(t,e){if("boolean"==typeof t)return!t;for(var i in t)if(e[i])return!0},schemaHasRulesExcept:function(t,e,i){if("boolean"==typeof t)return!t&&"not"!=i;for(var n in t)if(n!=i&&e[n])return!0},schemaUnknownRules:function(t,e){if("boolean"!=typeof t)for(var i in t)if(!e[i])return i},toQuotedString:a,getPathExpr:function(t,e,i,n){return l(t,i?"'/' + "+e+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'")},getPath:function(t,e,i){return l(t,a(i?"/"+h(e):o(e)))},getData:function(t,e,i){var n,r,s,a;if(""===t)return"rootData";if("/"==t[0]){if(!p.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,s="rootData"}else{if(!(a=t.match(g)))throw new Error("Invalid JSON-pointer: "+t);if(n=+a[1],"#"==(r=a[2])){if(e<=n)throw new Error("Cannot access property/index "+n+" levels up, current level is "+e);return i[e-n]}if(e<n)throw new Error("Cannot access data "+n+" levels up, current level is "+e);if(s="data"+(e-n||""),!r)return s}for(var l=s,h=r.split("/"),u=0;u<h.length;u++){var d=h[u];d&&(s+=o(c(d)),l+=" && "+s)}return l},unescapeFragment:function(t){return c(decodeURIComponent(t))},unescapeJsonPointer:c,escapeFragment:function(t){return encodeURIComponent(h(t))},escapeJsonPointer:h};var u=r(["string","number","integer","boolean","null"]),d=/^[a-z$_][a-z$_0-9]*$/i,f=/'|\\/g,p=/^\/(?:[^~]|~0|~1)*$/,g=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.d(e,"a",(function(){return s}));var r=i(3),o=i(1),s=function(){function t(e,i,n,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a={code:{text:Object(o.c)("modeCodeText"),title:Object(o.c)("modeCodeTitle"),click:function(){s("code")}},form:{text:Object(o.c)("modeFormText"),title:Object(o.c)("modeFormTitle"),click:function(){s("form")}},text:{text:Object(o.c)("modeTextText"),title:Object(o.c)("modeTextTitle"),click:function(){s("text")}},tree:{text:Object(o.c)("modeTreeText"),title:Object(o.c)("modeTreeTitle"),click:function(){s("tree")}},view:{text:Object(o.c)("modeViewText"),title:Object(o.c)("modeViewTitle"),click:function(){s("view")}},preview:{text:Object(o.c)("modePreviewText"),title:Object(o.c)("modePreviewTitle"),click:function(){s("preview")}}},l=[],h=0;h<i.length;h++){var c=i[h],u=a[c];if(!u)throw new Error('Unknown mode "'+c+'"');u.className="jsoneditor-type-modes"+(n===c?" jsoneditor-selected":""),l.push(u)}var d=a[n];if(!d)throw new Error('Unknown mode "'+n+'"');var f=d.text,p=document.createElement("button");p.type="button",p.className="jsoneditor-modes jsoneditor-separator",p.textContent=f+" ▾",p.title=Object(o.c)("modeEditorTitle"),p.onclick=function(){new r.a(l).show(p,e)};var g=document.createElement("div");g.className="jsoneditor-modes",g.style.position="relative",g.appendChild(p),e.appendChild(g),this.dom={container:e,box:p,frame:g}}var e,i;return e=t,(i=[{key:"focus",value:function(){this.dom.box.focus()}},{key:"destroy",value:function(){this.dom&&this.dom.frame&&this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom=null}}])&&n(e.prototype,i),t}()},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.d(e,"a",(function(){return r}));var r=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=e.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus="function"==typeof e.onFocus?e.onFocus:null,this.onBlur="function"==typeof e.onBlur?e.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=function(t){9!==t.which&&9!==t.keyCode||this._onEvent(t)}.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp))}var e,i;return e=t,(i=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(t){var e=t.target;e===this.target||this.target.contains(e)||this.target.contains(document.activeElement)?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag&&(this.firstEventFlag=!1))}}])&&n(e.prototype,i),t}()},function(t,e,i){"use strict";function n(){}function r(t,e){return t.hasOwnProperty(e)&&(!0===t[e]||t[e].length)}function o(t,e,i){t.parentNode?t.parentNode.parentNode||e.appendChild(t.parentNode):e.appendChild(t),u.removeClass(t,"excluded"),i||(t.textContent=t.textContent+"")}function s(){var t,e;this.items.length&&(t=document.createDocumentFragment(),this.config.pagination?(e=this.pages.slice(0,this.pageIndex),u.each(e,(function(e,i){u.each(i,(function(e,i){o(i,t,this.customOption)}),this)}),this)):u.each(this.items,(function(e,i){o(i,t,this.customOption)}),this),t.childElementCount&&(u.removeClass(this.items[this.navIndex],"active"),this.navIndex=t.querySelector(".selectr-option").idx,u.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(t))}function a(t,e){e=e||t;var i=this.customOption?this.config.renderOption(e):t.textContent,n=u.createElement("li",{class:"selectr-option",html:i,role:"treeitem","aria-selected":!1});return n.idx=t.idx,this.items.push(n),t.defaultSelected&&this.defaultSelected.push(t.idx),t.disabled&&(n.disabled=!0,u.addClass(n,"disabled")),n}function l(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&u.removeClass(this.inputContainer,"active"),u.hasClass(this.container,"notice")&&(u.removeClass(this.container,"notice"),u.addClass(this.container,"open"),this.input.focus()),u.each(this.items,(function(t,e){u.removeClass(e,"excluded"),this.customOption||(e.textContent=e.textContent+"")}),this))}function h(t,e){if(e=e||{},!t)throw new Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if("string"==typeof(this.el=t)&&(this.el=document.querySelector(t)),null===this.el)throw new Error("The element you passed to Selectr can not be found.");if("select"!==this.el.nodeName.toLowerCase())throw new Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(e)}var c={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag..."};n.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){this._events=this._events||{},t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)},emit:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},n.mixin=function(t){for(var e=["on","off","emit"],i=0;i<e.length;i++)"function"==typeof t?t.prototype[e[i]]=n.prototype[e[i]]:t[e[i]]=n.prototype[e[i]];return t};var u={extend:function(t,e){for(var i in e=e||{},t)t.hasOwnProperty(i)&&(e.hasOwnProperty(i)||(e[i]=t[i]));return e},each:function(t,e,i){if("[object Object]"===Object.prototype.toString.call(t))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(i,n,t[n],t);else for(var r=0,o=t.length;r<o;r++)e.call(i,r,t[r],t)},createElement:function(t,e){var i,n,r=document,o=r.createElement(t);if(e&&"[object Object]"===Object.prototype.toString.call(e))for(i in e)i in o?o[i]=e[i]:"html"===i?o.textContent=e[i]:"text"===i?(n=r.createTextNode(e[i]),o.appendChild(n)):o.setAttribute(i,e[i]);return o},hasClass:function(t,e){if(t)return t.classList?t.classList.contains(e):!!t.className&&!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){u.hasClass(t,e)||(t.classList?t.classList.add(e):t.className=t.className.trim()+" "+e)},removeClass:function(t,e){u.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(t,e){return t&&t!==document.body&&(e(t)?t:u.closest(t.parentNode,e))},isInt:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},debounce:function(t,e,i){var n;return function(){var r=this,o=arguments,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},rect:function(t,e){var i=window,n=t.getBoundingClientRect(),r=e?i.pageXOffset:0,o=e?i.pageYOffset:0;return{bottom:n.bottom+o,height:n.height,left:n.left+r,right:n.right+r,top:n.top+o,width:n.width}},includes:function(t,e){return-1<t.indexOf(e)},truncate:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}},d=function(){var t,e=this.tree,i=e.scrollTop;e.scrollHeight-e.offsetHeight<=i&&this.pageIndex<this.pages.length&&(t=document.createDocumentFragment(),u.each(this.pages[this.pageIndex],(function(e,i){o(i,t,this.customOption)}),this),e.appendChild(t),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length}))};h.prototype.render=function(t){var e;this.rendered||(this.config=u.extend(c,t),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=r(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.navigating=!1,this.mobileDevice=!1,/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&"function"==typeof this.config.renderOption,this.customSelected=this.config.hasOwnProperty("renderSelection")&&"function"==typeof this.config.renderSelection,n.mixin(this),function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,r(this.config,"width")&&(u.isInt(this.config.width)?this.width=this.config.width+"px":"auto"===this.config.width?this.width="100%":u.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=u.createElement("div",{class:"selectr-container"}),this.config.customClass&&u.addClass(this.container,this.config.customClass),this.mobileDevice?u.addClass(this.container,"selectr-mobile"):u.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?u.addClass(this.el,"selectr-visible"):u.addClass(this.el,"selectr-hidden"),this.selected=u.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:1,"aria-expanded":!1}),this.label=u.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var t,e=u.createElement("div",{class:"selectr-options-container"});this.tree=u.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=u.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple&&(u.addClass(this.label,"selectr-tags"),u.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.getSelectedProperties("value"),this.selectedIndexes=this.getSelectedProperties("idx")),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=u.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),u.addClass(this.container,"clearable")),this.config.taggable&&(t=u.createElement("li",{class:"input-tag"}),this.input=u.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),t.appendChild(this.input),this.label.appendChild(t),u.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators&&(this.tagSeperators=this.tagSeperators.concat(this.config.tagSeperators))),this.config.searchable&&(this.input=u.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),this.inputClear=u.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=u.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),e.appendChild(this.inputContainer)),e.appendChild(this.notice),e.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var i,n,o,s=!1,l=0;this.el.children.length&&u.each(this.el.children,(function(t,e){"OPTGROUP"===e.nodeName?(s=u.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+e.label+"</li>"}),u.each(e.children,(function(t,e){e.idx=l,s.appendChild(a.call(this,e,s)),l++}),this)):(e.idx=l,a.call(this,e),l++)}),this),this.config.data&&Array.isArray(this.config.data)&&(i=!(this.data=[]),s=!1,l=0,u.each(this.config.data,(function(t,e){r(e,"children")?(i=u.createElement("optgroup",{label:e.text}),s=u.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+e.text+"</li>"}),u.each(e.children,(function(t,e){(n=new Option(e.text,e.value,!1,e.hasOwnProperty("selected")&&!0===e.selected)).disabled=r(e,"disabled"),this.options.push(n),i.appendChild(n),n.idx=l,s.appendChild(a.call(this,n,e)),this.data[l]=e,l++}),this)):((n=new Option(e.text,e.value,!1,e.hasOwnProperty("selected")&&!0===e.selected)).disabled=r(e,"disabled"),this.options.push(n),n.idx=l,a.call(this,n,e),this.data[l]=e,l++)}),this)),this.setSelected(!0);for(var h=this.navIndex=0;h<this.items.length;h++)if(o=this.items[h],!u.hasClass(o,"disabled")){u.addClass(o,"active"),this.navIndex=h;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(e),this.placeEl=u.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)}.call(this),this.bindEvents(),this.update(),this.optsRect=u.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex),e=this,setTimeout((function(){e.emit("selectr.init")}),20))},h.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},h.prototype.getSelectedProperties=function(t){var e=this.getSelected();return[].slice.call(e).map((function(e){return e[t]})).filter((function(t){return null!=t}))},h.prototype.bindEvents=function(){var t=this;this.events={},this.events.dismiss=function(t){var e=t.target;this.container.contains(e)||!this.opened&&!u.hasClass(this.container,"notice")||this.close()}.bind(this),this.events.navigate=function(t){if(t=t||window.event,this.items.length&&this.opened&&u.includes([13,38,40],t.which)){if(t.preventDefault(),13===t.which)return!(this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var e,i=this.items[this.navIndex];switch(t.which){case 38:(e=0)<this.navIndex&&this.navIndex--;break;case 40:e=1,this.navIndex<this.items.length-1&&this.navIndex++}for(this.navigating=!0;u.hasClass(this.items[this.navIndex],"disabled")||u.hasClass(this.items[this.navIndex],"excluded");)if(e?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}var n=u.rect(this.items[this.navIndex]);e?(0===this.navIndex?this.tree.scrollTop=0:n.top+n.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(n.top+n.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&d.call(this)):0===this.navIndex?this.tree.scrollTop=0:n.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(n.top-this.optsRect.top)),i&&u.removeClass(i,"active"),u.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",(function(e){e.changedTouches[0].target===t.el&&t.toggle()})),(this.config.nativeDropdown||this.mobileDevice)&&this.container.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),e.target===t.el&&t.toggle()})),this.el.addEventListener("change",(function(e){var i,n;t.el.multiple?(i=t.getSelectedProperties("idx"),n=function(t,e){for(var i,n=[],r=t.slice(0),o=0;o<e.length;o++)-1<(i=r.indexOf(e[o]))?r.splice(i,1):n.push(e[o]);return[n,r]}(t.selectedIndexes,i),u.each(n[0],(function(e,i){t.select(i)}),t),u.each(n[1],(function(e,i){t.deselect(i)}),t)):-1<t.el.selectedIndex&&t.select(t.el.selectedIndex)}))),this.config.nativeDropdown&&this.container.addEventListener("keydown",(function(e){"Enter"===e.key&&t.selected===document.activeElement&&(t.toggle(),setTimeout((function(){t.el.focus()}),200))})),this.selected.addEventListener("click",(function(e){t.disabled||t.toggle(),e.preventDefault(),e.stopPropagation()})),this.label.addEventListener("click",(function(e){u.hasClass(e.target,"selectr-tag-remove")&&t.deselect(e.target.parentNode.idx)})),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",(function(t){t.preventDefault()})),this.tree.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var i=u.closest(e.target,(function(t){return t&&u.hasClass(t,"selectr-option")}));i&&(u.hasClass(i,"disabled")||(u.hasClass(i,"selected")?(t.el.multiple||!t.el.multiple&&t.config.allowDeselect)&&t.deselect(i.idx):t.select(i.idx),t.opened&&!t.el.multiple&&t.close()))})),this.tree.addEventListener("mouseover",(function(e){u.hasClass(e.target,"selectr-option")&&(u.hasClass(e.target,"disabled")||(u.removeClass(t.items[t.navIndex],"active"),u.addClass(e.target,"active"),t.navIndex=[].slice.call(t.items).indexOf(e.target)))})),this.config.searchable&&(this.input.addEventListener("focus",(function(e){t.searching=!0})),this.input.addEventListener("blur",(function(e){t.searching=!1})),this.input.addEventListener("keyup",(function(e){t.search(),t.config.taggable||(this.value.length?u.addClass(this.parentNode,"active"):u.removeClass(this.parentNode,"active"))})),this.inputClear.addEventListener("click",(function(e){t.input.value=null,l.call(t),t.tree.childElementCount||s.call(t)}))),this.config.taggable&&this.input.addEventListener("keyup",(function(e){var i;t.search(),t.config.taggable&&this.value.length&&(i=this.value.trim(),13!==e.which&&!u.includes(t.tagSeperators,e.key)||(u.each(t.tagSeperators,(function(t,e){i=i.replace(e,"")})),t.add({value:i,text:i,selected:!0},!0)?(t.close(),l.call(t)):(this.value="",t.setMessage("That tag is already in use."))))})),this.update=u.debounce((function(){t.opened&&t.config.closeOnScroll&&t.close(),t.width&&(t.container.style.width=t.width),t.invert()}),50),this.requiresPagination&&(this.paginateItems=u.debounce((function(){d.call(this)}),50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.el.form&&this.el.form.addEventListener("reset",this.events.reset)},h.prototype.setSelected=function(t){var e;this.config.data||this.el.multiple||!this.el.options.length||(0===this.el.selectedIndex&&(this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1)),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&"select-one"===this.originalType&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),u.each(this.options,(function(t,e){e.selected&&e.defaultSelected&&this.select(e.idx)}),this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data&&(!this.el.multiple&&this.config.defaultSelected&&this.el.selectedIndex<0&&this.select(0),e=0,u.each(this.config.data,(function(t,i){r(i,"children")?u.each(i.children,(function(t,i){i.hasOwnProperty("selected")&&!0===i.selected&&this.select(e),e++}),this):(i.hasOwnProperty("selected")&&!0===i.selected&&this.select(e),e++)}),this))},h.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),"select-one"===this.originalType&&(this.el.multiple=!1),this.config.data&&(this.el.textContent=""),u.removeClass(this.el,"selectr-hidden"),this.el.form&&u.off(this.el.form,"reset",this.events.reset),u.off(document,"click",this.events.dismiss),u.off(document,"keydown",this.events.navigate),u.off(window,"resize",this.update),u.off(window,"scroll",this.update),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1)},h.prototype.change=function(t){var e=this.items[t],i=this.options[t];i.disabled||(i.selected&&u.hasClass(e,"selected")?this.deselect(t):this.select(t),this.opened&&!this.el.multiple&&this.close())},h.prototype.select=function(t){var e=this.items[t],i=[].slice.call(this.el.options),n=this.options[t];if(this.el.multiple){if(u.includes(this.selectedIndexes,t))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage("A maximum of "+this.config.maxSelections+" items can be selected.",!0),!1;this.selectedValues.push(n.value),this.selectedIndexes.push(t),function(t){var e,i,n=this,r=document.createDocumentFragment(),o=this.options[t.idx],s=this.data?this.data[t.idx]:o,a=this.customSelected?this.config.renderSelection(s):o.textContent,l=u.createElement("li",{class:"selectr-tag",html:a}),h=u.createElement("button",{class:"selectr-tag-remove",type:"button"});l.appendChild(h),l.idx=t.idx,l.tag=o.value,this.tags.push(l),this.config.sortSelected?(e=this.tags.slice(),i=function(t,e){t.replace(/(\d+)|(\D+)/g,(function(t,i,n){e.push([i||1/0,n||""])}))},e.sort((function(t,e){var r,o,s=[],a=[];for(!0===n.config.sortSelected?(r=t.tag,o=e.tag):"text"===n.config.sortSelected&&(r=t.textContent,o=e.textContent),i(r,s),i(o,a);s.length&&a.length;){var l=s.shift(),h=a.shift(),c=l[0]-h[0]||l[1].localeCompare(h[1]);if(c)return c}return s.length-a.length})),u.each(e,(function(t,e){r.appendChild(e)})),this.label.textContent=""):r.appendChild(l),this.config.taggable?this.label.insertBefore(r,this.input.parentNode):this.label.appendChild(r)}.call(this,e)}else{var r=this.data?this.data[t]:n;this.label.textContent=this.customSelected?this.config.renderSelection(r):n.textContent,this.selectedValue=n.value,this.selectedIndex=t,u.each(this.options,(function(e,i){var n=this.items[e];e!==t&&(n&&u.removeClass(n,"selected"),i.selected=!1,i.removeAttribute("selected"))}),this)}u.includes(i,n)||this.el.add(n),e.setAttribute("aria-selected",!0),u.addClass(e,"selected"),u.addClass(this.container,"has-selected"),n.selected=!0,n.setAttribute("selected",""),this.emit("selectr.change",n),this.emit("selectr.select",n)},h.prototype.deselect=function(t,e){var i=this.items[t],n=this.options[t];if(this.el.multiple){var r=this.selectedIndexes.indexOf(t);this.selectedIndexes.splice(r,1);var o=this.selectedValues.indexOf(n.value);this.selectedValues.splice(o,1),function(t){var e=!1;u.each(this.tags,(function(i,n){n.idx===t.idx&&(e=n)}),this),e&&(this.label.removeChild(e),this.tags.splice(this.tags.indexOf(e),1))}.call(this,i),this.tags.length||u.removeClass(this.container,"has-selected")}else{if(!e&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.textContent="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,u.removeClass(this.container,"has-selected")}this.items[t].setAttribute("aria-selected",!1),u.removeClass(this.items[t],"selected"),n.selected=!1,n.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",n)},h.prototype.setValue=function(t){var e=Array.isArray(t);if(e||(t=t.toString().trim()),!this.el.multiple&&e)return!1;u.each(this.options,(function(i,n){(e&&u.includes(t.toString(),n.value)||n.value===t)&&this.change(n.idx)}),this)},h.prototype.getValue=function(t,e){var i,n;return this.el.multiple?t?this.selectedIndexes.length&&(n={values:[]},u.each(this.selectedIndexes,(function(t,e){var i=this.options[e];n.values[t]={value:i.value,text:i.textContent}}),this)):n=this.selectedValues.slice():n=t?{value:(i=this.options[this.selectedIndex]).value,text:i.textContent}:this.selectedValue,t&&e&&(n=JSON.stringify(n)),n},h.prototype.add=function(t,e){if(t){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(t))u.each(t,(function(t,i){this.add(i,e)}),this);else if("[object Object]"===Object.prototype.toString.call(t)){if(e){var i=!1;if(u.each(this.options,(function(e,n){n.value.toLowerCase()===t.value.toLowerCase()&&(i=!0)})),i)return!1}var n=u.createElement("option",t);return this.data.push(t),this.options.push(n),n.idx=0<this.options.length?this.options.length-1:0,a.call(this,n),t.selected&&this.select(n.idx),n}return this.setPlaceholder(),this.config.pagination&&this.paginate(),!0}},h.prototype.remove=function(t){var e,i=[];Array.isArray(t)?u.each(t,(function(e,n){u.isInt(n)?i.push(this.getOptionByIndex(n)):"string"==typeof t&&i.push(this.getOptionByValue(n))}),this):u.isInt(t)?i.push(this.getOptionByIndex(t)):"string"==typeof t&&i.push(this.getOptionByValue(t)),i.length&&(u.each(i,(function(t,i){e=i.idx,this.el.remove(i),this.options.splice(e,1);var n=this.items[e].parentNode;n&&n.removeChild(this.items[e]),this.items.splice(e,1),u.each(this.options,(function(t,e){e.idx=t,this.items[t].idx=t}),this)}),this),this.setPlaceholder(),this.config.pagination&&this.paginate())},h.prototype.removeAll=function(){this.clear(!0),u.each(this.el.options,(function(t,e){this.el.remove(e)}),this),u.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},h.prototype.search=function(t){var e,i,n;this.navigating||(t=t||this.input.value,e=document.createDocumentFragment(),this.removeMessage(),u.truncate(this.tree),1<t.length?(u.each(this.options,(function(i,n){var r,s,a=this.items[n.idx];u.includes(n.textContent.toLowerCase(),t.toLowerCase())&&!n.disabled?(o(a,e,this.customOption),u.removeClass(a,"excluded"),this.customOption||(a.textContent="",(r=function(t,e){var i=new RegExp(t,"i").exec(e);if(i){var n=i.index,r=i.index+i[0].length;return{before:e.substring(0,n),match:e.substring(n,r),after:e.substring(r)}}return null}(t,n.textContent))&&(a.appendChild(document.createTextNode(r.before)),(s=document.createElement("span")).className="selectr-match",s.appendChild(document.createTextNode(r.match)),a.appendChild(s),a.appendChild(document.createTextNode(r.after))))):u.addClass(a,"excluded")}),this),e.childElementCount?(i=this.items[this.navIndex],n=e.firstElementChild,u.removeClass(i,"active"),this.navIndex=n.idx,u.addClass(n,"active")):this.config.taggable||this.setMessage("no results.")):s.call(this),this.tree.appendChild(e))},h.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},h.prototype.open=function(){var t=this;return!!this.options.length&&(this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(u.addClass(this.container,"native-open"),void(this.config.data&&u.each(this.options,(function(t,e){this.el.add(e)}),this))):(u.addClass(this.container,"open"),s.call(this),this.invert(),this.tree.scrollTop=0,u.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),void(this.config.searchable&&!this.config.taggable&&setTimeout((function(){t.input.focus(),t.input.tabIndex=0}),10))))},h.prototype.close=function(){var t;this.opened&&this.emit("selectr.close"),this.opened=!1,this.mobileDevice||this.config.nativeDropdown?u.removeClass(this.container,"native-open"):(t=u.hasClass(this.container,"notice"),this.config.searchable&&!t&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),t&&(u.removeClass(this.container,"notice"),this.notice.textContent=""),u.removeClass(this.container,"open"),u.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),u.truncate(this.tree),l.call(this))},h.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&u.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=0})),u.removeClass(this.container,"selectr-disabled")},h.prototype.disable=function(t){t||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&u.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=-1})),this.disabled=!0,u.addClass(this.container,"selectr-disabled")},h.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),u.each(this.defaultSelected,(function(t,e){this.select(e)}),this),this.emit("selectr.reset"))},h.prototype.clear=function(t){var e;this.el.multiple?this.selectedIndexes.length&&(e=this.selectedIndexes.slice(),u.each(e,(function(t,e){this.deselect(e)}),this)):-1<this.selectedIndex&&this.deselect(this.selectedIndex,t),this.emit("selectr.clear")},h.prototype.serialise=function(t){var e=[];return u.each(this.options,(function(t,i){var n={value:i.value,text:i.textContent};i.selected&&(n.selected=!0),i.disabled&&(n.disabled=!0),e[t]=n})),t?JSON.stringify(e):e},h.prototype.serialize=function(t){return this.serialise(t)},h.prototype.setPlaceholder=function(t){t=t||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(t="No options available"),this.placeEl.textContent=t},h.prototype.paginate=function(){if(this.items.length){var t=this;return this.pages=this.items.map((function(e,i){return i%t.config.pagination==0?t.items.slice(i,i+t.config.pagination):null})).filter((function(t){return t})),this.pages}},h.prototype.setMessage=function(t,e){e&&this.close(),u.addClass(this.container,"notice"),this.notice.textContent=t},h.prototype.removeMessage=function(){u.removeClass(this.container,"notice"),this.notice.textContent=""},h.prototype.invert=function(){var t=u.rect(this.selected),e=this.tree.parentNode.offsetHeight,i=window.innerHeight;t.top+t.height+e>i?(u.addClass(this.container,"inverted"),this.isInverted=!0):(u.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=u.rect(this.tree)},h.prototype.getOptionByIndex=function(t){return this.options[t]},h.prototype.getOptionByValue=function(t){for(var e=!1,i=0,n=this.options.length;i<n;i++)if(this.options[i].value.trim()===t.toString().trim()){e=this.options[i];break}return e},t.exports=h},function(t,e){t.exports=function t(e,i){"use strict";function n(e){return t.insensitive&&(""+e).toLowerCase()||""+e}var r,o,s=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,h=/^0x[0-9a-f]+$/i,c=/^0/,u=n(e).replace(a,"")||"",d=n(i).replace(a,"")||"",f=u.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=d.replace(s,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(u.match(h),16)||1!==f.length&&u.match(l)&&Date.parse(u),m=parseInt(d.match(h),16)||g&&d.match(l)&&Date.parse(d)||null;if(m){if(g<m)return-1;if(m<g)return 1}for(var v=0,b=Math.max(f.length,p.length);v<b;v++){if(r=!(f[v]||"").match(c)&&parseFloat(f[v])||f[v]||0,o=!(p[v]||"").match(c)&&parseFloat(p[v])||p[v]||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(o<r)return 1}return 0}},function(t,e,i){"use strict";function n(t,e,i){function n(){if(f&&f.parentNode){for(var e in f.parentNode.removeChild(f),c){var n;o=c,s=e,Object.prototype.hasOwnProperty.call(o,s)&&((n=c[e])&&Object(r.removeEventListener)(h,e,n),delete c[e])}"function"==typeof i&&i(t)}var o,s}function o(t){var e;(e=t.target)===f||Object(r.isChildOf)(e,f)||n()}var s,a,l=3<arguments.length&&void 0!==arguments[3]&&arguments[3],h="function"==typeof(s=t).getRootNode?s.getRootNode():window,c={},u=t.getBoundingClientRect(),d=e.getBoundingClientRect(),f=document.createElement("div");return f.className="jsoneditor-anchor",f.style.position="absolute",f.style.left=u.left-d.left+"px",f.style.top=u.top-d.top+"px",f.style.width=u.width-2+"px",f.style.height=u.height-2+"px",f.style.boxSizing="border-box",e.appendChild(f),c.mousedown=Object(r.addEventListener)(h,"mousedown",o),c.mousewheel=Object(r.addEventListener)(h,"mousewheel",o),l&&(a=null,f.onmouseover=function(){clearTimeout(a),a=null},f.onmouseout=function(){a=a||setTimeout(n,200)}),f.destroy=n,f}i.d(e,"a",(function(){return n}));var r=i(0)},function(t,e,i){var n;if(window.Picker)n=window.Picker;else try{n=i(41)}catch(t){}t.exports=n},function(t,e,i){var n,r,o;!function(){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function t(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType}function e(){var t=[];return{watch:t.push.bind(t),trigger:function(e,i){for(var n=!0,r={detail:i,preventDefault:function(){n=!1}},o=0;o<t.length;o++)t[o](e,r);return n}}}function i(t){return"none"===window.getComputedStyle(t).display}function n(t){this.elem=t}function r(t){return function(){return t().elem}}n.make=function(t,e){"string"==typeof t&&(t=document.querySelector(t));var i=document.createElement(e||"div");return(t||document.body).appendChild(i),new n(i)},n.prototype={child:function(t){return n.make(this.elem,t)},stylize:function(t){for(var e in t=t||{},void 0!==t.opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),t)t.hasOwnProperty(e)&&(this.elem.style[e]=t[e]);return this},clazz:function(t){return this.elem.className+=" "+t,this},html:function(e){return t(e)?this.elem.appendChild(e):this.elem.innerHTML=e,this},onClick:function(t){return this.elem.addEventListener("click",t),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(t,e){return void 0!==e&&this.elem.setAttribute(t,e),this},anyAncestor:function(t){for(var e=this.elem;e;){if(t(new n(e)))return!0;e=e.parentNode}return!1},isVisible:function(){return!i(this.elem)}};var o=1,s=e(),a=e();return document.documentElement.addEventListener("keydown",(function(t){var e=t.which||t.keyCode;27===e?s.trigger():9===e&&a.trigger(t)})),function(l){function h(t,e){var i=l[t];return"function"==typeof i&&(i=i(e)),void 0===i?e:i}function c(t){O().hide(),R().hide(),T.trigger(v,t)}function u(t){E.trigger(v,t)&&c(t)}function d(t){return function(){return t.apply(this,arguments),v}}function f(t,e){var i,r,s;return b||(i=function(t,e){var i=t("width","auto");"number"==typeof i&&(i+="px");var r=t("modalId","pico-"+o++);return n.make(t("parent")).clazz("pico-content").clazz(t("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:i,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(t("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(t("content")).attr("id",r).attr("role","dialog").attr("aria-labelledby",t("ariaLabelledBy")).attr("aria-describedby",t("ariaDescribedBy",r)).onClick((function(t){new n(t.target).anyAncestor((function(t){return/\bpico-close\b/.test(t.elem.className)}))&&e()}))}(h,u),b={modal:i,overlay:(s=u,n.make((r=h)("parent")).clazz("pico-overlay").clazz(r("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(r("overlayStyles",{opacity:.5,background:"#000"})).onClick((function(){r("overlayClose",!0)&&s()}))),close:function(t,e){if(e("closeButton",!0))return t.child("button").html(e("closeHtml","&#xD7;")).clazz("pico-close").clazz(e("closeClass","")).stylize(e("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",e("close-label","Close"))}(i,h)},_.trigger(v,e)),b[t]}function p(t,e){return(t.msMatchesSelector||t.webkitMatchesSelector||t.matches).call(t,e)}function g(t){return!(i(t)||p(t,":disabled")||t.hasAttribute("contenteditable"))&&(t.hasAttribute("tabindex")||p(t,"input,select,textarea,button,a[href],area[href],iframe"))}function m(t){for(var e=t.getElementsByTagName("*"),i=0;i<e.length;i++)if(g(e[i]))return e[i]}"string"!=typeof l&&!t(l)||(l={content:l});var v,b,y,w,C,I,A,M,x,_=e(),S=e(),k=e(),E=e(),T=e(),R=f.bind(window,"modal"),O=f.bind(window,"overlay"),j=f.bind(window,"close");return v={modalElem:r(R),closeElem:r(j),overlayElem:r(O),buildDom:d(f.bind(null,null)),isVisible:function(){return!!(b&&R&&R().isVisible())},show:function(t){return S.trigger(v,t)&&(O().show(),j(),R().show(),k.trigger(v,t)),this},close:d(u),forceClose:d(c),destroy:function(){R().destroy(),O().destroy(),O=R=j=void 0},options:function(t){Object.keys(t).map((function(e){l[e]=t[e]}))},afterCreate:d(_.watch),beforeShow:d(S.watch),afterShow:d(k.watch),beforeClose:d(E.watch),afterClose:d(T.watch)},y=v,w=h.bind(null,"focus",!0),y.beforeShow((function(){C=document.activeElement})),y.afterShow((function(){var t;!w()||(t=m(y.modalElem()))&&t.focus()})),y.afterClose((function(){w()&&C&&C.focus(),C=null})),a.watch((function(t){var e,i;w()&&y.isVisible()&&(e=m(y.modalElem()),i=function(t){for(var e=t.getElementsByTagName("*"),i=e.length;i--;)if(g(e[i]))return e[i]}(y.modalElem()),(t.shiftKey?e:i)===document.activeElement&&((t.shiftKey?i:e).focus(),t.preventDefault()))})),I=v,A=h.bind(null,"bodyOverflow",!0),x=new n(document.body),I.beforeShow((function(){M=x.elem.style.overflow,A()&&x.stylize({overflow:"hidden"})})),I.afterClose((function(){x.stylize({overflow:M})})),s.watch((function(){h("escCloses",!0)&&v.isVisible()&&v.close()})),v}})?n.apply(e,r):n)||(t.exports=o)}()},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.d(e,"a",(function(){return r}));var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.errorTableVisible=e.errorTableVisible,this.onToggleVisibility=e.onToggleVisibility,this.onFocusLine=e.onFocusLine||function(){},this.onChangeHeight=e.onChangeHeight,this.dom={};var i=document.createElement("div");i.className="jsoneditor-validation-errors-container",this.dom.validationErrorsContainer=i;var n=document.createElement("div");n.style.display="none",n.className="jsoneditor-additional-errors fadein",n.textContent="Scroll for more ▿",this.dom.additionalErrorsIndication=n,i.appendChild(n);var r=document.createElement("span");r.className="jsoneditor-validation-error-icon",r.style.display="none",this.dom.validationErrorIcon=r;var o=document.createElement("span");o.className="jsoneditor-validation-error-count",o.style.display="none",this.dom.validationErrorCount=o,this.dom.parseErrorIndication=document.createElement("span"),this.dom.parseErrorIndication.className="jsoneditor-parse-error-icon",this.dom.parseErrorIndication.style.display="none"}var e,i;return e=t,(i=[{key:"getErrorTable",value:function(){return this.dom.validationErrorsContainer}},{key:"getErrorCounter",value:function(){return this.dom.validationErrorCount}},{key:"getWarningIcon",value:function(){return this.dom.validationErrorIcon}},{key:"getErrorIcon",value:function(){return this.dom.parseErrorIndication}},{key:"toggleTableVisibility",value:function(){this.errorTableVisible=!this.errorTableVisible,this.onToggleVisibility(this.errorTableVisible)}},{key:"setErrors",value:function(t,e){var i,n,r,o,s=this;this.dom.validationErrors&&(this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors),this.dom.validationErrors=null,this.dom.additionalErrorsIndication.style.display="none"),this.errorTableVisible&&0<t.length?((i=document.createElement("div")).className="jsoneditor-validation-errors",(n=document.createElement("table")).className="jsoneditor-text-errors",i.appendChild(n),r=document.createElement("tbody"),n.appendChild(r),t.forEach((function(t){var i,n;isNaN(t.line)?!t.dataPath||(n=e.find((function(e){return e.path===t.dataPath})))&&(i=n.line+1):i=t.line;var o=document.createElement("tr");o.className=isNaN(i)?"":"jump-to-line","error"===t.type?o.className+=" parse-error":o.className+=" validation-error";var a=document.createElement("td"),l=document.createElement("button");l.className="jsoneditor-schema-error",a.appendChild(l),o.appendChild(a);var h,c,u,d,f,p=document.createElement("td");p.style="white-space: nowrap;",p.textContent=isNaN(i)?"":"Ln "+i,o.appendChild(p),"string"==typeof t?((h=document.createElement("td")).colSpan=2,(c=document.createElement("pre")).appendChild(document.createTextNode(t)),h.appendChild(c),o.appendChild(h)):((u=document.createElement("td")).appendChild(document.createTextNode(t.dataPath||"")),o.appendChild(u),d=document.createElement("td"),(f=document.createElement("pre")).appendChild(document.createTextNode(t.message)),d.appendChild(f),o.appendChild(d)),o.onclick=function(){s.onFocusLine(i)},r.appendChild(o)})),this.dom.validationErrors=i,this.dom.validationErrorsContainer.appendChild(i),this.dom.additionalErrorsIndication.title=t.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){s.dom.additionalErrorsIndication.style.display=0<s.dom.validationErrorsContainer.clientHeight&&0===s.dom.validationErrorsContainer.scrollTop?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0,o=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0),this.onChangeHeight(o)):this.onChangeHeight(0);var a,l=t.filter((function(t){return"error"!==t.type})).length;0<l?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=l,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=l+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),t.some((function(t){return"error"===t.type}))?(a=t[0].line,this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(a)?"parse error - check that the json is valid":"parse error on line "+a,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)):this.dom.parseErrorIndication.style.display="none"}}])&&n(e.prototype,i),t}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";function n(t,e,i){var o=this._refs[i];if("string"==typeof o){if(!this._refs[o])return n.call(this,t,e,o);o=this._refs[o]}if((o=o||this._schemas[i])instanceof p)return s(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var a,l,h,c=r.call(this,e,i);return c&&(a=c.schema,e=c.root,h=c.baseId),a instanceof p?l=a.validate||t.call(this,a.schema,e,void 0,h):void 0!==a&&(l=s(a,this._opts.inlineRefs)?a:t.call(this,a,e,void 0,h)),l}function r(t,e){var i=u.parse(e),n=l(i),s=a(this._getId(t.schema));if(0===Object.keys(t.schema).length||n!==s){var d=h(n),f=this._refs[d];if("string"==typeof f)return function(t,e,i){var n=r.call(this,t,e);if(n){var s=n.schema,a=n.baseId;t=n.root;var l=this._getId(s);return l&&(a=c(a,l)),o.call(this,i,a,s,t)}}.call(this,t,f,i);if(f instanceof p)f.validate||this._compile(f),t=f;else{if(!((f=this._schemas[d])instanceof p))return;if(f.validate||this._compile(f),d==h(e))return{schema:f,root:t,baseId:s};t=f}if(!t.schema)return;s=a(this._getId(t.schema))}return o.call(this,i,s,t.schema,t)}function o(t,e,i,n){if(t.fragment=t.fragment||"","/"==t.fragment.slice(0,1)){for(var o=t.fragment.split("/"),s=1;s<o.length;s++){var a,l,h,u=o[s];if(u){if(void 0===(i=i[u=f.unescapeFragment(u)]))break;m[u]||((h=this._getId(i))&&(e=c(e,h)),i.$ref&&(a=c(e,i.$ref),(l=r.call(this,n,a))&&(i=l.schema,n=l.root,e=l.baseId)))}}return void 0!==i&&i!==n.schema?{schema:i,root:n,baseId:e}:void 0}}function s(t,e){return!1!==e&&(void 0===e||!0===e?function t(e){var i;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(i=e[n])&&!t(i))return!1}else for(var r in e){if("$ref"==r)return!1;if("object"==typeof(i=e[r])&&!t(i))return!1}return!0}(t):e?function t(e){var i,n=0;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(i=e[r])&&(n+=t(i)),n==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(v[o])n++;else if("object"==typeof(i=e[o])&&(n+=t(i)+1),n==1/0)return 1/0}return n}(t)<=e:void 0)}function a(t,e){return!1!==e&&(t=h(t)),l(u.parse(t))}function l(t){return u.serialize(t).split("#")[0]+"#"}function h(t){return t?t.replace(b,""):""}function c(t,e){return e=h(e),u.resolve(t,e)}var u=i(46),d=i(18),f=i(7),p=i(25),g=i(48);(t.exports=n).normalizeId=h,n.fullPath=a,n.url=c,n.ids=function(t){var e=h(this._getId(t)),i={"":e},n={"":a(e,!1)},r={},o=this;return g(t,{allKeys:!0},(function(t,e,s,a,l,c,p){if(""!==e){var g=o._getId(t),m=i[a],v=n[a]+"/"+l;if(void 0!==p&&(v+="/"+("number"==typeof p?p:f.escapeFragment(p))),"string"==typeof g){g=m=h(m?u.resolve(m,g):g);var b=o._refs[g];if("string"==typeof b&&(b=o._refs[b]),b&&b.schema){if(!d(t,b.schema))throw new Error('id "'+g+'" resolves to more than one schema')}else if(g!=h(v))if("#"==g[0]){if(r[g]&&!d(t,r[g]))throw new Error('id "'+g+'" resolves to more than one schema');r[g]=t}else o._refs[g]=v}i[e]=m,n[e]=v}})),r},n.inlineRef=s,n.schema=r;var m=f.toHash(["properties","patternProperties","enum","dependencies","definitions"]),v=f.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]),b=/#\/?$/},function(t,e,i){"use strict";t.exports=function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var n,r,o;if(Array.isArray(e)){if((n=e.length)!=i.length)return!1;for(r=n;0!=r--;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,o[r]))return!1;for(r=n;0!=r--;){var s=o[r];if(!t(e[s],i[s]))return!1}return!0}return e!=e&&i!=i}},function(t,e,i){"use strict";function n(t,e,i){this.message=i||n.message(t,e),this.missingRef=o.url(t,e),this.missingSchema=o.normalizeId(o.fullPath(this.missingRef))}function r(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var o=i(17);t.exports={Validation:r((function(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0})),MissingRef:r(n)},n.message=function(t,e){return"can't resolve reference "+e+" from id "+t}},function(t,e,i){var n;if(window.ace)n=window.ace;else try{n=i(37),i(38),i(39);var r=i(40);n.config.setModuleUrl("ace/mode/json_worker",r)}catch(t){}t.exports=n},function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(){try{this.format()}catch(t){}}i.r(e),i.d(e,"textModeMixins",(function(){return y}));var o=i(20),s=i.n(o),a=i(1),l=i(8),h=i(15),c=i(0),u=i(5),d=i(6),f=i(9),p=i(2),g=i(35),m=i(4),v={},b="ace/theme/jsoneditor";v.create=function(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};void 0===i.statusBar&&(i.statusBar=!0),i.mainMenuBar=!1!==i.mainMenuBar,i.enableSort=!1!==i.enableSort,i.enableTransform=!1!==i.enableTransform,i.createQuery=i.createQuery||m.a,i.executeQuery=i.executeQuery||m.b,"number"==typeof(this.options=i).indentation?this.indentation=Number(i.indentation):this.indentation=2,Object(a.b)(this.options.languages),Object(a.a)(this.options.language);var r=i.ace?i.ace:s.a;this.mode="code"===i.mode?"code":"text","code"===this.mode&&void 0===r&&(this.mode="text",console.warn("Failed to load Ace editor, falling back to plain text mode. Please use a JSONEditor bundle including Ace, or pass Ace as via the configuration option `ace`.")),this.theme=i.theme||b,this.theme===b&&r&&Object(g.tryRequireThemeJsonEditor)(),i.onTextSelectionChange&&this.onTextSelectionChange(i.onTextSelectionChange);var o=this;this.container=t,this.dom={},this.aceEditor=void 0,this.textarea=void 0,this.validateSchema=null,this.annotations=[],this.lastSchemaErrors=void 0,this._debouncedValidate=Object(c.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=t.clientWidth,this.height=t.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.frame.onclick=function(t){t.preventDefault()},this.frame.onkeydown=function(t){o._onKeyDown(t)};var u,d,p,v,y,w,C,I,A={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new f.a(A),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.options.mainMenuBar&&(Object(c.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(u=document.createElement("button")).type="button",u.className="jsoneditor-format",u.title=Object(a.c)("formatTitle"),this.menu.appendChild(u),u.onclick=function(){try{o.format(),o._onChange()}catch(t){o._onError(t)}},(d=document.createElement("button")).type="button",d.className="jsoneditor-compact",d.title=Object(a.c)("compactTitle"),this.menu.appendChild(d),d.onclick=function(){try{o.compact(),o._onChange()}catch(t){o._onError(t)}},this.options.enableSort&&((p=document.createElement("button")).type="button",p.className="jsoneditor-sort",p.title=Object(a.c)("sortTitleShort"),p.onclick=function(){o._showSortModal()},this.menu.appendChild(p)),this.options.enableTransform&&((v=document.createElement("button")).type="button",v.title=Object(a.c)("transformTitleShort"),v.className="jsoneditor-transform",v.onclick=function(){o._showTransformModal()},this.menu.appendChild(v)),(y=document.createElement("button")).type="button",y.className="jsoneditor-repair",y.title=Object(a.c)("repairTitle"),this.menu.appendChild(y),y.onclick=function(){try{o.repair(),o._onChange()}catch(t){o._onError(t)}},"code"===this.mode&&((w=document.createElement("button")).type="button",w.className="jsoneditor-undo jsoneditor-separator",w.title=Object(a.c)("undo"),w.onclick=function(){e.aceEditor.getSession().getUndoManager().undo()},this.menu.appendChild(w),this.dom.undo=w,(C=document.createElement("button")).type="button",C.className="jsoneditor-redo",C.title=Object(a.c)("redo"),C.onclick=function(){e.aceEditor.getSession().getUndoManager().redo()},this.menu.appendChild(C),this.dom.redo=C),this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new l.a(this.menu,this.options.modes,this.options.mode,(function(t){o.setMode(t),o.modeSwitcher.focus()}))),"code"===this.mode&&((I=document.createElement("a")).appendChild(document.createTextNode("powered by ace")),I.href="https://ace.c9.io/",I.target="_blank",I.className="jsoneditor-poweredBy",I.onclick=function(){window.open(I.href,I.target,"noopener")},this.menu.appendChild(I)));var M,x,_,S,k,E,T,R,O,j,N,L=this.options.onEditable&&n("function"===this.options.onEditable)&&!this.options.onEditable({});this.frame.appendChild(this.content),this.container.appendChild(this.frame),"code"===this.mode?(this.editorDom=document.createElement("div"),this.editorDom.style.height="100%",this.editorDom.style.width="100%",this.content.appendChild(this.editorDom),x=(M=r.edit(this.editorDom)).getSession(),M.$blockScrolling=1/0,M.setTheme(this.theme),M.setOptions({readOnly:L}),M.setShowPrintMargin(!1),M.setFontSize("13px"),x.setMode("ace/mode/json"),x.setTabSize(this.indentation),x.setUseSoftTabs(!0),x.setUseWrapMode(!0),_=x.setAnnotations,x.setAnnotations=function(t){_.call(this,t&&t.length?t:o.annotations)},M.commands.bindKey("Ctrl-L",null),M.commands.bindKey("Command-L",null),M.commands.bindKey("Ctrl-\\",null),M.commands.bindKey("Command-\\",null),M.commands.bindKey("Ctrl-Shift-\\",null),M.commands.bindKey("Command-Shift-\\",null),(this.aceEditor=M).on("change",this._onChange.bind(this)),M.on("changeSelection",this._onSelect.bind(this))):((S=document.createElement("textarea")).className="jsoneditor-text",S.spellcheck=!1,this.content.appendChild(S),this.textarea=S,this.textarea.readOnly=L,null===this.textarea.oninput?this.textarea.oninput=this._onChange.bind(this):this.textarea.onchange=this._onChange.bind(this),S.onselect=this._onSelect.bind(this),S.onmousedown=this._onMouseDown.bind(this),S.onblur=this._onBlur.bind(this)),this._updateHistoryButtons(),this.errorTable=new h.a({errorTableVisible:"text"===this.mode,onToggleVisibility:function(){o.validate()},onFocusLine:function(t){o.isFocused=!0,isNaN(t)||o.setTextSelection({row:t,column:1},{row:t,column:1e3})},onChangeHeight:function(t){var e=t+(o.dom.statusBar?o.dom.statusBar.clientHeight:0)+1;o.content.style.marginBottom=-e+"px",o.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.errorTable.getErrorTable()),i.statusBar&&(Object(c.addClassName)(this.content,"has-status-bar"),this.curserInfoElements={},k=document.createElement("div"),(this.dom.statusBar=k).className="jsoneditor-statusbar",this.frame.appendChild(k),(E=document.createElement("span")).className="jsoneditor-curserinfo-label",E.innerText="Ln:",(T=document.createElement("span")).className="jsoneditor-curserinfo-val",T.innerText="1",k.appendChild(E),k.appendChild(T),(R=document.createElement("span")).className="jsoneditor-curserinfo-label",R.innerText="Col:",(O=document.createElement("span")).className="jsoneditor-curserinfo-val",O.innerText="1",k.appendChild(R),k.appendChild(O),this.curserInfoElements.colVal=O,this.curserInfoElements.lnVal=T,(j=document.createElement("span")).className="jsoneditor-curserinfo-label",j.innerText="characters selected",j.style.display="none",(N=document.createElement("span")).className="jsoneditor-curserinfo-count",N.innerText="0",N.style.display="none",this.curserInfoElements.countLabel=j,this.curserInfoElements.countVal=N,k.appendChild(N),k.appendChild(j),k.appendChild(this.errorTable.getErrorCounter()),k.appendChild(this.errorTable.getWarningIcon()),k.appendChild(this.errorTable.getErrorIcon())),this.setSchema(this.options.schema,this.options.schemaRefs)},v._onChange=function(){var t=this;if(!this.onChangeDisabled){if(setTimeout((function(){return t._updateHistoryButtons()})),this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}}},v._updateHistoryButtons=function(){var t;this.aceEditor&&this.dom.undo&&this.dom.redo&&(t=this.aceEditor.getSession().getUndoManager())&&t.hasUndo&&t.hasRedo&&(this.dom.undo.disabled=!t.hasUndo(),this.dom.redo.disabled=!t.hasRedo())},v._showSortModal=function(){var t=this,e=this.options.modalAnchor||p.a,i=this.get();Object(u.showSortModal)(e,i,(function(e){var n,r;Array.isArray(i)&&(n=Object(c.sort)(i,e.path,e.direction),t.sortedBy=e,t.update(n)),Object(c.isObject)(i)&&(r=Object(c.sortObjectKeys)(i,e.direction),t.sortedBy=e,t.update(r))}),t.sortedBy)},v._showTransformModal=function(){var t=this,e=this.options,i=e.modalAnchor,n=e.createQuery,r=e.executeQuery,o=e.queryDescription,s=this.get();Object(d.showTransformModal)({container:i||p.a,json:s,queryDescription:o,createQuery:n,executeQuery:r,onTransform:function(e){var i=r(s,e);t.update(i)}})},v._onSelect=function(){this._updateCursorInfo(),this._emitSelectionChange()},v._onKeyDown=function(t){var e=!1;220===(t.which||t.keyCode)&&t.ctrlKey&&(t.shiftKey?this.compact():this.format(),this._onChange(),e=!0),e&&(t.preventDefault(),t.stopPropagation()),this._updateCursorInfo(),this._emitSelectionChange()},v._onMouseDown=function(){this._updateCursorInfo(),this._emitSelectionChange()},v._onBlur=function(){var t=this;setTimeout((function(){t.isFocused||(t._updateCursorInfo(),t._emitSelectionChange()),t.isFocused=!1}))},v._updateCursorInfo=function(){function t(){s.curserInfoElements.countVal.innerText!==o&&(s.curserInfoElements.countVal.innerText=o,s.curserInfoElements.countVal.style.display=o?"inline":"none",s.curserInfoElements.countLabel.style.display=o?"inline":"none"),s.curserInfoElements.lnVal.innerText=n,s.curserInfoElements.colVal.innerText=r}var e,i,n,r,o,s=this;this.textarea?setTimeout((function(){var e=Object(c.getInputSelection)(s.textarea);e.startIndex!==e.endIndex&&(o=e.endIndex-e.startIndex),r=o&&s.cursorInfo&&s.cursorInfo.line===e.end.row&&s.cursorInfo.column===e.end.column?(n=e.start.row,e.start.column):(n=e.end.row,e.end.column),s.cursorInfo={line:n,column:r,count:o},s.options.statusBar&&t()}),0):this.aceEditor&&this.curserInfoElements&&(e=this.aceEditor.getCursorPosition(),i=this.aceEditor.getSelectedText(),n=e.row+1,r=e.column+1,o=i.length,s.cursorInfo={line:n,column:r,count:o},this.options.statusBar&&t())},v._emitSelectionChange=function(){var t;this._selectionChangedHandler&&(t=this.getTextSelection(),this._selectionChangedHandler(t.start,t.end,t.text))},v._refreshAnnotations=function(){var t,e=this.aceEditor&&this.aceEditor.getSession();e&&(t=e.getAnnotations().filter((function(t){return"error"===t.type})),e.setAnnotations(t))},v.destroy=function(){this.aceEditor&&(this.aceEditor.destroy(),this.aceEditor=null),this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.textarea=null,this._debouncedValidate=null,this.frameFocusTracker.destroy()},v.compact=function(){var t=this.get(),e=JSON.stringify(t);this.updateText(e)},v.format=function(){var t=this.get(),e=JSON.stringify(t,null,this.indentation);this.updateText(e)},v.repair=function(){var t=this.getText(),e=Object(c.repair)(t);this.updateText(e)},v.focus=function(){this.textarea&&this.textarea.focus(),this.aceEditor&&this.aceEditor.focus()},v.resize=function(){this.aceEditor&&this.aceEditor.resize(!1)},v.set=function(t){this.setText(JSON.stringify(t,null,this.indentation))},v.update=function(t){this.updateText(JSON.stringify(t,null,this.indentation))},v.get=function(){var t=this.getText();return Object(c.parse)(t)},v.getText=function(){return this.textarea?this.textarea.value:this.aceEditor?this.aceEditor.getValue():""},v._setText=function(t,e){var i,n=this,r=!0===this.options.escapeUnicode?Object(c.escapeUnicodeChars)(t):t;this.textarea&&(this.textarea.value=r),this.aceEditor&&(this.onChangeDisabled=!0,this.aceEditor.setValue(r,-1),this.onChangeDisabled=!1,e&&(i=this,setTimeout((function(){i.aceEditor&&i.aceEditor.session.getUndoManager().reset()}))),setTimeout((function(){return n._updateHistoryButtons()}))),this._debouncedValidate()},v.setText=function(t){this._setText(t,!0)},v.updateText=function(t){this.getText()!==t&&this._setText(t,!1)},v.validate=function(){var t,e,i=this,n=[],r=[];try{var o=this.get();this.validateSchema&&(this.validateSchema(o)||(n=this.validateSchema.errors.map((function(t){return t.type="validation",Object(c.improveSchemaError)(t)})))),this.validationSequence=(this.validationSequence||0)+1;var s=this,a=this.validationSequence;(function(t,e){if(!e)return Promise.resolve([]);try{var i=e(t);return(Object(c.isPromise)(i)?i:Promise.resolve(i)).then((function(t){return Array.isArray(t)?t.filter((function(t){var e=Object(c.isValidValidationError)(t);return e||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',t),e})).map((function(t){return{dataPath:Object(c.stringifyPath)(t.path),message:t.message,type:"customValidation"}})):[]}))}catch(t){return Promise.reject(t)}})(o,this.options.onValidate).then((function(t){var e;a===s.validationSequence&&(e=n.concat(r).concat(t),s._renderErrors(e),"function"==typeof i.options.onValidationError&&(Object(c.isValidationErrorChanged)(e,i.lastSchemaErrors)&&i.options.onValidationError.call(i,e),i.lastSchemaErrors=e))})).catch((function(t){console.error("Custom validation function did throw an error",t)}))}catch(o){this.getText()&&((t=/\w*line\s*(\d+)\w*/g.exec(o.message))&&(e=+t[1]),r=[{type:"error",message:o.message.replace(/\n/g,"<br>"),line:e}]),this._renderErrors(r),"function"==typeof this.options.onValidationError&&(Object(c.isValidationErrorChanged)(r,this.lastSchemaErrors)&&this.options.onValidationError.call(this,r),this.lastSchemaErrors=r)}},v._renderErrors=function(t){var e=this.getText(),i=[];t.reduce((function(t,e){return"string"==typeof e.dataPath&&-1===t.indexOf(e.dataPath)&&t.push(e.dataPath),t}),i);var n=Object(c.getPositionForPath)(e,i);this.aceEditor&&(this.annotations=n.map((function(e){var i=t.filter((function(t){return t.dataPath===e.path})),n=i.map((function(t){return t.message})).join("\n");return n?{row:e.line,column:e.column,text:"Schema validation error"+(1!==i.length?"s":"")+": \n"+n,type:"warning",source:"jsoneditor"}:{}})),this._refreshAnnotations()),this.errorTable.setErrors(t,n),this.aceEditor&&this.aceEditor.resize(!1)},v.getTextSelection=function(){var t={};if(this.textarea){var e=Object(c.getInputSelection)(this.textarea);return this.cursorInfo&&this.cursorInfo.line===e.end.row&&this.cursorInfo.column===e.end.column?(t.start=e.end,t.end=e.start):t=e,{start:t.start,end:t.end,text:this.textarea.value.substring(e.startIndex,e.endIndex)}}if(this.aceEditor){var i=this.aceEditor.getSelection(),n=this.aceEditor.getSelectedText(),r=i.getRange(),o=i.getSelectionLead();return o.row===r.end.row&&o.column===r.end.column?t=r:(t.start=r.end,t.end=r.start),{start:{row:t.start.row+1,column:t.start.column+1},end:{row:t.end.row+1,column:t.end.column+1},text:n}}},v.onTextSelectionChange=function(t){"function"==typeof t&&(this._selectionChangedHandler=Object(c.debounce)(t,this.DEBOUNCE_INTERVAL))},v.setTextSelection=function(t,e){var i,n,r,o,s,a,l;t&&e&&(this.textarea?(i=Object(c.getIndexForPosition)(this.textarea,t.row,t.column),n=Object(c.getIndexForPosition)(this.textarea,e.row,e.column),-1<i&&-1<n&&(this.textarea.setSelectionRange?(this.textarea.focus(),this.textarea.setSelectionRange(i,n)):this.textarea.createTextRange&&((r=this.textarea.createTextRange()).collapse(!0),r.moveEnd("character",n),r.moveStart("character",i),r.select()),o=(this.textarea.value.match(/\n/g)||[]).length+1,s=this.textarea.scrollHeight/o,a=t.row*s,this.textarea.scrollTop=a>this.textarea.clientHeight?a-this.textarea.clientHeight/2:0)):this.aceEditor&&(l={start:{row:t.row-1,column:t.column-1},end:{row:e.row-1,column:e.column-1}},this.aceEditor.selection.setRange(l),this.aceEditor.scrollToLine(t.row-1,!0)))};var y=[{mode:"text",mixin:v,data:"text",load:r},{mode:"code",mixin:v,data:"text",load:r}]},function(t,e,i){var n,r=((n={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(t,e,i,n,r,o){var s=o.length-1;switch(r){case 1:this.$=t.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(t);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=o[s-1];case 13:this.$={};break;case 14:this.$=o[s-1];break;case 15:this.$=[o[s-2],o[s]];break;case 16:this.$={},this.$[o[s][0]]=o[s][1];break;case 17:this.$=o[s-2],o[s-2][o[s][0]]=o[s][1];break;case 18:this.$=[];break;case 19:this.$=o[s-1];break;case 20:this.$=[o[s]];break;case 21:this.$=o[s-2],o[s-2].push(o[s])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(t){throw new Error(t)},parse:function(t){function e(){var t=i.lexer.lex()||1;return"number"!=typeof t&&(t=i.symbols_[t]||t),t}var i=this,n=[0],r=[null],o=[],s=this.table,a="",l=0,h=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;o.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,f,p,g,m,v,b,y,w,C,I={};;){if(p=n[n.length-1],void 0===(g=this.defaultActions[p]?this.defaultActions[p]:(null==d&&(d=e()),s[p]&&s[p][d]))||!g.length||!g[0]){if(!c){for(v in w=[],s[p])this.terminals_[v]&&2<v&&w.push("'"+this.terminals_[v]+"'");var A="";A=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'");this.parseError(A,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:w})}if(3==c){if(1==d)throw new Error(A||"Parsing halted.");h=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,u=this.lexer.yylloc,d=e()}for(;!(2..toString()in s[p]);){if(0==p)throw new Error(A||"Parsing halted.");C=1,n.length=n.length-2*C,r.length=r.length-C,o.length=o.length-C,p=n[n.length-1]}f=d,d=2,g=s[p=n[n.length-1]]&&s[p][2],c=3}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+d);switch(g[0]){case 1:n.push(d),r.push(this.lexer.yytext),o.push(this.lexer.yylloc),n.push(g[1]),d=null,f?(d=f,f=null):(h=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,u=this.lexer.yylloc,0<c&&c--);break;case 2:if(b=this.productions_[g[1]][1],I.$=r[r.length-b],I._$={first_line:o[o.length-(b||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(b||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(m=this.performAction.call(I,a,h,l,this.yy,g[1],r,o)))return m;b&&(n=n.slice(0,-1*b*2),r=r.slice(0,-1*b),o=o.slice(0,-1*b)),n.push(this.productions_[g[1]][0]),r.push(I.$),o.push(I._$),y=s[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(t,e){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t,t.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},less:function(t){this._input=this.match.slice(t)+this._input},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,i,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length&&(!(i=this._input.match(this.rules[o[s]]))||e&&!(i[0].length>e[0].length)||(e=i,n=s,this.options.flex));s++);return e?((r=e[0].match(/\n.*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,i){switch(i){case 0:break;case 1:return 6;case 2:return e.yytext=e.yytext.substr(1,e.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}},n);e.parser=r,e.parse=r.parse.bind(r)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){function i(t){"remove"in t||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){void 0!==this.parentNode&&this.parentNode.removeChild(this)}})}"undefined"!=typeof Element&&(void 0!==window.Element&&i(window.Element.prototype),void 0!==window.CharacterData&&i(window.CharacterData.prototype),void 0!==window.DocumentType&&i(window.DocumentType.prototype)),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){for(var e=0;e<this.length;e++){var i=this[e];if(t.call(this,i,e,this))return e}return-1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){return this[this.findIndex(t)]},configurable:!0,writable:!0}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},function(t,e,i){"use strict";var n=i(7);t.exports=function(t){n.copy(t,this)}},function(t,e,i){"use strict";t.exports=function(t,e){"function"==typeof(e=e||{})&&(e={cmp:e});var i,n="boolean"==typeof e.cycles&&e.cycles,r=e.cmp&&(i=e.cmp,function(t){return function(e,n){var r={key:e,value:t[e]},o={key:n,value:t[n]};return i(r,o)}}),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){for(a="[",l=0;l<e.length;l++)l&&(a+=","),a+=t(e[l])||"null";return a+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var i=o.push(e)-1,s=Object.keys(e).sort(r&&r(e)),a="",l=0;l<s.length;l++){var h=s[l],c=t(e[h]);c&&(a&&(a+=","),a+=JSON.stringify(h)+":"+c)}return o.splice(i,1),"{"+a+"}"}}(t)}},function(t,e,i){"use strict";t.exports=function(t,e){function i(t){for(var e=t.rules,i=0;i<e.length;i++)if(n(e[i]))return 1}function n(e){return void 0!==t.schema[e.keyword]||e.implements&&function(e){for(var i=e.implements,n=0;n<i.length;n++)if(void 0!==t.schema[i[n]])return 1}(e)}var r="",o=!0===t.schema.$async,s=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),a=t.self._getId(t.schema);if(t.opts.strictKeywords){var l=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(l){var h="unknown keyword: "+l;if("log"!==t.opts.strictKeywords)throw new Error(h);t.logger.warn(h)}}if(t.isTop&&(r+=" var validate = ",o&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof t.schema||!s&&!t.schema.$ref){e="false schema";var c=t.level,u=t.dataLevel,d=t.schema[e],f=t.schemaPath+t.util.getProperty(e),p=t.errSchemaPath+"/"+e,g=!t.opts.allErrors,m="data"+(u||""),v="valid"+c;return!1===t.schema?(t.isTop?g=!0:r+=" var "+v+" = false; ",(V=V||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",j=r,r=V.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):t.isTop?r+=o?" return data; ":" validate.errors = null; return true; ":r+=" var "+v+" = true; ",t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var b=t.isTop;c=t.level=0,u=t.dataLevel=0,m="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],void 0!==t.schema.default&&t.opts.useDefaults&&t.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==t.opts.strictDefaults)throw new Error(y);t.logger.warn(y)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{if(c=t.level,m="data"+((u=t.dataLevel)||""),a&&(t.baseId=t.resolve.url(t.baseId,a)),o&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+c+" = errors;"}v="valid"+c,g=!t.opts.allErrors;var w,C="",I="",A=t.schema.type,M=Array.isArray(A);if(A&&t.opts.nullable&&!0===t.schema.nullable&&(M?-1==A.indexOf("null")&&(A=A.concat("null")):"null"!=A&&(A=[A,"null"],M=!0)),M&&1==A.length&&(A=A[0],M=!1),t.schema.$ref&&s){if("fail"==t.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');!0!==t.opts.extendRefs&&(s=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),A){t.opts.coerceTypes&&(w=t.util.coerceToTypes(t.opts.coerceTypes,A));var x=t.RULES.types[A];if(w||M||!0===x||x&&!i(x)){f=t.schemaPath+".type",p=t.errSchemaPath+"/type",f=t.schemaPath+".type",p=t.errSchemaPath+"/type";var _=M?"checkDataTypes":"checkDataType";if(r+=" if ("+t.util[_](A,m,t.opts.strictNumbers,!0)+") { ",w){var S="dataType"+c,k="coerced"+c;r+=" var "+S+" = typeof "+m+"; var "+k+" = undefined; ","array"==t.opts.coerceTypes&&(r+=" if ("+S+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+S+" = typeof "+m+"; if ("+t.util.checkDataType(t.schema.type,m,t.opts.strictNumbers)+") "+k+" = "+m+"; } "),r+=" if ("+k+" !== undefined) ; ";var E=w;if(E)for(var T,R=-1,O=E.length-1;R<O;)"string"==(T=E[R+=1])?r+=" else if ("+S+" == 'number' || "+S+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":"number"==T||"integer"==T?(r+=" else if ("+S+" == 'boolean' || "+m+" === null || ("+S+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==T&&(r+=" && !("+m+" % 1)"),r+=")) "+k+" = +"+m+"; "):"boolean"==T?r+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":"null"==T?r+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":"array"==t.opts.coerceTypes&&"array"==T&&(r+=" else if ("+S+" == 'string' || "+S+" == 'number' || "+S+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");(V=V||[]).push(r+=" else { "),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=M?""+A.join(","):""+A,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=M?""+A.join(","):""+A,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var j=r;r=V.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+k+" !== undefined) { ";var N=u?"data"+(u-1||""):"parentData";r+=" "+m+" = "+k+"; ",u||(r+="if ("+N+" !== undefined)"),r+=" "+N+"["+(u?t.dataPathArr[u]:"parentDataProperty")+"] = "+k+"; } "}else(V=V||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=M?""+A.join(","):""+A,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=M?""+A.join(","):""+A,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",j=r,r=V.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";r+=" } "}}if(t.schema.$ref&&!s)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",g&&(r+=" } if (errors === ",r+=b?"0":"errs_"+c,r+=") { ",I+="}");else{var L=t.RULES;if(L)for(var B=-1,D=L.length-1;B<D;)if(i(x=L[B+=1])){if(x.type&&(r+=" if ("+t.util.checkDataType(x.type,m,t.opts.strictNumbers)+") { "),t.opts.useDefaults)if("object"==x.type&&t.schema.properties){d=t.schema.properties;var Z=Object.keys(d);if(Z)for(var P,W=-1,$=Z.length-1;W<$;)if(void 0!==(G=d[P=Z[W+=1]]).default){var H=m+t.util.getProperty(P);if(t.compositeRule){if(t.opts.strictDefaults){if(y="default is ignored for: "+H,"log"!==t.opts.strictDefaults)throw new Error(y);t.logger.warn(y)}}else r+=" if ("+H+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+H+" === null || "+H+" === '' "),r+=" ) "+H+" = ","shared"==t.opts.useDefaults?r+=" "+t.useDefault(G.default)+" ":r+=" "+JSON.stringify(G.default)+" ",r+="; "}}else if("array"==x.type&&Array.isArray(t.schema.items)){var z=t.schema.items;if(z){R=-1;for(var G,F=z.length-1;R<F;)if(void 0!==(G=z[R+=1]).default)if(H=m+"["+R+"]",t.compositeRule){if(t.opts.strictDefaults){if(y="default is ignored for: "+H,"log"!==t.opts.strictDefaults)throw new Error(y);t.logger.warn(y)}}else r+=" if ("+H+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+H+" === null || "+H+" === '' "),r+=" ) "+H+" = ","shared"==t.opts.useDefaults?r+=" "+t.useDefault(G.default)+" ":r+=" "+JSON.stringify(G.default)+" ",r+="; "}}var V,K=x.rules;if(K)for(var Y,U,X=-1,J=K.length-1;X<J;)!n(U=K[X+=1])||(Y=U.code(t,U.keyword,x.type))&&(r+=" "+Y+" ",g&&(C+="}"));g&&(r+=" "+C+" ",C=""),x.type&&(r+=" } ",A&&A===x.type&&!w&&(r+=" else { ",f=t.schemaPath+".type",p=t.errSchemaPath+"/type",(V=V||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=M?""+A.join(","):""+A,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=M?""+A.join(","):""+A,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",j=r,r=V.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ")),g&&(r+=" if (errors === ",r+=b?"0":"errs_"+c,r+=") { ",I+="}")}}return g&&(r+=" "+I+" "),b?(o?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+v+" = errors === errs_"+c+";",r}},function(t,e,i){"use strict";t.exports=function(t,e){var i,n,r,o,s,a,l,h=" ",c=t.level,u=t.dataLevel,d=t.schema[e],f=t.schemaPath+t.util.getProperty(e),p=t.errSchemaPath+"/"+e,g=!t.opts.allErrors,m="data"+(u||""),v=t.opts.$data&&d&&d.$data,b=v?(h+=" var schema"+c+" = "+t.util.getData(d.$data,u,t.dataPathArr)+"; ","schema"+c):d,y="maximum"==e,w=y?"exclusiveMaximum":"exclusiveMinimum",C=t.schema[w],I=t.opts.$data&&C&&C.$data,A=y?"<":">",M=y?">":"<",x=void 0;if(!v&&"number"!=typeof d&&void 0!==d)throw new Error(e+" must be number");if(!I&&void 0!==C&&"number"!=typeof C&&"boolean"!=typeof C)throw new Error(w+" must be number or boolean");I?(o="exclIsNumber"+c,s="' + "+(a="op"+c)+" + '",h+=" var schemaExcl"+c+" = "+(i=t.util.getData(C.$data,u,t.dataPathArr))+"; ",x=w,(l=l||[]).push(h+=" var "+(n="exclusive"+c)+"; var "+(r="exclType"+c)+" = typeof "+(i="schemaExcl"+c)+"; if ("+r+" != 'boolean' && "+r+" != 'undefined' && "+r+" != 'number') { "),h="",!1!==t.createErrors?(h+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: {} ",!1!==t.opts.messages&&(h+=" , message: '"+w+" should be boolean' "),t.opts.verbose&&(h+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),h+=" } "):h+=" {} ",_=h,h=l.pop(),!t.compositeRule&&g?t.async?h+=" throw new ValidationError(["+_+"]); ":h+=" validate.errors = ["+_+"]; return false; ":h+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h+=" } else if ( ",v&&(h+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),h+=" "+r+" == 'number' ? ( ("+n+" = "+b+" === undefined || "+i+" "+A+"= "+b+") ? "+m+" "+M+"= "+i+" : "+m+" "+M+" "+b+" ) : ( ("+n+" = "+i+" === true) ? "+m+" "+M+"= "+b+" : "+m+" "+M+" "+b+" ) || "+m+" !== "+m+") { var op"+c+" = "+n+" ? '"+A+"' : '"+A+"='; ",void 0===d&&(x=w,p=t.errSchemaPath+"/"+w,b=i,v=I)):(s=A,(o="number"==typeof C)&&v?(a="'"+s+"'",h+=" if ( ",v&&(h+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),h+=" ( "+b+" === undefined || "+C+" "+A+"= "+b+" ? "+m+" "+M+"= "+C+" : "+m+" "+M+" "+b+" ) || "+m+" !== "+m+") { "):(o&&void 0===d?(n=!0,x=w,p=t.errSchemaPath+"/"+w,b=C,M+="="):(o&&(b=Math[y?"min":"max"](C,d)),C===(!o||b)?(n=!0,x=w,p=t.errSchemaPath+"/"+w,M+="="):(n=!1,s+="=")),a="'"+s+"'",h+=" if ( ",v&&(h+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),h+=" "+m+" "+M+" "+b+" || "+m+" !== "+m+") { ")),x=x||e,(l=l||[]).push(h),h="",!1!==t.createErrors?(h+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { comparison: "+a+", limit: "+b+", exclusive: "+n+" } ",!1!==t.opts.messages&&(h+=" , message: 'should be "+s+" ",h+=v?"' + "+b:b+"'"),t.opts.verbose&&(h+=" , schema: ",h+=v?"validate.schema"+f:""+d,h+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),h+=" } "):h+=" {} ";var _=h;return h=l.pop(),!t.compositeRule&&g?t.async?h+=" throw new ValidationError(["+_+"]); ":h+=" validate.errors = ["+_+"]; return false; ":h+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h+=" } ",g&&(h+=" else { "),h}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c=t.opts.$data&&o&&o.$data,u=c?(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ","schema"+n):o;if(!c&&"number"!=typeof o)throw new Error(e+" must be number");i+="if ( ",c&&(i+=" ("+u+" !== undefined && typeof "+u+" != 'number') || "),i+=" "+h+".length "+("maxItems"==e?">":"<")+" "+u+") { ";var d=e,f=f||[];f.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { limit: "+u+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==e?"more":"fewer",i+=" than ",i+=c?"' + "+u+" + '":""+o,i+=" items' "),t.opts.verbose&&(i+=" , schema: ",i+=c?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var p=i;i=f.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c=t.opts.$data&&o&&o.$data,u=c?(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ","schema"+n):o;if(!c&&"number"!=typeof o)throw new Error(e+" must be number");var d="maxLength"==e?">":"<";i+="if ( ",c&&(i+=" ("+u+" !== undefined && typeof "+u+" != 'number') || "),!1===t.opts.unicode?i+=" "+h+".length ":i+=" ucs2length("+h+") ",i+=" "+d+" "+u+") { ";var f=e,p=p||[];p.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { limit: "+u+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==e?"longer":"shorter",i+=" than ",i+=c?"' + "+u+" + '":""+o,i+=" characters' "),t.opts.verbose&&(i+=" , schema: ",i+=c?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;i=p.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c=t.opts.$data&&o&&o.$data,u=c?(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ","schema"+n):o;if(!c&&"number"!=typeof o)throw new Error(e+" must be number");i+="if ( ",c&&(i+=" ("+u+" !== undefined && typeof "+u+" != 'number') || "),i+=" Object.keys("+h+").length "+("maxProperties"==e?">":"<")+" "+u+") { ";var d=e,f=f||[];f.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { limit: "+u+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==e?"more":"fewer",i+=" than ",i+=c?"' + "+u+" + '":""+o,i+=" properties' "),t.opts.verbose&&(i+=" , schema: ",i+=c?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var p=i;i=f.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(t,e,i){"use strict";function n(t){return 0<=l.indexOf(typeof t)}function r(t){return'"'+(t=t.replace(h,"\\$&").replace(u,"\\f").replace(c,"\\b").replace(d,"\\n").replace(f,"\\r").replace(p,"\\t"))+'"'}function o(t){return t.replace(g,"~0").replace(m,"~1")}var s={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},a="a".charCodeAt();e.parse=function(t,e,i){function n(e,i){var s;r(),f(e,"value");var a=c();switch(a){case"t":h("rue"),s=!0;break;case"f":h("alse"),s=!1;break;case"n":h("ull"),s=null;break;case'"':s=l();break;case"[":s=function(t){r();var e=[],i=0;if("]"==c())return e;for(u();;){var o=t+"/"+i;e.push(n(o)),r();var s=c();if("]"==s)break;","!=s&&v(),r(),i++}return e}(e);break;case"{":s=function(t){r();var e={};if("}"==c())return e;for(u();;){var i=g();'"'!=c()&&v();var s=l(),a=t+"/"+o(s);p(a,"key",i),f(a,"keyEnd"),r(),":"!=c()&&v(),r(),e[s]=n(a),r();var h=c();if("}"==h)break;","!=h&&v(),r()}return e}(e);break;default:u(),0<="-0123456789".indexOf(a)?s=function(){var e="",i=!0;"-"==t[I]&&(e+=c()),e+=("0"==t[I]?c:d)(),"."==t[I]&&(e+=c()+d(),i=!1),"e"!=t[I]&&"E"!=t[I]||(e+=c(),"+"!=t[I]&&"-"!=t[I]||(e+=c()),e+=d(),i=!1);var n=+e;return A&&i&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)?BigInt(e):n}():m()}return f(e,"valueEnd"),r(),i&&I<t.length&&m(),s}function r(){t:for(;I<t.length;){switch(t[I]){case" ":C++;break;case"\t":C+=4;break;case"\r":C=0;break;case"\n":C=0,w++;break;default:break t}I++}}function l(){for(var t,e="";'"'!=(t=c());)"\\"==t?(t=c())in s?e+=s[t]:"u"==t?e+=function(){for(var t=4,e=0;t--;){e<<=4;var i=c().toLowerCase();"a"<=i&&i<="f"?e+=i.charCodeAt()-a+10:"0"<=i&&i<="9"?e+=+i:v()}return String.fromCharCode(e)}():v():e+=t;return e}function h(t){for(var e=0;e<t.length;e++)c()!==t[e]&&v()}function c(){b();var e=t[I];return I++,C++,e}function u(){I--,C--}function d(){for(var e="";"0"<=t[I]&&t[I]<="9";)e+=c();if(e.length)return e;b(),m()}function f(t,e){p(t,e,g())}function p(t,e,i){y[t]=y[t]||{},y[t][e]=i}function g(){return{line:w,column:C,pos:I}}function m(){throw new SyntaxError("Unexpected token "+t[I]+" in JSON at position "+I)}function v(){u(),m()}function b(){if(I>=t.length)throw new SyntaxError("Unexpected end of JSON input")}var y={},w=0,C=0,I=0,A=i&&i.bigint&&"undefined"!=typeof BigInt;return{data:n("",!0),pointers:y}},e.stringify=function(t,e,i){function s(t){y+=t.length,w+=t.length,m+=t}function a(t){if(d){for(m+="\n"+h(t,d),b++,y=0;t--;)c?(b+=c,y=p):y+=p,w+=f;w+=1}}function l(t,e){v[t]=v[t]||{},v[t][e]={line:b,column:y,pos:w}}function h(t,e){return Array(t+1).join(e)}if(n(t)){var c=0;switch(typeof(d="object"==typeof i?i.space:i)){case"number":var u=10<d?10:d<0?0:Math.floor(d),d=u&&h(u," "),f=u,p=u;break;case"string":d=d.slice(0,10);for(var g=p=f=0;g<d.length;g++){switch(d[g]){case" ":p++;break;case"\t":p+=4;break;case"\r":p=0;break;case"\n":p=0,c++;break;default:throw new Error("whitespace characters not allowed in JSON")}f++}break;default:d=void 0}var m="",v={},b=0,y=0,w=0,C=i&&i.es6&&"function"==typeof Map;return function t(e,i,h){function c(){if(e.length){s("[");for(var r=i+1,o=0;o<e.length;o++){o&&s(","),a(r);var l=n(e[o])?e[o]:null;t(l,r,h+"/"+o)}a(i),s("]")}else s("[]")}function u(){var c=Object.keys(e);if(c.length){s("{");for(var u=i+1,f=0;f<c.length;f++){var p,g=c[f],m=e[g];n(m)&&(f&&s(","),p=h+"/"+o(g),a(u),l(p,"key"),s(r(g)),l(p,"keyEnd"),s(":"),d&&s(" "),t(m,u,p))}a(i),s("}")}else s("{}")}function f(c){if(e.size){s("{");for(var u=i+1,f=!0,p=e.entries(),g=p.next();!g.done;){var m,v=g.value,b=v[0],y=!!c||v[1];n(y)&&(f||s(","),f=!1,m=h+"/"+o(b),a(u),l(m,"key"),s(r(b)),l(m,"keyEnd"),s(":"),d&&s(" "),t(y,u,m)),g=p.next()}a(i),s("}")}else s("{}")}switch(l(h,"value"),typeof e){case"number":case"bigint":case"boolean":s(""+e);break;case"string":s(r(e));break;case"object":null===e?s("null"):"function"==typeof e.toJSON?s(r(e.toJSON())):Array.isArray(e)?c():C?e.constructor.BYTES_PER_ELEMENT?c():e instanceof Map?f():e instanceof Set?f(!0):u():u()}l(h,"valueEnd")}(t,0,""),{json:m,pointers:v}}};var l=["number","bigint","boolean","string","object"],h=/"|\\/g,c=/[\b]/g,u=/\f/g,d=/\n/g,f=/\r/g,p=/\t/g,g=/~/g,m=/\//g},function(t,e,i){!function(t){"use strict";function e(t){return null!==t&&"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function n(t,r){if(t===r)return!0;if(Object.prototype.toString.call(t)!==Object.prototype.toString.call(r))return!1;if(!0===e(t)){if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++)if(!1===n(t[o],r[o]))return!1;return!0}if(!0!==i(t))return!1;var s,a,l={};for(s in t)if(hasOwnProperty.call(t,s)){if(!1===n(t[s],r[s]))return!1;l[s]=!0}for(a in r)if(hasOwnProperty.call(r,a)&&!0!==l[a])return!1;return!0}function r(t){if(""===t||!1===t||null===t)return!0;if(e(t)&&0===t.length)return!0;if(i(t)){for(var n in t)if(t.hasOwnProperty(n))return!1;return!0}return!1}function o(t){return"0"<=t&&t<="9"||"-"===t}function s(){}function a(){}function l(t){this.runtime=t}function h(t){this._interpreter=t,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[v]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[f,p]},{types:[d]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[f]},{types:[f]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[f,p,g]}]},map:{_func:this._functionMap,_signature:[{types:[m]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[v,b]}]},merge:{_func:this._functionMerge,_signature:[{types:[g],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[m]}]},sum:{_func:this._functionSum,_signature:[{types:[v]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[f]},{types:[f]}]},min:{_func:this._functionMin,_signature:[{types:[v,b]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[m]}]},type:{_func:this._functionType,_signature:[{types:[d]}]},keys:{_func:this._functionKeys,_signature:[{types:[g]}]},values:{_func:this._functionValues,_signature:[{types:[g]}]},sort:{_func:this._functionSort,_signature:[{types:[b,v]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[m]}]},join:{_func:this._functionJoin,_signature:[{types:[f]},{types:[b]}]},reverse:{_func:this._functionReverse,_signature:[{types:[f,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[d]}]},to_string:{_func:this._functionToString,_signature:[{types:[d]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[d]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[d],variadic:!0}]}}}var c="function"==typeof String.prototype.trimLeft?function(t){return t.trimLeft()}:function(t){return t.match(/^\s*(.*)/)[1]},u=0,d=1,f=2,p=3,g=4,m=6,v=8,b=9,y="UnquotedIdentifier",w="QuotedIdentifier",C="Rbracket",I="Rparen",A="Comma",M="Colon",x="Rbrace",_="Number",S="Current",k="Expref",E="Pipe",T="GTE",R="LTE",O="Flatten",j="Star",N="Filter",L="Dot",B="Lbrace",D="Lbracket",Z="Lparen",P="Literal",W={".":L,"*":j,",":A,":":M,"{":B,"}":x,"]":C,"(":Z,")":I,"@":S},$={"<":!0,">":!0,"=":!0,"!":!0},H={" ":!0,"\t":!0,"\n":!0};s.prototype={tokenize:function(t){var e,i,n,r,s=[];for(this._current=0;this._current<t.length;)if("a"<=(r=t[this._current])&&r<="z"||"A"<=r&&r<="Z"||"_"===r)e=this._current,i=this._consumeUnquotedIdentifier(t),s.push({type:y,value:i,start:e});else if(void 0!==W[t[this._current]])s.push({type:W[t[this._current]],value:t[this._current],start:this._current}),this._current++;else if(o(t[this._current]))n=this._consumeNumber(t),s.push(n);else if("["===t[this._current])n=this._consumeLBracket(t),s.push(n);else if('"'===t[this._current])e=this._current,i=this._consumeQuotedIdentifier(t),s.push({type:w,value:i,start:e});else if("'"===t[this._current])e=this._current,i=this._consumeRawStringLiteral(t),s.push({type:P,value:i,start:e});else if("`"===t[this._current]){e=this._current;var a=this._consumeLiteral(t);s.push({type:P,value:a,start:e})}else if(void 0!==$[t[this._current]])s.push(this._consumeOperator(t));else if(void 0!==H[t[this._current]])this._current++;else if("&"===t[this._current])e=this._current,this._current++,"&"===t[this._current]?(this._current++,s.push({type:"And",value:"&&",start:e})):s.push({type:k,value:"&",start:e});else{if("|"!==t[this._current]){var l=new Error("Unknown character:"+t[this._current]);throw l.name="LexerError",l}e=this._current,this._current++,"|"===t[this._current]?(this._current++,s.push({type:"Or",value:"||",start:e})):s.push({type:E,value:"|",start:e})}return s},_consumeUnquotedIdentifier:function(t){var e,i=this._current;for(this._current++;this._current<t.length&&("a"<=(e=t[this._current])&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"||"_"===e);)this._current++;return t.slice(i,this._current)},_consumeQuotedIdentifier:function(t){var e=this._current;this._current++;for(var i=t.length;'"'!==t[this._current]&&this._current<i;){var n=this._current;"\\"!==t[n]||"\\"!==t[n+1]&&'"'!==t[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(t.slice(e,this._current))},_consumeRawStringLiteral:function(t){var e=this._current;this._current++;for(var i=t.length;"'"!==t[this._current]&&this._current<i;){var n=this._current;"\\"!==t[n]||"\\"!==t[n+1]&&"'"!==t[n+1]?n++:n+=2,this._current=n}return this._current++,t.slice(e+1,this._current-1).replace("\\'","'")},_consumeNumber:function(t){var e=this._current;this._current++;for(var i=t.length;o(t[this._current])&&this._current<i;)this._current++;var n=parseInt(t.slice(e,this._current));return{type:_,value:n,start:e}},_consumeLBracket:function(t){var e=this._current;return this._current++,"?"===t[this._current]?(this._current++,{type:N,value:"[?",start:e}):"]"===t[this._current]?(this._current++,{type:O,value:"[]",start:e}):{type:D,value:"[",start:e}},_consumeOperator:function(t){var e=this._current,i=t[e];return this._current++,"!"===i?"="===t[this._current]?(this._current++,{type:"NE",value:"!=",start:e}):{type:"Not",value:"!",start:e}:"<"===i?"="===t[this._current]?(this._current++,{type:R,value:"<=",start:e}):{type:"LT",value:"<",start:e}:">"===i?"="===t[this._current]?(this._current++,{type:T,value:">=",start:e}):{type:"GT",value:">",start:e}:"="===i&&"="===t[this._current]?(this._current++,{type:"EQ",value:"==",start:e}):void 0},_consumeLiteral:function(t){this._current++;for(var e=this._current,i=t.length;"`"!==t[this._current]&&this._current<i;){var n=this._current;"\\"!==t[n]||"\\"!==t[n+1]&&"`"!==t[n+1]?n++:n+=2,this._current=n}var r=(r=c(t.slice(e,this._current))).replace("\\`","`"),o=this._looksLikeJSON(r)?JSON.parse(r):JSON.parse('"'+r+'"');return this._current++,o},_looksLikeJSON:function(t){if(""===t)return!1;if(0<='[{"'.indexOf(t[0]))return!0;if(0<=["true","false","null"].indexOf(t))return!0;if(!(0<="-0123456789".indexOf(t[0])))return!1;try{return JSON.parse(t),!0}catch(t){return!1}}};var z={EOF:0};z[y]=0,z[w]=0,z[C]=0,z[I]=0,z[A]=0,z[x]=0,z[_]=0,z[S]=0,z[k]=0,z[E]=1,z.Or=2,z.And=3,z.EQ=5,z.GT=5,z.LT=5,z.GTE=5,z.LTE=5,z.NE=5,z[O]=9,z[j]=20,z[N]=21,z.Dot=40,z.Not=45,z[B]=50,z[D]=55,z[Z]=60,a.prototype={parse:function(t){this._loadTokens(t),this.index=0;var e=this.expression(0);if("EOF"===this._lookahead(0))return e;var i=this._lookaheadToken(0),n=new Error("Unexpected token type: "+i.type+", value: "+i.value);throw n.name="ParserError",n},_loadTokens:function(t){var e=(new s).tokenize(t);e.push({type:"EOF",value:"",start:t.length}),this.tokens=e},expression:function(t){var e=this._lookaheadToken(0);this._advance();for(var i=this.nud(e),n=this._lookahead(0);t<z[n];)this._advance(),i=this.led(n,i),n=this._lookahead(0);return i},_lookahead:function(t){return this.tokens[this.index+t].type},_lookaheadToken:function(t){return this.tokens[this.index+t]},_advance:function(){this.index++},nud:function(t){var e,i;switch(t.type){case P:return{type:"Literal",value:t.value};case y:return{type:"Field",name:t.value};case w:var n={type:"Field",name:t.value};if(this._lookahead(0)===Z)throw new Error("Quoted identifier not allowed for function names.");return n;case"Not":return{type:"NotExpression",children:[e=this.expression(z.Not)]};case j:return e=null,{type:"ValueProjection",children:[{type:"Identity"},e=this._lookahead(0)===C?{type:"Identity"}:this._parseProjectionRHS(z.Star)]};case N:return this.led(t.type,{type:"Identity"});case B:return this._parseMultiselectHash();case O:return{type:"Projection",children:[{type:O,children:[{type:"Identity"}]},e=this._parseProjectionRHS(z.Flatten)]};case D:return this._lookahead(0)===_||this._lookahead(0)===M?(e=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},e)):this._lookahead(0)===j&&this._lookahead(1)===C?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},e=this._parseProjectionRHS(z.Star)]}):this._parseMultiselectList();case S:return{type:S};case k:return{type:"ExpressionReference",children:[i=this.expression(z.Expref)]};case Z:for(var r=[];this._lookahead(0)!==I;)this._lookahead(0)===S?(i={type:S},this._advance()):i=this.expression(0),r.push(i);return this._match(I),r[0];default:this._errorToken(t)}},led:function(t,e){var i;switch(t){case L:var n=z.Dot;return this._lookahead(0)!==j?{type:"Subexpression",children:[e,i=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[e,i=this._parseProjectionRHS(n)]});case E:return i=this.expression(z.Pipe),{type:E,children:[e,i]};case"Or":return{type:"OrExpression",children:[e,i=this.expression(z.Or)]};case"And":return{type:"AndExpression",children:[e,i=this.expression(z.And)]};case Z:for(var r,o=e.name,s=[];this._lookahead(0)!==I;)this._lookahead(0)===S?(r={type:S},this._advance()):r=this.expression(0),this._lookahead(0)===A&&this._match(A),s.push(r);return this._match(I),{type:"Function",name:o,children:s};case N:var a=this.expression(0);return this._match(C),{type:"FilterProjection",children:[e,i=this._lookahead(0)===O?{type:"Identity"}:this._parseProjectionRHS(z.Filter),a]};case O:return{type:"Projection",children:[{type:O,children:[e]},this._parseProjectionRHS(z.Flatten)]};case"EQ":case"NE":case"GT":case T:case"LT":case R:return this._parseComparator(e,t);case D:var l=this._lookaheadToken(0);return l.type===_||l.type===M?(i=this._parseIndexExpression(),this._projectIfSlice(e,i)):(this._match(j),this._match(C),{type:"Projection",children:[e,i=this._parseProjectionRHS(z.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(t){if(this._lookahead(0)!==t){var e=this._lookaheadToken(0),i=new Error("Expected "+t+", got: "+e.type);throw i.name="ParserError",i}this._advance()},_errorToken:function(t){var e=new Error("Invalid token ("+t.type+'): "'+t.value+'"');throw e.name="ParserError",e},_parseIndexExpression:function(){if(this._lookahead(0)===M||this._lookahead(1)===M)return this._parseSliceExpression();var t={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(C),t},_projectIfSlice:function(t,e){var i={type:"IndexExpression",children:[t,e]};return"Slice"===e.type?{type:"Projection",children:[i,this._parseProjectionRHS(z.Star)]}:i},_parseSliceExpression:function(){for(var t=[null,null,null],e=0,i=this._lookahead(0);i!==C&&e<3;){if(i===M)e++,this._advance();else{if(i!==_){var n=this._lookahead(0),r=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw r.name="Parsererror",r}t[e]=this._lookaheadToken(0).value,this._advance()}i=this._lookahead(0)}return this._match(C),{type:"Slice",children:t}},_parseComparator:function(t,e){return{type:"Comparator",name:e,children:[t,this.expression(z[e])]}},_parseDotRHS:function(t){var e=this._lookahead(0);return 0<=[y,w,j].indexOf(e)?this.expression(t):e===D?(this._match(D),this._parseMultiselectList()):e===B?(this._match(B),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(t){var e;if(z[this._lookahead(0)]<10)e={type:"Identity"};else if(this._lookahead(0)===D)e=this.expression(t);else if(this._lookahead(0)===N)e=this.expression(t);else{if(this._lookahead(0)!==L){var i=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");throw n.name="ParserError",n}this._match(L),e=this._parseDotRHS(t)}return e},_parseMultiselectList:function(){for(var t=[];this._lookahead(0)!==C;){var e=this.expression(0);if(t.push(e),this._lookahead(0)===A&&(this._match(A),this._lookahead(0)===C))throw new Error("Unexpected token Rbracket")}return this._match(C),{type:"MultiSelectList",children:t}},_parseMultiselectHash:function(){for(var t,e,i,n=[],r=[y,w];;){if(t=this._lookaheadToken(0),r.indexOf(t.type)<0)throw new Error("Expecting an identifier token, got: "+t.type);if(e=t.value,this._advance(),this._match(M),i={type:"KeyValuePair",name:e,value:this.expression(0)},n.push(i),this._lookahead(0)===A)this._match(A);else if(this._lookahead(0)===x){this._match(x);break}}return{type:"MultiSelectHash",children:n}}},l.prototype={search:function(t,e){return this.visit(t,e)},visit:function(t,o){var s,a,l,h,c,u;switch(t.type){case"Field":return null!==o&&i(o)&&void 0!==(c=o[t.name])?c:null;case"Subexpression":for(b=this.visit(t.children[0],o),C=1;C<t.children.length;C++)if(null===(b=this.visit(t.children[1],b)))return null;return b;case"IndexExpression":return u=this.visit(t.children[0],o),this.visit(t.children[1],u);case"Index":if(!e(o))return null;var d=t.value;return d<0&&(d=o.length+d),void 0===(b=o[d])&&(b=null),b;case"Slice":if(!e(o))return null;var f=t.children.slice(0),p=this.computeSliceParams(o.length,f),g=p[0],m=p[1],v=p[2],b=[];if(0<v)for(C=g;C<m;C+=v)b.push(o[C]);else for(C=g;m<C;C+=v)b.push(o[C]);return b;case"Projection":var y=this.visit(t.children[0],o);if(!e(y))return null;for(N=[],C=0;C<y.length;C++)null!==(a=this.visit(t.children[1],y[C]))&&N.push(a);return N;case"ValueProjection":if(!i(y=this.visit(t.children[0],o)))return null;N=[];for(var w=function(t){for(var e=Object.keys(t),i=[],n=0;n<e.length;n++)i.push(t[e[n]]);return i}(y),C=0;C<w.length;C++)null!==(a=this.visit(t.children[1],w[C]))&&N.push(a);return N;case"FilterProjection":if(!e(y=this.visit(t.children[0],o)))return null;var I=[],A=[];for(C=0;C<y.length;C++)r(s=this.visit(t.children[2],y[C]))||I.push(y[C]);for(var M=0;M<I.length;M++)null!==(a=this.visit(t.children[1],I[M]))&&A.push(a);return A;case"Comparator":switch(l=this.visit(t.children[0],o),h=this.visit(t.children[1],o),t.name){case"EQ":b=n(l,h);break;case"NE":b=!n(l,h);break;case"GT":b=h<l;break;case T:b=h<=l;break;case"LT":b=l<h;break;case R:b=l<=h;break;default:throw new Error("Unknown comparator: "+t.name)}return b;case O:var x=this.visit(t.children[0],o);if(!e(x))return null;var _=[];for(C=0;C<x.length;C++)e(a=x[C])?_.push.apply(_,a):_.push(a);return _;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(N=[],C=0;C<t.children.length;C++)N.push(this.visit(t.children[C],o));return N;case"MultiSelectHash":if(null===o)return null;var j,N={};for(C=0;C<t.children.length;C++)N[(j=t.children[C]).name]=this.visit(j.value,o);return N;case"OrExpression":return r(s=this.visit(t.children[0],o))&&(s=this.visit(t.children[1],o)),s;case"AndExpression":return!0===r(l=this.visit(t.children[0],o))?l:this.visit(t.children[1],o);case"NotExpression":return r(l=this.visit(t.children[0],o));case"Literal":return t.value;case E:return u=this.visit(t.children[0],o),this.visit(t.children[1],u);case S:return o;case"Function":var L=[];for(C=0;C<t.children.length;C++)L.push(this.visit(t.children[C],o));return this.runtime.callFunction(t.name,L);case"ExpressionReference":var B=t.children[0];return B.jmespathType=k,B;default:throw new Error("Unknown node type: "+t.type)}},computeSliceParams:function(t,e){var i=e[0],n=e[1],r=e[2],o=[null,null,null];if(null===r)r=1;else if(0===r){var s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}var a=r<0;i=null===i?a?t-1:0:this.capSliceRange(t,i,r),n=null===n?a?-1:t:this.capSliceRange(t,n,r);return o[0]=i,o[1]=n,o[2]=r,o},capSliceRange:function(t,e,i){return e<0?(e+=t)<0&&(e=i<0?-1:0):t<=e&&(e=i<0?t-1:t),e}},h.prototype={callFunction:function(t,e){var i=this.functionTable[t];if(void 0===i)throw new Error("Unknown function: "+t+"()");return this._validateArgs(t,e,i._signature),i._func.call(this,e)},_validateArgs:function(t,e,i){var n,r,o,s;if(i[i.length-1].variadic){if(e.length<i.length)throw n=1===i.length?" argument":" arguments",new Error("ArgumentError: "+t+"() takes at least"+i.length+n+" but received "+e.length)}else if(e.length!==i.length)throw n=1===i.length?" argument":" arguments",new Error("ArgumentError: "+t+"() takes "+i.length+n+" but received "+e.length);for(var a=0;a<i.length;a++){s=!1,r=i[a].types,o=this._getTypeName(e[a]);for(var l=0;l<r.length;l++)if(this._typeMatches(o,r[l],e[a])){s=!0;break}if(!s)throw new Error("TypeError: "+t+"() expected argument "+(a+1)+" to be type "+r+" but received type "+o+" instead.")}},_typeMatches:function(t,e,i){if(e===d)return!0;if(e!==b&&e!==v&&e!==p)return t===e;if(e===p)return t===p;if(t===p){var n;e===v?n=u:e===b&&(n=f);for(var r=0;r<i.length;r++)if(!this._typeMatches(this._getTypeName(i[r]),n,i[r]))return!1;return!0}},_getTypeName:function(t){switch(Object.prototype.toString.call(t)){case"[object String]":return f;case"[object Number]":return u;case"[object Array]":return p;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return t.jmespathType===k?m:g}},_functionStartsWith:function(t){return 0===t[0].lastIndexOf(t[1])},_functionEndsWith:function(t){var e=t[0],i=t[1];return-1!==e.indexOf(i,e.length-i.length)},_functionReverse:function(t){if(this._getTypeName(t[0])===f){for(var e=t[0],i="",n=e.length-1;0<=n;n--)i+=e[n];return i}var r=t[0].slice(0);return r.reverse(),r},_functionAbs:function(t){return Math.abs(t[0])},_functionCeil:function(t){return Math.ceil(t[0])},_functionAvg:function(t){for(var e=0,i=t[0],n=0;n<i.length;n++)e+=i[n];return e/i.length},_functionContains:function(t){return 0<=t[0].indexOf(t[1])},_functionFloor:function(t){return Math.floor(t[0])},_functionLength:function(t){return i(t[0])?Object.keys(t[0]).length:t[0].length},_functionMap:function(t){for(var e=[],i=this._interpreter,n=t[0],r=t[1],o=0;o<r.length;o++)e.push(i.visit(n,r[o]));return e},_functionMerge:function(t){for(var e={},i=0;i<t.length;i++){var n,r=t[i];for(n in r)e[n]=r[n]}return e},_functionMax:function(t){if(0<t[0].length){if(this._getTypeName(t[0][0])===u)return Math.max.apply(Math,t[0]);for(var e=t[0],i=e[0],n=1;n<e.length;n++)i.localeCompare(e[n])<0&&(i=e[n]);return i}return null},_functionMin:function(t){if(0<t[0].length){if(this._getTypeName(t[0][0])===u)return Math.min.apply(Math,t[0]);for(var e=t[0],i=e[0],n=1;n<e.length;n++)e[n].localeCompare(i)<0&&(i=e[n]);return i}return null},_functionSum:function(t){for(var e=0,i=t[0],n=0;n<i.length;n++)e+=i[n];return e},_functionType:function(t){switch(this._getTypeName(t[0])){case u:return"number";case f:return"string";case p:return"array";case g:return"object";case 5:return"boolean";case m:return"expref";case 7:return"null"}},_functionKeys:function(t){return Object.keys(t[0])},_functionValues:function(t){for(var e=t[0],i=Object.keys(e),n=[],r=0;r<i.length;r++)n.push(e[i[r]]);return n},_functionJoin:function(t){var e=t[0];return t[1].join(e)},_functionToArray:function(t){return this._getTypeName(t[0])===p?t[0]:[t[0]]},_functionToString:function(t){return this._getTypeName(t[0])===f?t[0]:JSON.stringify(t[0])},_functionToNumber:function(t){var e,i=this._getTypeName(t[0]);return i===u?t[0]:i!==f||(e=+t[0],isNaN(e))?null:e},_functionNotNull:function(t){for(var e=0;e<t.length;e++)if(7!==this._getTypeName(t[e]))return t[e];return null},_functionSort:function(t){var e=t[0].slice(0);return e.sort(),e},_functionSortBy:function(t){var e=t[0].slice(0);if(0===e.length)return e;var i=this._interpreter,n=t[1],r=this._getTypeName(i.visit(n,e[0]));if([u,f].indexOf(r)<0)throw new Error("TypeError");for(var o=this,s=[],a=0;a<e.length;a++)s.push([a,e[a]]);s.sort((function(t,e){var s=i.visit(n,t[1]),a=i.visit(n,e[1]);if(o._getTypeName(s)!==r)throw new Error("TypeError: expected "+r+", received "+o._getTypeName(s));if(o._getTypeName(a)!==r)throw new Error("TypeError: expected "+r+", received "+o._getTypeName(a));return a<s?1:s<a?-1:t[0]-e[0]}));for(var l=0;l<s.length;l++)e[l]=s[l][1];return e},_functionMaxBy:function(t){for(var e,i,n=t[1],r=t[0],o=this.createKeyFunction(n,[u,f]),s=-1/0,a=0;a<r.length;a++)s<(i=o(r[a]))&&(s=i,e=r[a]);return e},_functionMinBy:function(t){for(var e,i,n=t[1],r=t[0],o=this.createKeyFunction(n,[u,f]),s=1/0,a=0;a<r.length;a++)(i=o(r[a]))<s&&(s=i,e=r[a]);return e},createKeyFunction:function(t,e){var i=this,n=this._interpreter;return function(r){var o=n.visit(t,r);if(e.indexOf(i._getTypeName(o))<0){var s="TypeError: expected one of "+e+", received "+i._getTypeName(o);throw new Error(s)}return o}}},t.tokenize=function(t){return(new s).tokenize(t)},t.compile=function(t){return(new a).parse(t)},t.search=function(t,e){var i=new a,n=new h,r=new l(n);n._interpreter=r;var o=i.parse(e);return r.search(o,t)},t.strictDeepEqual=n}(e)},function(t,e,i){e.tryRequireThemeJsonEditor=function(){try{i(42)}catch(t){console.error(t)}}},function(t,e,i){"use strict";function n(t,e,i){if(!(this instanceof n))throw new Error('JSONEditor constructor called without "new".');var r=f();if(-1!==r&&r<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");e&&(e.error&&(console.warn('Option "error" has been renamed to "onError"'),e.onError=e.error,delete e.error),e.change&&(console.warn('Option "change" has been renamed to "onChange"'),e.onChange=e.change,delete e.change),e.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),e.onEditable=e.editable,delete e.editable),e.onChangeJSON&&("text"!==e.mode&&"code"!==e.mode&&(!e.modes||-1===e.modes.indexOf("text")&&-1===e.modes.indexOf("code"))||console.warn('Option "onChangeJSON" is not applicable to modes "text" and "code". Use "onChangeText" or "onChange" instead.')),e&&Object.keys(e).forEach((function(t){-1===n.VALID_OPTIONS.indexOf(t)&&console.warn('Unknown option "'+t+'". This option will be ignored')}))),arguments.length&&this._create(t,e,i)}var r=i(20),o=i(13),s=i(80).treeModeMixins,a=i(21).textModeMixins,l=i(81).previewModeMixins,h=i(0),c=h.clear,u=h.extend,d=h.getInnerText,f=h.getInternetExplorerVersion,p=h.parse,g=i(43).tryRequireAjv,m=i(6).showTransformModal,v=i(5).showSortModal,b=g();"undefined"==typeof Promise&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),n.modes={},n.prototype.DEBOUNCE_INTERVAL=150,n.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription"],n.prototype._create=function(t,e,i){this.container=t,this.options=e||{},this.json=i||{};var n=this.options.mode||this.options.modes&&this.options.modes[0]||"tree";this.setMode(n)},n.prototype.destroy=function(){},n.prototype.set=function(t){this.json=t},n.prototype.get=function(){return this.json},n.prototype.setText=function(t){this.json=p(t)},n.prototype.getText=function(){return JSON.stringify(this.json)},n.prototype.setName=function(t){this.options||(this.options={}),this.options.name=t},n.prototype.getName=function(){return this.options&&this.options.name},n.prototype.setMode=function(t){if(t!==this.options.mode||!this.create){var e=this.container,i=u({},this.options),r=i.mode;i.mode=t;var o=n.modes[t];if(!o)throw new Error('Unknown mode "'+i.mode+'"');try{var s="text"===o.data,a=this.getName(),l=this[s?"getText":"get"]();if(this.destroy(),c(this),u(this,o.mixin),this.create(e,i),this.setName(a),this[s?"setText":"set"](l),"function"==typeof o.load)try{o.load.call(this)}catch(t){console.error(t)}if("function"==typeof i.onModeChange&&t!==r)try{i.onModeChange(t,r)}catch(t){console.error(t)}}catch(t){this._onError(t)}}},n.prototype.getMode=function(){return this.options.mode},n.prototype._onError=function(t){if(!this.options||"function"!=typeof this.options.onError)throw t;this.options.onError(t)},n.prototype.setSchema=function(t,e){if(t){var n;try{this.options.ajv?n=this.options.ajv:((n=b({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(i(78)),n.addMetaSchema(i(79)))}catch(t){console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(n){if(e){for(var r in e)n.removeSchema(r),e[r]&&n.addSchema(e[r],r);this.options.schemaRefs=e}this.validateSchema=n.compile(t),this.options.schema=t,this.validate()}this.refresh()}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate(),this.refresh()},n.prototype.validate=function(){},n.prototype.refresh=function(){},n.registerMode=function(t){var e;if(Array.isArray(t))for(o=0;o<t.length;o++)n.registerMode(t[o]);else{if(!("mode"in t))throw new Error('Property "mode" missing');if(!("mixin"in t))throw new Error('Property "mixin" missing');if(!("data"in t))throw new Error('Property "data" missing');var i=t.mode;if(i in n.modes)throw new Error('Mode "'+i+'" already registered');if("function"!=typeof t.mixin.create)throw new Error('Required function "create" missing on mixin');for(var r=["setMode","registerMode","modes"],o=0;o<r.length;o++)if((e=r[o])in t.mixin)throw new Error('Reserved property "'+e+'" not allowed in mixin');n.modes[i]=t}},n.registerMode(s),n.registerMode(a),n.registerMode(l),n.ace=r,n.Ajv=b,n.VanillaPicker=o,n.showTransformModal=m,n.showSortModal=v,n.getInnerText=d,n.default=n,t.exports=n},function(t,e,i){(function(t){!function(){function t(t,e,i){if("string"==typeof e){var n=a(t,e);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(e)){for(var r=[],s=0,l=e.length;s<l;++s){var h=a(t,e[s]);if(null==h&&o.original)return;r.push(h)}return i&&i.apply(null,r)||!0}}var e=function(){return this}();e||"undefined"==typeof window||(e=window);var i=function(t,e,n){"string"==typeof t?(2==arguments.length&&(n=e),i.modules[t]||(i.payloads[t]=n,i.modules[t]=null)):i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};i.modules={},i.payloads={};var n,r,o=function(e,i){var n=t("",e,i);return null==n&&o.original?o.original.apply(this,arguments):n},s=function(t,e){if(-1!==e.indexOf("!")){var i=e.split("!");return s(t,i[0])+"!"+s(t,i[1])}if("."==e.charAt(0))for(e=t.split("/").slice(0,-1).join("/")+"/"+e;-1!==e.indexOf(".")&&n!=e;){var n=e;e=e.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return e},a=function(e,n){n=s(e,n);var r,o,a=i.modules[n];return a||("function"==typeof(a=i.payloads[n])&&(r={id:n,uri:"",exports:o={},packaged:!0},o=a((function(e,i){return t(n,e,i)}),o,r)||r.exports,i.modules[n]=o,delete i.payloads[n]),a=i.modules[n]=o||a),a};r=e,(n="ace")&&(e[n]||(e[n]={}),r=e[n]),r.define&&r.define.packaged||(i.original=r.define,r.define=i,r.define.packaged=!0),r.require&&r.require.packaged||(o.original=r.require,r.require=o,r.require.packaged=!0)}(),ace.define("ace/lib/fixoldbrowsers",["require","exports","module"],(function(t,e,i){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(t,e,i){"use strict";e.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},e.getOS=function(){return e.isMac?e.OS.MAC:e.isLinux?e.OS.LINUX:e.OS.WINDOWS};var n="object"==typeof navigator?navigator:{},r=(/mac|win|linux/i.exec(n.platform)||["other"])[0].toLowerCase(),o=n.userAgent||"",s=n.appName||"";e.isWin="win"==r,e.isMac="mac"==r,e.isLinux="linux"==r,e.isIE="Microsoft Internet Explorer"==s||0<=s.indexOf("MSAppHost")?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),e.isOldIE=e.isIE&&e.isIE<9,e.isGecko=e.isMozilla=o.match(/ Gecko\/\d+/),e.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),e.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,e.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,e.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,e.isAIR=0<=o.indexOf("AdobeAIR"),e.isAndroid=0<=o.indexOf("Android"),e.isChromeOS=0<=o.indexOf(" CrOS "),e.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,e.isIOS&&(e.isMac=!0),e.isMobile=e.isIOS||e.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(t,e,i){"use strict";var n,r=t("./useragent");e.buildDom=function t(e,i,n){if("string"==typeof e&&e){var r=document.createTextNode(e);return i&&i.appendChild(r),r}if(!Array.isArray(e))return e&&e.appendChild&&i&&i.appendChild(e),e;if("string"!=typeof e[0]||!e[0]){for(var o=[],s=0;s<e.length;s++){var a=t(e[s],i,n);a&&o.push(a)}return o}var l=document.createElement(e[0]),h=e[1],c=1;for(h&&"object"==typeof h&&!Array.isArray(h)&&(c=2),s=c;s<e.length;s++)t(e[s],l,n);return 2==c&&Object.keys(h).forEach((function(t){var e=h[t];"class"===t?l.className=Array.isArray(e)?e.join(" "):e:"function"==typeof e||"value"==t||"$"==t[0]?l[t]=e:"ref"===t?n&&(n[e]=l):null!=e&&l.setAttribute(t,e)})),i&&i.appendChild(l),l},e.getDocumentHead=function(t){return(t=t||document).head||t.getElementsByTagName("head")[0]||t.documentElement},e.createElement=function(t,e){return document.createElementNS?document.createElementNS(e||"http://www.w3.org/1999/xhtml",t):document.createElement(t)},e.removeChildren=function(t){t.innerHTML=""},e.createTextNode=function(t,e){return(e?e.ownerDocument:document).createTextNode(t)},e.createFragment=function(t){return(t?t.ownerDocument:document).createDocumentFragment()},e.hasCssClass=function(t,e){return-1!==(t.className+"").split(/\s+/g).indexOf(e)},e.addCssClass=function(t,i){e.hasCssClass(t,i)||(t.className+=" "+i)},e.removeCssClass=function(t,e){for(var i=t.className.split(/\s+/g);;){var n=i.indexOf(e);if(-1==n)break;i.splice(n,1)}t.className=i.join(" ")},e.toggleCssClass=function(t,e){for(var i=t.className.split(/\s+/g),n=!0;;){var r=i.indexOf(e);if(-1==r)break;n=!1,i.splice(r,1)}return n&&i.push(e),t.className=i.join(" "),n},e.setCssClass=function(t,i,n){n?e.addCssClass(t,i):e.removeCssClass(t,i)},e.hasCssString=function(t,e){var i,n=0;if(i=(e=e||document).querySelectorAll("style"))for(;n<i.length;)if(i[n++].id===t)return!0},e.importCssString=function(t,i,n){var r=n;n&&n.getRootNode&&(r=n.getRootNode())&&r!=n||(r=document);var o=r.ownerDocument||r;if(i&&e.hasCssString(i,r))return null;i&&(t+="\n/*# sourceURL=ace/css/"+i+" */");var s=e.createElement("style");s.appendChild(o.createTextNode(t)),i&&(s.id=i),r==o&&(r=e.getDocumentHead(o)),r.insertBefore(s,r.firstChild)},e.importCssStylsheet=function(t,i){e.buildDom(["link",{rel:"stylesheet",href:t}],e.getDocumentHead(i))},e.scrollbarWidth=function(t){var i=e.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block";var n=e.createElement("ace_outer"),r=n.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",n.appendChild(i);var o=t.documentElement;o.appendChild(n);var s=i.offsetWidth;r.overflow="scroll";var a=i.offsetWidth;return s==a&&(a=n.clientWidth),o.removeChild(n),s-a},"undefined"==typeof document&&(e.importCssString=function(){}),e.computedStyle=function(t,e){return window.getComputedStyle(t,"")||{}},e.setStyle=function(t,e,i){t[e]!==i&&(t[e]=i)},e.HAS_CSS_ANIMATION=!1,e.HAS_CSS_TRANSFORMS=!1,e.HI_DPI=!r.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,"undefined"!=typeof document&&(n=document.createElement("div"),e.HI_DPI&&void 0!==n.style.transform&&(e.HAS_CSS_TRANSFORMS=!0),r.isEdge||void 0===n.style.animationName||(e.HAS_CSS_ANIMATION=!0),n=null),e.HAS_CSS_TRANSFORMS?e.translate=function(t,e,i){t.style.transform="translate("+Math.round(e)+"px, "+Math.round(i)+"px)"}:e.translate=function(t,e,i){t.style.top=Math.round(i)+"px",t.style.left=Math.round(e)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(t,e,i){"use strict";e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,e){for(var i in e)t[i]=e[i];return t},e.implement=function(t,i){e.mixin(t,i)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(t,e,i){"use strict";var n=t("./oop"),r=function(){var t,e,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(e in i.FUNCTION_KEYS)t=i.FUNCTION_KEYS[e].toLowerCase(),i[t]=parseInt(e,10);for(e in i.PRINTABLE_KEYS)t=i.PRINTABLE_KEYS[e].toLowerCase(),i[t]=parseInt(e,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)i.KEY_MODS[e]=t.filter((function(t){return e&i.KEY_MODS[t]})).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();n.mixin(e,r),e.keyCodeToString=function(t){var e=r[t];return"string"!=typeof e&&(e=String.fromCharCode(t)),e.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,i){"use strict";function n(){return null==l&&function(){l=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){l={passive:!1}}})}catch(t){}}(),l}function r(t,e,i){this.elem=t,this.type=e,this.callback=i}function o(t){return 0|(t.ctrlKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.metaKey?8:0)}function s(t,e,i){var n,r=o(e);if(!c.isMac&&u){if(e.getModifierState&&(e.getModifierState("OS")||e.getModifierState("Win"))&&(r|=8),u.altGr){if(3==(3&r))return;u.altGr=0}18!==i&&17!==i||(n="location"in e?e.location:e.keyLocation,17===i&&1===n?1==u[i]&&(d=e.timeStamp):18===i&&3===r&&2===n&&e.timeStamp-d<50&&(u.altGr=!0))}if(i in h.MODIFIER_KEYS&&(i=-1),r||13!==i||3!==(n="location"in e?e.location:e.keyLocation)||(t(e,r,-i),!e.defaultPrevented)){if(c.isChromeOS&&8&r){if(t(e,r,i),e.defaultPrevented)return;r&=-9}return!!(r||i in h.FUNCTION_KEYS||i in h.PRINTABLE_KEYS)&&t(e,r,i)}}function a(){u=Object.create(null)}var l,h=t("./keys"),c=t("./useragent"),u=null,d=0;r.prototype.destroy=function(){g(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var f,p=e.addListener=function(t,e,i,o){t.addEventListener(e,i,n()),o&&o.$toDestroy.push(new r(t,e,i))},g=e.removeListener=function(t,e,i){t.removeEventListener(e,i,n())};e.stopEvent=function(t){return e.stopPropagation(t),e.preventDefault(t),!1},e.stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},e.preventDefault=function(t){t.preventDefault&&t.preventDefault()},e.getButton=function(t){return"dblclick"==t.type?0:"contextmenu"==t.type||c.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey?2:t.button},e.capture=function(t,e,i){function n(t){e&&e(t),i&&i(t),g(r,"mousemove",e),g(r,"mouseup",n),g(r,"dragstart",n)}var r=t&&t.ownerDocument||document;return p(r,"mousemove",e),p(r,"mouseup",n),p(r,"dragstart",n),n},e.addMouseWheelListener=function(t,e,i){"onmousewheel"in t?p(t,"mousewheel",(function(t){void 0!==t.wheelDeltaX?(t.wheelX=-t.wheelDeltaX/8,t.wheelY=-t.wheelDeltaY/8):(t.wheelX=0,t.wheelY=-t.wheelDelta/8),e(t)}),i):"onwheel"in t?p(t,"wheel",(function(t){switch(t.deltaMode){case t.DOM_DELTA_PIXEL:t.wheelX=.35*t.deltaX||0,t.wheelY=.35*t.deltaY||0;break;case t.DOM_DELTA_LINE:case t.DOM_DELTA_PAGE:t.wheelX=5*(t.deltaX||0),t.wheelY=5*(t.deltaY||0)}e(t)}),i):p(t,"DOMMouseScroll",(function(t){t.axis&&t.axis==t.HORIZONTAL_AXIS?(t.wheelX=5*(t.detail||0),t.wheelY=0):(t.wheelX=0,t.wheelY=5*(t.detail||0)),e(t)}),i)},e.addMultiMouseDownListener=function(t,i,n,r,o){function s(t){var o;if(0!==e.getButton(t)?u=0:1<t.detail&&!(4<++u)||(u=1),c.isIE&&(o=5<Math.abs(t.clientX-a)||5<Math.abs(t.clientY-l),h&&!o||(u=1),h&&clearTimeout(h),h=setTimeout((function(){h=null}),i[u-1]||600),1==u&&(a=t.clientX,l=t.clientY)),t._clicks=u,n[r]("mousedown",t),4<u)u=0;else if(1<u)return n[r](d[u],t)}var a,l,h,u=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(t)||(t=[t]),t.forEach((function(t){p(t,"mousedown",s,o)}))},e.getModifierString=function(t){return h.KEY_MODS[o(t)]},e.addCommandKeyListener=function(t,i,n){var r,o;c.isOldGecko||c.isOpera&&!("KeyboardEvent"in window)?(r=null,p(t,"keydown",(function(t){r=t.keyCode}),n),p(t,"keypress",(function(t){return s(i,t,r)}),n)):(o=null,p(t,"keydown",(function(t){u[t.keyCode]=(u[t.keyCode]||0)+1;var e=s(i,t,t.keyCode);return o=t.defaultPrevented,e}),n),p(t,"keypress",(function(t){o&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)&&(e.stopEvent(t),o=null)}),n),p(t,"keyup",(function(t){u[t.keyCode]=null}),n),u||(a(),p(window,"focus",a)))},"object"==typeof window&&window.postMessage&&!c.isOldIE&&(f=1,e.nextTick=function(t,i){i=i||window;var n="zero-timeout-message-"+f++,r=function(o){o.data==n&&(e.stopPropagation(o),g(i,"message",r),t())};p(i,"message",r),i.postMessage(n,"*")}),e.$idleBlocked=!1,e.onIdle=function(t,i){return setTimeout((function i(){e.$idleBlocked?setTimeout(i,100):t()}),i)},e.$idleBlockId=null,e.blockIdle=function(t){e.$idleBlockId&&clearTimeout(e.$idleBlockId),e.$idleBlocked=!0,e.$idleBlockId=setTimeout((function(){e.$idleBlocked=!1}),t||100)},e.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),e.nextFrame?e.nextFrame=e.nextFrame.bind(window):e.nextFrame=function(t){setTimeout(t,17)}})),ace.define("ace/range",["require","exports","module"],(function(t,e,i){"use strict";function n(t,e,i,n){this.start={row:t,column:e},this.end={row:i,column:n}}(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e=t.end,i=t.start,n=this.compare(e.row,e.column);return 1==n?1==(n=this.compare(i.row,i.column))?2:0==n?1:0:-1==n?-2:-1==(n=this.compare(i.row,i.column))?-1:1==n?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var e=this.compareRange(t);return-1==e||0==e||1==e},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)&&!this.isStart(t,e)},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row!==t||e<=this.end.column?0:1:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){var i,r;return this.end.row>e?i={row:e+1,column:0}:this.end.row<t&&(i={row:t,column:0}),this.start.row>e?r={row:e+1,column:0}:this.start.row<t&&(r={row:t,column:0}),n.fromPoints(r||this.start,i||this.end)},this.extend=function(t,e){var i,r,o=this.compare(t,e);return 0==o?this:(-1==o?i={row:t,column:e}:r={row:t,column:e},n.fromPoints(i||this.start,r||this.end))},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return n.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new n(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new n(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),i=t.documentToScreenPosition(this.end);return new n(e.row,e.column,i.row,i.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(n.prototype),n.fromPoints=function(t,e){return new n(t.row,t.column,e.row,e.column)},n.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},n.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=n})),ace.define("ace/lib/lang",["require","exports","module"],(function(t,e,i){"use strict";e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var i="";0<e;)1&e&&(i+=t),(e>>=1)&&(t+=t);return i};var n=/^\s\s*/,r=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(n,"")},e.stringTrimRight=function(t){return t.replace(r,"")},e.copyObject=function(t){var e,i={};for(e in t)i[e]=t[e];return i},e.copyArray=function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&"object"==typeof t[i]?e[i]=this.copyObject(t[i]):e[i]=t[i];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var i;if(Array.isArray(e)){i=[];for(var n=0;n<e.length;n++)i[n]=t(e[n]);return i}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(n in i={},e)i[n]=t(e[n]);return i},e.arrayToMap=function(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=1;return e},e.createMap=function(t){var e,i=Object.create(null);for(e in t)i[e]=t[e];return i},e.arrayRemove=function(t,e){for(var i=0;i<=t.length;i++)e===t[i]&&t.splice(i,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return(""+t).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},e.getMatchOffsets=function(t,e){var i=[];return t.replace(e,(function(t){i.push({offset:arguments[arguments.length-2],length:t.length})})),i},e.deferredCall=function(t){function e(){i=null,t()}var i=null,n=function(t){return n.cancel(),i=setTimeout(e,t||0),n};return(n.schedule=n).call=function(){return this.cancel(),t(),n},n.cancel=function(){return clearTimeout(i),i=null,n},n.isPending=function(){return i},n},e.delayedCall=function(t,e){function i(){r=null,t()}function n(t){null==r&&(r=setTimeout(i,t||e))}var r=null;return n.delay=function(t){r&&clearTimeout(r),r=setTimeout(i,t||e)},(n.schedule=n).call=function(){this.cancel(),t()},n.cancel=function(){r&&clearTimeout(r),r=null},n.isPending=function(){return r},n}})),ace.define("ace/clipboard",["require","exports","module"],(function(t,e,i){"use strict";var n;i.exports={lineMode:!1,pasteCancelled:function(){return!!(n&&n>Date.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=t("../lib/dom"),s=t("../lib/lang"),a=t("../clipboard"),l=r.isChrome<18,h=r.isIE,c=63<r.isChrome,u=t("../lib/keys"),d=u.KEY_MODS,f=r.isIOS,p=f?/\s/:/\n/,g=r.isMobile;e.TextInput=function(t,e){function i(t,i){if(P=P&&!1,_)return D(),t&&e.onPaste(t),_=!1,"";for(var n=M.selectionStart,o=M.selectionEnd,s=j,a=O.length-N,l=t,h=t.length-n,c=t.length-o,u=0;0<s&&O[u]==t[u];)u++,s--;for(l=l.slice(u),u=1;0<a&&O.length-u>j-1&&O[O.length-u]==t[t.length-u];)u++,a--;h-=u-1,c-=u-1;var d=l.length-u+1;if(d<0&&(s=-d,d=0),l=l.slice(0,d),!(i||l||h||s||a||c))return"";var f=!(k=!0);return r.isAndroid&&". "==l&&(l=" ",f=!0),l&&!s&&!a&&!h&&!c||T?e.onTextInput(l):e.onTextInput(l,{extendLeft:s,extendRight:a,restoreStart:h,restoreEnd:c}),k=!1,O=t,j=n,N=o,L=c,f?"\n":l}function m(t){if(S)return H();if(t&&t.inputType){if("historyUndo"==t.inputType)return e.execCommand("undo");if("historyRedo"==t.inputType)return e.execCommand("redo")}var n=M.value,r=i(n,!0);(500<n.length||p.test(r)||g&&j<1&&j==N)&&D()}function v(t,i){var r=e.getCopyText();if(!r)return n.preventDefault(t);W(t,r)?(f&&(D(r),x=r,setTimeout((function(){x=!1}),10)),i?e.onCut():e.onCopy(),n.preventDefault(t)):(x=!0,M.value=r,M.select(),setTimeout((function(){x=!1,D(),i?e.onCut():e.onCopy()})))}function b(t){v(t,!0)}function y(t){v(t,!1)}function w(t){var i=W(t);a.pasteCancelled()||("string"==typeof i?(i&&e.onPaste(i,t),r.isIE&&setTimeout(D),n.preventDefault(t)):(M.value="",_=!0))}function C(){R=!0,M.blur(),M.focus(),R=!1}function I(){clearTimeout($),$=setTimeout((function(){E&&(M.style.cssText=E,E=""),e.renderer.$isMousePressed=!1,e.renderer.$keepTextAreaAtCursor&&e.renderer.$moveTextAreaToCursor()}),0)}function A(t){e.textInput.onContextMenu(t),I()}var M=o.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck",!1),M.style.opacity="0",t.insertBefore(M,t.firstChild);var x=!1,_=!1,S=!1,k=!1,E="";g||(M.style.fontSize="1px");var T=!1,R=!1,O="",j=0,N=0,L=0;try{var B=document.activeElement===M}catch(t){}n.addListener(M,"blur",(function(t){R||(e.onBlur(t),B=!1)}),e),n.addListener(M,"focus",(function(t){if(!R){if(B=!0,r.isEdge)try{if(!document.hasFocus())return}catch(t){}e.onFocus(t),r.isEdge?setTimeout(D):D()}}),e),this.$focusScroll=!1,this.focus=function(){if(E||c||"browser"==this.$focusScroll)return M.focus({preventScroll:!0});var t=M.style.top;M.style.position="fixed",M.style.top="0px";try{var e=0!=M.getBoundingClientRect().top}catch(t){return}var i=[];if(e)for(var n=M.parentElement;n&&1==n.nodeType;)i.push(n),n.setAttribute("ace_nocontext",!0),n=!n.parentElement&&n.getRootNode?n.getRootNode().host:n.parentElement;M.focus({preventScroll:!0}),e&&i.forEach((function(t){t.removeAttribute("ace_nocontext")})),setTimeout((function(){M.style.position="","0px"==M.style.top&&(M.style.top=t)}),0)},this.blur=function(){M.blur()},this.isFocused=function(){return B},e.on("beforeEndOperation",(function(){var t,i=e.curOp,n=i&&i.command&&i.command.name;"insertstring"!=n&&(t=n&&(i.docChanged||i.selectionChanged),S&&t&&(O=M.value="",z()),D())}));var D=f?function(t){var i,n;!B||x&&!t||k||((i="\n ab"+(t=t||"")+"cde fg\n")!=M.value&&(M.value=O=i),n=4+(t.length||(e.selection.isEmpty()?0:1)),4==j&&N==n||M.setSelectionRange(4,n),j=4,N=n)}:function(){if(!S&&!k&&(B||P)){S=!0;var t,i,n,r,o,s=0,a=0,l="";e.session&&(i=(t=e.selection).getRange(),n=t.cursor.row,s=i.start.column,a=i.end.column,l=e.session.getLine(n),i.start.row!=n?(r=e.session.getLine(n-1),s=i.start.row<n-1?0:s,a+=r.length+1,l=r+"\n"+l):i.end.row!=n?(o=e.session.getLine(n+1),a=i.end.row>n+1?o.length:a,a+=l.length+1,l=l+"\n"+o):g&&0<n&&(l="\n"+l,a+=1,s+=1),400<l.length&&(s<400&&a<400?l=l.slice(0,400):(l="\n",s==a?s=a=0:(s=0,a=1))));var h=l+"\n\n";if(h!=O&&(M.value=O=h,j=N=h.length),P&&(j=M.selectionStart,N=M.selectionEnd),N!=a||j!=s||M.selectionEnd!=N)try{M.setSelectionRange(s,a),j=s,N=a}catch(t){}S=!1}};this.resetSelection=D,B&&e.onFocus();var Z=null;this.setInputHandler=function(t){Z=t};var P=!(this.getInputHandler=function(){return Z}),W=function(t,e,i){var n=t.clipboardData||window.clipboardData;if(n&&!l){var r=h||i?"Text":"text/plain";try{return e?!1!==n.setData(r,e):n.getData(r)}catch(t){if(!i)return W(t,e,!0)}}};n.addCommandKeyListener(M,e.onCommandKey.bind(e),e),n.addListener(M,"select",(function(t){var i;S||(x?x=!1:0===(i=M).selectionStart&&i.selectionEnd>=O.length&&i.value===O&&O&&i.selectionEnd!==N?(e.selectAll(),D()):g&&M.selectionStart!=j&&D())}),e),n.addListener(M,"input",m,e),n.addListener(M,"cut",b,e),n.addListener(M,"copy",y,e),n.addListener(M,"paste",w,e),"oncut"in M&&"oncopy"in M&&"onpaste"in M||n.addListener(t,"keydown",(function(t){if((!r.isMac||t.metaKey)&&t.ctrlKey)switch(t.keyCode){case 67:y(t);break;case 86:w(t);break;case 88:b(t)}}),e);var $,H=function(){var t;if(S&&e.onCompositionUpdate&&!e.$readOnly)return T?C():void(S.useTextareaForIME?e.onCompositionUpdate(M.value):(t=M.value,i(t),S.markerRange&&(S.context&&(S.markerRange.start.column=S.selectionStart=S.context.compositionStartOffset),S.markerRange.end.column=S.markerRange.start.column+N-S.selectionStart+L)))},z=function(t){e.onCompositionEnd&&!e.$readOnly&&(S=!1,e.onCompositionEnd(),e.off("mousedown",C),t&&m())},G=s.delayedCall(H,50).schedule.bind(null,null);n.addListener(M,"compositionstart",(function(t){var i;S||!e.onCompositionStart||e.$readOnly||(S={},T||(t.data&&(S.useTextareaForIME=!1),setTimeout(H,0),e._signal("compositionStart"),e.on("mousedown",C),(i=e.getSelectionRange()).end.row=i.start.row,i.end.column=i.start.column,S.markerRange=i,S.selectionStart=j,e.onCompositionStart(S),S.useTextareaForIME?(O=M.value="",N=j=0):(M.msGetInputContext&&(S.context=M.msGetInputContext()),M.getInputContext&&(S.context=M.getInputContext()))))}),e),n.addListener(M,"compositionupdate",H,e),n.addListener(M,"keyup",(function(t){27==t.keyCode&&M.value.length<M.selectionStart&&(S||(O=M.value),j=N=-1,D()),G()}),e),n.addListener(M,"keydown",G,e),n.addListener(M,"compositionend",z,e),this.getElement=function(){return M},this.setCommandMode=function(t){T=t,M.readOnly=!1},this.setReadOnly=function(t){T||(M.readOnly=t)},this.setCopyWithEmptySelection=function(t){},this.onContextMenu=function(t){P=!0,D(),e._emit("nativecontextmenu",{target:e,domEvent:t}),this.moveToMouse(t,!0)},this.moveToMouse=function(t,i){function s(t){o.translate(M,t.clientX-c-2,Math.min(t.clientY-h-2,u))}E=E||M.style.cssText,M.style.cssText=(i?"z-index:100000;":"")+(r.isIE?"opacity:0.1;":"")+"text-indent: -"+(j+N)*e.renderer.characterWidth*.5+"px;";var a=e.container.getBoundingClientRect(),l=o.computedStyle(e.container),h=a.top+(parseInt(l.borderTopWidth)||0),c=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-h-M.clientHeight-2;s(t),"mousedown"==t.type&&(e.renderer.$isMousePressed=!0,clearTimeout($),r.isWin&&n.capture(e.container,s,I))},this.onContextMenuClose=I,n.addListener(M,"mouseup",A,e),n.addListener(M,"mousedown",(function(t){t.preventDefault(),I()}),e),n.addListener(e.renderer.scroller,"contextmenu",A,e),n.addListener(M,"contextmenu",A,e),f&&function(t,e){function i(i){var n,o,s,a,l;document.activeElement===e&&(r||S||t.$mouseHandler.isMousePressed||x||(n=e.selectionStart,o=e.selectionEnd,s=null,(a=0)==n?s=u.up:1==n?s=u.home:N<o&&"\n"==O[o]?s=u.end:n<j&&" "==O[n-1]?(s=u.left,a=d.option):n<j||n==j&&N!=j&&n==o?s=u.left:N<o&&2<O.slice(0,o).split("\n").length?s=u.down:N<o&&" "==O[o-1]?(s=u.right,a=d.option):(N<o||o==N&&N!=j&&n==o)&&(s=u.right),n!==o&&(a|=d.shift),s&&(!t.onCommandKey({},a,s)&&t.commands&&(s=u.keyCodeToString(s),(l=t.commands.findKeyCommand(a,s))&&t.execCommand(l)),j=n,N=o,D(""))))}var n=null,r=!1;e.addEventListener("keydown",(function(t){n&&clearTimeout(n),r=!0}),!0),e.addEventListener("keyup",(function(t){n=setTimeout((function(){r=!1}),100)}),!0),document.addEventListener("selectionchange",i),t.on("destroy",(function(){document.removeEventListener("selectionchange",i)}))}(e,M)},e.$setUserAgentForTests=function(t,e){g=t,f=e}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(e){t[e]=this[e]}),this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function r(t,e){return(t.start.row==t.end.row?2*e.column-t.start.column-t.end.column:t.start.row!=t.end.row-1||t.start.column||t.end.column?2*e.row-t.start.row-t.end.row:e.column-4)<0?{cursor:t.start,anchor:t.end}:{cursor:t.end,anchor:t.start}}var o=t("../lib/useragent");(function(){this.onMouseDown=function(t){var e=t.inSelection(),i=t.getDocumentPosition();this.mousedownEvent=t;var n=this.editor,r=t.getButton();return 0!==r?(!n.getSelectionRange().isEmpty()&&1!=r||n.selection.moveToPosition(i),void(2==r&&(n.textInput.onContextMenu(t.domEvent),o.isMozilla||t.preventDefault()))):(this.mousedownEvent.time=Date.now(),!e||n.isFocused()||(n.focus(),!this.$focusTimeout||this.$clickSelection||n.inMultiSelectMode)?(this.captureMouse(t),this.startSelect(i,1<t.domEvent._clicks),t.preventDefault()):(this.setState("focusWait"),void this.captureMouse(t)))},this.startSelect=function(t,e){t=t||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(t):e||i.selection.moveToPosition(t),e||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var t,e,i,n=this.editor,o=n.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(i=-1==(t=this.$clickSelection.comparePoint(o))?this.$clickSelection.end:1==t?this.$clickSelection.start:(o=(e=r(this.$clickSelection,o)).cursor,e.anchor),n.selection.setSelectionAnchor(i.row,i.column)),n.selection.selectToPosition(o),n.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(t){var e,i,n,o,s=this.editor,a=s.renderer.screenToTextCoordinates(this.x,this.y),l=s.selection[t](a.row,a.column);this.$clickSelection&&(e=this.$clickSelection.comparePoint(l.start),i=this.$clickSelection.comparePoint(l.end),-1==e&&i<=0?(o=this.$clickSelection.end,l.end.row==a.row&&l.end.column==a.column||(a=l.start)):1==i&&0<=e?(o=this.$clickSelection.start,l.start.row==a.row&&l.start.column==a.column||(a=l.end)):o=-1==e&&1==i?(a=l.end,l.start):(a=(n=r(this.$clickSelection,a)).cursor,n.anchor),s.selection.setSelectionAnchor(o.row,o.column)),s.selection.selectToPosition(a),s.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var t,e,i,n,r=(t=this.mousedownEvent.x,e=this.mousedownEvent.y,i=this.x,n=this.y,Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2))),o=Date.now();(0<r||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(t){var e=t.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(e);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(t){var e=t.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(e.row,e.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(t){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(t){if(!t.getAccelKey()){t.getShiftKey()&&t.wheelY&&!t.wheelX&&(t.wheelX=t.wheelY,t.wheelY=0);var e=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,n=t.domEvent.timeStamp,r=n-i.t,o=r?t.wheelX/r:i.vx,s=r?t.wheelY/r:i.vy;r<550&&(o=(o+i.vx)/2,s=(s+i.vy)/2);var a=Math.abs(o/s),l=!1;return 1<=a&&e.renderer.isScrollableBy(t.wheelX*t.speed,0)&&(l=!0),a<=1&&e.renderer.isScrollableBy(0,t.wheelY*t.speed)&&(l=!0),l?i.allowed=n:n-i.allowed<550&&(Math.abs(o)<=1.5*Math.abs(i.vx)&&Math.abs(s)<=1.5*Math.abs(i.vy)?(l=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=o,i.vy=s,l?(e.renderer.scrollBy(t.wheelX*t.speed,t.wheelY*t.speed),t.stop()):void 0}}}).call(n.prototype),e.DefaultHandlers=n})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(t,e,i){"use strict";function n(t){this.isOpen=!1,this.$element=null,this.$parentNode=t}t("./lib/oop");var r=t("./lib/dom");(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(t){this.getElement().textContent=t},this.setHtml=function(t){this.getElement().innerHTML=t},this.setPosition=function(t,e){this.getElement().style.left=t+"px",this.getElement().style.top=e+"px"},this.setClassName=function(t){r.addCssClass(this.getElement(),t)},this.show=function(t,e,i){null!=t&&this.setText(t),null!=e&&null!=i&&this.setPosition(e,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),e.Tooltip=n})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(t,e,i){"use strict";function n(t){a.call(this,t)}var r=t("../lib/dom"),o=t("../lib/oop"),s=t("../lib/event"),a=t("../tooltip").Tooltip;o.inherits(n,a),function(){this.setPosition=function(t,e){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),o=this.getHeight();i<(t+=15)+r&&(t-=t+r-i),n<(e+=15)+o&&(e-=20+o),a.prototype.setPosition.call(this,t,e)}}.call(n.prototype),e.GutterHandler=function(t){function e(){o=o&&clearTimeout(o),l&&(u.hide(),l=null,h._signal("hideGutterTooltip",u),h.off("mousewheel",e))}function i(t){u.setPosition(t.x,t.y)}var o,a,l,h=t.editor,c=h.renderer.$gutterLayer,u=new n(h.container);t.editor.setDefaultHandler("guttermousedown",(function(e){if(h.isFocused()&&0==e.getButton()&&"foldWidgets"!=c.getRegion(e)){var i=e.getDocumentPosition().row,n=h.session.selection;if(e.getShiftKey())n.selectTo(i,0);else{if(2==e.domEvent.detail)return h.selectAll(),e.preventDefault();t.$clickSelection=h.selection.getLineRange(i)}return t.setState("selectByLines"),t.captureMouse(e),e.preventDefault()}})),t.editor.setDefaultHandler("guttermousemove",(function(n){var s=n.domEvent.target||n.domEvent.srcElement;if(r.hasCssClass(s,"ace_fold-widget"))return e();l&&t.$tooltipFollowsMouse&&i(n),a=n,o=o||setTimeout((function(){o=null,(a&&!t.isMousePressed?function(){var n,r,o=a.getDocumentPosition().row,s=c.$annotations[o];if(!s)return e();if(o==h.session.getLength()){var d=h.renderer.pixelToScreenCoordinates(0,a.y).row,f=a.$pos;if(d>h.session.documentToScreenRow(f.row,f.column))return e()}l!=s&&(l=s.text.join("<br/>"),u.setHtml(l),u.show(),h._signal("showGutterTooltip",u),h.on("mousewheel",e),t.$tooltipFollowsMouse?i(a):(n=a.domEvent.target.getBoundingClientRect(),(r=u.getElement().style).left=n.right+"px",r.top=n.bottom+"px"))}:e)()}),50)})),s.addListener(h.renderer.$gutter,"mouseout",(function(t){a=null,l&&!o&&(o=setTimeout((function(){o=null,e()}),50))}),h),h.on("changeSession",e)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=e.MouseEvent=function(t,e){this.domEvent=t,this.editor=e,this.x=this.clientX=t.clientX,this.y=this.clientY=t.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var t,e=this.editor.getSelectionRange();return e.isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column)),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t){function e(){var t,e,i,n,o,s=b;b=u.renderer.screenToTextCoordinates(p,g),t=b,e=s,i=Date.now(),n=!e||t.row!=e.row,o=!e||t.column!=e.column,!I||n||o?(u.moveCursorToPosition(t),I=i,A={x:p,y:g}):5<r(A.x,A.y,p,g)?I=null:200<=i-I&&(u.renderer.scrollCursorIntoView(),I=null),function(t,e){var i=Date.now(),n=u.renderer.layerConfig.lineHeight,r=u.renderer.layerConfig.characterWidth,o=u.renderer.scroller.getBoundingClientRect(),s={x:{left:p-o.left,right:o.right-p},y:{top:g-o.top,bottom:o.bottom-g}},a=Math.min(s.x.left,s.x.right),l=Math.min(s.y.top,s.y.bottom),h={row:t.row,column:t.column};a/r<=2&&(h.column+=s.x.left<s.x.right?-3:2),l/n<=1&&(h.row+=s.y.top<s.y.bottom?-1:1);var c=t.row!=h.row,d=t.column!=h.column,f=!e||t.row!=e.row;c||d&&!f?C?200<=i-C&&u.renderer.scrollCursorIntoView(h):C=i:C=null}(b,s)}function i(){v=u.selection.toOrientedRange(),f=u.session.addMarker(v,"ace_selection",u.getSelectionStyle()),u.clearSelection(),u.isFocused()&&u.renderer.$cursorLayer.setBlinking(!1),clearInterval(m),e(),m=setInterval(e,20),x=0,s.addListener(document,"mousemove",l)}function n(){clearInterval(m),u.session.removeMarker(f),f=null,u.selection.fromOrientedRange(v),u.isFocused()&&!w&&u.$resetCursorStyle(),x=0,I=C=b=v=null,s.removeListener(document,"mousemove",l)}function l(){null==_&&(_=setTimeout((function(){null!=_&&f&&n()}),20))}function h(t){var e=t.types;return!e||Array.prototype.some.call(e,(function(t){return"text/plain"==t||"Text"==t}))}function c(t){var e=["copy","copymove","all","uninitialized"],i=a.isMac?t.altKey:t.ctrlKey,n="uninitialized";try{n=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var r="none";return i&&0<=e.indexOf(n)?r="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(n)?r="move":0<=e.indexOf(n)&&(r="copy"),r}var u=t.editor,d=o.createElement("img");d.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",a.isOpera&&(d.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(e){t[e]=this[e]}),this),u.on("mousedown",this.onMouseDown.bind(t));var f,p,g,m,v,b,y,w,C,I,A,M=u.container,x=0;this.onDragStart=function(t){if(this.cancelDrag||!M.draggable){var e=this;return setTimeout((function(){e.startSelect(),e.captureMouse(t)}),0),t.preventDefault()}v=u.getSelectionRange();var i=t.dataTransfer;i.effectAllowed=u.getReadOnly()?"copy":"copyMove",a.isOpera&&(u.container.appendChild(d),d.scrollTop=0),i.setDragImage&&i.setDragImage(d,0,0),a.isOpera&&u.container.removeChild(d),i.clearData(),i.setData("Text",u.session.getTextRange()),w=!0,this.setState("drag")},this.onDragEnd=function(t){var e;M.draggable=!1,w=!1,this.setState(null),u.getReadOnly()||(e=t.dataTransfer.dropEffect,y||"move"!=e||u.session.remove(u.getSelectionRange()),u.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(t){if(!u.getReadOnly()&&h(t.dataTransfer))return p=t.clientX,g=t.clientY,f||i(),x++,t.dataTransfer.dropEffect=y=c(t),s.preventDefault(t)},this.onDragOver=function(t){if(!u.getReadOnly()&&h(t.dataTransfer))return p=t.clientX,g=t.clientY,f||(i(),x++),null!==_&&(_=null),t.dataTransfer.dropEffect=y=c(t),s.preventDefault(t)},this.onDragLeave=function(t){if(--x<=0&&f)return n(),y=null,s.preventDefault(t)},this.onDrop=function(t){if(b){var e=t.dataTransfer;if(w)switch(y){case"move":v=v.contains(b.row,b.column)?{start:b,end:b}:u.moveText(v,b);break;case"copy":v=u.moveText(v,b,!0)}else{var i=e.getData("Text");v={start:b,end:u.session.insert(b,i)},u.focus(),y=null}return n(),s.preventDefault(t)}},s.addListener(M,"dragstart",this.onDragStart.bind(t),u),s.addListener(M,"dragend",this.onDragEnd.bind(t),u),s.addListener(M,"dragenter",this.onDragEnter.bind(t),u),s.addListener(M,"dragover",this.onDragOver.bind(t),u),s.addListener(M,"dragleave",this.onDragLeave.bind(t),u),s.addListener(M,"drop",this.onDrop.bind(t),u);var _=null}function r(t,e,i,n){return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2))}var o=t("../lib/dom"),s=t("../lib/event"),a=t("../lib/useragent");(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor;t.container.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var e=a.isWin?"default":"move";t.renderer.setCursorStyle(e),this.setState("dragReady")},this.onMouseDrag=function(t){var e=this.editor.container;a.isIE&&"dragReady"==this.state&&3<r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&e.dragDrop(),"dragWait"===this.state&&0<r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var e=this.editor,i=t.inSelection(),n=t.getButton();if(1===(t.domEvent.detail||1)&&0===n&&i){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=t.domEvent.target||t.domEvent.srcElement;"unselectable"in r&&(r.unselectable="on"),e.getDragDelay()?(a.isWebKit&&(this.cancelDrag=!0,e.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(n.prototype),e.DragdropHandler=n})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("./mouse_event").MouseEvent,r=t("../lib/event"),o=t("../lib/dom");e.addTouchListeners=function(t,e){function i(){function t(t){var r,s,a=t.target.getAttribute("action");if("more"==a||!n)return n=!n,r=e.getCopyText(),s=e.session.getUndoManager().hasUndo(),void v.replaceChild(o.buildDom(n?["span",!r&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],r&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],r&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],i&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],s&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),v.firstChild);"paste"==a?i.readText().then((function(t){e.execCommand(a,t)})):a&&("cut"!=a&&"copy"!=a||(i?i.writeText(e.getCopyText()):document.execCommand("copy")),e.execCommand(a)),v.firstChild.style.display="none",n=!1,"openCommandPallete"!=a&&e.focus()}var i=window.navigator&&window.navigator.clipboard,n=!1;v=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(t){b="menu",t.stopPropagation(),t.preventDefault(),e.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],e.container)}function s(){v||i();var t=e.selection.cursor,n=e.renderer.textToScreenCoordinates(t.row,t.column),r=e.renderer.textToScreenCoordinates(0,0).pageX,o=e.renderer.scrollLeft,s=e.container.getBoundingClientRect();v.style.top=n.pageY-s.top-3+"px",n.pageX-s.left<s.width-70?(v.style.left="",v.style.right="10px"):(v.style.right="",v.style.left=r+o-s.left+"px"),v.style.display="",v.firstChild.style.display="none",e.on("input",a)}function a(t){v&&(v.style.display="none"),e.off("input",a)}function l(){f=null,clearTimeout(f);var t=e.selection.getRange(),i=t.contains(g.row,g.column);!t.isEmpty()&&i||(e.selection.moveToPosition(g),e.selection.selectWord()),b="wait",s()}var h,c,u,d,f,p,g,m,v,b="scroll",y=0,w=0,C=0,I=0;r.addListener(t,"contextmenu",(function(t){m&&e.textInput.getElement().focus()}),e),r.addListener(t,"touchstart",(function(t){var i=t.touches;if(f||1<i.length)return clearTimeout(f),f=null,u=-1,void(b="zoom");m=e.$mouseHandler.isMousePressed=!0;var r=e.renderer.layerConfig.lineHeight,o=e.renderer.layerConfig.lineHeight,s=t.timeStamp;d=s;var a=i[0],p=a.clientX,v=a.clientY;Math.abs(h-p)+Math.abs(c-v)>r&&(u=-1),h=t.clientX=p,c=t.clientY=v,C=I=0;var A=new n(t,e);if(g=A.getDocumentPosition(),s-u<500&&1==i.length&&!y)w++,t.preventDefault(),t.button=0,function(){f=null,clearTimeout(f),e.selection.moveToPosition(g);var t=2<=w?e.selection.getLineRange(g.row):e.session.getBracketRange(g);t&&!t.isEmpty()?e.selection.setRange(t):e.selection.selectWord(),b="wait"}();else{w=0;var M=e.selection.cursor,x=e.selection.isEmpty()?M:e.selection.anchor,_=e.renderer.$cursorLayer.getPixelPosition(M,!0),S=e.renderer.$cursorLayer.getPixelPosition(x,!0),k=e.renderer.scroller.getBoundingClientRect(),E=e.renderer.layerConfig.offset,T=e.renderer.scrollLeft,R=function(t,e){return(t/=o)*t+(e=e/r-.75)*e};if(t.clientX<k.left)return void(b="zoom");var O=R(t.clientX-k.left-_.left+T,t.clientY-k.top-_.top+E),j=R(t.clientX-k.left-S.left+T,t.clientY-k.top-S.top+E);O<3.5&&j<3.5&&(b=j<O?"cursor":"anchor"),b=j<3.5?"anchor":O<3.5?"cursor":"scroll",f=setTimeout(l,450)}u=s}),e),r.addListener(t,"touchend",(function(t){m=e.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),"zoom"==b?(b="",y=0):f?(e.selection.moveToPosition(g),y=0,s()):"scroll"==b?(y+=60,p=setInterval((function(){y--<=0&&(clearInterval(p),p=null),Math.abs(C)<.01&&(C=0),Math.abs(I)<.01&&(I=0),y<20&&(C*=.9),y<20&&(I*=.9);var t=e.session.getScrollTop();e.renderer.scrollBy(10*C,10*I),t==e.session.getScrollTop()&&(y=0)}),10),a()):s(),clearTimeout(f),f=null}),e),r.addListener(t,"touchmove",(function(t){f&&(clearTimeout(f),f=null);var i=t.touches;if(!(1<i.length||"zoom"==b)){var r=i[0],o=h-r.clientX,s=c-r.clientY;if("wait"==b){if(!(4<o*o+s*s))return t.preventDefault();b="cursor"}h=r.clientX,c=r.clientY,t.clientX=r.clientX,t.clientY=r.clientY;var a,l,u=t.timeStamp,p=u-d;d=u,"scroll"==b?((a=new n(t,e)).speed=1,a.wheelX=o,a.wheelY=s,10*Math.abs(o)<Math.abs(s)&&(o=0),10*Math.abs(s)<Math.abs(o)&&(s=0),0!=p&&(C=o/p,I=s/p),e._emit("mousewheel",a),a.propagationStopped||(C=I=0)):(l=new n(t,e).getDocumentPosition(),"cursor"==b?e.selection.moveCursorToPosition(l):"anchor"==b&&e.selection.setSelectionAnchor(l.row,l.column),e.renderer.scrollCursorIntoView(l),t.preventDefault())}}),e)}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("./dom");e.get=function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){4===i.readyState&&e(i.responseText)},i.send(null)},e.loadScript=function(t,e){var i=n.getDocumentHead(),r=document.createElement("script");r.src=t,i.appendChild(r),r.onload=r.onreadystatechange=function(t,i){!i&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,i||e())}},e.qualifyURL=function(t){var e=document.createElement("a");return e.href=t,e.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(t,e,i){"use strict";function n(){this.propagationStopped=!0}function r(){this.defaultPrevented=!0}var o={};o._emit=o._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[t]||[],o=this._defaultHandlers[t];if(i.length||o){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=n),e.preventDefault||(e.preventDefault=r),i=i.slice();for(var s=0;s<i.length&&(i[s](e,this),!e.propagationStopped);s++);return o&&!e.defaultPrevented?o(e,this):void 0}},o._signal=function(t,e){var i=(this._eventRegistry||{})[t];if(i){i=i.slice();for(var n=0;n<i.length;n++)i[n](e,this)}},o.once=function(t,e){var i=this;if(this.on(t,(function n(){i.off(t,n),e.apply(null,arguments)})),!e)return new Promise((function(t){e=t}))},o.setDefaultHandler=function(t,e){var i,n,r,o=this._defaultHandlers;(o=o||(this._defaultHandlers={_disabled_:{}}))[t]&&(i=o[t],(n=o._disabled_[t])||(o._disabled_[t]=n=[]),n.push(i),-1!=(r=n.indexOf(e))&&n.splice(r,1)),o[t]=e},o.removeDefaultHandler=function(t,e){var i,n,r=this._defaultHandlers;r&&(i=r._disabled_[t],r[t]==e?i&&this.setDefaultHandler(t,i.pop()):!i||-1!=(n=i.indexOf(e))&&i.splice(n,1))},o.on=o.addEventListener=function(t,e,i){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[t];return-1==(n=n||(this._eventRegistry[t]=[])).indexOf(e)&&n[i?"unshift":"push"](e),e},o.off=o.removeListener=o.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};var i,n=this._eventRegistry[t];!n||-1!==(i=n.indexOf(e))&&n.splice(i,1)},o.removeAllListeners=function(t){t||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[t]=void 0),this._defaultHandlers&&(this._defaultHandlers[t]=void 0)},e.EventEmitter=o})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){function n(t){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function r(t,e){var i=new Error(t);i.data=e,"object"==typeof console&&console.error&&console.error(i),setTimeout((function(){throw i}))}function o(){this.$defaultOptions={}}var s=t("./oop"),a=t("./event_emitter").EventEmitter,l={setOptions:function(t){Object.keys(t).forEach((function(e){this.setOption(e,t[e])}),this)},getOptions:function(t){var e,i={};return t?Array.isArray(t)||(i=t,t=Object.keys(i)):(e=this.$options,t=Object.keys(e).filter((function(t){return!e[t].hidden}))),t.forEach((function(t){i[t]=this.getOption(t)}),this),i},setOption:function(t,e){if(this["$"+t]!==e){var i=this.$options[t];if(!i)return n('misspelled option "'+t+'"');if(i.forwardTo)return this[i.forwardTo]&&this[i.forwardTo].setOption(t,e);i.handlesSet||(this["$"+t]=e),i&&i.set&&i.set.call(this,e)}},getOption:function(t){var e=this.$options[t];return e?e.forwardTo?this[e.forwardTo]&&this[e.forwardTo].getOption(t):e&&e.get?e.get.call(this):this["$"+t]:n('misspelled option "'+t+'"')}};(function(){s.implement(this,a),this.defineOptions=function(t,e,i){return t.$options||(this.$defaultOptions[e]=t.$options={}),Object.keys(i).forEach((function(e){var n=i[e];"string"==typeof n&&(n={forwardTo:n}),n.name||(n.name=e),"initialValue"in(t.$options[n.name]=n)&&(t["$"+n.name]=n.initialValue)})),s.implement(t,l),this},this.resetOptions=function(t){Object.keys(t.$options).forEach((function(e){var i=t.$options[e];"value"in i&&t.setOption(e,i.value)}))},this.setDefaultValue=function(t,e,i){if(!t){for(t in this.$defaultOptions)if(this.$defaultOptions[t][e])break;if(!this.$defaultOptions[t][e])return!1}var n=this.$defaultOptions[t]||(this.$defaultOptions[t]={});n[e]&&(n.forwardTo?this.setDefaultValue(n.forwardTo,e,i):n[e].value=i)},this.setDefaultValues=function(t,e){Object.keys(e).forEach((function(i){this.setDefaultValue(t,i,e[i])}),this)},this.warn=n,this.reportError=r}).call(o.prototype),e.AppConfig=o})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(t,e,n){function r(r){if(l&&l.document){h.packaged=r||t.packaged||n.packaged||l.define&&i(23).packaged;for(var o,s={},a="",c=document.currentScript||document._currentScript,u=(c&&c.ownerDocument||document).getElementsByTagName("script"),d=0;d<u.length;d++){var f=u[d],p=f.src||f.getAttribute("src");if(p){for(var g=f.attributes,m=0,v=g.length;m<v;m++){var b=g[m];0===b.name.indexOf("data-ace-")&&(s[b.name.replace(/^data-ace-/,"").replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))]=b.value)}var y=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);y&&(a=y[1])}}for(o in a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[o]&&e.set(o,s[o])}}var o=t("./lib/lang"),s=(t("./lib/oop"),t("./lib/net")),a=t("./lib/app_config").AppConfig;n.exports=e=new a;var l=function(){return this||"undefined"!=typeof window&&window}(),h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};e.get=function(t){if(!h.hasOwnProperty(t))throw new Error("Unknown config key: "+t);return h[t]},e.set=function(t,e){if(h.hasOwnProperty(t))h[t]=e;else if(0==this.setDefaultValue("",t,e))throw new Error("Unknown config key: "+t)},e.all=function(){return o.copyObject(h)},e.$modes={},e.moduleUrl=function(t,e){if(h.$moduleUrls[t])return h.$moduleUrls[t];var i,n=t.split("/"),r="snippets"==(e=e||n[n.length-2]||"")?"/":"-",o=n[n.length-1];"worker"==e&&"-"==r&&(i=new RegExp("^"+e+"[\\-_]|[\\-_]"+e+"$","g"),o=o.replace(i,"")),(!o||o==e)&&1<n.length&&(o=n[n.length-2]);var s=h[e+"Path"];return null==s?s=h.basePath:"/"==r&&(e=r=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+e+r+o+this.get("suffix")},e.setModuleUrl=function(t,e){return h.$moduleUrls[t]=e},e.$loading={},e.loadModule=function(i,n){function r(){t([i],(function(t){e._emit("load.module",{name:i,module:t});var n=e.$loading[i];e.$loading[i]=null,n.forEach((function(e){e&&e(t)}))}))}var o,a;Array.isArray(i)&&(a=i[0],i=i[1]);try{o=t(i)}catch(n){}if(o&&!e.$loading[i])return n&&n(o);if(e.$loading[i]||(e.$loading[i]=[]),e.$loading[i].push(n),!(1<e.$loading[i].length)){if(!e.get("packaged"))return r();s.loadScript(e.moduleUrl(i,a),r),c()}};var c=function(){h.basePath||h.workerPath||h.modePath||h.themePath||Object.keys(h.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r(!0),e.init=r,e.version="1.4.12"})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(t,e,i){"use strict";function n(t){function e(e){document.hasFocus&&document.hasFocus()&&(t.isFocused()||document.activeElement!=(t.textInput&&t.textInput.getElement()))||window.focus(),t.focus()}var i=this;this.editor=t,new s(this),new a(this),new h(this);var n=t.renderer.getMouseEventTarget();r.addListener(n,"click",this.onMouseEvent.bind(this,"click"),t),r.addListener(n,"mousemove",this.onMouseMove.bind(this,"mousemove"),t),r.addMultiMouseDownListener([n,t.renderer.scrollBarV&&t.renderer.scrollBarV.inner,t.renderer.scrollBarH&&t.renderer.scrollBarH.inner,t.textInput&&t.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",t),r.addMouseWheelListener(t.container,this.onMouseWheel.bind(this,"mousewheel"),t),c(t.container,t);var l=t.renderer.$gutter;r.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),t),r.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick"),t),r.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),t),r.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),t),r.addListener(n,"mousedown",e,t),r.addListener(l,"mousedown",e,t),o.isIE&&t.renderer.scrollBarV&&(r.addListener(t.renderer.scrollBarV.element,"mousedown",e,t),r.addListener(t.renderer.scrollBarH.element,"mousedown",e,t)),t.on("mousemove",(function(e){var n,r,o;i.state||i.$dragDelay||!i.$dragEnabled||(n=t.renderer.screenToTextCoordinates(e.x,e.y),r=t.session.selection.getRange(),o=t.renderer,!r.isEmpty()&&r.insideStart(n.row,n.column)?o.setCursorStyle("default"):o.setCursorStyle(""))}),t)}var r=t("../lib/event"),o=t("../lib/useragent"),s=t("./default_handlers").DefaultHandlers,a=t("./default_gutter_handler").GutterHandler,l=t("./mouse_event").MouseEvent,h=t("./dragdrop_handler").DragdropHandler,c=t("./touch_handler").addTouchListeners,u=t("../config");(function(){this.onMouseEvent=function(t,e){this.editor._emit(t,new l(e,this.editor))},this.onMouseMove=function(t,e){var i=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;i&&i.length&&this.editor._emit(t,new l(e,this.editor))},this.onMouseWheel=function(t,e){var i=new l(e,this.editor);i.speed=2*this.$scrollSpeed,i.wheelX=e.wheelX,i.wheelY=e.wheelY,this.editor._emit(t,i)},this.setState=function(t){this.state=t},this.captureMouse=function(t,e){function i(t){if(t){if(o.isWebKit&&!t.which&&h.releaseMouse)return h.releaseMouse();h.x=t.clientX,h.y=t.clientY,e&&e(t),h.mouseEvent=new l(t,h.editor),h.$mouseMoved=!0}}function n(t){s.off("beforeEndOperation",u),clearInterval(d),c(),h[h.state+"End"]&&h[h.state+"End"](t),h.state="",h.isMousePressed=a.$isMousePressed=!1,a.$keepTextAreaAtCursor&&a.$moveTextAreaToCursor(),h.$onCaptureMouseMove=h.releaseMouse=null,t&&h.onMouseEvent("mouseup",t),s.endOperation()}this.x=t.x,this.y=t.y,this.isMousePressed=!0;var s=this.editor,a=this.editor.renderer;a.$isMousePressed=!0;var h=this,c=function(){h[h.state]&&h[h.state](),h.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==t.domEvent.type)return setTimeout((function(){n(t)}));var u=function(t){h.releaseMouse&&s.curOp.command.name&&s.curOp.selectionChanged&&(h[h.state+"End"]&&h[h.state+"End"](),h.state="",h.releaseMouse())};s.on("beforeEndOperation",u),s.startOperation({command:{name:"mouse"}}),h.$onCaptureMouseMove=i,h.releaseMouse=r.capture(this.editor.container,i,n);var d=setInterval(c,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&r.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(n.prototype),u.defineOptions(n.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),e.MouseHandler=n})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../lib/dom");e.FoldHandler=function(t){t.on("click",(function(e){var i=e.getDocumentPosition(),r=t.session,o=r.getFoldAt(i.row,i.column,1);o&&(e.getAccelKey()?r.removeFold(o):r.expandFold(o),e.stop());var s=e.domEvent&&e.domEvent.target;s&&n.hasCssClass(s,"ace_inline_button")&&n.hasCssClass(s,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),t.renderer.scrollCursorIntoView())})),t.on("gutterclick",(function(e){var i,n;"foldWidgets"==t.renderer.$gutterLayer.getRegion(e)&&(i=e.getDocumentPosition().row,(n=t.session).foldWidgets&&n.foldWidgets[i]&&t.session.onFoldWidgetClick(i,e),t.isFocused()||t.focus(),e.stop())})),t.on("gutterdblclick",(function(e){var i,n,r,o,s;"foldWidgets"==t.renderer.$gutterLayer.getRegion(e)&&(i=e.getDocumentPosition().row,(o=(r=(n=t.session).getParentFoldRangeData(i,!0)).range||r.firstRange)&&(i=o.start.row,(s=n.getFoldAt(i,n.getLine(i).length,1))?n.removeFold(s):(n.addFold("...",o),t.renderer.scrollCursorIntoView({row:o.start.row,column:0}))),e.stop())}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(t,e,i){"use strict";function n(t){this.$editor=t,this.$data={editor:t},this.$handlers=[],this.setDefaultHandler(t.commands)}var r=t("../lib/keys"),o=t("../lib/event");(function(){this.setDefaultHandler=function(t){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=t,this.addKeyboardHandler(t,0)},this.setKeyboardHandler=function(t){var e=this.$handlers;if(e[e.length-1]!=t){for(;e[e.length-1]&&e[e.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(e[e.length-1]);this.addKeyboardHandler(t,1)}},this.addKeyboardHandler=function(t,e){var i;t&&("function"!=typeof t||t.handleKeyboard||(t.handleKeyboard=t),-1!=(i=this.$handlers.indexOf(t))&&this.$handlers.splice(i,1),null==e?this.$handlers.push(t):this.$handlers.splice(e,0,t),-1==i&&t.attach&&t.attach(this.$editor))},this.removeKeyboardHandler=function(t){var e=this.$handlers.indexOf(t);return-1!=e&&(this.$handlers.splice(e,1),t.detach&&t.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,e=t.editor;return this.$handlers.map((function(i){return i.getStatusText&&i.getStatusText(e,t)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(t,e,i,n){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((r=this.$handlers[l].handleKeyboard(this.$data,t,e,i,n))&&r.command&&((s="null"==r.command||a.exec(r.command,this.$editor,r.args,n))&&n&&-1!=t&&1!=r.passEvent&&1!=r.command.passEvent&&o.stopEvent(n),s)););return s||-1!=t||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,e)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},this.onCommandKey=function(t,e,i){var n=r.keyCodeToString(i);return this.$callKeyboardHandlers(e,n,i,t)},this.onTextInput=function(t){return this.$callKeyboardHandlers(-1,t)}}).call(n.prototype),e.KeyBinding=n})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(t,e,i){"use strict";function n(t,e,i,n){var r,O,j,N,L=s?d:u,B=0,D=-1,Z=null,P=null,W=[];if(!n)for(Z=0,n=[];Z<i;Z++)n[Z]=o(t[Z]);for(a=s,c=h=l=!1,P=0;P<i;P++){if(r=B,W[P]=O=function(t,e,i,n){var r,o,a,u,d=e[n];switch(d){case f:case p:l=!1;case v:case m:return d;case g:return l?m:g;case w:return l=!0,p;case C:return v;case I:return n<1||n+1>=e.length||(r=i[n-1])!=g&&r!=m||(o=e[n+1])!=g&&o!=m?v:(l&&(o=m),o==r?o:v);case A:return(r=0<n?i[n-1]:b)==g&&n+1<e.length&&e[n+1]==g?g:v;case M:if(0<n&&i[n-1]==g)return g;if(l)return v;for(u=n+1,a=e.length;u<a&&e[u]==M;)u++;return u<a&&e[u]==g?g:v;case x:for(a=e.length,u=n+1;u<a&&e[u]==x;)u++;if(u<a){var O=t[n],j=1425<=O&&O<=2303||64286==O;if(r=e[u],j&&(r==p||r==w))return p}return n<1||(r=e[n-1])==b?v:i[n-1];case b:return h=!(l=!1),s;case y:return c=!0,v;case _:case S:case E:case T:case k:l=!1;case R:return v}}(t,n,W,P),N=240&(B=L[r][O]),B&=15,e[P]=j=L[B][5],0<N)if(16==N){for(Z=D;Z<P;Z++)e[Z]=1;D=-1}else D=-1;if(L[B][6])-1==D&&(D=P);else if(-1<D){for(Z=D;Z<P;Z++)e[Z]=j;D=-1}n[P]==b&&(e[P]=0),a|=j}if(c)for(Z=0;Z<i;Z++)if(n[Z]==y){e[Z]=s;for(var $=Z-1;0<=$&&n[$]==C;$--)e[$]=s}}function r(t,e,i){if(!(a<t))if(1!=t||1!=s||h)for(var n,r,o,l,c=i.length,u=0;u<c;){if(e[u]>=t){for(n=u+1;n<c&&e[n]>=t;)n++;for(r=u,o=n-1;r<o;r++,o--)l=i[r],i[r]=i[o],i[o]=l;u=n}u++}else i.reverse()}function o(t){var e=t.charCodeAt(0),i=e>>8;return 0==i?191<e?f:O[e]:5==i?/[\u0591-\u05f4]/.test(t)?p:f:6==i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(t)?x:/[\u0660-\u0669\u066b-\u066c]/.test(t)?m:1642==e?M:/[\u06f0-\u06f9]/.test(t)?g:w:32==i&&e<=8287?j[255&e]:254==i&&65136<=e?w:v}var s=0,a=0,l=!1,h=!1,c=!1,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f=0,p=1,g=2,m=3,v=4,b=5,y=6,w=7,C=8,I=9,A=10,M=11,x=12,_=13,S=14,k=15,E=16,T=17,R=18,O=[R,R,R,R,R,R,R,R,R,y,b,y,C,b,R,R,R,R,R,R,R,R,R,R,R,R,R,R,b,b,b,y,C,v,v,M,M,M,v,v,v,v,v,A,I,A,I,I,g,g,g,g,g,g,g,g,g,g,I,v,v,v,v,v,v,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,v,v,v,v,v,v,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,v,v,v,v,R,R,R,R,R,R,b,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,I,v,M,M,M,M,v,v,v,v,f,v,v,R,v,v,M,M,g,g,v,f,v,v,v,g,f,v,v,v,v,v],j=[C,C,C,C,C,C,C,C,C,C,C,R,R,R,f,p,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,C,b,_,S,k,E,T,I,M,M,M,M,M,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,I,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,C];e.L=f,e.R=p,e.EN=g,e.ON_R=3,e.AN=4,e.R_H=5,e.B=6,e.RLE=7,e.DOT="·",e.doBidiReorder=function(t,i,o){if(t.length<2)return{};var a=t.split(""),l=new Array(a.length),h=new Array(a.length),c=[];s=o?1:0,n(a,c,a.length,i);for(var u=0;u<l.length;l[u]=u,u++);for(r(2,c,l),r(1,c,l),u=0;u<l.length-1;u++)i[u]===m?c[u]=e.AN:c[u]===p&&(i[u]>w&&i[u]<_||i[u]===v||i[u]===R)?c[u]=e.ON_R:0<u&&"ل"===a[u-1]&&/\u0622|\u0623|\u0625|\u0627/.test(a[u])&&(c[u-1]=c[u]=e.R_H,u++);for(a[a.length-1]===e.DOT&&(c[a.length-1]=e.B),""===a[0]&&(c[0]=e.RLE),u=0;u<l.length;u++)h[u]=c[l[u]];return{logicalFromVisual:l,bidiLevels:h}},e.hasBidiCharacters=function(t,e){for(var i=!1,n=0;n<t.length;n++)e[n]=o(t.charAt(n)),i||e[n]!=p&&e[n]!=w&&e[n]!=m||(i=!0);return i},e.getVisualFromLogicalIdx=function(t,e){for(var i=0;i<e.logicalFromVisual.length;i++)if(e.logicalFromVisual[i]==t)return i;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(t,e,i){"use strict";function n(t){this.session=t,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=s.test(t.getValue())}var r=t("./lib/bidiutil"),o=t("./lib/lang"),s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;(function(){this.isBidiRow=function(t,e,i){return!!this.seenBidi&&(t!==this.currentRow&&(this.currentRow=t,this.updateRowLine(e,i),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(t){this.seenBidi?this.currentRow=null:"insert"==t.action&&s.test(t.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var t,e=0,i=this.session.$screenRowCache;return!i.length||0<=(t=this.session.$getRowCacheIndex(i,this.currentRow))&&(e=this.session.$docRowCache[t]),e},this.getSplitIndex=function(){var t=0,e=this.session.$screenRowCache;if(e.length)for(var i,n=this.session.$getRowCacheIndex(e,this.currentRow);0<this.currentRow-t&&(i=this.session.$getRowCacheIndex(e,this.currentRow-t-1))===n;)n=i,t++;else t=this.currentRow;return t},this.updateRowLine=function(t,e){void 0===t&&(t=this.getDocumentRow());var i,n=t===this.session.getLength()-1?this.EOF:this.EOL;this.wrapIndent=0,this.line=this.session.getLine(t),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode?((i=this.session.$wrapData[t])&&(void 0===e&&(e=this.getSplitIndex()),0<e&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=e<i.length?this.line.substring(i[e-1],i[e]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[e])),e==i.length&&(this.line+=this.showInvisibles?n:r.DOT)):this.line+=this.showInvisibles?n:r.DOT;var s,a=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(t,e){return"\t"===t||a.isFullWidth(t.charCodeAt(0))?(s="\t"===t?a.getScreenTabSize(e+l):2,l+=s-1,o.stringRepeat(r.DOT,s)):t})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var t=[];r.hasBidiCharacters(this.line,t)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,t,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(t){var e,i;this.characterWidth!==t.$characterSize.width&&(this.fontMetrics=t,e=this.characterWidth=t.$characterSize.width,i=t.$measureCharWidth("ה"),this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=e,this.charWidths[r.R]=this.charWidths[r.AN]=i,this.charWidths[r.R_H]=.45*i,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null)},this.setShowInvisibles=function(t){this.showInvisibles=t,this.currentRow=null},this.setEolChar=function(t){this.EOL=t},this.setContentWidth=function(t){this.contentWidth=t},this.isRtlLine=function(t){return!!this.$isRtl||(null!=t?this.session.getLine(t).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(t,e){for(var i=t.getCursorPosition(),n=t.selection.getSelectionAnchor().row;n<=i.row;n++)e||t.session.getLine(n).charAt(0)!==t.session.$bidiHandler.RLE?e&&t.session.getLine(n).charAt(0)!==t.session.$bidiHandler.RLE&&t.session.doc.insert({column:0,row:n},t.session.$bidiHandler.RLE):t.session.doc.removeInLine(n,0,1)},this.getPosLeft=function(t){t-=this.wrapIndent;var e=this.line.charAt(0)===this.RLE?1:0,i=e<t?this.session.getOverwrite()?t:t-1:e,n=r.getVisualFromLogicalIdx(i,this.bidiMap),o=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&t<=e&&o[n]%2!=0&&n++;for(var a=0;a<n;a++)s+=this.charWidths[o[a]];return!this.session.getOverwrite()&&e<t&&o[n]%2==0&&(s+=this.charWidths[o[n]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(t,e){var i,n=this.bidiMap,r=n.bidiLevels,o=[],s=0,a=Math.min(t,e)-this.wrapIndent,l=Math.max(t,e)-this.wrapIndent,h=!1,c=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,f=0;f<r.length;f++)d=n.logicalFromVisual[f],i=r[f],(h=a<=d&&d<l)&&!c?u=s:!h&&c&&o.push({left:u,width:s-u}),s+=this.charWidths[i],c=h;if(h&&f===r.length&&o.push({left:u,width:s-u}),this.isRtlDir)for(var p=0;p<o.length;p++)o[p].left+=this.rtlLineOffset;return o},this.offsetToCol=function(t){this.isRtlDir&&(t-=this.rtlLineOffset);var e=0,i=(t=Math.max(t,0),0),n=0,r=this.bidiMap.bidiLevels,o=this.charWidths[r[n]];for(this.wrapIndent&&(t-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);i+o/2<t;){if(i+=o,n===r.length-1){o=0;break}o=this.charWidths[r[++n]]}return 0===(e=0<n&&r[n-1]%2!=0&&r[n]%2==0?(t<i&&n--,this.bidiMap.logicalFromVisual[n]):0<n&&r[n-1]%2==0&&r[n]%2!=0?1+(i<t?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===r.length-1&&0===o&&r[n-1]%2==0||!this.isRtlDir&&0===n&&r[n]%2!=0?1+this.bidiMap.logicalFromVisual[n]:(0<n&&r[n-1]%2!=0&&0!==o&&n--,this.bidiMap.logicalFromVisual[n]))&&this.isRtlDir&&e++,e+this.wrapIndent}}).call(n.prototype),e.BidiHandler=n})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(t,e,i){"use strict";function n(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var e=this;this.cursor.on("change",(function(t){e.$cursorChanged=!0,e.$silent||e._emit("changeCursor"),e.$isEmpty||e.$silent||e._emit("changeSelection"),e.$keepDesiredColumnOnChange||t.old.column==t.value.column||(e.$desiredColumn=null)})),this.anchor.on("change",(function(){e.$anchorChanged=!0,e.$isEmpty||e.$silent||e._emit("changeSelection")}))}var r=t("./lib/oop"),o=t("./lib/lang"),s=t("./lib/event_emitter").EventEmitter,a=t("./range").Range;(function(){r.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(t,e){this.$isEmpty=!1,this.anchor.setPosition(t,e)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var t=this.anchor,e=this.lead;return t.row>e.row||t.row==e.row&&t.column>e.column},this.getRange=function(){var t=this.anchor,e=this.lead;return this.$isEmpty?a.fromPoints(e,e):this.isBackwards()?a.fromPoints(e,t):a.fromPoints(t,e)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(t,e){var i=e?t.end:t.start,n=e?t.start:t.end;this.$setSelection(i.row,i.column,n.row,n.column)},this.$setSelection=function(t,e,i,n){var r,o;this.$silent||(r=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(t,e),this.cursor.setPosition(i,n),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||r!=this.$isEmpty||o)&&this._emit("changeSelection"))},this.$moveSelection=function(t){var e=this.lead;this.$isEmpty&&this.setSelectionAnchor(e.row,e.column),t.call(this)},this.selectTo=function(t,e){this.$moveSelection((function(){this.moveCursorTo(t,e)}))},this.selectToPosition=function(t){this.$moveSelection((function(){this.moveCursorToPosition(t)}))},this.moveTo=function(t,e){this.clearSelection(),this.moveCursorTo(t,e)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,e){var i;return void 0===e&&(t=(i=t||this.lead).row,e=i.column),this.session.getWordRange(t,e)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),e=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(e)},this.getLineRange=function(t,e){var i="number"==typeof t?t:this.lead.row,n=this.session.getFoldLine(i),r=n?(i=n.start.row,n.end.row):i;return!0===e?new a(i,0,r,this.session.getLine(r).length):new a(i,0,r+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,e,i){var n=t.column,r=t.column+e;return i<0&&(n=t.column-e,r=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(n,r).split(" ").length-1==e},this.moveCursorLeft=function(){var t,e,i=this.lead.getPosition();(t=this.session.getFoldAt(i.row,i.column,-1))?this.moveCursorTo(t.start.row,t.start.column):0===i.column?0<i.row&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length):(e=this.session.getTabSize(),this.wouldMoveIntoSoftTab(i,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1))},this.moveCursorRight=function(){var t,e,i=this.lead.getPosition();(t=this.session.getFoldAt(i.row,i.column,1))?this.moveCursorTo(t.end.row,t.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(e=this.session.getTabSize(),i=this.lead,this.wouldMoveIntoSoftTab(i,e,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,e):this.moveCursorBy(0,1))},this.moveCursorLineStart=function(){var t=this.lead.row,e=this.lead.column,i=this.session.documentToScreenRow(t,e),n=this.session.screenToDocumentPosition(i,0),r=this.session.getDisplayLine(t,null,n.row,n.column).match(/^\s*/);r[0].length==e||this.session.$useEmacsStyleLineStart||(n.column+=r[0].length),this.moveCursorToPosition(n)},this.moveCursorLineEnd=function(){var t,e,i=this.lead,n=this.session.getDocumentLastRowColumnPosition(i.row,i.column);this.lead.column==n.column&&(t=this.session.getLine(n.row),n.column!=t.length||0<(e=t.search(/\s+$/))&&(n.column=e)),this.moveCursorTo(n.row,n.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,e=this.doc.getLine(t).length;this.moveCursorTo(t,e)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,e=this.lead.column,i=this.doc.getLine(t),n=i.substring(e);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(t,e,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(n)&&(e+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(e)),e>=i.length)return this.moveCursorTo(t,i.length),this.moveCursorRight(),void(t<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(n)&&(e+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,e)}},this.moveCursorLongWordLeft=function(){var t,e=this.lead.row,i=this.lead.column;if(t=this.session.getFoldAt(e,i,-1))this.moveCursorTo(t.start.row,t.start.column);else{var n=this.session.getFoldStringAt(e,i,-1);null==n&&(n=this.doc.getLine(e).substring(0,i));var r=o.stringReverse(n);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(i-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0)return this.moveCursorTo(e,0),this.moveCursorLeft(),void(0<e&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,i)}},this.$shortWordEndIndex=function(t){var e,i=0,n=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(t))i=this.session.tokenRe.lastIndex;else{for(;(e=t[i])&&n.test(e);)i++;if(i<1)for(r.lastIndex=0;(e=t[i])&&!r.test(e);)if(r.lastIndex=0,i++,n.test(e)){if(2<i){i--;break}for(;(e=t[i])&&n.test(e);)i++;if(2<i)break}}return r.lastIndex=0,i},this.moveCursorShortWordRight=function(){var t=this.lead.row,e=this.lead.column,i=this.doc.getLine(t),n=i.substring(e),r=this.session.getFoldAt(t,e,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(e==i.length){for(var o=this.doc.getLength();t++,n=this.doc.getLine(t),t<o&&/^\s*$/.test(n););/^\s+/.test(n)||(n=""),e=0}var s=this.$shortWordEndIndex(n);this.moveCursorTo(t,e+s)},this.moveCursorShortWordLeft=function(){var t,e=this.lead.row,i=this.lead.column;if(t=this.session.getFoldAt(e,i,-1))return this.moveCursorTo(t.start.row,t.start.column);var n=this.session.getLine(e).substring(0,i);if(0===i){for(;e--,n=this.doc.getLine(e),0<e&&/^\s*$/.test(n););i=n.length,/\s+$/.test(n)||(n="")}var r=o.stringReverse(n),s=this.$shortWordEndIndex(r);return this.moveCursorTo(e,i-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,e){var i,n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===e&&(0!==t&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=t&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(n=this.session.lineWidgets[this.lead.row],t<0?t-=n.rowsAbove||0:0<t&&(t+=n.rowCount-(n.rowsAbove||0)));var o=this.session.screenToDocumentPosition(r.row+t,r.column,i);0!==t&&0===e&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+e,0===e)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,e,i){var n=this.session.getFoldAt(t,e,1);n&&(t=n.start.row,e=n.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(r.charAt(e))&&r.charAt(e-1)&&(this.lead.row==t&&this.lead.column==e+1?--e:e+=1),this.lead.setPosition(t,e),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,e,i){var n=this.session.screenToDocumentPosition(t,e);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var e=this.getRange();return t?(t.start.column=e.start.column,t.start.row=e.start.row,t.end.column=e.end.column,t.end.row=e.end.row):t=e,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var e=this.getCursor();try{t(this);var i=this.getCursor();return a.fromPoints(e,i)}catch(t){return a.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){var t;return this.rangeCount?t=this.ranges.map((function(t){var e=t.clone();return e.isBackwards=t.cursor==t.start,e})):(t=this.getRange()).isBackwards=this.isBackwards(),t},this.fromJSON=function(t){if(null==t.start){if(this.rangeList&&1<t.length){this.toSingleRange(t[0]);for(var e=t.length;e--;){var i=a.fromPoints(t[e].start,t[e].end);t[e].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}t=t[0]}this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var e=this.ranges.length;e--;)if(!this.ranges[e].isEqual(t[e]))return!1;return!0}}).call(n.prototype),e.Selection=n})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(t,e,i){"use strict";function n(t){for(var e in this.states=t,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[e],n=[],r=0,o=this.matchMappings[e]={defaultToken:"text"},s="g",a=[],l=0;l<i.length;l++){var h,c,u=i[l];u.defaultToken&&(o.defaultToken=u.defaultToken),u.caseInsensitive&&(s="gi"),null!=u.regex&&(u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1)),h=u.regex,c=new RegExp("(?:("+h+")|(.))").exec("a").length-2,Array.isArray(u.token)?1==u.token.length||1==c?u.token=u.token[0]:c-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:c-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=1<c?this.$applyToken:u.token),1<c&&(h=/\\\d/.test(u.regex)?u.regex.replace(/\\([0-9]+)/g,(function(t,e){return"\\"+(parseInt(e,10)+r+1)})):(c=1,this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||a.push(u)),o[r]=l,r+=c,n.push(h),u.onMatch||(u.onMatch=null))}n.length||(o[0]=0,n.push("$")),a.forEach((function(t){t.splitRegex=this.createSplitterRegexp(t.regex,s)}),this),this.regExps[e]=new RegExp("("+n.join(")|(")+")|($)",s)}}var r=t("./config"),o=2e3;(function(){this.$setMaxTokenCount=function(t){o=0|t},this.$applyToken=function(t){var e=this.splitRegex.exec(t).slice(1),i=this.token.apply(this,e);if("string"==typeof i)return[{type:i,value:t}];for(var n=[],r=0,o=i.length;r<o;r++)e[r]&&(n[n.length]={type:i[r],value:e[r]});return n},this.$arrayTokens=function(t){if(!t)return[];var e=this.splitRegex.exec(t);if(!e)return"text";for(var i=[],n=this.tokenArray,r=0,o=n.length;r<o;r++)e[r+1]&&(i[i.length]={type:n[r],value:e[r+1]});return i},this.removeCapturingGroups=function(t){return t.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!]|(\()/g,(function(t,e){return e?"(?:":t}))},this.createSplitterRegexp=function(t,e){var i,n,r;return-1!=t.indexOf("(?=")&&(i=0,n=!1,r={},t.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(t,e,o,s,a,l){return n?n="]"!=a:a?n=!0:s?(i==r.stack&&(r.end=l+1,r.stack=-1),i--):o&&(i++,1!=o.length&&(r.stack=i,r.start=l)),t})),null!=r.end&&/^\)*$/.test(t.substr(r.end))&&(t=t.substring(0,r.start)+t.substr(r.end))),"^"!=t.charAt(0)&&(t="^"+t),"$"!=t.charAt(t.length-1)&&(t+="$"),new RegExp(t,(e||"").replace("g",""))},this.getLineTokens=function(t,e){var i;e&&"string"!=typeof e?"#tmp"===(e=(i=e.slice(0))[0])&&(i.shift(),e=i.shift()):i=[];var n=e||"start",r=this.states[n];r||(n="start",r=this.states[n]);for(var s,a=this.matchMappings[n],l=this.regExps[n],h=[],c=l.lastIndex=0,u=0,d={type:null,value:""};s=l.exec(t);){var f,p=a.defaultToken,g=null,m=s[0],v=l.lastIndex;v-m.length>c&&(f=t.substring(c,v-m.length),d.type==p?d.value+=f:(d.type&&h.push(d),d={type:p,value:f}));for(var b=0;b<s.length-2;b++)if(void 0!==s[b+1]){p=(g=r[a[b]]).onMatch?g.onMatch(m,n,i,t):g.token,g.next&&(n="string"==typeof g.next?g.next:g.next(n,i),(r=this.states[n])||(this.reportError("state doesn't exist",n),n="start",r=this.states[n]),a=this.matchMappings[n],c=v,(l=this.regExps[n]).lastIndex=v),g.consumeLineEnd&&(c=v);break}if(m)if("string"==typeof p)g&&!1===g.merge||d.type!==p?(d.type&&h.push(d),d={type:p,value:m}):d.value+=m;else if(p)for(d.type&&h.push(d),d={type:null,value:""},b=0;b<p.length;b++)h.push(p[b]);if(c==t.length)break;if(c=v,u++>o){for(u>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:e,line:t});c<t.length;)d.type&&h.push(d),d={value:t.substring(c,c+=500),type:"overflow"};n="start",i=[];break}}return d.type&&h.push(d),1<i.length&&i[0]!==n&&i.unshift("#tmp",n),{tokens:h,state:i.length?i:n}},this.reportError=r.reportError}).call(n.prototype),e.Tokenizer=n})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(t,e,i){"use strict";function n(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}var r=t("../lib/lang");(function(){function t(t,e){return"start"==t&&!e.length||e.unshift(this.nextState,t),this.nextState}function e(t,e){return e.shift(),e.shift()||"start"}this.addRules=function(t,e){if(e)for(var i in t){for(var n=t[i],r=0;r<n.length;r++){var o=n[r];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(e)&&(o.next=e+o.next),o.nextState&&0!==o.nextState.indexOf(e)&&(o.nextState=e+o.nextState))}this.$rules[e+i]=n}else for(var i in t)this.$rules[i]=t[i]},this.getRules=function(){return this.$rules},this.embedRules=function(t,e,i,n,o){var s="function"==typeof t?(new t).getRules():t;if(n)for(var a=0;a<n.length;a++)n[a]=e+n[a];else for(var l in n=[],s)n.push(e+l);if(this.addRules(s,e),i){var h=Array.prototype[o?"push":"unshift"];for(a=0;a<n.length;a++)h.apply(this.$rules[n[a]],r.deepCopy(i))}this.$embeds||(this.$embeds=[]),this.$embeds.push(e)},this.getEmbeds=function(){return this.$embeds},this.normalizeRules=function(){var i=0,n=this.$rules;Object.keys(n).forEach((function r(o){var s=n[o];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],h=null;Array.isArray(l)&&(h=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c,u=l.next||l.push;if(u&&Array.isArray(u)?((c=l.stateName)||("string"!=typeof(c=l.token)&&(c=c[0]||""),n[c]&&(c+=i++)),n[c]=u,r(l.next=c)):"pop"==u&&(l.next=e),l.push&&(l.nextState=l.next||l.push,l.next=t,delete l.push),l.rules)for(var d in l.rules)n[d]?n[d].push&&n[d].push.apply(n[d],l.rules[d]):n[d]=l.rules[d];var f,p="string"==typeof l?l:l.include;p&&(h=Array.isArray(p)?p.map((function(t){return n[t]})):n[p]),h&&(f=[a,1].concat(h),l.noEscape&&(f=f.filter((function(t){return!t.next}))),s.splice.apply(s,f),a--),l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(t,e,i,n){var r=Object.create(null);return this.$keywordList=[],Object.keys(t).forEach((function(e){for(var o=t[e].split(n||"|"),s=o.length;s--;){var a=o[s];this.$keywordList.push(a),i&&(a=a.toLowerCase()),r[a]=e}}),this),t=null,i?function(t){return r[t.toLowerCase()]||e}:function(t){return r[t]||e}},this.getKeywords=function(){return this.$keywords}}).call(n.prototype),e.TextHighlightRules=n})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(t,e,i){"use strict";function n(){this.$behaviours={}}(function(){this.add=function(t,e,i){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[t]:this.$behaviours[t]={}}this.$behaviours[t][e]=i},this.addBehaviours=function(t){for(var e in t)for(var i in t[e])this.add(e,i,t[e][i])},this.remove=function(t){this.$behaviours&&this.$behaviours[t]&&delete this.$behaviours[t]},this.inherit=function(t,e){var i;i="function"==typeof t?(new t).getBehaviours(e):t.getBehaviours(e),this.addBehaviours(i)},this.getBehaviours=function(t){if(t){for(var e={},i=0;i<t.length;i++)this.$behaviours[t[i]]&&(e[t[i]]=this.$behaviours[t[i]]);return e}return this.$behaviours}}).call(n.prototype),e.Behaviour=n})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(t,e,i){this.$session=t,this.$row=e,this.$rowTokens=t.getTokens(e);var n=t.getTokenAt(e,i);this.$tokenIndex=n?n.index:-1}var r=t("./range").Range;(function(){this.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var t;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,t=t||this.$session.getLength(),this.$row>=t)return this.$row=t-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var t=this.$rowTokens,e=this.$tokenIndex,i=t[e].start;if(void 0!==i)return i;for(i=0;0<e;)i+=t[--e].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var t=this.$rowTokens[this.$tokenIndex],e=this.getCurrentTokenColumn();return new r(this.$row,e,this.$row,e+t.value.length)}}).call(n.prototype),e.TokenIterator=n})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(t,e,i){"use strict";function n(t){var e=-1;if(t.multiSelect&&(e=t.selection.index,d.rangeCount!=t.multiSelect.rangeCount&&(d={rangeCount:t.multiSelect.rangeCount})),d[e])return o=d[e];o=d[e]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function r(t,e,i,n){var r=t.end.row-t.start.row;return{text:i+e+n,selection:[0,t.start.column+1,r,t.end.column+(r?0:1)]}}var o,s=t("../../lib/oop"),a=t("../behaviour").Behaviour,l=t("../../token_iterator").TokenIterator,h=t("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],u=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d={},f={'"':'"',"'":"'"},p=function(t){this.add("braces","insertion",(function(e,i,s,a,l){var c=s.getCursorPosition(),u=a.doc.getLine(c.row);if("{"==l){n(s);var d=s.getSelectionRange(),f=a.doc.getTextRange(d);if(""!==f&&"{"!==f&&s.getWrapBehavioursEnabled())return r(d,f,"{","}");if(p.isSaneInsertion(s,a))return/[\]\}\)]/.test(u[c.column])||s.inMultiSelectMode||t&&t.braces?(p.recordAutoInsert(s,a,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(s,a,"{"),{text:"{",selection:[1,1]})}else if("}"==l){if(n(s),"}"==u.substring(c.column,c.column+1)&&null!==a.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&p.isAutoInsertedClosing(c,u,l))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==l||"\r\n"==l){n(s);var g="";if(p.isMaybeInsertedClosing(c,u)&&(g=h.stringRepeat("}",o.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===u.substring(c.column,c.column+1)){var m=a.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!m)return null;var v=this.$getIndent(a.getLine(m.row))}else{if(!g)return void p.clearMaybeInsertedClosing();v=this.$getIndent(u)}var b=v+a.getTabString();return{text:"\n"+b+"\n"+v+g,selection:[1,b.length,1,b.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(t,e,i,r,s){var a=r.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==a){if(n(i),"}"==r.doc.getLine(s.start.row).substring(s.end.column,s.end.column+1))return s.end.column++,s;o.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,e,i,o,s){if("("==s){n(i);var a=i.getSelectionRange(),l=o.doc.getTextRange(a);if(""!==l&&i.getWrapBehavioursEnabled())return r(a,l,"(",")");if(p.isSaneInsertion(i,o))return p.recordAutoInsert(i,o,")"),{text:"()",selection:[1,1]}}else if(")"==s){n(i);var h=i.getCursorPosition(),c=o.doc.getLine(h.row);if(")"==c.substring(h.column,h.column+1)&&null!==o.$findOpeningBracket(")",{column:h.column+1,row:h.row})&&p.isAutoInsertedClosing(h,c,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(t,e,i,r,o){var s=r.doc.getTextRange(o);if(!o.isMultiLine()&&"("==s&&(n(i),")"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(t,e,i,o,s){if("["==s){n(i);var a=i.getSelectionRange(),l=o.doc.getTextRange(a);if(""!==l&&i.getWrapBehavioursEnabled())return r(a,l,"[","]");if(p.isSaneInsertion(i,o))return p.recordAutoInsert(i,o,"]"),{text:"[]",selection:[1,1]}}else if("]"==s){n(i);var h=i.getCursorPosition(),c=o.doc.getLine(h.row);if("]"==c.substring(h.column,h.column+1)&&null!==o.$findOpeningBracket("]",{column:h.column+1,row:h.row})&&p.isAutoInsertedClosing(h,c,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(t,e,i,r,o){var s=r.doc.getTextRange(o);if(!o.isMultiLine()&&"["==s&&(n(i),"]"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(t,e,i,o,s){var a=o.$mode.$quotes||f;if(1==s.length&&a[s]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(s))return;n(i);var l=s,h=i.getSelectionRange(),c=o.doc.getTextRange(h);if(!(""===c||1==c.length&&a[c])&&i.getWrapBehavioursEnabled())return r(h,c,l,l);if(!c){var u=i.getCursorPosition(),d=o.doc.getLine(u.row),p=d.substring(u.column-1,u.column),g=d.substring(u.column,u.column+1),m=o.getTokenAt(u.row,u.column),v=o.getTokenAt(u.row,u.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var b,y=m&&/string|escape/.test(m.type),w=!v||/string|escape/.test(v.type);if(g==l)(b=y!==w)&&/string\.end/.test(v.type)&&(b=!1);else{if(y&&!w)return null;if(y&&w)return null;var C=o.$mode.tokenRe;C.lastIndex=0;var I=C.test(p);C.lastIndex=0;var A=C.test(p);if(I||A)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var M=d[u.column-2];if(p==l&&(M==l||C.test(M)))return null;b=!0}return{text:b?l+l:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(t,e,i,r,o){var s=r.$mode.$quotes||f,a=r.doc.getTextRange(o);if(!o.isMultiLine()&&s.hasOwnProperty(a)&&(n(i),r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o}))};p.isSaneInsertion=function(t,e){var i=t.getCursorPosition(),n=new l(e,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",c)){if(/[)}\]]/.test(t.session.getLine(i.row)[i.column]))return!0;var r=new l(e,i.row,i.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",c))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",u)},p.$matchTokenType=function(t,e){return-1<e.indexOf(t.type||t)},p.recordAutoInsert=function(t,e,i){var n=t.getCursorPosition(),r=e.doc.getLine(n.row);this.isAutoInsertedClosing(n,r,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=n.row,o.autoInsertedLineEnd=i+r.substr(n.column),o.autoInsertedBrackets++},p.recordMaybeInsert=function(t,e,i){var n=t.getCursorPosition(),r=e.doc.getLine(n.row);this.isMaybeInsertedClosing(n,r)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=n.row,o.maybeInsertedLineStart=r.substr(0,n.column)+i,o.maybeInsertedLineEnd=r.substr(n.column),o.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(t,e,i){return 0<o.autoInsertedBrackets&&t.row===o.autoInsertedRow&&i===o.autoInsertedLineEnd[0]&&e.substr(t.column)===o.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(t,e){return 0<o.maybeInsertedBrackets&&t.row===o.maybeInsertedRow&&e.substr(t.column)===o.maybeInsertedLineEnd&&e.substr(0,t.column)==o.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},s.inherits(p,a),e.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(t,e,i){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],r=0,o=[],s=0;s<n.length;s+=2)o.push(r+=n[s]),n[s+1]&&o.push(45,r+=n[s+1]);e.wordChars=String.fromCharCode.apply(null,o)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(t,e,i){"use strict";function n(){this.HighlightRules=s}var r=t("../config"),o=t("../tokenizer").Tokenizer,s=t("./text_highlight_rules").TextHighlightRules,a=t("./behaviour/cstyle").CstyleBehaviour,l=t("../unicode"),h=t("../lib/lang"),c=t("../token_iterator").TokenIterator,u=t("../range").Range;(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(t,e,i,n){function r(t){for(var e=i;e<=n;e++)t(o.getLine(e),e)}var o=e.doc,s=!0,a=!0,l=1/0,c=e.getTabSize(),u=!1;if(this.lineCommentStart){v=Array.isArray(this.lineCommentStart)?(y=this.lineCommentStart.map(h.escapeRegExp).join("|"),this.lineCommentStart[0]):(y=h.escapeRegExp(this.lineCommentStart),this.lineCommentStart),y=new RegExp("^(\\s*)(?:"+y+") ?"),u=e.getUseSoftTabs();var d=function(t,e){var i,n,r=t.match(y);r&&(i=r[1].length,n=r[0].length,m(t,i,n)||" "!=r[0][n-1]||n--,o.removeInLine(e,i,n))},f=v+" ",p=function(t,e){s&&!/\S/.test(t)||(m(t,l,l)?o.insertInLine({row:e,column:l},f):o.insertInLine({row:e,column:l},v))},g=function(t,e){return y.test(t)},m=function(t,e,i){for(var n=0;e--&&" "==t.charAt(e);)n++;if(n%c!=0)return!1;for(n=0;" "==t.charAt(i++);)n++;return 2<c?n%c!=c-1:n%c==0}}else{if(!this.blockComment)return!1;var v=this.blockComment.start,b=this.blockComment.end,y=new RegExp("^(\\s*)(?:"+h.escapeRegExp(v)+")"),w=new RegExp("(?:"+h.escapeRegExp(b)+")\\s*$");p=function(t,e){g(t,e)||s&&!/\S/.test(t)||(o.insertInLine({row:e,column:t.length},b),o.insertInLine({row:e,column:l},v))},d=function(t,e){var i;(i=t.match(w))&&o.removeInLine(e,t.length-i[0].length,t.length),(i=t.match(y))&&o.removeInLine(e,i[1].length,i[0].length)},g=function(t,i){if(y.test(t))return!0;for(var n=e.getTokens(i),r=0;r<n.length;r++)if("comment"===n[r].type)return!0}}var C=1/0;r((function(t,e){var i=t.search(/\S/);-1!==i?(i<l&&(l=i),a&&!g(t,e)&&(a=!1)):C>t.length&&(C=t.length)})),l==1/0&&(l=C,a=s=!1),u&&l%c!=0&&(l=Math.floor(l/c)*c),r(a?d:p)},this.toggleBlockComment=function(t,e,i,n){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o,s,a=(p=new c(e,n.row,n.column)).getCurrentToken(),l=(e.selection,e.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(r.start))){var h=p.getCurrentTokenRow(),d=p.getCurrentTokenColumn()+g,f=new u(h,d,h,d+r.start.length);break}a=p.stepBackward()}var p,g;for(a=(p=new c(e,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(r.end))){h=p.getCurrentTokenRow(),d=p.getCurrentTokenColumn()+g;var m=new u(h,d,h,d+r.end.length);break}a=p.stepForward()}m&&e.remove(m),f&&(e.remove(f),o=f.start.row,s=-r.start.length)}else s=r.start.length,o=i.start.row,e.insert(i.end,r.end),e.insert(i.start,r.start);l.start.row==o&&(l.start.column+=s),l.end.row==o&&(l.end.column+=s),e.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(t,e,i){return this.$getIndent(e)},this.checkOutdent=function(t,e,i){return!1},this.autoOutdent=function(t,e,i){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){for(var e in this.$embeds=[],this.$modes={},t){var i,n,o;t[e]&&(n=(i=t[e]).prototype.$id,(o=r.$modes[n])||(r.$modes[n]=o=new i),r.$modes[e]||(r.$modes[e]=o),this.$embeds.push(e),this.$modes[e]=o)}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(e=0;e<s.length;e++)!function(t){var i=s[e],n=t[i];t[s[e]]=function(){return this.$delegator(i,arguments,n)}}(this)},this.$delegator=function(t,e,i){var n=e[0]||"start";if("string"!=typeof n){if(Array.isArray(n[2])){var r=n[2][n[2].length-1];if(s=this.$modes[r])return s[t].apply(s,[n[1]].concat([].slice.call(e,1)))}n=n[0]||"start"}for(var o=0;o<this.$embeds.length;o++)if(this.$modes[this.$embeds[o]]){var s,a=n.split(this.$embeds[o]);if(!a[0]&&a[1])return e[0]=a[1],(s=this.$modes[this.$embeds[o]])[t].apply(s,e)}var l=i.apply(this,e);return i?l:void 0},this.transformAction=function(t,e,i,n,r){if(this.$behaviour){var o,s=this.$behaviour.getBehaviours();for(o in s)if(s[o][e]){var a=s[o][e].apply(this,arguments);if(a)return a}}},this.getKeywords=function(t){if(!this.completionKeywords){var e=this.$tokenizer.rules,i=[];for(s in e)for(var n=e[s],r=0,o=n.length;r<o;r++)if("string"==typeof n[r].token)/keyword|support|storage/.test(n[r].token)&&i.push(n[r].regex);else if("object"==typeof n[r].token)for(var s,a=0,l=n[r].token.length;a<l;a++)/keyword|support|storage/.test(n[r].token[a])&&(s=n[r].regex.match(/\(.+?\)/g)[a],i.push(s.substr(1,s.length-2)));this.completionKeywords=i}return t?i.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(t,e,i,n){return(this.$keywordList||this.$createKeywordList()).map((function(t){return{name:t,value:t,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(n.prototype),e.Mode=n})),ace.define("ace/apply_delta",["require","exports","module"],(function(t,e,i){"use strict";e.applyDelta=function(t,e,i){var n,r=e.start.row,o=e.start.column,s=t[r]||"";switch(e.action){case"insert":1===e.lines.length?t[r]=s.substring(0,o)+e.lines[0]+s.substring(o):(n=[r,1].concat(e.lines),t.splice.apply(t,n),t[r]=s.substring(0,o)+t[r],t[r+e.lines.length-1]+=s.substring(o));break;case"remove":var a=e.end.column,l=e.end.row;r===l?t[r]=s.substring(0,o)+s.substring(a):t.splice(r,l-r+1,s.substring(0,o)+t[l].substring(a))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=e.Anchor=function(t,e,i){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===i?this.setPosition(e.row,e.column):this.setPosition(e,i)};(function(){function t(t,e,i){var n=i?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&n}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){var i;e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row||(i=function(e,i,n){var r="insert"==e.action,o=(r?1:-1)*(e.end.row-e.start.row),s=(r?1:-1)*(e.end.column-e.start.column),a=e.start,l=r?a:e.end;return t(i,a,n)?{row:i.row,column:i.column}:t(l,i,!n)?{row:i.row+o,column:i.column+(i.row==l.row?s:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight),this.setPosition(i.row,i.column,!0))},this.setPosition=function(t,e,i){var n,r=i?{row:t,column:e}:this.$clipPositionToDocument(t,e);this.row==r.row&&this.column==r.column||(n={row:this.row,column:this.column},this.row=r.row,this.column=r.column,this._signal("change",{old:n,value:r}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var i={};return t>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):t<0?(i.row=0,i.column=0):(i.row=t,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,e))),e<0&&(i.column=0),i}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(t,e,i){"use strict";function n(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var r=t("./lib/oop"),o=t("./apply_delta").applyDelta,s=t("./lib/event_emitter").EventEmitter,a=t("./range").Range,l=t("./anchor").Anchor;(function(){r.implement(this,s),this.setValue=function(t){var e=this.getLength()-1;this.remove(new a(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new l(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e,i;return t.start.row===t.end.row?e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)]:((e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column),i=e.length-1,t.end.row-t.start.row==i&&(e[i]=e[i].substring(0,t.end.column))),e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var i=this.clippedPos(t.row,t.column),n=this.pos(t.row,t.column+e.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[e]},!0),this.clonePos(n)},this.clippedPos=function(t,e){var i=this.getLength();void 0===t?t=i:t<0?t=0:i<=t&&(t=i-1,e=void 0);var n=this.getLine(t);return null==e&&(e=n.length),{row:t,column:e=Math.min(Math.max(e,0),n.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var i=0;i=(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),0):(e=[""].concat(e),t--,this.$lines[t].length);this.insertMergedLines({row:t,column:i},e)},this.insertMergedLines=function(t,e){var i=this.clippedPos(t.row,t.column),n={row:i.row+e.length-1,column:(1==e.length?i.column:0)+e[e.length-1].length};return this.applyDelta({start:i,end:n,action:"insert",lines:e}),this.clonePos(n)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),i=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:i,action:"remove",lines:this.getLinesForRange({start:e,end:i})}),this.clonePos(e)},this.removeInLine=function(t,e,i){var n=this.clippedPos(t,e),r=this.clippedPos(t,i);return this.applyDelta({start:n,end:r,action:"remove",lines:this.getLinesForRange({start:n,end:r})},!0),this.clonePos(n)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var i=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&0<t,n=e<this.getLength()-1,r=i?t-1:t,o=i?this.getLine(r).length:0,s=n?e+1:e,l=n?0:this.getLine(s).length,h=new a(r,o,s,l),c=this.$lines.slice(t,e+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),c},this.removeNewLine=function(t){t<this.getLength()-1&&0<=t&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){return t instanceof a||(t=a.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty()?t.start:e==this.getTextRange(t)?t.end:(this.remove(t),e?this.insert(t.start,e):t.start)},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;0<=e;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var i="insert"==t.action;(i?t.lines.length<=1&&!t.lines[0]:!a.comparePoints(t.start,t.end))||(i&&2e4<t.lines.length?this.$splitAndapplyLargeDelta(t,2e4):(o(this.$lines,t,e),this._signal("change",t)))},this.$safeApplyDelta=function(t){var e=this.$lines.length;("remove"==t.action&&t.start.row<e&&t.end.row<e||"insert"==t.action&&t.start.row<=e)&&this.applyDelta(t)},this.$splitAndapplyLargeDelta=function(t,e){for(var i=t.lines,n=i.length-e+1,r=t.start.row,o=t.start.column,s=0,a=0;s<n;s=a){a+=e-1;var l=i.slice(s,a);l.push(""),this.applyDelta({start:this.pos(r+s,o),end:this.pos(r+a,o=0),action:t.action,lines:l},!0)}t.lines=i.slice(s),t.start.row=r+s,t.start.column=o,this.applyDelta(t,!0)},this.revertDelta=function(t){this.$safeApplyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=e||0,o=i.length;r<o;r++)if((t-=i[r].length+n)<0)return{row:r,column:t+i[r].length+n};return{row:o-1,column:t+i[o-1].length+n}},this.positionToIndex=function(t,e){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=0,o=Math.min(t.row,i.length),s=e||0;s<o;++s)r+=i[s].length+n;return r+t.column}}).call(n.prototype),e.Document=n})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){"use strict";function n(t,e){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=t;var i=this;this.$worker=function(){if(i.running){for(var t=new Date,e=i.currentLine,n=-1,r=i.doc,o=e;i.lines[e];)e++;var s=r.getLength(),a=0;for(i.running=!1;e<s;){for(i.$tokenizeRow(e),n=e;e++,i.lines[e];);if(++a%5==0&&20<new Date-t){i.running=setTimeout(i.$worker,20);break}}i.currentLine=e,-1==n&&(n=e),o<=n&&i.fireUpdateEvent(o,n)}}}var r=t("./lib/oop"),o=t("./lib/event_emitter").EventEmitter;(function(){r.implement(this,o),this.setTokenizer=function(t){this.tokenizer=t,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(t){this.doc=t,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(t,e){var i={first:t,last:e};this._signal("update",{data:i})},this.start=function(t){this.currentLine=Math.min(t||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(t){var e,i=t.start.row,n=t.end.row-i;0==n?this.lines[i]=null:"remove"==t.action?(this.lines.splice(i,1+n,null),this.states.splice(i,1+n,null)):((e=Array(1+n)).unshift(i,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)),this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(t){return this.lines[t]||this.$tokenizeRow(t)},this.getState=function(t){return this.currentLine==t&&this.$tokenizeRow(t),this.states[t]||"start"},this.$tokenizeRow=function(t){var e=this.doc.getLine(t),i=this.states[t-1],n=this.tokenizer.getLineTokens(e,i,t);return this.states[t]+""!=n.state+""?(this.states[t]=n.state,this.lines[t+1]=null,this.currentLine>t+1&&(this.currentLine=t+1)):this.currentLine==t&&(this.currentLine=t+1),this.lines[t]=n.tokens}}).call(n.prototype),e.BackgroundTokenizer=n})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,i){"use strict";function n(t,e,i){this.setRegexp(t),this.clazz=e,this.type=i||"text"}var r=t("./lib/lang"),o=(t("./lib/oop"),t("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(t){this.regExp+""!=t+""&&(this.regExp=t,this.cache=[])},this.update=function(t,e,i,n){if(this.regExp)for(var s=n.firstRow,a=n.lastRow,l=s;l<=a;l++){var h=this.cache[l];null==h&&((h=r.getMatchOffsets(i.getLine(l),this.regExp)).length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map((function(t){return new o(l,t.offset,l,t.offset+t.length)})),this.cache[l]=h.length?h:"");for(var c=h.length;c--;)e.drawSingleLineMarker(t,h[c].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),e.SearchHighlight=n})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(t,e){this.foldData=t,Array.isArray(e)?this.folds=e:e=this.folds=[e];var i=e[e.length-1];this.range=new r(e[0].start.row,e[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(t){t.setFoldLine(this)}),this)}var r=t("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach((function(e){e.start.row+=t,e.end.row+=t}))},this.addFold=function(t){if(t.sameRow){if(t.start.row<this.startRow||t.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(t),this.folds.sort((function(t,e){return-t.range.compareEnd(e.start.row,e.start.column)})),0<this.range.compareEnd(t.start.row,t.start.column)?(this.end.row=t.end.row,this.end.column=t.end.column):this.range.compareStart(t.end.row,t.end.column)<0&&(this.start.row=t.start.row,this.start.column=t.start.column)}else if(t.start.row==this.end.row)this.folds.push(t),this.end.row=t.end.row,this.end.column=t.end.column;else{if(t.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(t),this.start.row=t.start.row,this.start.column=t.start.column}t.foldLine=this},this.containsRow=function(t){return t>=this.start.row&&t<=this.end.row},this.walk=function(t,e,i){var n,r,o=0,s=this.folds,a=!0;null==e&&(e=this.end.row,i=this.end.column);for(var l=0;l<s.length;l++){if(-1==(r=(n=s[l]).range.compareStart(e,i)))return void t(null,e,i,o,a);if(!t(null,n.start.row,n.start.column,o,a)&&t(n.placeholder,n.start.row,n.start.column,o)||0===r)return;a=!n.sameRow,o=n.end.column}t(null,e,i,o,a)},this.getNextFoldTo=function(t,e){for(var i,n,r=0;r<this.folds.length;r++){if(-1==(n=(i=this.folds[r]).range.compareEnd(t,e)))return{fold:i,kind:"after"};if(0===n)return{fold:i,kind:"inside"}}return null},this.addRemoveChars=function(t,e,i){var n,r,o=this.getNextFoldTo(t,e);if(o)if(n=o.fold,"inside"==o.kind&&n.start.column!=e&&n.start.row!=t)window.console&&window.console.log(t,e,n);else if(n.start.row==t){var s=(r=this.folds).indexOf(n);for(0===s&&(this.start.column+=i);s<r.length;s++){if((n=r[s]).start.column+=i,!n.sameRow)return;n.end.column+=i}this.end.column+=i}},this.split=function(t,e){var i=this.getNextFoldTo(t,e);if(!i||"inside"==i.kind)return null;var r=i.fold,o=this.folds,s=this.foldData,a=o.indexOf(r),l=o[a-1];this.end.row=l.end.row,this.end.column=l.end.column;var h=new n(s,o=o.splice(a,o.length-a));return s.splice(s.indexOf(this)+1,0,h),h},this.merge=function(t){for(var e=t.folds,i=0;i<e.length;i++)this.addFold(e[i]);var n=this.foldData;n.splice(n.indexOf(t),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach((function(e){t.push(" "+e.toString())})),t.push("]"),t.join("\n")},this.idxToPosition=function(t){for(var e=0,i=0;i<this.folds.length;i++){var n=this.folds[i];if((t-=n.start.column-e)<0)return{row:n.start.row,column:n.start.column+t};if((t-=n.placeholder.length)<0)return n.start;e=n.end.column}return{row:this.end.row,column:this.end.column+t}}}).call(n.prototype),e.FoldLine=n})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(){this.ranges=[],this.$bias=1}var r=t("./range").Range.comparePoints;(function(){this.comparePoints=r,this.pointIndex=function(t,e,i){for(var n=this.ranges,o=i||0;o<n.length;o++){var s=n[o],a=r(t,s.end);if(!(0<a)){var l=r(t,s.start);return 0===a?e&&0!==l?-o-2:o:0<l||0===l&&!e?o:-o-1}}return-o-1},this.add=function(t){var e=!t.isEmpty(),i=this.pointIndex(t.start,e);i<0&&(i=-i-1);var n=this.pointIndex(t.end,e,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,t)},this.addList=function(t){for(var e=[],i=t.length;i--;)e.push.apply(e,this.add(t[i]));return e},this.substractPoint=function(t){var e=this.pointIndex(t);if(0<=e)return this.ranges.splice(e,1)},this.merge=function(){for(var t,e=[],i=this.ranges,n=(i=i.sort((function(t,e){return r(t.start,e.start)})))[0],o=1;o<i.length;o++){t=n,n=i[o];var s=r(t.end,n.start);s<0||(0!=s||t.isEmpty()||n.isEmpty())&&(r(t.end,n.end)<0&&(t.end.row=n.end.row,t.end.column=n.end.column),i.splice(o,1),e.push(n),n=t,o--)}return this.ranges=i,e},this.contains=function(t,e){return 0<=this.pointIndex({row:t,column:e})},this.containsPoint=function(t){return 0<=this.pointIndex(t)},this.rangeAtPoint=function(t){var e=this.pointIndex(t);if(0<=e)return this.ranges[e]},this.clipRows=function(t,e){var i=this.ranges;if(i[0].start.row>e||i[i.length-1].start.row<t)return[];var n=this.pointIndex({row:t,column:0});n<0&&(n=-n-1);var r=this.pointIndex({row:e,column:0},n);r<0&&(r=-r-1);for(var o=[],s=n;s<r;s++)o.push(i[s]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(t){this.session&&this.detach(),this.session=t,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(t){for(var e=t.start,i=t.end,n=e.row,r=i.row,o=this.ranges,s=0,a=o.length;s<a&&!((c=o[s]).end.row>=n);s++);if("insert"==t.action){for(var l=r-n,h=-e.column+i.column;s<a&&!((c=o[s]).start.row>n);s++)if(c.start.row==n&&c.start.column>=e.column&&(c.start.column==e.column&&this.$bias<=0||(c.start.column+=h,c.start.row+=l)),c.end.row==n&&c.end.column>=e.column){if(c.end.column==e.column&&this.$bias<0)continue;c.end.column==e.column&&0<h&&s<a-1&&c.end.column>c.start.column&&c.end.column==o[s+1].start.column&&(c.end.column-=h),c.end.column+=h,c.end.row+=l}}else{var c;for(l=n-r,h=e.column-i.column;s<a&&!((c=o[s]).start.row>r);s++)c.end.row<r&&(n<c.end.row||n==c.end.row&&e.column<c.end.column)?(c.end.row=n,c.end.column=e.column):c.end.row==r?c.end.column<=i.column?(l||c.end.column>e.column)&&(c.end.column=e.column,c.end.row=e.row):(c.end.column+=h,c.end.row+=l):c.end.row>r&&(c.end.row+=l),c.start.row<r&&(n<c.start.row||n==c.start.row&&e.column<c.start.column)?(c.start.row=n,c.start.column=e.column):c.start.row==r?c.start.column<=i.column?(l||c.start.column>e.column)&&(c.start.column=e.column,c.start.row=e.row):(c.start.column+=h,c.start.row+=l):c.start.row>r&&(c.start.row+=l)}if(0!=l&&s<a)for(;s<a;s++)(c=o[s]).start.row+=l,c.end.row+=l}}).call(n.prototype),e.RangeList=n})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(t,e,i){"use strict";function n(t,e){t.row-=e.row,0==t.row&&(t.column-=e.column)}function r(t,e){0==t.row&&(t.column+=e.column),t.row+=e.row}var o=t("../range_list").RangeList,s=t("../lib/oop"),a=e.Fold=function(t,e){this.foldLine=null,this.placeholder=e,this.range=t,this.start=t.start,this.end=t.end,this.sameRow=t.start.row==t.end.row,this.subFolds=this.ranges=[]};s.inherits(a,o),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach((function(e){e.setFoldLine(t)}))},this.clone=function(){var t=this.range.clone(),e=new a(t,this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},this.addSubFold=function(t){if(!this.range.isEqual(t)){var e,i;e=t,i=this.start,n(e.start,i),n(e.end,i);for(var r=t.start.row,o=t.start.column,s=0,a=-1;s<this.subFolds.length&&1==(a=this.subFolds[s].range.compare(r,o));s++);var l=this.subFolds[s],h=0;if(0==a){if(l.range.containsRange(t))return l.addSubFold(t);h=1}r=t.range.end.row,o=t.range.end.column;var c=s;for(a=-1;c<this.subFolds.length&&1==(a=this.subFolds[c].range.compare(r,o));c++);0==a&&c++;for(var u=this.subFolds.splice(s,c-s,t),d=0==a?u.length-1:u.length,f=h;f<d;f++)t.addSubFold(u[f]);return t.setFoldLine(this.foldLine),t}},this.restoreRange=function(t){return e=t,i=this.start,r(e.start,i),void r(e.end,i);var e,i}}.call(a.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(t,e,i){"use strict";var n=t("../range").Range,r=t("./fold_line").FoldLine,o=t("./fold").Fold,s=t("../token_iterator").TokenIterator;e.Folding=function(){this.getFoldAt=function(t,e,i){var n=this.getFoldLine(t);if(!n)return null;for(var r=n.folds,o=0;o<r.length;o++){var s=r[o].range;if(s.contains(t,e)){if(1==i&&s.isEnd(t,e)&&!s.isEmpty())continue;if(-1==i&&s.isStart(t,e)&&!s.isEmpty())continue;return r[o]}}},this.getFoldsInRange=function(t){var e=t.start,i=t.end,n=this.$foldData,r=[];e.column+=1,--i.column;for(var o=0;o<n.length;o++)if(2!=(l=n[o].range.compareRange(t))){if(-2==l)break;for(var s=n[o].folds,a=0;a<s.length;a++){var l,h=s[a];if(-2==(l=h.range.compareRange(t)))break;if(2!=l){if(42==l)break;r.push(h)}}}return--e.column,i.column+=1,r},this.getFoldsInRangeList=function(t){var e;return Array.isArray(t)?(e=[],t.forEach((function(t){e=e.concat(this.getFoldsInRange(t))}),this)):e=this.getFoldsInRange(t),e},this.getAllFolds=function(){for(var t=[],e=this.$foldData,i=0;i<e.length;i++)for(var n=0;n<e[i].folds.length;n++)t.push(e[i].folds[n]);return t},this.getFoldStringAt=function(t,e,i,n){if(!(n=n||this.getFoldLine(t)))return null;for(var r,o,s={end:{column:0}},a=0;a<n.folds.length;a++){var l=(o=n.folds[a]).range.compareEnd(t,e);if(-1==l){r=this.getLine(o.start.row).substring(s.end.column,o.start.column);break}if(0===l)return null;s=o}return r=r||this.getLine(o.start.row).substring(s.end.column),-1==i?r.substring(0,e-s.end.column):1==i?r.substring(e-s.end.column):r},this.getFoldLine=function(t,e){var i=this.$foldData,n=0;for(e&&(n=i.indexOf(e)),-1==n&&(n=0);n<i.length;n++){var r=i[n];if(r.start.row<=t&&r.end.row>=t)return r;if(r.end.row>t)return null}return null},this.getNextFoldLine=function(t,e){var i=this.$foldData,n=0;for(e&&(n=i.indexOf(e)),-1==n&&(n=0);n<i.length;n++){var r=i[n];if(r.end.row>=t)return r}return null},this.getFoldedRowCount=function(t,e){for(var i=this.$foldData,n=e-t+1,r=0;r<i.length;r++){var o=i[r],s=o.end.row,a=o.start.row;if(e<=s){a<e&&(t<=a?n-=e-a:n=0);break}t<=s&&(n-=t<=a?s-a:s-t+1)}return n},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort((function(t,e){return t.start.row-e.start.row})),t},this.addFold=function(t,e){var i,n=this.$foldData,s=!1;t instanceof o?i=t:(i=new o(e,t)).collapseChildren=e.collapseChildren,this.$clipRangeToDocument(i.range);var a=i.start.row,l=i.start.column,h=i.end.row,c=i.end.column,u=this.getFoldAt(a,l,1),d=this.getFoldAt(h,c,-1);if(u&&d==u)return u.addSubFold(i);u&&!u.range.isStart(a,l)&&this.removeFold(u),d&&!d.range.isEnd(h,c)&&this.removeFold(d);var f=this.getFoldsInRange(i.range);0<f.length&&(this.removeFolds(f),i.collapseChildren||f.forEach((function(t){i.addSubFold(t)})));for(var p=0;p<n.length;p++){var g=n[p];if(h==g.start.row){g.addFold(i),s=!0;break}if(a==g.end.row){if(g.addFold(i),s=!0,!i.sameRow){var m=n[p+1];if(m&&m.start.row==h){g.merge(m);break}}break}if(h<=g.start.row)break}return s||(g=this.$addFoldLine(new r(this.$foldData,i))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:i,action:"add"}),i},this.addFolds=function(t){t.forEach((function(t){this.addFold(t)}),this)},this.removeFold=function(t){var e,i=t.foldLine,n=i.start.row,r=i.end.row,o=this.$foldData,s=i.folds;1==s.length?o.splice(o.indexOf(i),1):i.range.isEnd(t.end.row,t.end.column)?(s.pop(),i.end.row=s[s.length-1].end.row,i.end.column=s[s.length-1].end.column):i.range.isStart(t.start.row,t.start.column)?(s.shift(),i.start.row=s[0].start.row,i.start.column=s[0].start.column):t.sameRow?s.splice(s.indexOf(t),1):((s=(e=i.split(t.start.row,t.start.column)).folds).shift(),e.start.row=s[0].start.row,e.start.column=s[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:t,action:"remove"})},this.removeFolds=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);e.forEach((function(t){this.removeFold(t)}),this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach((function(e){t.restoreRange(e),this.addFold(e)}),this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach((function(t){this.expandFold(t)}),this)},this.unfold=function(t,e){var i,r;if(null==t?(i=new n(0,0,this.getLength(),0),null==e&&(e=!0)):i="number"==typeof t?new n(t,0,t,this.getLine(t).length):"row"in t?n.fromPoints(t,t):t,r=this.getFoldsInRangeList(i),0!=e?this.removeFolds(r):this.expandFolds(r),r.length)return r},this.isRowFolded=function(t,e){return!!this.getFoldLine(t,e)},this.getRowFoldEnd=function(t,e){var i=this.getFoldLine(t,e);return i?i.end.row:t},this.getRowFoldStart=function(t,e){var i=this.getFoldLine(t,e);return i?i.start.row:t},this.getFoldDisplayLine=function(t,e,i,n,r){null==n&&(n=t.start.row),null==r&&(r=0),null==e&&(e=t.end.row),null==i&&(i=this.getLine(e).length);var o=this.doc,s="";return t.walk((function(t,e,i,a){if(!(e<n)){if(e==n){if(i<r)return;a=Math.max(r,a)}s+=null!=t?t:o.getLine(e).substring(a,i)}}),e,i),s},this.getDisplayLine=function(t,e,i,n){var r=this.getFoldLine(t);if(r)return this.getFoldDisplayLine(r,t,e,i,n);var o=this.doc.getLine(t);return o.substring(n||0,e||o.length)},this.$cloneFoldData=function(){var t=[];return t=this.$foldData.map((function(e){var i=e.folds.map((function(t){return t.clone()}));return new r(t,i)}))},this.toggleFold=function(t){var e,i=this.selection.getRange();if(i.isEmpty()){var n,r=i.start;if(n=this.getFoldAt(r.row,r.column))return void this.expandFold(n);(e=this.findMatchingBracket(r))?1==i.comparePoint(e)?i.end=e:(i.start=e,i.start.column++,i.end.column--):(e=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==i.comparePoint(e)?i.end=e:i.start=e,i.start.column++):i=this.getCommentFoldRange(r.row,r.column)||i}else{var o=this.getFoldsInRange(i);if(t&&o.length)return void this.expandFolds(o);1==o.length&&(n=o[0])}if((n=n||this.getFoldAt(i.start.row,i.start.column))&&n.range.toString()==i.toString())this.expandFold(n);else{var s="...";if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(t,e,i){var r=new s(this,t,e),o=r.getCurrentToken(),a=o&&o.type;if(o&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start");var l=new RegExp(a),h=new n;if(1!=i){for(;(o=r.stepBackward())&&l.test(o.type););r.stepForward()}if(h.start.row=r.getCurrentTokenRow(),h.start.column=r.getCurrentTokenColumn()+2,r=new s(this,t,e),-1!=i){var c=-1;do{if(o=r.stepForward(),-1==c){var u=this.getState(r.$row);l.test(u)||(c=r.$row)}else if(r.$row>c)break}while(o&&l.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return h.end.row=r.getCurrentTokenRow(),h.end.column=r.getCurrentTokenColumn()+o.value.length-2,h}},this.foldAll=function(t,e,i,n){null==i&&(i=1e5);var r=this.foldWidgets;if(r){e=e||this.getLength();for(var o,s=t=t||0;s<e;s++)null==r[s]&&(r[s]=this.getFoldWidget(s)),"start"==r[s]&&(n&&!n(s)||(o=this.getFoldWidgetRange(s))&&o.isMultiLine()&&o.end.row<=e&&o.start.row>=t&&(s=o.end.row,o.collapseChildren=i,this.addFold("...",o)))}},this.foldToLevel=function(t){for(this.foldAll();0<t--;)this.unfold(null,!1)},this.foldAllComments=function(){var t=this;this.foldAll(null,null,null,(function(e){for(var i=t.getTokens(e),n=0;n<i.length;n++){var r=i[n];if("text"!=r.type||!/^\s+$/.test(r.value))return!!/comment/.test(r.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");var e;this.$foldStyle!=t&&("manual"==(this.$foldStyle=t)&&this.unfold(),e=this.$foldMode,this.$setFolding(null),this.$setFolding(e))},this.$setFolding=function(t){this.$foldMode!=t&&(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),t&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(t,e){var i=this.foldWidgets;if(!i||e&&i[t])return{};for(var n=t-1;0<=n;){var r=i[n];if(null==r&&(r=i[n]=this.getFoldWidget(n)),"start"==r){var o=this.getFoldWidgetRange(n),s=s||o;if(o&&o.end.row>=t)break}n--}return{range:-1!==n&&o,firstRange:s}},this.onFoldWidgetClick=function(t,e){var i,n={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};this.$toggleFoldWidget(t,n)||(i=e.target||e.srcElement)&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")},this.$toggleFoldWidget=function(t,e){if(this.getFoldWidget){var i=this.getFoldWidget(t),n=this.getLine(t),r="end"===i?-1:1,o=this.getFoldAt(t,-1==r?0:n.length,r);if(o)return e.children||e.all?this.removeFold(o):this.expandFold(o),o;var s,a,l,h=this.getFoldWidgetRange(t,!0);return h&&!h.isMultiLine()&&(o=this.getFoldAt(h.start.row,h.start.column,1))&&h.isEqual(o.range)?(this.removeFold(o),o):(e.siblings?((s=this.getParentFoldRangeData(t)).range&&(a=s.range.start.row+1,l=s.range.end.row),this.foldAll(a,l,e.all?1e4:0)):e.children?(l=h?h.end.row:this.getLength(),this.foldAll(t+1,l,e.all?1e4:0)):h&&(e.all&&(h.collapseChildren=1e4),this.addFold("...",h)),h)}},this.toggleFoldWidget=function(t){var e,i,n=this.selection.getCursor().row,r=(n=this.getRowFoldStart(n),this.$toggleFoldWidget(n,{}));r||(r=(e=this.getParentFoldRangeData(n,!0)).range||e.firstRange)&&(n=r.start.row,(i=this.getFoldAt(n,this.getLine(n).length,1))?this.removeFold(i):this.addFold("...",r))},this.updateFoldWidgets=function(t){var e,i=t.start.row,n=t.end.row-i;0==n?this.foldWidgets[i]=null:"remove"==t.action?this.foldWidgets.splice(i,1+n,null):((e=Array(1+n)).unshift(i,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(t,e,i){"use strict";var n=t("../token_iterator").TokenIterator,r=t("../range").Range;e.BracketMatch=function(){this.findMatchingBracket=function(t,e){if(0==t.column)return null;var i=e||this.getLine(t.row).charAt(t.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],t):this.$findOpeningBracket(n[2],t):null},this.getBracketRange=function(t){var e,i,n=this.getLine(t.row),o=!0,s=n.charAt(t.column-1),a=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(a||(s=n.charAt(t.column),t={row:t.row,column:t.column+1},a=s&&s.match(/([\(\[\{])|([\)\]\}])/),o=!1),!a)return null;if(a[1]){if(!(i=this.$findClosingBracket(a[1],t)))return null;e=r.fromPoints(t,i),o||(e.end.column++,e.start.column--),e.cursor=e.end}else{if(!(i=this.$findOpeningBracket(a[2],t)))return null;e=r.fromPoints(i,t),o||(e.start.column++,e.end.column--),e.cursor=e.start}return e},this.getMatchingBracketRanges=function(t){var e=this.getLine(t.row),i=e.charAt(t.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(n||(i=e.charAt(t.column),t={row:t.row,column:t.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),!n)return null;var o=new r(t.row,t.column-1,t.row,t.column),s=n[1]?this.$findClosingBracket(n[1],t):this.$findOpeningBracket(n[2],t);return s?[o,new r(s.row,s.column,s.row,s.column+1)]:[o]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(t,e,i){var r=this.$brackets[t],o=1,s=new n(this,e.row,e.column),a=s.getCurrentToken();if(a=a||s.stepForward()){i=i||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=e.column-s.getCurrentTokenColumn()-2,h=a.value;;){for(;0<=l;){var c=h.charAt(l);if(c==r){if(0==--o)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else c==t&&(o+=1);--l}for(;(a=s.stepBackward())&&!i.test(a.type););if(null==a)break;l=(h=a.value).length-1}return null}},this.$findClosingBracket=function(t,e,i){var r=this.$brackets[t],o=1,s=new n(this,e.row,e.column),a=s.getCurrentToken();if(a=a||s.stepForward()){i=i||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=e.column-s.getCurrentTokenColumn();;){for(var h=a.value,c=h.length;l<c;){var u=h.charAt(l);if(u==r){if(0==--o)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==t&&(o+=1);l+=1}for(;(a=s.stepForward())&&!i.test(a.type););if(null==a)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/lang"),o=t("./bidihandler").BidiHandler,s=t("./config"),a=t("./lib/event_emitter").EventEmitter,l=t("./selection").Selection,h=t("./mode/text").Mode,c=t("./range").Range,u=t("./document").Document,d=t("./background_tokenizer").BackgroundTokenizer,f=t("./search_highlight").SearchHighlight,p=function(t,e){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new u(t)),this.setDocument(t),this.selection=new l(this),this.$bidiHandler=new o(this),s.resetOptions(this),this.setMode(e),s._signal("session",this)};p.$uid=0,function(){function t(t){return!(t<4352)&&(4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12288<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510)}n.implement(this,a),this.setDocument=function(t){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=t).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(t){if(!t)return this.$docRowCache=[],void(this.$screenRowCache=[]);var e=this.$docRowCache.length,i=this.$getRowCacheIndex(this.$docRowCache,t)+1;i<e&&(this.$docRowCache.splice(i,e),this.$screenRowCache.splice(i,e))},this.$getRowCacheIndex=function(t,e){for(var i=0,n=t.length-1;i<=n;){var r=i+n>>1,o=t[r];if(o<e)i=1+r;else{if(!(e<o))return r;n=r-1}}return i-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(t){var e=t.data;this.$resetRowCache(e.start.row)},this.onChange=function(t){this.$modified=!0,this.$bidiHandler.onChange(t),this.$resetRowCache(t.start.row);var e=this.$updateInternalDataOnChange(t);!this.$fromUndo&&this.$undoManager&&(e&&e.length&&(this.$undoManager.add({action:"removeFolds",folds:e},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(t,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(t),this._signal("change",t)},this.setValue=function(t){this.doc.setValue(t),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(t){return this.bgTokenizer.getState(t)},this.getTokens=function(t){return this.bgTokenizer.getTokens(t)},this.getTokenAt=function(t,e){var i,n=this.bgTokenizer.getTokens(t),r=0;if(null==e){var o=n.length-1;r=this.getLine(t).length}else for(o=0;o<n.length&&!(e<=(r+=n[o].value.length));o++);return(i=n[o])?(i.index=o,i.start=r-i.value.length,i):null},this.setUndoManager=function(t){var e;this.$undoManager=t,this.$informUndoManager&&this.$informUndoManager.cancel(),t?(e=this,t.addSession(this),this.$syncInformUndoManager=function(){e.$informUndoManager.cancel(),e.mergeUndoDeltas=!1},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(t){this.setOption("useSoftTabs",t)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(t){this.setOption("tabSize",t)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(t){return this.$useSoftTabs&&t.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(t){this.setOption("navigateWithinSoftTabs",t)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(t){this.setOption("overwrite",t)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(t,e){this.$decorations[t]||(this.$decorations[t]=""),this.$decorations[t]+=" "+e,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(t,e){this.$decorations[t]=(this.$decorations[t]||"").replace(" "+e,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(t){this.$breakpoints=[];for(var e=0;e<t.length;e++)this.$breakpoints[t[e]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(t,e){void 0===e&&(e="ace_breakpoint"),e?this.$breakpoints[t]=e:delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(t){delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.addMarker=function(t,e,i,n){var r=this.$markerId++,o={range:t,type:i||"line",renderer:"function"==typeof i?i:null,clazz:e,inFront:!!n,id:r};return n?(this.$frontMarkers[r]=o,this._signal("changeFrontMarker")):(this.$backMarkers[r]=o,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(t,e){if(t.update){var i=this.$markerId++;return t.id=i,t.inFront=!!e,e?(this.$frontMarkers[i]=t,this._signal("changeFrontMarker")):(this.$backMarkers[i]=t,this._signal("changeBackMarker")),t}},this.removeMarker=function(t){var e=this.$frontMarkers[t]||this.$backMarkers[t];e&&(delete(e.inFront?this.$frontMarkers:this.$backMarkers)[t],this._signal(e.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(t){return t?this.$frontMarkers:this.$backMarkers},this.highlight=function(t){var e;this.$searchHighlight||(e=new f(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(e)),this.$searchHighlight.setRegexp(t)},this.highlightLines=function(t,e,i,n){"number"!=typeof e&&(i=e,e=t),i=i||"ace_step";var r=new c(t,0,e,1/0);return r.id=this.addMarker(r,i,"fullLine",n),r},this.setAnnotations=function(t){this.$annotations=t,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r?\n)/m);this.$autoNewLine=e?e[1]:"\n"},this.getWordRange=function(t,e){var i,n=this.getLine(t),r=!1;0<e&&(r=!!n.charAt(e-1).match(this.tokenRe)),i=(r=r||!!n.charAt(e).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(n.slice(e-1,e+1))?/\s/:this.nonTokenRe;var o=e;if(0<o){for(;0<=--o&&n.charAt(o).match(i););o++}for(var s=e;s<n.length&&n.charAt(s).match(i);)s++;return new c(t,o,t,s)},this.getAWordRange=function(t,e){for(var i=this.getWordRange(t,e),n=this.getLine(i.end.row);n.charAt(i.end.column).match(/[ \t]/);)i.end.column+=1;return i},this.setNewLineMode=function(t){this.doc.setNewLineMode(t)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(t){this.setOption("useWorker",t)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(t){var e=t.data;this.bgTokenizer.start(e.first),this._signal("tokenizerUpdate",t)},this.$modes=s.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(t,e){if(t&&"object"==typeof t){if(t.getTokenizer)return this.$onChangeMode(t);var i=t,n=i.path}else n=t||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new h),this.$modes[n]&&!i)return this.$onChangeMode(this.$modes[n]),void(e&&e());this.$modeId=n,s.loadModule(["mode",n],function(t){if(this.$modeId!==n)return e&&e();this.$modes[n]&&!i?this.$onChangeMode(this.$modes[n]):t&&t.Mode&&(t=new t.Mode(i),i||((this.$modes[n]=t).$id=n),this.$onChangeMode(t)),e&&e()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(t,e){var i,n,r,o;e||(this.$modeId=t.$id),this.$mode!==t&&(i=this.$mode,this.$mode=t,this.$stopWorker(),this.$useWorker&&this.$startWorker(),void 0!==(n=t.getTokenizer()).on&&(r=this.onReloadTokenizer.bind(this),n.on("update",r)),this.bgTokenizer?this.bgTokenizer.setTokenizer(n):(this.bgTokenizer=new d(n),(o=this).bgTokenizer.on("update",(function(t){o._signal("tokenizerUpdate",t)}))),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=t.tokenRe,this.nonTokenRe=t.nonTokenRe,e||(t.attachToSession&&t.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(t.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:i,mode:t})))},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(t){s.warn("Could not load worker",t),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(t){this.$scrollTop===t||isNaN(t)||(this.$scrollTop=t,this._signal("changeScrollTop",t))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(t){this.$scrollLeft===t||isNaN(t)||(this.$scrollLeft=t,this._signal("changeScrollLeft",t))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach((function(e){e&&e.screenWidth>t&&(t=e.screenWidth)})),this.lineWidgetWidth=t},this.$computeWidth=function(t){if(this.$modified||t){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var e=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,r=0,o=this.$foldData[r],s=o?o.start.row:1/0,a=e.length,l=0;l<a;l++){if(s<l){if(a<=(l=o.end.row+1))break;s=(o=this.$foldData[r++])?o.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(e[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(t){return this.doc.getLine(t)},this.getLines=function(t,e){return this.doc.getLines(t,e)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(t){return this.doc.getTextRange(t||this.selection.getRange())},this.insert=function(t,e){return this.doc.insert(t,e)},this.remove=function(t){return this.doc.remove(t)},this.removeFullLines=function(t,e){return this.doc.removeFullLines(t,e)},this.undoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var i=t.length-1;-1!=i;i--){var n=t[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!e&&this.$undoSelect&&(t.selectionBefore?this.selection.fromJSON(t.selectionBefore):this.selection.setRange(this.$getUndoSelection(t,!0))),this.$fromUndo=!1}},this.redoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var i=0;i<t.length;i++){var n=t[i];"insert"!=n.action&&"remove"!=n.action||this.doc.$safeApplyDelta(n)}!e&&this.$undoSelect&&(t.selectionAfter?this.selection.fromJSON(t.selectionAfter):this.selection.setRange(this.$getUndoSelection(t,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(t){this.$undoSelect=t},this.$getUndoSelection=function(t,e){function i(t){return e?"insert"!==t.action:"insert"===t.action}for(var n,r,o=0;o<t.length;o++){var s=t[o];s.start&&(n?i(s)?(r=s.start,-1==n.compare(r.row,r.column)&&n.setStart(r),r=s.end,1==n.compare(r.row,r.column)&&n.setEnd(r)):(r=s.start,-1==n.compare(r.row,r.column)&&(n=c.fromPoints(s.start,s.start))):n=i(s)?c.fromPoints(s.start,s.end):c.fromPoints(s.start,s.start))}return n},this.replace=function(t,e){return this.doc.replace(t,e)},this.moveText=function(t,e,i){var n,r,o,s,a=this.getTextRange(t),l=this.getFoldsInRange(t),h=c.fromPoints(e,e);return i||(this.remove(t),o=t.start.row-t.end.row,(s=o?-t.end.column:t.start.column-t.end.column)&&(h.start.row==t.end.row&&h.start.column>t.end.column&&(h.start.column+=s),h.end.row==t.end.row&&h.end.column>t.end.column&&(h.end.column+=s)),o&&h.start.row>=t.end.row&&(h.start.row+=o,h.end.row+=o)),h.end=this.insert(h.start,a),l.length&&(n=t.start,r=h.start,o=r.row-n.row,s=r.column-n.column,this.addFolds(l.map((function(t){return(t=t.clone()).start.row==n.row&&(t.start.column+=s),t.end.row==n.row&&(t.end.column+=s),t.start.row+=o,t.end.row+=o,t})))),h},this.indentRows=function(t,e,i){i=i.replace(/\t/g,this.getTabString());for(var n=t;n<=e;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(t){for(var e=t.collapseRows(),i=new c(0,0,0,0),n=this.getTabSize(),r=e.start.row;r<=e.end.row;++r){var o=this.getLine(r);i.start.row=r,i.end.row=r;for(var s=0;s<n&&" "==o.charAt(s);++s);s<n&&"\t"==o.charAt(s)?(i.start.column=s,i.end.column=s+1):(i.start.column=0,i.end.column=s),this.remove(i)}},this.$moveLines=function(t,e,i){if(t=this.getRowFoldStart(t),e=this.getRowFoldEnd(e),i<0){if((r=this.getRowFoldStart(t+i))<0)return 0;var n=r-t}else if(0<i){var r;if((r=this.getRowFoldEnd(e+i))>this.doc.getLength()-1)return 0;n=r-e}else t=this.$clipRowToDocument(t),n=(e=this.$clipRowToDocument(e))-t+1;var o=new c(t,0,e,Number.MAX_VALUE),s=this.getFoldsInRange(o).map((function(t){return(t=t.clone()).start.row+=n,t.end.row+=n,t})),a=0==i?this.doc.getLines(t,e):this.doc.removeFullLines(t,e);return this.doc.insertFullLines(t+n,a),s.length&&this.addFolds(s),n},this.moveLinesUp=function(t,e){return this.$moveLines(t,e,-1)},this.moveLinesDown=function(t,e){return this.$moveLines(t,e,1)},this.duplicateLines=function(t,e){return this.$moveLines(t,e,0)},this.$clipRowToDocument=function(t){return Math.max(0,Math.min(t,this.doc.getLength()-1))},this.$clipColumnToRow=function(t,e){return e<0?0:Math.min(this.doc.getLine(t).length,e)},this.$clipPositionToDocument=function(t,e){var i;return e=Math.max(0,e),e=t<0?t=0:(i=this.doc.getLength())<=t?(t=i-1,this.doc.getLine(i-1).length):Math.min(this.doc.getLine(t).length,e),{row:t,column:e}},this.$clipRangeToDocument=function(t){t.start.row<0?(t.start.row=0,t.start.column=0):t.start.column=this.$clipColumnToRow(t.start.row,t.start.column);var e=this.doc.getLength()-1;return t.end.row>e?(t.end.row=e,t.end.column=this.doc.getLine(e).length):t.end.column=this.$clipColumnToRow(t.end.row,t.end.column),t},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(t){var e;t!=this.$useWrapMode&&(this.$useWrapMode=t,this.$modified=!0,this.$resetRowCache(0),t&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(t,e){this.$wrapLimitRange.min===t&&this.$wrapLimitRange.max===e||(this.$wrapLimitRange={min:t,max:e},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(t,e){var i=this.$wrapLimitRange;i.max<0&&(i={min:e,max:e});var n=this.$constrainWrapLimit(t,i.min,i.max);return n!=this.$wrapLimit&&1<n&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(t,e,i){return e&&(t=Math.max(e,t)),i&&(t=Math.min(i,t)),t},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(t){this.setWrapLimitRange(t,t)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(t){var e=this.$useWrapMode,i=t.action,n=t.start,r=t.end,o=n.row,s=r.row,a=s-o,l=null;if(this.$updating=!0,0!=a)if("remove"===i){this[e?"$wrapData":"$rowLengthCache"].splice(o,a);var h=this.$foldData;l=this.getFoldsInRange(t);this.removeFolds(l);var c,u=0;for((g=this.getFoldLine(r.row))&&(g.addRemoveChars(r.row,r.column,n.column-r.column),g.shiftRow(-a),(c=this.getFoldLine(o))&&c!==g&&(c.merge(g),g=c),u=h.indexOf(g)+1);u<h.length;u++)(g=h[u]).start.row>=r.row&&g.shiftRow(-a);s=o}else{var d=Array(a);d.unshift(o,0);var f=e?this.$wrapData:this.$rowLengthCache;f.splice.apply(f,d);var p;h=this.$foldData,u=0;for((g=this.getFoldLine(o))&&(0==(p=g.range.compareInside(n.row,n.column))?(g=g.split(n.row,n.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,r.column-n.column)):-1==p&&(g.addRemoveChars(o,0,r.column-n.column),g.shiftRow(a)),u=h.indexOf(g)+1);u<h.length;u++)(g=h[u]).start.row>=o&&g.shiftRow(a)}else{var g;a=Math.abs(t.start.column-t.end.column);"remove"===i&&(l=this.getFoldsInRange(t),this.removeFolds(l),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,n.column,a)}return e&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,e?this.$updateWrapData(o,s):this.$updateRowLengthCache(o,s),l},this.$updateRowLengthCache=function(t,e,i){this.$rowLengthCache[t]=null,this.$rowLengthCache[e]=null},this.$updateWrapData=function(t,n){var r,o,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,h=this.$wrapLimit,c=t;for(n=Math.min(n,s.length-1);c<=n;)(o=this.getFoldLine(c,o))?(r=[],o.walk(function(t,n,o,a){var l;if(null!=t){(l=this.$getDisplayTokens(t,r.length))[0]=e;for(var h=1;h<l.length;h++)l[h]=i}else l=this.$getDisplayTokens(s[n].substring(a,o),r.length);r=r.concat(l)}.bind(this),o.end.row,s[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(r,h,a),c=o.end.row+1):(r=this.$getDisplayTokens(s[c]),l[c]=this.$computeWrapSplits(r,h,a),c++)};var e=3,i=4;this.$computeWrapSplits=function(t,n,r){function o(e){for(var i=e-l,n=l;n<e;n++){var o=t[n];12!==o&&2!==o||--i}s.length||(f=function(){var e=0;if(0===d)return e;if(u)for(var i=0;i<t.length;i++){var n=t[i];if(10==n)e+=1;else{if(11!=n){if(12==n)continue;break}e+=r}}return c&&!1!==u&&(e+=r),Math.min(e,d)}(),s.indent=f),h+=i,s.push(h),l=e}if(0==t.length)return[];for(var s=[],a=t.length,l=0,h=0,c=this.$wrapAsCode,u=this.$indentedSoftWrap,d=n<=Math.max(2*r,8)||!1===u?0:Math.floor(n/2),f=0;n-f<a-l;){var p=l+n-f;if(10<=t[p-1]&&10<=t[p])o(p);else if(t[p]!=e&&t[p]!=i){for(var g=Math.max(p-(n-(n>>2)),l-1);g<p&&t[p]<e;)p--;if(c){for(;g<p&&t[p]<e;)p--;for(;g<p&&9==t[p];)p--}else for(;g<p&&t[p]<10;)p--;g<p?o(++p):(2==t[p=l+n]&&p--,o(p-f))}else{for(;p!=l-1&&t[p]!=e;p--);if(l<p){o(p);continue}for(p=l+n;p<t.length&&t[p]==i;p++);if(p==t.length)break;o(p)}}return s},this.$getDisplayTokens=function(e,i){var n,r=[];i=i||0;for(var o=0;o<e.length;o++){var s=e.charCodeAt(o);if(9==s){n=this.getScreenTabSize(r.length+i),r.push(11);for(var a=1;a<n;a++)r.push(12)}else 32==s?r.push(10):39<s&&s<48||57<s&&s<64?r.push(9):4352<=s&&t(s)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,i,n){if(0==i)return[0,0];var r,o;for(null==i&&(i=1/0),n=n||0,o=0;o<e.length&&(9==(r=e.charCodeAt(o))?n+=this.getScreenTabSize(n):4352<=r&&t(r)?n+=2:n+=1,!(i<n));o++);return[n,o]},this.lineWidgets=null,this.getRowLength=function(t){var e=1;return this.lineWidgets&&(e+=this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0),this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+e:e},this.getRowLineCount=function(t){return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1:1},this.getRowWrapIndent=function(t){if(this.$useWrapMode){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE),i=this.$wrapData[e.row];return i.length&&i[0]<e.column?i.indent:0}return 0},this.getScreenLastRowColumn=function(t){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE);return this.documentToScreenColumn(e.row,e.column)},this.getDocumentLastRowColumn=function(t,e){var i=this.documentToScreenRow(t,e);return this.getScreenLastRowColumn(i)},this.getDocumentLastRowColumnPosition=function(t,e){var i=this.documentToScreenRow(t,e);return this.screenToDocumentPosition(i,Number.MAX_VALUE/10)},this.getRowSplitData=function(t){return this.$useWrapMode?this.$wrapData[t]:void 0},this.getScreenTabSize=function(t){return this.$tabSize-(t%this.$tabSize|0)},this.screenToDocumentRow=function(t,e){return this.screenToDocumentPosition(t,e).row},this.screenToDocumentColumn=function(t,e){return this.screenToDocumentPosition(t,e).column},this.screenToDocumentPosition=function(t,e,i){if(t<0)return{row:0,column:0};var n,r,o,s=0,a=0,l=0,h=0,c=this.$screenRowCache,u=this.$getRowCacheIndex(c,t),d=c.length;o=d&&0<=u?(l=c[u],s=this.$docRowCache[u],t>c[d-1]):!d;for(var f=this.getLength()-1,p=this.getNextFoldLine(s),g=p?p.start.row:1/0;l<=t&&!(t<l+(h=this.getRowLength(s))||f<=s);)l+=h,g<++s&&(s=p.end.row+1,g=(p=this.getNextFoldLine(s,p))?p.start.row:1/0),o&&(this.$docRowCache.push(s),this.$screenRowCache.push(l));if(p&&p.start.row<=s)n=this.getFoldDisplayLine(p),s=p.start.row;else{if(l+h<=t||f<s)return{row:f,column:this.getLine(f).length};n=this.getLine(s),p=null}var m,v=0,b=Math.floor(t-l);return!this.$useWrapMode||(m=this.$wrapData[s])&&(r=m[b],0<b&&m.length&&(v=m.indent,a=m[b-1]||m[m.length-1],n=n.substring(a))),void 0!==i&&this.$bidiHandler.isBidiRow(l+b,s,b)&&(e=this.$bidiHandler.offsetToCol(i)),a+=this.$getStringScreenWidth(n,e-v)[1],this.$useWrapMode&&r<=a&&(a=r-1),p?p.idxToPosition(a):{row:s,column:a}},this.documentToScreenPosition=function(t,e){var i=void 0===e?this.$clipPositionToDocument(t.row,t.column):this.$clipPositionToDocument(t,e);t=i.row,e=i.column;var n=0,r=null,o=null;(o=this.getFoldAt(t,e,1))&&(t=o.start.row,e=o.start.column);var s,a,l=0,h=this.$docRowCache,c=this.$getRowCacheIndex(h,t),u=h.length;a=u&&0<=c?(l=h[c],n=this.$screenRowCache[c],t>h[u-1]):!u;for(var d=this.getNextFoldLine(l),f=d?d.start.row:1/0;l<t;){if(f<=l){if(t<(s=d.end.row+1))break;f=(d=this.getNextFoldLine(s,d))?d.start.row:1/0}else s=l+1;n+=this.getRowLength(l),l=s,a&&(this.$docRowCache.push(l),this.$screenRowCache.push(n))}var p="",g=(r=d&&f<=l?(p=this.getFoldDisplayLine(d,t,e),d.start.row):(p=this.getLine(t).substring(0,e),t),0);if(this.$useWrapMode){var m=this.$wrapData[r];if(m){for(var v=0;p.length>=m[v];)n++,v++;p=p.substring(m[v-1]||0,p.length),g=0<v?m.indent:0}}return this.lineWidgets&&this.lineWidgets[l]&&this.lineWidgets[l].rowsAbove&&(n+=this.lineWidgets[l].rowsAbove),{row:n,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(t,e){return this.documentToScreenPosition(t,e).column},this.documentToScreenRow=function(t,e){return this.documentToScreenPosition(t,e).row},this.getScreenLength=function(){var t=0,e=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,r=0,o=(e=this.$foldData[r++])?e.start.row:1/0;n<i;){var s=this.$wrapData[n];t+=s?s.length+1:1,o<++n&&(n=e.end.row+1,o=(e=this.$foldData[r++])?e.start.row:1/0)}else{t=this.getLength();var a=this.$foldData;for(r=0;r<a.length;r++)t-=(e=a[r]).end.row-e.start.row}return this.lineWidgets&&(t+=this.$getWidgetScreenLength()),t},this.$setFontMetrics=function(t){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,i,n){if(0===i)return[0,0];var r,o;for(i=i||1/0,n=n||0,o=0;o<e.length&&!(i<(n+="\t"===(r=e.charAt(o))?this.getScreenTabSize(n):t.getCharacterWidth(r)));o++);return[n,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=t}.call(p.prototype),t("./edit_session/folding").Folding.call(p.prototype),t("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(t){var e;t&&"off"!=t?"free"==t?t=!0:"printMargin"==t?t=-1:"string"==typeof t&&(t=parseInt(t,10)||!1):t=!1,this.$wrap!=t&&((this.$wrap=t)?(e="number"==typeof t?t:null,this.setWrapLimitRange(e,e),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(t){(t="auto"==t?"text"!=this.$mode.type:"text"!=t)!=this.$wrapAsCode&&(this.$wrapAsCode=t,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(t){this.$useWorker=t,this.$stopWorker(),t&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(t){0<(t=parseInt(t))&&this.$tabSize!==t&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=t,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(t){this.setFoldStyle(t)},handlesSet:!0},overwrite:{set:function(t){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(t){this.doc.setNewLineMode(t)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(t){this.setMode(t)},get:function(){return this.$modeId},handlesSet:!0}}),e.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,i){"use strict";function n(){this.$options={}}var r=t("./lib/lang"),o=t("./lib/oop"),s=t("./range").Range;(function(){this.set=function(t){return o.mixin(this.$options,t),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var e=this.$options,i=this.$matchIterator(t,e);if(!i)return!1;var n=null;return i.forEach((function(t,i,r,o){return n=new s(t,i,r,o),!(i==o&&e.start&&e.start.start&&0!=e.skipCurrent&&n.isEqual(e.start)&&(n=null,1))})),n},this.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var i=e.range,n=i?t.getLines(i.start.row,i.end.row):t.doc.getAllLines(),o=[],a=e.re;if(e.$isMultiLine){var l,h=a.length,c=n.length-h;t:for(var u=a.offset||0;u<=c;u++){for(var d=0;d<h;d++)if(-1==n[u+d].search(a[d]))continue t;var f=n[u],p=n[u+h-1],g=f.length-f.match(a[0])[0].length,m=p.match(a[h-1])[0].length;l&&l.end.row===u&&l.end.column>g||(o.push(l=new s(u,g,u+h-1,m)),2<h&&(u=u+h-2))}}else for(var v=0;v<n.length;v++){var b=r.getMatchOffsets(n[v],a);for(d=0;d<b.length;d++){var y=b[d];o.push(new s(v,y.offset,v,y.offset+y.length))}}if(i){var w=i.start.column,C=i.start.column;for(v=0,d=o.length-1;v<d&&o[v].start.column<w&&o[v].start.row==i.start.row;)v++;for(;v<d&&o[d].end.column>C&&o[d].end.row==i.end.row;)d--;for(o=o.slice(v,d+1),v=0,d=o.length;v<d;v++)o[v].start.row+=i.start.row,o[v].end.row+=i.start.row}return o},this.replace=function(t,e){var i=this.$options,n=this.$assembleRegExp(i);if(i.$isMultiLine)return e;if(n){var r=n.exec(t);if(!r||r[0].length!=t.length)return null;if(e=t.replace(n,e),i.preserveCase){e=e.split("");for(var o=Math.min(t.length,t.length);o--;){var s=t[o];s&&s.toLowerCase()!=s?e[o]=e[o].toUpperCase():e[o]=e[o].toLowerCase()}e=e.join("")}return e}},this.$assembleRegExp=function(t,e){function i(t){return/\w/.test(t)||o.regExp?"\\b":""}if(t.needle instanceof RegExp)return t.re=t.needle;var n,o,s=t.needle;if(!t.needle)return t.re=!1;t.regExp||(s=r.escapeRegExp(s)),t.wholeWord&&(o=t,s=i((n=s)[0])+n+i(n[n.length-1]));var a=t.caseSensitive?"gm":"gmi";if(t.$isMultiLine=!e&&/[\n\r]/.test(s),t.$isMultiLine)return t.re=this.$assembleMultilineRegExp(s,a);try{var l=new RegExp(s,a)}catch(t){l=!1}return t.re=l},this.$assembleMultilineRegExp=function(t,e){for(var i=t.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),n=[],r=0;r<i.length;r++)try{n.push(new RegExp(i[r],e))}catch(t){return!1}return n},this.$matchIterator=function(t,e){var i=this.$assembleRegExp(e);if(!i)return!1;var n=1==e.backwards,r=0!=e.skipCurrent,o=e.range,s=e.start;(s=s||(o?o[n?"end":"start"]:t.selection.getRange())).start&&(s=s[r!=n?"end":"start"]);var a,l,h,c=o?o.start.row:0,u=o?o.end.row:t.getLength()-1;return a=n?function(t){var i=s.row;if(!h(i,s.column,t)){for(i--;c<=i;i--)if(h(i,Number.MAX_VALUE,t))return;if(0!=e.wrap)for(i=u,c=s.row;c<=i;i--)if(h(i,Number.MAX_VALUE,t))return}}:function(t){var i=s.row;if(!h(i,s.column,t)){for(i+=1;i<=u;i++)if(h(i,0,t))return;if(0!=e.wrap)for(i=c,u=s.row;i<=u;i++)if(h(i,0,t))return}},h=e.$isMultiLine?(l=i.length,function(e,r,o){var s=n?e-l+1:e;if(!(s<0)){var a=t.getLine(s),h=a.search(i[0]);if(!(!n&&h<r||-1===h)){for(var c=1;c<l;c++)if(-1==(a=t.getLine(s+c)).search(i[c]))return;var u=a.match(i[l-1])[0].length;if(!(n&&r<u))return!!o(s,h,s+l-1,u)||void 0}}}):n?function(e,n,r){var o,s=t.getLine(e),a=[];for(i.lastIndex=0;o=i.exec(s);){var l=o[0].length,h=o.index;if(!l){if(h>=s.length)break;i.lastIndex=h+=1}if(o.index+l>n)break;a.push(o.index,l)}for(var c=a.length-1;0<=c;c-=2){var u=a[c-1];if(r(e,u,e,u+(l=a[c])))return!0}}:function(e,n,r){var o,s=t.getLine(e);for(i.lastIndex=n;o=i.exec(s);){var a,l=o[0].length;if(r(e,a=o.index,e,a+l))return!0;if(!l&&(i.lastIndex=a+=1,a>=s.length))return!1}},{forEach:a}}}).call(n.prototype),e.Search=n})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t,e){this.platform=e||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function r(t,e){n.call(this,t,e),this.$singleCommand=!1}var o=t("../lib/keys"),s=t("../lib/useragent"),a=o.KEY_MODS;r.prototype=n.prototype,function(){function t(t){return"object"==typeof t&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,e){var i=t&&("string"==typeof t?t:t.name);t=this.commands[i],e||delete this.commands[i];var n,r=this.commandKeyBinding;for(n in r){var o,s=r[n];s==t?delete r[n]:!Array.isArray(s)||-1!=(o=s.indexOf(t))&&(s.splice(o,1),1==s.length&&(r[n]=s[0]))}},this.bindKey=function(t,e,i){if("object"==typeof t&&t&&(null==i&&(i=t.position),t=t[this.platform]),t)return"function"==typeof e?this.addCommand({exec:e,bindKey:t,name:e.name||t}):void t.split("|").forEach((function(t){var n,r="";-1!=t.indexOf(" ")&&(t=(n=t.split(/\s+/)).pop(),n.forEach((function(t){var e=this.parseKeys(t),i=a[e.hashId]+e.key;r+=(r?" ":"")+i,this._addCommandToBinding(r,"chainKeys")}),this),r+=" ");var o=this.parseKeys(t),s=a[o.hashId]+o.key;this._addCommandToBinding(r+s,e,i)}),this)},this._addCommandToBinding=function(e,i,n){var r=this.commandKeyBinding;if(i)if(!r[e]||this.$singleCommand)r[e]=i;else{Array.isArray(r[e])?-1!=(s=r[e].indexOf(i))&&r[e].splice(s,1):r[e]=[r[e]],"number"!=typeof n&&(n=t(i));for(var o=r[e],s=0;s<o.length&&!(n<t(o[s]));s++);o.splice(s,0,i)}else delete r[e]},this.addCommands=function(t){t&&Object.keys(t).forEach((function(e){var i=t[e];if(i){if("string"==typeof i)return this.bindKey(i,e);"function"==typeof i&&(i={exec:i}),"object"==typeof i&&(i.name||(i.name=e),this.addCommand(i))}}),this)},this.removeCommands=function(t){Object.keys(t).forEach((function(e){this.removeCommand(t[e])}),this)},this.bindKeys=function(t){Object.keys(t).forEach((function(e){this.bindKey(e,t[e])}),this)},this._buildKeyHash=function(t){this.bindKey(t.bindKey,t)},this.parseKeys=function(t){var e=t.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(t){return t})),i=e.pop(),n=o[i];if(o.FUNCTION_KEYS[n])i=o.FUNCTION_KEYS[n].toLowerCase();else{if(!e.length)return{key:i,hashId:-1};if(1==e.length&&"shift"==e[0])return{key:i.toUpperCase(),hashId:-1}}for(var r=0,s=e.length;s--;){var a=o.KEY_MODS[e[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+e[s]+" in "+t),!1;r|=a}return{key:i,hashId:r}},this.findKeyCommand=function(t,e){var i=a[t]+e;return this.commandKeyBinding[i]},this.handleKeyboard=function(t,e,i,n){if(!(n<0)){var r=a[e]+i,o=this.commandKeyBinding[r];return t.$keyChain&&(t.$keyChain+=" "+r,o=this.commandKeyBinding[t.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(t.$keyChain&&(e&&4!=e||1!=i.length?(-1==e||0<n)&&(t.$keyChain=""):t.$keyChain=t.$keyChain.slice(0,-r.length-1)),{command:o}):(t.$keyChain=t.$keyChain||r,{command:"null"})}},this.getStatusText=function(t,e){return e.$keyChain||""}}.call(n.prototype),e.HashHandler=n,e.MultiHashHandler=r})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(t,e,i){"use strict";function n(t,e){o.call(this,e,t),this.byName=this.commands,this.setDefaultHandler("exec",(function(t){return t.command.exec(t.editor,t.args||{})}))}var r=t("../lib/oop"),o=t("../keyboard/hash_handler").MultiHashHandler,s=t("../lib/event_emitter").EventEmitter;r.inherits(n,o),function(){r.implement(this,s),this.exec=function(t,e,i){if(Array.isArray(t)){for(var n=t.length;n--;)if(this.exec(t[n],e,i))return!0;return!1}if("string"==typeof t&&(t=this.commands[t]),!t)return!1;if(e&&e.$readOnly&&!t.readOnly)return!1;if(0!=this.$checkCommandState&&t.isAvailable&&!t.isAvailable(e))return!1;var r={editor:e,command:t,args:i};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(t){if(!this.$inReplay)return t&&t._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach((function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(t){return t.map((function(t){return"string"!=typeof t[0]&&(t[0]=t[0].name),t[1]||(t=t[0]),t}))}}.call(n.prototype),e.CommandManager=n})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(t,e,i){"use strict";function n(t,e){return{win:t,mac:e}}var r=t("../lib/lang"),o=t("../config"),s=t("../range").Range;e.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){o.loadModule("ace/ext/settings_menu",(function(e){e.init(t),t.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","F4"),exec:function(t){o.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){o.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:n("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:n(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:n("Ctrl-L","Command-L"),exec:function(t,e){"number"!=typeof e||isNaN(e)||t.gotoLine(e),t.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:n("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:n("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:n("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:n("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:n("Up","Up|Ctrl-P"),exec:function(t,e){t.navigateUp(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:n("Down","Down|Ctrl-N"),exec:function(t,e){t.navigateDown(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:n("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:n("Left","Left|Ctrl-B"),exec:function(t,e){t.navigateLeft(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:n("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:n("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:n("Right","Right|Ctrl-F"),exec:function(t,e){t.navigateRight(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:n(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:n(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:n("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:n("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:n("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:n("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(t){},readOnly:!0},{name:"cut",description:"Cut",exec:function(t){var e=t.$copyWithEmptySelection&&t.selection.isEmpty()?t.selection.getLineRange():t.selection.getRange();t._emit("cut",e),e.isEmpty()||t.session.remove(e),t.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(t,e){t.$handlePaste(e)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:n("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:n("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t,!0)}))}},{name:"undo",description:"Undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:n("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:n("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:n("Shift-Delete",null),exec:function(t){if(!t.selection.isEmpty())return!1;t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:n("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:n("Ctrl-Shift-Backspace",null),exec:function(t){var e=t.selection.getRange();e.start.column=0,t.session.remove(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:n("Ctrl-Shift-Delete",null),exec:function(t){var e=t.selection.getRange();e.end.column=Number.MAX_VALUE,t.session.remove(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:n("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(t,e){t.insert(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(t,e){t.insert(r.stringRepeat(e.text||"",e.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:n(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:n(null,null),exec:function(t){t.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var e=t.selection.getRange();e.start.column=e.end.column=0,e.end.row++,t.selection.setRange(e,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:n(null,null),exec:function(t){for(var e=t.selection.isBackwards(),i=e?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),n=e?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),o=t.session.doc.getLine(i.row).length,a=t.session.doc.getTextRange(t.selection.getRange()).replace(/\n\s*/," ").length,l=t.session.doc.getLine(i.row),h=i.row+1;h<=n.row+1;h++){var c=r.stringTrimLeft(r.stringTrimRight(t.session.doc.getLine(h)));0!==c.length&&(c=" "+c),l+=c}n.row+1<t.session.doc.getLength()-1&&(l+=t.session.doc.getNewLineCharacter()),t.clearSelection(),t.session.doc.replace(new s(i.row,0,n.row+2,0),l),0<a?(t.selection.moveCursorTo(i.row,i.column),t.selection.selectTo(i.row,i.column+a)):(o=t.session.doc.getLine(i.row).length>o?o+1:o,t.selection.moveCursorTo(i.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(t){var e=t.session.doc.getLength()-1,i=t.session.doc.getLine(e).length,n=t.selection.rangeList.ranges,r=[];n.length<1&&(n=[t.selection.getRange()]);for(var o=0;o<n.length;o++)o==n.length-1&&(n[o].end.row===e&&n[o].end.column===i||r.push(new s(n[o].end.row,n[o].end.column,e,i))),0===o?0===n[o].start.row&&0===n[o].start.column||r.push(new s(0,0,n[o].start.row,n[o].start.column)):r.push(new s(n[o-1].end.row,n[o-1].end.column,n[o].start.row,n[o].start.column));for(t.exitMultiSelectMode(),t.clearSelection(),o=0;o<r.length;o++)t.selection.addRange(r[o],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",exec:function(t){t.selection.clearSelection(),t.navigateLineEnd(),t.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",exec:function(t){t.selection.clearSelection();var e=t.getCursorPosition();t.selection.moveTo(e.row-1,Number.MAX_VALUE),t.insert("\n"),0===e.row&&t.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:n("F1","F1"),exec:function(t){t.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:n(null,null),exec:function(t){t.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)e.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(t){t.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(t,e,i){"use strict";t("./lib/fixoldbrowsers");var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./lib/lang"),s=t("./lib/useragent"),a=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,h=t("./mouse/fold_handler").FoldHandler,c=t("./keyboard/keybinding").KeyBinding,u=t("./edit_session").EditSession,d=t("./search").Search,f=t("./range").Range,p=t("./lib/event_emitter").EventEmitter,g=t("./commands/command_manager").CommandManager,m=t("./commands/default_commands").commands,v=t("./config"),b=t("./token_iterator").TokenIterator,y=t("./clipboard"),w=function(t,e,i){this.$toDestroy=[];var n=t.getContainerElement();this.container=n,this.renderer=t,this.id="editor"+ ++w.$uid,this.commands=new g(s.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new a(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new h(this)),this.keyBinding=new c(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(t,e){e._$emitInputEvent.schedule(31)})),this.setSession(e||i&&i.session||new u("")),v.resetOptions(this),i&&this.setOptions(i),v._signal("editor",this)};w.$uid=0,function(){n.implement(this,p),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(t){if(this.curOp){if(!t||this.curOp.command)return;this.prevOp=this.curOp}t||(this.previousCommand=null,t={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:t.command||{},args:t.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(t){if(this.curOp&&this.session){if(t&&!1===t.returnValue||!this.session)return this.curOp=null;if(1==t&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var e=this.curOp.command,i=e&&e.scrollIntoView;if(i){switch(i){case"center-animate":i="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),r=this.renderer.layerConfig;(n.start.row>=r.lastRow||n.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(t){var e,i,n,r;this.$mergeUndoDeltas&&(e=this.prevOp,i=this.$mergeableCommands,n=e.command&&t.command.name==e.command.name,"insertstring"==t.command.name?(r=t.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(e.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(t.command.name),"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(t.command.name)&&(this.sequenceStartTime=Date.now()))},this.setKeyboardHandler=function(t,e){var i;t&&"string"==typeof t&&"ace"!=t?(this.$keybindingId=t,i=this,v.loadModule(["keybinding",t],(function(n){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(n&&n.handler),e&&e()}))):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),e&&e())},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(t){var e,i;this.session!=t&&(this.curOp&&this.endOperation(),this.curOp={},(e=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),(i=this.session.getSelection()).off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)),(this.session=t)?(this.$onDocumentChange=this.onDocumentChange.bind(this),t.on("change",this.$onDocumentChange),this.renderer.setSession(t),this.$onChangeMode=this.onChangeMode.bind(this),t.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),t.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),t.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),t.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),t.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),t.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=t.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(t)),this._signal("changeSession",{session:t,oldSession:e}),this.curOp=null,e&&e._signal("changeEditor",{oldEditor:this}),t&&t._signal("changeEditor",{editor:this}),t&&t.bgTokenizer&&t.bgTokenizer.scheduleStart())},this.getSession=function(){return this.session},this.setValue=function(t,e){return this.session.doc.setValue(t),e?1==e?this.navigateFileEnd():-1==e&&this.navigateFileStart():this.selectAll(),t},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(t){this.renderer.onResize(t)},this.setTheme=function(t,e){this.renderer.setTheme(t,e)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(t){this.renderer.setStyle(t)},this.unsetStyle=function(t){this.renderer.unsetStyle(t)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},this.setFontSize=function(t){this.setOption("fontSize",t)},this.$highlightBrackets=function(){var t;this.$highlightPending||((t=this).$highlightPending=!0,setTimeout((function(){t.$highlightPending=!1;var e,i,n=t.session;n&&n.bgTokenizer&&(n.$bracketHighlight&&(n.$bracketHighlight.markerIds.forEach((function(t){n.removeMarker(t)})),n.$bracketHighlight=null),!(e=n.getMatchingBracketRanges(t.getCursorPosition()))&&n.$mode.getMatching&&(e=n.$mode.getMatching(t.session)),e&&(i="ace_bracket",Array.isArray(e)?1==e.length&&(i="ace_error_bracket"):e=[e],2==e.length&&(0==f.comparePoints(e[0].end,e[1].start)?e=[f.fromPoints(e[0].start,e[1].end)]:0==f.comparePoints(e[0].start,e[1].end)&&(e=[f.fromPoints(e[1].start,e[0].end)])),n.$bracketHighlight={ranges:e,markerIds:e.map((function(t){return n.addMarker(t,i,"text")}))}))}),50))},this.$highlightTags=function(){var t;this.$highlightTagPending||((t=this).$highlightTagPending=!0,setTimeout((function(){t.$highlightTagPending=!1;var e=t.session;if(e&&e.bgTokenizer){var i=t.getCursorPosition(),n=new b(t.session,i.row,i.column),r=n.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1===r.type.indexOf("tag-open")||(r=n.stepForward())){var o=r.value,s=r.value,a=0,l=n.stepBackward();if("<"===l.value)for(;l=r,(r=n.stepForward())&&(-1!==r.type.indexOf("tag-name")?o===(s=r.value)&&("<"===l.value?a++:"</"===l.value&&a--):o===s&&"/>"===r.value&&a--),r&&0<=a;);else{do{if(r=l,l=n.stepBackward(),r)if(-1!==r.type.indexOf("tag-name"))o===r.value&&("<"===l.value?a++:"</"===l.value&&a--);else if("/>"===r.value){for(var h=0,c=l;c;){if(-1!==c.type.indexOf("tag-name")&&c.value===o){a--;break}if("<"===c.value)break;c=n.stepBackward(),h++}for(var u=0;u<h;u++)n.stepForward()}}while(l&&a<=0);n.stepForward()}if(!r)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var d=n.getCurrentTokenRow(),p=n.getCurrentTokenColumn(),g=new f(d,p,d,p+r.value.length),m=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&null!=m&&0!==g.compareRange(m.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),e.$tagHighlight||(e.$tagHighlight=e.addMarker(g,"ace_bracket","text"))}}}),50))},this.focus=function(){var t=this;setTimeout((function(){t.isFocused()||t.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(t){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",t))},this.onBlur=function(t){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",t))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(t){var e=this.session.$useWrapMode,i=t.start.row==t.end.row?t.end.row:1/0;this.renderer.updateLines(t.start.row,i,e),this._signal("change",t),this.$cursorChange()},this.onTokenizerUpdate=function(t){var e=t.data;this.renderer.updateLines(e.first,e.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var t,e,i=this.getSession();this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(t=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(t=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(t=!1)),i.$highlightLineMarker&&!t?(i.removeMarker(i.$highlightLineMarker.id),i.$highlightLineMarker=null):!i.$highlightLineMarker&&t?((e=new f(t.row,t.column,t.row,1/0)).id=i.addMarker(e,"ace_active-line","screenLine"),i.$highlightLineMarker=e):t&&(i.$highlightLineMarker.start.row=t.row,i.$highlightLineMarker.end.row=t.row,i.$highlightLineMarker.start.column=t.column,i._signal("changeBackMarker"))},this.onSelectionChange=function(t){var e,i,n=this.session;n.$selectionMarker&&n.removeMarker(n.$selectionMarker),n.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(e=this.selection.getRange(),i=this.getSelectionStyle(),n.$selectionMarker=n.addMarker(e,"ace_selection",i));var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var t=this.session,e=this.getSelectionRange();if(!e.isEmpty()&&!e.isMultiLine()){var i=e.start.column,n=e.end.column,r=t.getLine(e.start.row),o=r.substring(i,n);if(!(5e3<o.length)&&/[\w\d]/.test(o)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),a=r.substring(i-1,n+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(t){this.renderer.updateText(),this._emit("changeMode",t)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var t=this.getSelectedText(),e=this.session.doc.getNewLineCharacter(),i=!1;if(!t&&this.$copyWithEmptySelection){i=!0;for(var n=this.selection.getAllRanges(),r=0;r<n.length;r++){var o=n[r];r&&n[r-1].start.row==o.start.row||(t+=this.session.getLine(o.start.row)+e)}}var s={text:t};return this._signal("copy",s),y.lineMode=i?s.text:"",s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(t,e){var i={text:t,event:e};this.commands.exec("paste",this,i)},this.$handlePaste=function(t){"string"==typeof t&&(t={text:t}),this._signal("paste",t);var e=t.text,i=e==y.lineMode,n=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)i?n.insert({row:this.selection.lead.row,column:0},e):this.insert(e);else if(i)this.selection.rangeList.ranges.forEach((function(t){n.insert({row:t.start.row,column:0},e)}));else{var r=e.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,s=!(2!=r.length||r[0]&&r[1]);if(r.length!=o.length||s)return this.commands.exec("insertstring",this,e);for(var a=o.length;a--;){var l=o[a];l.isEmpty()||n.remove(l),n.insert(l.start,r[a])}}},this.execCommand=function(t,e){return this.commands.exec(t,this,e)},this.insert=function(t,e){var i,n,r,o=this.session,s=o.getMode(),a=this.getCursorPosition();!this.getBehavioursEnabled()||e||(i=s.transformAction(o.getState(a.row),"insertion",this,o,t))&&(t!==i.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),t=i.text),"\t"==t&&(t=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&-1==t.indexOf("\n")&&((n=new f.fromPoints(a,a)).end.column+=t.length,this.session.remove(n)):(n=this.getSelectionRange(),a=this.session.remove(n),this.clearSelection()),"\n"!=t&&"\r\n"!=t||(u=o.getLine(a.row),a.column>u.search(/\S|$/)&&(r=u.substr(a.column).search(/\S|$/),o.doc.removeInLine(a.row,a.column,a.column+r))),this.clearSelection();var l,h=a.column,c=o.getState(a.row),u=o.getLine(a.row),d=s.checkOutdent(c,u,t);o.insert(a,t),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new f(a.row,h+i.selection[0],a.row,h+i.selection[1])):this.selection.setSelectionRange(new f(a.row+i.selection[0],i.selection[1],a.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(o.getDocument().isNewLine(t)&&(l=s.getNextLineIndent(c,u.slice(0,a.column),o.getTabString()),o.insert({row:a.row+1,column:0},l)),d&&s.autoOutdent(c,o,a.row))},this.autoIndent=function(){var t,e,i,n=this.session,r=n.getMode();i=this.selection.isEmpty()?(e=0,n.doc.getLength()-1):(e=(t=this.getSelectionRange()).start.row,t.end.row);for(var o,s,a,l,h="",c="",u=n.getTabString(),d=e;d<=i;d++)0<d&&(h=n.getState(d-1),o=n.getLine(d-1),c=r.getNextLineIndent(h,o,u)),s=n.getLine(d),c!==(a=r.$getIndent(s))&&(0<a.length&&(l=new f(d,0,d,a.length),n.remove(l)),0<c.length&&n.insert({row:d,column:0},c)),r.autoOutdent(h,n,d)},this.onTextInput=function(t,e){if(!e)return this.keyBinding.onTextInput(t);this.startOperation({command:{name:"insertstring"}});var i=this.applyComposition.bind(this,t,e);this.selection.rangeCount?this.forEachSelection(i):i(),this.endOperation()},this.applyComposition=function(t,e){var i;(e.extendLeft||e.extendRight)&&((i=this.selection.getRange()).start.column-=e.extendLeft,i.end.column+=e.extendRight,i.start.column<0&&(i.start.row--,i.start.column+=this.session.getLine(i.start.row).length+1),this.selection.setRange(i),t||i.isEmpty()||this.remove()),!t&&this.selection.isEmpty()||this.insert(t,!0),(e.restoreStart||e.restoreEnd)&&((i=this.selection.getRange()).start.column-=e.restoreStart,i.end.column-=e.restoreEnd,this.selection.setRange(i))},this.onCommandKey=function(t,e,i){return this.keyBinding.onCommandKey(t,e,i)},this.setOverwrite=function(t){this.session.setOverwrite(t)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(t){this.setOption("scrollSpeed",t)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(t){this.setOption("dragDelay",t)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(t){this.setOption("selectionStyle",t)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(t){this.setOption("highlightActiveLine",t)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(t){this.setOption("highlightSelectedWord",t)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(t){this.renderer.setAnimatedScroll(t)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(t){this.renderer.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(t){this.renderer.setDisplayIndentGuides(t)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(t){this.renderer.setShowPrintMargin(t)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(t){this.renderer.setPrintMarginColumn(t)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(t){this.setOption("readOnly",t)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(t){this.setOption("behavioursEnabled",t)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(t){this.setOption("wrapBehavioursEnabled",t)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(t){this.setOption("showFoldWidgets",t)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(t){this.selection.isEmpty()&&("left"==t?this.selection.selectLeft():this.selection.selectRight());var e,i,n,r,o,s=this.getSelectionRange();this.getBehavioursEnabled()&&(i=(e=this.session).getState(s.start.row),n=e.getMode().transformAction(i,"deletion",this,e,s),0!==s.end.column||"\n"==(r=e.getTextRange(s))[r.length-1]&&(o=e.getLine(s.end.row),/^\s+$/.test(o)&&(s.end.column=o.length)),n&&(s=n)),this.session.remove(s),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var t=this.getSelectionRange();t.start.column==t.end.column&&t.start.row==t.end.row&&(t.end.column=0,t.end.row++),this.session.remove(t),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var t=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(t)},this.transposeLetters=function(){var t,e,i,n,r;!this.selection.isEmpty()||0!==(e=(t=this.getCursorPosition()).column)&&(r=e<(i=this.session.getLine(t.row)).length?(n=i.charAt(e)+i.charAt(e-1),new f(t.row,e-1,t.row,e+1)):(n=i.charAt(e-1)+i.charAt(e-2),new f(t.row,e-2,t.row,e)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end))},this.toLowerCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),i=this.session.getTextRange(e);this.session.replace(e,i.toLowerCase()),this.selection.setSelectionRange(t)},this.toUpperCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),i=this.session.getTextRange(e);this.session.replace(e,i.toUpperCase()),this.selection.setSelectionRange(t)},this.indent=function(){var t=this.session,e=this.getSelectionRange();if(!(e.start.row<e.end.row)){if(e.start.column<e.end.column&&!/^\s+$/.test(t.getTextRange(e)))return h=this.$getSelectedRows(),void t.indentRows(h.first,h.last,"\t");var i=t.getLine(e.start.row),n=e.start,r=t.getTabSize(),s=t.documentToScreenColumn(n.row,n.column);if(this.session.getUseSoftTabs())var a=r-s%r,l=o.stringRepeat(" ",a);else{for(a=s%r;" "==i[e.start.column-1]&&a;)e.start.column--,a--;this.selection.setSelectionRange(e),l="\t"}return this.insert(l)}var h=this.$getSelectedRows();t.indentRows(h.first,h.last,"\t")},this.blockIndent=function(){var t=this.$getSelectedRows();this.session.indentRows(t.first,t.last,"\t")},this.blockOutdent=function(){var t=this.session.getSelection();this.session.outdentRows(t.getRange())},this.sortLines=function(){for(var t=this.$getSelectedRows(),e=this.session,i=[],n=t.first;n<=t.last;n++)i.push(e.getLine(n));i.sort((function(t,e){return t.toLowerCase()<e.toLowerCase()?-1:t.toLowerCase()>e.toLowerCase()?1:0}));var r=new f(0,0,0,0);for(n=t.first;n<=t.last;n++){var o=e.getLine(n);r.start.row=n,r.end.row=n,r.end.column=o.length,e.replace(r,i[n-t.first])}},this.toggleCommentLines=function(){var t=this.session.getState(this.getCursorPosition().row),e=this.$getSelectedRows();this.session.getMode().toggleCommentLines(t,this.session,e.first,e.last)},this.toggleBlockComment=function(){var t=this.getCursorPosition(),e=this.session.getState(t.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(e,this.session,i,t)},this.getNumberAt=function(t,e){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(t);i.lastIndex<e;){var r=i.exec(n);if(r.index<=e&&r.index+r[0].length>=e)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(t){var e,i,n,r,o,s,a=this.selection.getCursor().row,l=this.selection.getCursor().column,h=new f(a,l-1,a,l),c=this.session.getTextRange(h);!isNaN(parseFloat(c))&&isFinite(c)?(e=this.getNumberAt(a,l))&&(i=0<=e.value.indexOf(".")?e.start+e.value.indexOf(".")+1:e.end,n=e.start+e.value.length-i,r=parseFloat(e.value),r*=Math.pow(10,n),i!==e.end&&l<i?t*=Math.pow(10,e.end-l-1):t*=Math.pow(10,e.end-l),r+=t,o=(r/=Math.pow(10,n)).toFixed(n),s=new f(a,e.start,a,e.end),this.session.replace(s,o),this.moveCursorTo(a,Math.max(e.start+1,l+o.length-e.value.length))):this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var t=this.selection.getCursor().row,e=this.selection.getCursor().column;this.selection.selectWord();var i=this.getSelectedText(),n=this.selection.getWordRange().start.column,r=i.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),s=e-n-1;s<0&&(s=0);var a,l=0,h=this;i.match(/[A-Za-z0-9_]+/)&&r.forEach((function(e,r){a=l+e.length,l<=s&&s<=a&&(i=e,h.selection.clearSelection(),h.moveCursorTo(t,l+n),h.selection.selectTo(t,a+n)),l=a}));for(var c,u=this.$toggleWordPairs,d=0;d<u.length;d++)for(var f=u[d],p=0;p<=1;p++){var g=+!p,m=i.match(new RegExp("^\\s?_?("+o.escapeRegExp(f[p])+")\\s?$","i"));m&&i.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(m[1])+")($|\\s)","g"))&&(c=i.replace(new RegExp(o.escapeRegExp(f[p]),"i"),(function(t){var e=f[g];return t.toUpperCase()==t?e=e.toUpperCase():t.charAt(0).toUpperCase()==t.charAt(0)&&(e=e.substr(0,0)+f[g].charAt(0).toUpperCase()+e.substr(1)),e})),this.insert(c))}},this.removeLines=function(){var t=this.$getSelectedRows();this.session.removeFullLines(t.first,t.last),this.clearSelection()},this.duplicateSelection=function(){var t,e,i,n=this.selection,r=this.session,o=n.getRange(),s=n.isBackwards();o.isEmpty()?(t=o.start.row,r.duplicateLines(t,t)):(e=s?o.start:o.end,i=r.insert(e,r.getTextRange(o),!1),o.start=e,o.end=i,n.setSelectionRange(o,s))},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(t,e,i){return this.session.moveText(t,e,i)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(t,e){var i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var n=i.toOrientedRange(),r=this.$getSelectedRows(n),o=this.session.$moveLines(r.first,r.last,e?0:t);e&&-1==t&&(o=0),n.moveBy(o,0),i.fromOrientedRange(n)}else{var s=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,h=s.length,c=0;c<h;c++){var u=c;s[c].moveBy(a,0);for(var d=(r=this.$getSelectedRows(s[c])).first,f=r.last;++c<h;){l&&s[c].moveBy(l,0);var p=this.$getSelectedRows(s[c]);if(e&&p.first!=f)break;if(!e&&p.first>f+1)break;f=p.last}for(c--,a=this.session.$moveLines(d,f,e?0:t),e&&-1==t&&(u=c+1);u<=c;)s[u].moveBy(a,0),u++;e||(a=0),l+=a}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(t){return t=(t||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(t.start.row),last:this.session.getRowFoldEnd(t.end.row)}},this.onCompositionStart=function(t){this.renderer.showComposition(t)},this.onCompositionUpdate=function(t){this.renderer.setCompositionText(t)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(t){return t>=this.getFirstVisibleRow()&&t<=this.getLastVisibleRow()},this.isRowFullyVisible=function(t){return t>=this.renderer.getFirstFullyVisibleRow()&&t<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(t,e){var i=this.renderer,n=this.renderer.layerConfig,r=t*Math.floor(n.height/n.lineHeight);!0===e?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===e&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection());var o=i.scrollTop;i.scrollBy(0,r*n.lineHeight),null!=e&&i.scrollCursorIntoView(null,.5),i.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(t){this.renderer.scrollToRow(t)},this.scrollToLine=function(t,e,i,n){this.renderer.scrollToLine(t,e,i,n)},this.centerSelection=function(){var t=this.getSelectionRange(),e={row:Math.floor(t.start.row+(t.end.row-t.start.row)/2),column:Math.floor(t.start.column+(t.end.column-t.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(t,e){this.selection.moveCursorTo(t,e)},this.moveCursorToPosition=function(t){this.selection.moveCursorToPosition(t)},this.jumpToMatching=function(t,e){var i=this.getCursorPosition(),n=new b(this.session,i.row,i.column),r=n.getCurrentToken(),o=r||n.stepForward();if(o){var s,a,l,h=!1,c={},u=i.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!h;u++)if(d[o.value[u]])switch(a=d[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),o.value[u]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":-1===--c[a]&&(s="bracket",h=!0)}}else-1!==o.type.indexOf("tag-name")&&(isNaN(c[o.value])&&(c[o.value]=0),"<"===r.value?c[o.value]++:"</"===r.value&&c[o.value]--,-1===c[o.value]&&(s="tag",h=!0));h||(r=o,o=n.stepForward(),u=0)}while(o&&!h);if(s){if("bracket"===s)(p=this.session.getBracketRange(i))||(l=(p=new f(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+u-1,n.getCurrentTokenRow(),n.getCurrentTokenColumn()+u-1)).start,(e||l.row===i.row&&Math.abs(l.column-i.column)<2)&&(p=this.session.getBracketRange(l)));else if("tag"===s){if(!o||-1===o.type.indexOf("tag-name"))return;var p,g=o.value;if(0===(p=new f(n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2,n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2)).compare(i.row,i.column))for(h=!1;o=r,(r=n.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&p.setEnd(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===r.value?c[g]++:"</"===r.value&&c[g]--,0===c[g]&&(h=!0))),r&&!h;);o&&o.type.indexOf("tag-name")&&(l=p.start).row==i.row&&Math.abs(l.column-i.column)<2&&(l=p.end)}(l=p&&p.cursor||l)&&(t?p&&e?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(l.row,l.column):this.selection.moveTo(l.row,l.column))}}},this.gotoLine=function(t,e,i){this.selection.clearSelection(),this.session.unfold({row:t-1,column:e||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(t-1,e||0),this.isRowFullyVisible(t-1)||this.scrollToLine(t-1,!0,i)},this.navigateTo=function(t,e){this.selection.moveTo(t,e)},this.navigateUp=function(t){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(-t||-1,0)},this.navigateDown=function(t){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(t||1,0)},this.navigateLeft=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorLeft();else{var e=this.getSelectionRange().start;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateRight=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorRight();else{var e=this.getSelectionRange().end;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(t,e){e&&this.$search.set(e);var i=this.$search.find(this.session),n=0;return i&&(this.$tryReplace(i,t)&&(n=1),this.selection.setSelectionRange(i),this.renderer.scrollSelectionIntoView(i.start,i.end)),n},this.replaceAll=function(t,e){e&&this.$search.set(e);var i=this.$search.findAll(this.session),n=0;if(!i.length)return n;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=i.length-1;0<=o;--o)this.$tryReplace(i[o],t)&&n++;return this.selection.setSelectionRange(r),n},this.$tryReplace=function(t,e){var i=this.session.getTextRange(t);return null!==(e=this.$search.replace(i,e))?(t.end=this.session.replace(t,e),t):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(t,e,i){e=e||{},"string"==typeof t||t instanceof RegExp?e.needle=t:"object"==typeof t&&n.mixin(e,t);var r=this.selection.getRange();null==e.needle&&((t=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),t=this.session.getTextRange(r)),this.$search.set({needle:t})),this.$search.set(e),e.start||this.$search.set({start:r});var o=this.$search.find(this.session);return e.preventScroll?o:o?(this.revealRange(o,i),o):(e.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(t,e){this.find({skipCurrent:!0,backwards:!1},t,e)},this.findPrevious=function(t,e){this.find(t,{skipCurrent:!0,backwards:!0},e)},this.revealRange=function(t,e){this.session.unfold(t),this.selection.setSelectionRange(t);var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(t.start,t.end,.5),!1!==e&&this.renderer.animateScrolling(i)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(t){t.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(t){var e,i,n,r,o,s,a;t&&(n=!1,(i=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(r=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild),o=this.on("changeSelection",(function(){n=!0})),s=this.renderer.on("beforeRender",(function(){n&&(e=i.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){var t,o,s,a;n&&e&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())&&(o=(t=i.renderer).$cursorLayer.$pixelPos,s=t.layerConfig,a=o.top-s.offset,null!=(n=0<=o.top&&a+e.top<0||!(o.top<s.height&&o.top+e.top+s.lineHeight>window.innerHeight)&&null)&&(r.style.top=a+"px",r.style.left=o.left+"px",r.style.height=s.lineHeight+"px",r.scrollIntoView(n)),n=e=null)})),this.setAutoScrollEditorIntoView=function(t){t||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))})},this.$resetCursorStyle=function(){var t=this.$cursorStyle||"ace",e=this.renderer.$cursorLayer;e&&(e.setSmoothBlinking(/smooth/.test(t)),e.isBlinking=!this.$readOnly&&"wide"!=t,r.setCssClass(e.element,"ace_slim-cursors",/slim/.test(t)))},this.prompt=function(t,e,i){var n=this;v.loadModule("./ext/prompt",(function(r){r.prompt(n,t,e,i)}))}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(t){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:t})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(t){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(t){this.textInput.setReadOnly(t),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(t){this.textInput.setCopyWithEmptySelection(t)},initialValue:!1},cursorStyle:{set:function(t){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(t){this.setAutoScrollEditorIntoView(t)}},keyboardHandler:{set:function(t){this.setKeyboardHandler(t)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(t){this.session.setValue(t)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(t){this.setSession(t)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(t){this.renderer.$gutterLayer.setShowLineNumbers(t),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),t&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(t){this.$showLineNumbers&&t?C.attach(this):C.detach(this)}},placeholder:{set:function(t){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var t,e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder"),(t=r.createElement("div")).className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var C={getText:function(t,e){return(Math.abs(t.selection.lead.row-e)||e+1+(e<9?"·":""))+""},getWidth:function(t,e,i){return Math.max(e.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(t,e){e.renderer.$loop.schedule(e.renderer.CHANGE_GUTTER)},attach:function(t){t.renderer.$gutterLayer.$renderer=this,t.on("changeSelection",this.update),this.update(null,t)},detach:function(t){t.renderer.$gutterLayer.$renderer==this&&(t.renderer.$gutterLayer.$renderer=null),t.off("changeSelection",this.update),this.update(null,t)}};e.Editor=w})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}function r(t){return{row:t.row,column:t.column}}function o(t){if(t=t||this,Array.isArray(t))return t.map(o).join("\n");var e="";return t.action?(e="insert"==t.action?"+":"-",e+="["+t.lines+"]"):t.value&&(e=Array.isArray(t.value)?t.value.map(s).join("\n"):s(t.value)),t.start&&(e+=s(t)),(t.id||t.rev)&&(e+="\t("+(t.id||t.rev)+")"),e}function s(t){return t.start.row+":"+t.start.column+"=>"+t.end.row+":"+t.end.column}function a(t,e){var i="insert"==t.action,n="insert"==e.action;if(i&&n)if(0<=d(e.start,t.end))l(e,t,-1);else{if(!(d(e.start,t.start)<=0))return;l(t,e,1)}else if(i&&!n)if(0<=d(e.start,t.end))l(e,t,-1);else{if(!(d(e.end,t.start)<=0))return;l(t,e,-1)}else if(!i&&n)if(0<=d(e.start,t.start))l(e,t,1);else{if(!(d(e.start,t.start)<=0))return;l(t,e,1)}else if(!i&&!n)if(0<=d(e.start,t.start))l(e,t,1);else{if(!(d(e.end,t.start)<=0))return;l(t,e,-1)}return 1}function l(t,e,i){h(t.start,e.start,e.end,i),h(t.end,e.start,e.end,i)}function h(t,e,i,n){t.row==(1==n?e:i).row&&(t.column+=n*(i.column-e.column)),t.row+=n*(i.row-e.row)}function c(t,e){var i=t.lines,n=t.end;t.end=r(e);var o=t.end.row-t.start.row,s=i.splice(o,i.length),a=o?e.column:e.column-t.start.column;return i.push(s[0].substring(0,a)),s[0]=s[0].substr(a),{start:r(e),end:n,lines:s,action:t.action}}(function(){this.addSession=function(t){this.$session=t},this.add=function(t,e,i){this.$fromUndo||t!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==e&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),t.id=this.$rev=++this.$maxRev),"remove"!=t.action&&"insert"!=t.action||(this.$lastDelta=t),this.lastDeltas.push(t))},this.addSelection=function(t,e){this.selections.push({value:t,rev:e||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(t,e){null==e&&(e=this.$rev+1);for(var i=this.$undoStack,n=i.length;n--;){var r=i[n][0];if(r.id<=t)break;r.id<e&&(r.ignore=!0)}this.lastDeltas=null},this.getSelection=function(t,e){for(var i=this.selections,n=i.length;n--;){var r=i[n];if(r.rev<t)return e&&(r=i[n+1]),r}},this.getRevision=function(){return this.$rev},this.getDeltas=function(t,e){null==e&&(e=this.$rev+1);for(var i=this.$undoStack,n=null,r=0,o=i.length;o--;){var s=i[o][0];if(s.id<e&&!n&&(n=o+1),s.id<=t){r=o+1;break}}return i.slice(r,n)},this.getChangedRanges=function(t,e){null==e&&(e=this.$rev+1)},this.getChangedLines=function(t,e){null==e&&(e=this.$rev+1)},this.undo=function(t,e){this.lastDeltas=null;var i=this.$undoStack;if(function(t,e){for(var i=e;i--;){var n=t[i];if(n&&!n[0].ignore){for(;i<e-1;){var r=function(t,e){for(var i=t.length;i--;)for(var n=0;n<e.length;n++)if(!a(t[i],e[n])){for(;i<t.length;){for(;n--;)a(e[n],t[i]);n=e.length,i++}return[t,e]}return t.selectionBefore=e.selectionBefore=t.selectionAfter=e.selectionAfter=null,[e,t]}(t[i],t[i+1]);t[i]=r[0],t[i+1]=r[1],i++}return!0}}}(i,i.length)){t=t||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var n=i.pop(),r=null;return n&&(r=t.undoChanges(n,e),this.$redoStack.push(n),this.$syncRev()),this.$fromUndo=!1,r}},this.redo=function(t,e){var i;this.lastDeltas=null,t=t||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev&&(i=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),function(t,e){for(var i=0;i<e.length;i++)for(var n=e[i],o=0;o<n.length;o++)!function(t,e){e=function(t){return{start:r(t.start),end:r(t.end),action:t.action,lines:t.lines.slice()}}(e);for(var i=t.length;i--;){for(var n=t[i],o=0;o<n.length;o++){var s=function(t,e){var i,n,r="insert"==t.action,o="insert"==e.action;if(r&&o)d(t.start,e.start)<0?l(e,t,1):l(t,e,1);else if(r&&!o)0<=d(t.start,e.end)?l(t,e,-1):(d(t.start,e.start)<=0||l(t,u.fromPoints(e.start,t.start),-1),l(e,t,1));else if(!r&&o)0<=d(e.start,t.end)?l(e,t,-1):(d(e.start,t.start)<=0||l(e,u.fromPoints(t.start,e.start),-1),l(t,e,1));else if(!r&&!o)if(0<=d(e.start,t.end))l(e,t,-1);else{if(!(d(e.end,t.start)<=0))return d(t.start,e.start)<0&&(t=c(i=t,e.start)),0<d(t.end,e.end)&&(n=c(t,e.end)),h(e.end,t.start,t.end,-1),n&&!i&&(t.lines=n.lines,t.start=n.start,t.end=n.end,n=t),[e,i,n].filter(Boolean);l(t,e,-1)}return[e,t]}(n[o],e);e=s[0],2!=s.length&&(s[2]?(n.splice(o+1,1,s[1],s[2]),o++):s[1]||(n.splice(o,1),o--))}n.length||t.splice(i,1)}}(t,n[o])}(this.$redoStack,i),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(t){t[0].id=++this.$maxRev}),this));var n=this.$redoStack.pop(),o=null;return n&&(o=t.redoChanges(n,e),this.$undoStack.push(n),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var t=this.$undoStack,e=t[t.length-1],i=e&&e[0].id||0;this.$redoStackBaseRev=i,this.$rev=i},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(t){null==t&&(t=this.$rev),this.mark=t},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(t){return t?o(t):o(this.$undoStack)+"\n---\n"+o(this.$redoStack)}}).call(n.prototype);var u=t("./range").Range,d=u.comparePoints;u.comparePoints,e.UndoManager=n})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";function n(t,e){this.element=t,this.canvasHeight=e||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var r=t("../lib/dom");(function(){this.moveContainer=function(t){r.translate(this.element,0,-t.firstRowScreen*t.lineHeight%this.canvasHeight-t.offset*this.$offsetCoefficient)},this.pageChanged=function(t,e){return Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)!==Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)},this.computeLineTop=function(t,e,i){var n=e.firstRowScreen*e.lineHeight,r=Math.floor(n/this.canvasHeight);return i.documentToScreenRow(t,0)*e.lineHeight-r*this.canvasHeight},this.computeLineHeight=function(t,e,i){return e.lineHeight*i.getRowLineCount(t)},this.getLength=function(){return this.cells.length},this.get=function(t){return this.cells[t]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(t){if(Array.isArray(t)){this.cells.push.apply(this.cells,t);for(var e=r.createFragment(this.element),i=0;i<t.length;i++)e.appendChild(t[i].element);this.element.appendChild(e)}else this.cells.push(t),this.element.appendChild(t.element)},this.unshift=function(t){if(Array.isArray(t)){this.cells.unshift.apply(this.cells,t);for(var e=r.createFragment(this.element),i=0;i<t.length;i++)e.appendChild(t[i].element);this.element.firstChild?this.element.insertBefore(e,this.element.firstChild):this.element.appendChild(e)}else this.cells.unshift(t),this.element.insertAdjacentElement("afterbegin",t.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(t){t&&(t.element.remove(),this.cellCache.push(t))},this.createCell=function(t,e,i,n){var o,s=this.cellCache.pop();return s||(o=r.createElement("div"),n&&n(o),this.element.appendChild(o),s={element:o,text:"",row:t}),s.row=t,s}}).call(n.prototype),e.Lines=n})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(t,e,i){"use strict";function n(t){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",t.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}function r(t){var e=document.createTextNode("");t.appendChild(e);var i=o.createElement("span");return t.appendChild(i),t}var o=t("../lib/dom"),s=t("../lib/oop"),a=t("../lib/lang"),l=t("../lib/event_emitter").EventEmitter,h=t("./lines").Lines;(function(){s.implement(this,l),this.setSession=function(t){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=t)&&t.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(t,e)},this.setAnnotations=function(t){this.$annotations=[];for(var e=0;e<t.length;e++){var i=t[e],n=i.row,r=(r=this.$annotations[n])||(this.$annotations[n]={text:[]}),o=(o=i.text)?a.escapeHTML(o):i.html||"";-1===r.text.indexOf(o)&&r.text.push(o);var s=i.type;"error"==s?r.className=" ace_error":"warning"==s&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=s||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(t){var e,i,n;this.$annotations.length&&(e=t.start.row,0==(i=t.end.row-e)||("remove"==t.action?this.$annotations.splice(e,1+i,null):((n=new Array(1+i)).unshift(e,1),this.$annotations.splice.apply(this.$annotations,n))))},this.update=function(t){this.config=t;var e=this.session,i=t.firstRow,n=Math.min(t.lastRow+t.gutterOffset,e.getLength()-1);this.oldLastRow=n,this.config=t,this.$lines.moveContainer(t),this.$updateCursorRow();for(var o=e.getNextFoldLine(i),s=o?o.start.row:1/0,a=null,l=-1,h=i;;){if(s<h&&(h=o.end.row+1,s=(o=e.getNextFoldLine(h,o))?o.start.row:1/0),n<h){for(;this.$lines.getLength()>l+1;)this.$lines.pop();break}(a=this.$lines.get(++l))?a.row=h:(a=this.$lines.createCell(h,t,this.session,r),this.$lines.push(a)),this.$renderCell(a,t,o,h),h++}this._signal("afterRender"),this.$updateGutterWidth(t)},this.$updateGutterWidth=function(t){var e=this.session,i=e.gutterRenderer||this.$renderer,n=e.$firstLineNumber,r=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||e.$useWrapMode)&&(r=e.getLength()+n-1);var o=i?i.getWidth(e,r,t):r.toString().length*t.characterWidth,s=this.$padding||this.$computePadding();(o+=s.left+s.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){var t;this.$highlightGutterLine&&(t=this.session.selection.getCursor(),this.$cursorRow!==t.row&&(this.$cursorRow=t.row))},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var t=this.session.selection.cursor.row;if(this.$cursorRow=t,!this.$cursorCell||this.$cursorCell.row!=t){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var e=this.$lines.cells;this.$cursorCell=null;for(var i=0;i<e.length;i++){var n=e[i];if(n.row>=this.$cursorRow){if(n.row>this.$cursorRow){var r=this.session.getFoldLine(this.$cursorRow);if(!(0<i&&r&&r.start.row==e[i-1].row))break;n=e[i-1]}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},this.scrollLines=function(t){var e=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(e,t))return this.update(t);this.$lines.moveContainer(t);var i=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=i,!e||n<t.firstRow)return this.update(t);if(i<e.firstRow)return this.update(t);if(e.firstRow<t.firstRow)for(var r=this.session.getFoldedRowCount(e.firstRow,t.firstRow-1);0<r;r--)this.$lines.shift();if(i<n)for(r=this.session.getFoldedRowCount(i+1,n);0<r;r--)this.$lines.pop();t.firstRow<e.firstRow&&this.$lines.unshift(this.$renderLines(t,t.firstRow,e.firstRow-1)),n<i&&this.$lines.push(this.$renderLines(t,n+1,i)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},this.$renderLines=function(t,e,i){for(var n=[],o=e,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;a<o&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(i<o);){var l=this.$lines.createCell(o,t,this.session,r);this.$renderCell(l,t,s,o),n.push(l),o++}return n},this.$renderCell=function(t,e,i,n){var r,s,a=t.element,l=this.session,h=a.childNodes[0],c=a.childNodes[1],u=l.$firstLineNumber,d=l.$breakpoints,f=l.$decorations,p=l.gutterRenderer||this.$renderer,g=this.$showFoldWidgets&&l.foldWidgets,m=i?i.start.row:Number.MAX_VALUE,v="ace_gutter-cell ";this.$highlightGutterLine&&(n==this.$cursorRow||i&&n<this.$cursorRow&&m<=n&&this.$cursorRow<=i.end.row)&&(v+="ace_gutter-active-line ",this.$cursorCell!=t&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=t)),d[n]&&(v+=d[n]),f[n]&&(v+=f[n]),this.$annotations[n]&&(v+=this.$annotations[n].className),a.className!=v&&(a.className=v),!g||null==(r=g[n])&&(r=g[n]=l.getFoldWidget(n)),r?(v="ace_fold-widget ace_"+r,"start"==r&&n==m&&n<i.end.row?v+=" ace_closed":v+=" ace_open",c.className!=v&&(c.className=v),s=e.lineHeight+"px",o.setStyle(c.style,"height",s),o.setStyle(c.style,"display","inline-block")):c&&o.setStyle(c.style,"display","none");var b=(p?p.getText(l,n):n+u).toString();return b!==h.data&&(h.data=b),o.setStyle(t.element.style,"height",this.$lines.computeLineHeight(n,e,l)+"px"),o.setStyle(t.element.style,"top",this.$lines.computeLineTop(n,e,l)+"px"),t.text=b,t},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(t){this.$highlightGutterLine=t},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(t){this.$renderer=!t&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(t){t?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=t,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var t=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(t.borderLeftWidth)||0)+(parseInt(t.paddingLeft)||0)+1,this.$padding.right=(parseInt(t.borderRightWidth)||0)+(parseInt(t.paddingRight)||0),this.$padding},this.getRegion=function(t){var e=this.$padding||this.$computePadding(),i=this.element.getBoundingClientRect();return t.x<e.left+i.left?"markers":this.$showFoldWidgets&&t.x>i.right-e.right?"foldWidgets":void 0}}).call(n.prototype),e.Gutter=n})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(t,e,i){"use strict";function n(t){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)}var r=t("../range").Range,o=t("../lib/dom");(function(){this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setMarkers=function(t){this.markers=t},this.elt=function(t,e){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=e,i.className=t},this.update=function(t){if(t){var e,i;for(i in this.config=t,this.i=0,this.markers){var n,r,o,s=this.markers[i];s.range?(o=s.range.clipRows(t.firstRow,t.lastRow)).isEmpty()||(o=o.toScreenRange(this.session),s.renderer?(n=this.$getTop(o.start.row,t),r=this.$padding+o.start.column*t.characterWidth,s.renderer(e,o,r,n,t)):"fullLine"==s.type?this.drawFullLineMarker(e,o,s.clazz,t):"screenLine"==s.type?this.drawScreenLineMarker(e,o,s.clazz,t):o.isMultiLine()?"text"==s.type?this.drawTextMarker(e,o,s.clazz,t):this.drawMultiLineMarker(e,o,s.clazz,t):this.drawSingleLineMarker(e,o,s.clazz+" ace_start ace_br15",t)):s.update(e,this,this.session,t)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(t,e){return(t-e.firstRowScreen)*e.lineHeight},this.drawTextMarker=function(t,e,i,n,o){for(var s,a=this.session,l=e.start.row,h=e.end.row,c=l,u=0,d=a.getScreenLastRowColumn(c),f=new r(c,e.start.column,c,u);c<=h;c++)f.start.row=f.end.row=c,f.start.column=c==l?e.start.column:a.getRowWrapIndent(c),s=u,u=f.end.column=d,d=c+1<h?a.getScreenLastRowColumn(c+1):c==h?0:e.end.column,this.drawSingleLineMarker(t,f,i+(c==l?" ace_start":"")+" ace_br"+((c==l||c==l+1&&e.start.column?1:0)|(s<u?2:0)|(d<u?4:0)|(c==h?8:0)),n,c==h?0:1,o)},this.drawMultiLineMarker=function(t,e,i,n,r){var o,s,a,l=this.$padding,h=n.lineHeight,c=this.$getTop(e.start.row,n),u=l+e.start.column*n.characterWidth;r=r||"",this.session.$bidiHandler.isBidiRow(e.start.row)?((o=e.clone()).end.row=o.start.row,o.end.column=this.session.getLine(o.start.row).length,this.drawBidiSingleLineMarker(t,o,i+" ace_br1 ace_start",n,null,r)):this.elt(i+" ace_br1 ace_start","height:"+h+"px;right:0;top:"+c+"px;left:"+u+"px;"+(r||"")),this.session.$bidiHandler.isBidiRow(e.end.row)?((o=e.clone()).start.row=o.end.row,o.start.column=0,this.drawBidiSingleLineMarker(t,o,i+" ace_br12",n,null,r)):(c=this.$getTop(e.end.row,n),s=e.end.column*n.characterWidth,this.elt(i+" ace_br12","height:"+h+"px;width:"+s+"px;top:"+c+"px;left:"+l+"px;"+(r||""))),(h=(e.end.row-e.start.row-1)*n.lineHeight)<=0||(c=this.$getTop(e.start.row+1,n),a=(e.start.column?1:0)|(e.end.column?0:8),this.elt(i+(a?" ace_br"+a:""),"height:"+h+"px;right:0;top:"+c+"px;left:"+l+"px;"+(r||"")))},this.drawSingleLineMarker=function(t,e,i,n,r,o){if(this.session.$bidiHandler.isBidiRow(e.start.row))return this.drawBidiSingleLineMarker(t,e,i,n,r,o);var s=n.lineHeight,a=(e.end.column+(r||0)-e.start.column)*n.characterWidth,l=this.$getTop(e.start.row,n),h=this.$padding+e.start.column*n.characterWidth;this.elt(i,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+h+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(t,e,i,n,r,o){var s=n.lineHeight,a=this.$getTop(e.start.row,n),l=this.$padding;this.session.$bidiHandler.getSelections(e.start.column,e.end.column).forEach((function(t){this.elt(i,"height:"+s+"px;width:"+t.width+(r||0)+"px;top:"+a+"px;left:"+(l+t.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(t,e,i,n,r){var o=this.$getTop(e.start.row,n),s=n.lineHeight;e.start.row!=e.end.row&&(s+=this.$getTop(e.end.row,n)-o),this.elt(i,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(r||""))},this.drawScreenLineMarker=function(t,e,i,n,r){var o=this.$getTop(e.start.row,n),s=n.lineHeight;this.elt(i,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(r||""))}}).call(n.prototype),e.Marker=n})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(t,e,i){"use strict";function n(t){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}var r=t("../lib/oop"),o=t("../lib/dom"),s=t("../lib/lang"),a=t("./lines").Lines,l=t("../lib/event_emitter").EventEmitter;(function(){r.implement(this,l),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var t=this.session.doc,e="\n"==t.getNewLineCharacter()&&"windows"!=t.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(t){this.$padding=t,this.element.style.margin="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",function(t){this._signal("changeCharacterSize",t)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){(this.session=t)&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(t){return this.showInvisibles!=t&&("string"==typeof(this.showInvisibles=t)?(this.showSpaces=/tab/i.test(t),this.showTabs=/space/i.test(t),this.showEOL=/eol/i.test(t)):this.showSpaces=this.showTabs=this.showEOL=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides!=t&&(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var e,i,n,r,o,a,l=this.$tabStrings=[0],h=1;h<t+1;h++)this.showTabs?((a=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",a.textContent=s.stringRepeat(this.TAB_CHAR,h),l.push(a)):l.push(this.dom.createTextNode(s.stringRepeat(" ",h),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,e="ace_indent-guide",i=this.showSpaces?" ace_invisible ace_invisible_space":"",n=this.showSpaces?s.stringRepeat(this.SPACE_CHAR,this.tabSize):s.stringRepeat(" ",this.tabSize),r=this.showTabs?" ace_invisible ace_invisible_tab":"",o=this.showTabs?s.stringRepeat(this.TAB_CHAR,this.tabSize):n,(a=this.dom.createElement("span")).className=e+i,a.textContent=n,this.$tabStrings[" "]=a,(a=this.dom.createElement("span")).className=e+r,a.textContent=o,this.$tabStrings["\t"]=a)},this.updateLines=function(t,e,i){if(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)return this.update(t);this.config=t;for(var n=Math.max(e,t.firstRow),r=Math.min(i,t.lastRow),o=this.element.childNodes,s=0,a=t.firstRow;a<n;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(n)){n=l.start.row;break}a=l.end.row}s++}for(var l,h=!1,c=(a=n,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);c<a&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(r<a);){var u,d=o[s++];d&&(this.dom.removeChildren(d),this.$renderLine(d,a,a==c&&l),h&&(d.style.top=this.$lines.computeLineTop(a,t,this.session)+"px"),u=t.lineHeight*this.session.getRowLength(a)+"px",d.style.height!=u&&(h=!0,d.style.height=u)),a++}if(h)for(;s<this.$lines.cells.length;){var f=this.$lines.cells[s++];f.element.style.top=this.$lines.computeLineTop(f.row,t,this.session)+"px"}},this.scrollLines=function(t){var e=this.config;if(this.config=t,this.$lines.pageChanged(e,t))return this.update(t);this.$lines.moveContainer(t);var i=t.lastRow,n=e?e.lastRow:-1;if(!e||n<t.firstRow)return this.update(t);if(i<e.firstRow)return this.update(t);if(!e||e.lastRow<t.firstRow)return this.update(t);if(t.lastRow<e.firstRow)return this.update(t);if(e.firstRow<t.firstRow)for(var r=this.session.getFoldedRowCount(e.firstRow,t.firstRow-1);0<r;r--)this.$lines.shift();if(e.lastRow>t.lastRow)for(r=this.session.getFoldedRowCount(t.lastRow+1,e.lastRow);0<r;r--)this.$lines.pop();t.firstRow<e.firstRow&&this.$lines.unshift(this.$renderLinesFragment(t,t.firstRow,e.firstRow-1)),t.lastRow>e.lastRow&&this.$lines.push(this.$renderLinesFragment(t,e.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,e,i){for(var n=[],r=e,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;a<r&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(i<r);){var l=this.$lines.createCell(r,t,this.session),h=l.element;this.dom.removeChildren(h),o.setStyle(h.style,"height",this.$lines.computeLineHeight(r,t,this.session)+"px"),o.setStyle(h.style,"top",this.$lines.computeLineTop(r,t,this.session)+"px"),this.$renderLine(h,r,r==a&&s),this.$useLineGroups()?h.className="ace_line_group":h.className="ace_line",n.push(l),r++}return n},this.update=function(t){this.$lines.moveContainer(t);for(var e=(this.config=t).firstRow,i=t.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(t,e,i))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(t,e,i,n){for(var r,o,a=this,l=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,h=this.dom.createFragment(this.element),c=0;r=l.exec(n);){var u,d,f,p=r[1],g=r[2],m=r[3],v=r[4],b=r[5];!a.showSpaces&&g||(u=c!=r.index?n.slice(c,r.index):"",c=r.index+r[0].length,u&&h.appendChild(this.dom.createTextNode(u,this.element)),p?(d=a.session.getScreenTabSize(e+r.index),h.appendChild(a.$tabStrings[d].cloneNode(!0)),e+=d-1):g?a.showSpaces?((f=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",f.textContent=s.stringRepeat(a.SPACE_CHAR,g.length),h.appendChild(f)):h.appendChild(this.com.createTextNode(g,this.element)):m?((f=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",f.textContent=s.stringRepeat(a.SPACE_CHAR,m.length),h.appendChild(f)):v?(e+=1,(f=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",f.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",f.textContent=a.showSpaces?a.SPACE_CHAR:v,h.appendChild(f)):b&&(e+=1,(f=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",f.className="ace_cjk",f.textContent=b,h.appendChild(f)))}return h.appendChild(this.dom.createTextNode(c?n.slice(c):n,this.element)),this.$textToken[i.type]?t.appendChild(h):(o="ace_"+i.type.replace(/\./g," ace_"),f=this.dom.createElement("span"),"fold"==i.type&&(f.style.width=i.value.length*this.config.characterWidth+"px"),f.className=o,f.appendChild(h),t.appendChild(f)),e+n.length},this.renderIndentGuide=function(t,e,i){var n=e.search(this.$indentGuideRe);if(n<=0||i<=n)return e;if(" "==e[0]){for(var r=(n-=n%this.tabSize)/this.tabSize,o=0;o<r;o++)t.appendChild(this.$tabStrings[" "].cloneNode(!0));return e.substr(n)}if("\t"!=e[0])return e;for(o=0;o<n;o++)t.appendChild(this.$tabStrings["\t"].cloneNode(!0));return e.substr(n)},this.$createLineElement=function(t){var e=this.dom.createElement("div");return e.className="ace_line",e.style.height=this.config.lineHeight+"px",e},this.$renderWrappedLine=function(t,e,i){var n=0,r=0,o=i[0],a=0,l=this.$createLineElement();t.appendChild(l);for(var h=0;h<e.length;h++){var c=e[h],u=c.value;if(0==h&&this.displayIndentGuides){if(n=u.length,!(u=this.renderIndentGuide(l,u,o)))continue;n-=u.length}if(n+u.length<o)a=this.$renderToken(l,a,c,u),n+=u.length;else{for(;n+u.length>=o;)a=this.$renderToken(l,a,c,u.substring(0,o-n)),u=u.substring(o-n),n=o,l=this.$createLineElement(),t.appendChild(l),l.appendChild(this.dom.createTextNode(s.stringRepeat(" ",i.indent),this.element)),a=0,o=i[++r]||Number.MAX_VALUE;0!=u.length&&(n+=u.length,a=this.$renderToken(l,a,c,u))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(t,e){var i=0,n=e[0],r=n.value;this.displayIndentGuides&&(r=this.renderIndentGuide(t,r)),r&&(i=this.$renderToken(t,i,n,r));for(var o=1;o<e.length;o++){if(i+(r=(n=e[o]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,i,n,r);i=this.$renderToken(t,i,n,r)}},this.$renderOverflowMessage=function(t,e,i,n,r){i&&this.$renderToken(t,e,i,n.slice(0,this.MAX_LINE_LENGTH-e));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=r?"<hide>":"<click to see more...>",t.appendChild(o)},this.$renderLine=function(t,e,i){var n;i||0==i||(i=this.session.getFoldLine(e));var r,o,s=t;(n=i?this.$getFoldLineTokens(e,i):this.session.getTokens(e)).length?(r=this.session.getRowSplitData(e))&&r.length?(this.$renderWrappedLine(t,n,r),s=t.lastChild):(s=t,this.$useLineGroups()&&(s=this.$createLineElement(),t.appendChild(s)),this.$renderSimpleLine(s,n)):this.$useLineGroups()&&(s=this.$createLineElement(),t.appendChild(s)),this.showEOL&&s&&(i&&(e=i.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,s.appendChild(o))},this.$getFoldLineTokens=function(t,e){var i=this.session,n=[],r=i.getTokens(t);return e.walk((function(t,e,o,s,a){null!=t?n.push({type:"fold",value:t}):(a&&(r=i.getTokens(e)),r.length&&function(t,e,i){for(var r,o=0,s=0;s+t[o].value.length<e;)if(s+=t[o].value.length,++o==t.length)return;for(s!=e&&((r=t[o].value.substring(e-s)).length>i-e&&(r=r.substring(0,i-e)),n.push({type:t[o].type,value:r}),s=e+r.length,o+=1);s<i&&o<t.length;)(r=t[o].value).length+s>i?n.push({type:t[o].type,value:r.substring(0,i-s)}):n.push(t[o]),s+=r.length,o+=1}(r,s,o))}),e.end.row,this.session.getLine(e.end.row).length),n},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),e.Text=n})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";function n(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",t.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var r=t("../lib/dom");(function(){this.$updateOpacity=function(t){for(var e=this.cursors,i=e.length;i--;)r.setStyle(e[i].style,"opacity",t?"":"0")},this.$startCssAnimation=function(){for(var t=this.cursors,e=t.length;e--;)t[e].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setBlinking=function(t){t!=this.isBlinking&&(this.isBlinking=t,this.restartTimer())},this.setBlinkInterval=function(t){t!=this.blinkInterval&&(this.blinkInterval=t,this.restartTimer())},this.setSmoothBlinking=function(t){t!=this.smoothBlinking&&(this.smoothBlinking=t,r.setCssClass(this.element,"ace_smooth-blinking",t),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var t=r.createElement("div");return t.className="ace_cursor",this.element.appendChild(t),this.cursors.push(t),t},this.removeCursor=function(){if(1<this.cursors.length){var t=this.cursors.pop();return t.parentNode.removeChild(t),t}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var t,e=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION?this.$startCssAnimation():(t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this),this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t())):this.$stopCssAnimation()},this.getPixelPosition=function(t,e){if(!this.config||!this.session)return{left:0,top:0};t=t||this.session.selection.getCursor();var i=this.session.documentToScreenPosition(t);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,t.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),top:(i.row-(e?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(t,e){return 0<=t.top&&t.top<e.maxHeight},this.update=function(t){this.config=t;var e=this.session.$selectionMarkers,i=0,n=0;void 0!==e&&0!==e.length||(e=[{cursor:null}]);i=0;for(var o=e.length;i<o;i++){var s,a,l=this.getPixelPosition(e[i].cursor,!0);(l.top>t.height+t.offset||l.top<0)&&1<i||(a=(s=this.cursors[n++]||this.addCursor()).style,this.drawCursor?this.drawCursor(s,l,t,e[i],this.session):this.isCursorInView(l,t)?(r.setStyle(a,"display","block"),r.translate(s,l.left,l.top),r.setStyle(a,"width",Math.round(t.characterWidth)+"px"),r.setStyle(a,"height",t.lineHeight+"px")):r.setStyle(a,"display","none"))}for(;this.cursors.length>n;)this.removeCursor();var h=this.session.getOverwrite();this.$setOverwrite(h),this.$pixelPos=l,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(t){t!=this.overwrite&&((this.overwrite=t)?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),e.Cursor=n})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(t,e,i){"use strict";function n(t){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function r(t,e){n.call(this,t),this.scrollTop=0,this.scrollHeight=0,e.$scrollbarWidth=this.width=a.scrollbarWidth(t.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function o(t,e){n.call(this,t),this.scrollLeft=0,this.height=e.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var s=t("./lib/oop"),a=t("./lib/dom"),l=t("./lib/event"),h=t("./lib/event_emitter").EventEmitter;(function(){s.implement(this,h),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(n.prototype),s.inherits(r,n),function(){this.classSuffix="-v",this.onScroll=function(){var t;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(t=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-t)/(this.coeff-t)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(t){this.element.style.height=t+"px"},this.setInnerHeight=this.setScrollHeight=function(t){32768<(this.scrollHeight=t)?(this.coeff=32768/t,t=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=t+"px"},this.setScrollTop=function(t){this.scrollTop!=t&&(this.skipEvent=!0,this.scrollTop=t,this.element.scrollTop=t*this.coeff)}}.call(r.prototype),s.inherits(o,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(t){this.element.style.width=t+"px"},this.setInnerWidth=function(t){this.inner.style.width=t+"px"},this.setScrollWidth=function(t){this.inner.style.width=t+"px"},this.setScrollLeft=function(t){this.scrollLeft!=t&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=t)}}.call(o.prototype),e.ScrollBar=r,e.ScrollBarV=r,e.ScrollBarH=o,e.VScrollBar=r,e.HScrollBar=o})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(t,e,i){"use strict";function n(t,e){this.onRender=t,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=e||window;var i=this;this._flush=function(t){i.pending=!1;var e=i.changes;if(e&&(r.blockIdle(100),i.changes=0,i.onRender(e)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}}var r=t("./lib/event");(function(){this.schedule=function(t){this.changes=this.changes|t,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(t){var e=this.changes;return this.changes=0,e}}).call(n.prototype),e.RenderLoop=n})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(t,e,i){var n=t("../lib/oop"),r=t("../lib/dom"),o=t("../lib/lang"),s=t("../lib/event"),a=t("../lib/useragent"),l=t("../lib/event_emitter").EventEmitter,h="function"==typeof ResizeObserver,c=e.FontMetrics=function(t){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),t.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()};(function(){n.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(t,e){t.width=t.height="auto",t.left=t.top="0px",t.visibility="hidden",t.position="absolute",t.whiteSpace="pre",a.isIE<8?t["font-family"]="inherit":t.font="inherit",t.overflow=e?"hidden":"visible"},this.checkForSizeChanges=function(t){var e;void 0===t&&(t=this.$measureSizes()),!t||this.$characterSize.width===t.width&&this.$characterSize.height===t.height||(this.$measureNode.style.fontWeight="bold",e=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=t,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===t.width&&e.height===t.height,this._emit("changeCharacterSize",{data:t}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver((function(e){t.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var t=this;return this.$pollSizeChangesTimer=s.onIdle((function e(){t.checkForSizeChanges(),s.onIdle(e,500)}),500)},this.setPolling=function(t){t?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(t){var e={height:(t||this.$measureNode).clientHeight,width:(t||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(t){return this.$main.textContent=o.stringRepeat(t,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(t){var e=this.charSizes[t];return void 0===e&&(e=this.charSizes[t]=this.$measureCharWidth(t)/this.$characterSize.width),e},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function t(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*t(e.parentElement):1},this.$initTransformMeasureNodes=function(){function t(t,e){return["div",{style:"position: absolute;top:"+t+"px;left:"+e+"px;"}]}this.els=r.buildDom([t(0,0),t(200,0),t(0,200),t(200,200)],this.el)},this.transformCoordinates=function(t,e){function i(t,e,i){var n=t[1]*e[0]-t[0]*e[1];return[(-e[1]*i[0]+e[0]*i[1])/n,(t[1]*i[0]-t[0]*i[1])/n]}function n(t,e){return[t[0]-e[0],t[1]-e[1]]}function r(t,e){return[t[0]+e[0],t[1]+e[1]]}function o(t,e){return[t*e[0],t*e[1]]}function s(t){var e=t.getBoundingClientRect();return[e.left,e.top]}t=t&&o(1/this.$getZoom(this.el),t),this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),l=s(this.els[1]),h=s(this.els[2]),c=s(this.els[3]),u=i(n(c,l),n(c,h),n(r(l,h),r(c,a))),d=o(1+u[0],n(l,a)),f=o(1+u[1],n(h,a));if(e)return r(o(1/(u[0]*e[0]/200+u[1]*e[1]/200+1)/200,r(o(e[0],d),o(e[1],f))),a);var p=n(t,a);return o(200,i(n(d,o(u[0],p)),n(f,o(u[1],p)),p))}}).call(c.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t,e){var i=this;this.container=t||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(e),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var n=this.$textLayer=new h(this.content);this.canvas=n.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",(function(t){i.$scrollAnimation||i.session.setScrollTop(t.data-i.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(t){i.$scrollAnimation||i.session.setScrollLeft(t.data-i.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(t){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",t)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)}var r=t("./lib/oop"),o=t("./lib/dom"),s=t("./config"),a=t("./layer/gutter").Gutter,l=t("./layer/marker").Marker,h=t("./layer/text").Text,c=t("./layer/cursor").Cursor,u=t("./scrollbar").HScrollBar,d=t("./scrollbar").VScrollBar,f=t("./renderloop").RenderLoop,p=t("./layer/font_metrics").FontMetrics,g=t("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',v=t("./lib/useragent"),b=v.isIE;o.importCssString(m,"ace_editor.css"),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(t){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=t)&&this.scrollMargin.top&&t.getScrollTop()<=0&&t.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(t),this.$markerBack.setSession(t),this.$markerFront.setSession(t),this.$gutterLayer.setSession(t),this.$textLayer.setSession(t),t&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(t,e,i){if(void 0===e&&(e=1/0),this.$changedLines?(this.$changedLines.firstRow>t&&(this.$changedLines.firstRow=t),this.$changedLines.lastRow<e&&(this.$changedLines.lastRow=e)):this.$changedLines={firstRow:t,lastRow:e},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!i)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(t){t?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(t,e,i,n){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=t?1:0;var r=this.container;n=n||r.clientHeight||r.scrollHeight,i=i||r.clientWidth||r.scrollWidth;var o=this.$updateCachedSize(t,e,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;t&&(this.$gutterLayer.$padding=null),t?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(t,e,i,n){n-=this.$extraHeight||0;var r,s=0,a=this.$size,l={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};return n&&(t||a.height!=n)&&(a.height=n,s|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",s|=this.CHANGE_SCROLL),i&&(t||a.width!=i)&&(s|=this.CHANGE_SIZE,a.width=i,null==e&&(e=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=e,o.setStyle(this.scrollBarH.element.style,"left",e+"px"),o.setStyle(this.scroller.style,"left",e+this.margin.left+"px"),a.scrollerWidth=Math.max(0,i-e-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px"),r=this.scrollBarV.getWidth()+"px",o.setStyle(this.scrollBarH.element.style,"right",r),o.setStyle(this.scroller.style,"right",r),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||t)&&(s|=this.CHANGE_FULL)),a.$dirty=!i||!n,s&&this._signal("resize",l),s},this.onGutterResize=function(t){var e=this.$showGutter?t:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var t=this.$size.scrollerWidth-2*this.$padding,e=Math.floor(t/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(t){this.setOption("animatedScroll",t)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(t){this.setOption("showInvisibles",t),this.session.$bidiHandler.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(t){this.setOption("displayIndentGuides",t)},this.setShowPrintMargin=function(t){this.setOption("showPrintMargin",t)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(t){this.setOption("printMarginColumn",t)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(t){return this.setOption("showGutter",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){var t,e;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((t=o.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",t.appendChild(this.$printMarginEl),this.content.insertBefore(t,this.content.firstChild)),(e=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit())},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){var t,e,i,n,r,s,a,l,h,c;this.$isMousePressed||(t=this.textarea.style,e=this.$composition,this.$keepTextAreaAtCursor||e?(i=this.$cursorLayer.$pixelPos)&&(e&&e.markerRange&&(i=this.$cursorLayer.getPixelPosition(e.markerRange.start,!0)),n=this.layerConfig,r=i.top,s=i.left,r-=n.offset,a=e&&e.useTextareaForIME?this.lineHeight:b?0:1,r<0||r>n.height-a?o.translate(this.textarea,0,0):(c=1,l=this.$size.height-a,e?e.useTextareaForIME?(h=this.textarea.value,c=this.characterWidth*this.session.$getStringScreenWidth(h)[0]):r+=this.lineHeight+2:r+=this.lineHeight,(s-=this.scrollLeft)>this.$size.scrollerWidth-c&&(s=this.$size.scrollerWidth-c),s+=this.gutterWidth+this.margin.left,o.setStyle(t,"height",a+"px"),o.setStyle(t,"width",c+"px"),o.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-c),Math.min(r,l)))):o.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var t=this.layerConfig,e=t.lastRow;return this.session.documentToScreenRow(e,0)*t.lineHeight-this.session.getScrollTop()>t.height-t.lineHeight?e-1:e},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(t){this.$padding=t,this.$textLayer.setPadding(t),this.$cursorLayer.setPadding(t),this.$markerFront.setPadding(t),this.$markerBack.setPadding(t),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(t,e,i,n){var r=this.scrollMargin;r.top=0|t,r.bottom=0|e,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.setMargin=function(t,e,i,n){var r=this.margin;r.top=0|t,r.bottom=0|e,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(t){this.setOption("hScrollBarAlwaysVisible",t)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(t){this.setOption("vScrollBarAlwaysVisible",t)},this.$updateScrollBarV=function(){var t=this.layerConfig.maxHeight,e=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(t-=(e-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>t-e&&(t=this.scrollTop+e,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(t+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(t,e){if(this.$changes&&(t|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(t||e)){if(this.$size.$dirty)return this.$changes|=t,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",t),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,r,s=this.layerConfig;if((t&this.CHANGE_FULL||t&this.CHANGE_SIZE||t&this.CHANGE_TEXT||t&this.CHANGE_LINES||t&this.CHANGE_SCROLL||t&this.CHANGE_H_SCROLL)&&(t|=this.$computeLayerConfig()|this.$loop.clear(),s.firstRow==this.layerConfig.firstRow||s.firstRowScreen!=this.layerConfig.firstRowScreen||0<(i=this.scrollTop+(s.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,t|=this.CHANGE_SCROLL,t|=this.$computeLayerConfig()|this.$loop.clear()),s=this.layerConfig,this.$updateScrollBarV(),t&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-s.offset),n=s.width+2*this.$padding+"px",r=s.minHeight+"px",o.setStyle(this.content.style,"width",n),o.setStyle(this.content.style,"height",r)),t&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-s.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),t&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(s),this.$showGutter&&this.$gutterLayer.update(s),this.$markerBack.update(s),this.$markerFront.update(s),this.$cursorLayer.update(s),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);if(t&this.CHANGE_SCROLL)return this.$changedLines=null,t&this.CHANGE_TEXT||t&this.CHANGE_LINES?this.$textLayer.update(s):this.$textLayer.scrollLines(s),this.$showGutter&&(t&this.CHANGE_GUTTER||t&this.CHANGE_LINES?this.$gutterLayer.update(s):this.$gutterLayer.scrollLines(s)),this.$markerBack.update(s),this.$markerFront.update(s),this.$cursorLayer.update(s),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);t&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(s),this.$showGutter&&this.$gutterLayer.update(s)):t&this.CHANGE_LINES?(this.$updateLines()||t&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(s):t&this.CHANGE_TEXT||t&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(s):t&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(s),t&this.CHANGE_CURSOR&&(this.$cursorLayer.update(s),this.$moveTextAreaToCursor()),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(s),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(s),this._signal("afterRender",t)}else this.$changes|=t},this.$autosize=function(){var t=this.session.getScreenLength()*this.lineHeight,e=this.$maxLines*this.lineHeight,i=Math.min(e,Math.max((this.$minLines||1)*this.lineHeight,t))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&i>this.$maxPixelHeight&&(i=this.$maxPixelHeight);var n,r=!(i<=2*this.lineHeight)&&e<t;i==this.desiredHeight&&this.$size.height==this.desiredHeight&&r==this.$vScroll||(r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r)),n=this.container.clientWidth,this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,n,i),this.desiredHeight=i,this._signal("autosize"))},this.$computeLayerConfig=function(){var t=this.session,e=this.$size,i=e.height<=2*this.lineHeight,n=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),o=!i&&(this.$hScrollBarAlwaysVisible||e.scrollerWidth-r-2*this.$padding<0),s=this.$horizScroll!==o;s&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=e.scrollerHeight+this.lineHeight,h=!this.$maxLines&&this.$scrollPastEnd?(e.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=h;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,n-e.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,r+2*this.$padding-e.scrollerWidth+c.right)));var u=!i&&(this.$vScrollBarAlwaysVisible||e.scrollerHeight-n+h<0||this.scrollTop>c.top),d=a!==u;d&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var f,p,g=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,v=(y=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)))+m,b=this.lineHeight,y=t.screenToDocumentRow(y,0),w=t.getFoldLine(y);w&&(y=w.start.row),f=t.documentToScreenRow(y,0),p=t.getRowLength(y)*b,v=Math.min(t.screenToDocumentRow(v,0),t.getLength()-1),l=e.scrollerHeight+t.getRowLength(v)*b+p,g=this.scrollTop-f*b;var C=0;return this.layerConfig.width==r&&!s||(C=this.CHANGE_H_SCROLL),(s||d)&&(C|=this.$updateCachedSize(!0,this.gutterWidth,e.width,e.height),this._signal("scrollbarVisibilityChanged"),d&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:y,firstRowScreen:f,lastRow:v,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:n,offset:g,gutterOffset:b?Math.max(0,Math.ceil((g+e.height-e.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),C},this.$updateLines=function(){if(this.$changedLines){var t=this.$changedLines.firstRow,e=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(t>i.lastRow+1||e<i.firstRow))return e===1/0?(this.$showGutter&&this.$gutterLayer.update(i),void this.$textLayer.update(i)):(this.$textLayer.updateLines(i,t,e),!0)}},this.$getLongestLine=function(){var t=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(t+=1),this.$textLayer&&t>this.$textLayer.MAX_LINE_LENGTH&&(t=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(t*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(t,e){this.$gutterLayer.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){this.$gutterLayer.removeGutterDecoration(t,e)},this.updateBreakpoints=function(t){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(t){this.$gutterLayer.setAnnotations(t),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(t,e,i){this.scrollCursorIntoView(t,i),this.scrollCursorIntoView(e,i)},this.scrollCursorIntoView=function(t,e,i){var n,r,o,s,a,l,h;0!==this.$size.scrollerHeight&&(r=(n=this.$cursorLayer.getPixelPosition(t)).left,o=n.top,s=i&&i.top||0,a=i&&i.bottom||0,o<(l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+s?(e&&l+s>o+this.lineHeight&&(o-=e*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-a<o+this.lineHeight&&(e&&l+this.$size.scrollerHeight-a<o-this.lineHeight&&(o+=e*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight+a-this.$size.scrollerHeight)),r<(h=this.scrollLeft)?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):h+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):h<=this.$padding&&r-h<this.characterWidth&&this.session.setScrollLeft(0))},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(t){this.session.setScrollTop(t*this.lineHeight)},this.alignCursor=function(t,e){"number"==typeof t&&(t={row:t,column:0});var i=this.$cursorLayer.getPixelPosition(t),n=this.$size.scrollerHeight-this.lineHeight,r=i.top-n*(e||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(t,e){var i,n,r=0,o=this.STEPS,s=[];for(r=0;r<o;++r)s.push((i=r/this.STEPS,(e-(n=t))*(Math.pow(i-1,3)+1)+n));return s},this.scrollToLine=function(t,e,i,n){var r=this.$cursorLayer.getPixelPosition({row:t,column:0}).top;e&&(r-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(r),!1!==i&&this.animateScrolling(o,n)},this.animateScrolling=function(t,e){var i=this.scrollTop;if(this.$animatedScroll){var n=this;if(t!=i){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(t=r[0])==i)return}var o=n.$calcSteps(t,i);this.$scrollAnimation={from:t,to:i,steps:o},clearInterval(this.$timer),n.session.setScrollTop(o.shift()),n.session.$scrollTop=i,this.$timer=setInterval((function(){return n.session?void(o.length?(n.session.setScrollTop(o.shift()),n.session.$scrollTop=i):null!=i?(n.session.$scrollTop=-1,n.session.setScrollTop(i),i=null):(n.$timer=clearInterval(n.$timer),n.$scrollAnimation=null,e&&e())):clearInterval(n.$timer)}),10)}}},this.scrollToY=function(t){this.scrollTop!==t&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=t)},this.scrollToX=function(t){this.scrollLeft!==t&&(this.scrollLeft=t),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(t,e){this.session.setScrollTop(e),this.session.setScrollLeft(e)},this.scrollBy=function(t,e){e&&this.session.setScrollTop(this.session.getScrollTop()+e),t&&this.session.setScrollLeft(this.session.getScrollLeft()+t)},this.isScrollableBy=function(t,e){return e<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<e&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||t<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<t&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(t,e){var i,n;this.$hasCssTransforms?(i={top:0,left:0},t=(n=this.$fontMetrics.transformCoordinates([t,e]))[1]-this.gutterWidth-this.margin.left,e=n[0]):i=this.scroller.getBoundingClientRect();var r=t+this.scrollLeft-i.left-this.$padding,o=r/this.characterWidth,s=Math.floor((e+this.scrollTop-i.top)/this.lineHeight),a=this.$blockCursor?Math.floor(o):Math.round(o);return{row:s,column:a,side:0<o-a?1:-1,offsetX:r}},this.screenToTextCoordinates=function(t,e){var i,n;this.$hasCssTransforms?(i={top:0,left:0},t=(n=this.$fontMetrics.transformCoordinates([t,e]))[1]-this.gutterWidth-this.margin.left,e=n[0]):i=this.scroller.getBoundingClientRect();var r=t+this.scrollLeft-i.left-this.$padding,o=r/this.characterWidth,s=this.$blockCursor?Math.floor(o):Math.round(o),a=Math.floor((e+this.scrollTop-i.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),r)},this.textToScreenCoordinates=function(t,e){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(t,e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,t)?this.session.$bidiHandler.getPosLeft(n.column):Math.round(n.column*this.characterWidth)),o=n.row*this.lineHeight;return{pageX:i.left+r-this.scrollLeft,pageY:i.top+o-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(t){(this.$composition=t).cssText||(t.cssText=this.textarea.style.cssText),null==t.useTextareaForIME&&(t.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):t.markerId=this.session.addMarker(t.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(t){var e=this.session.selection.cursor;this.addToken(t,"composition_placeholder",e.row,e.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){var t;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,t=this.session.selection.cursor,this.removeExtraToken(t.row,t.column),this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(t,e,i,n){var r=this.session;r.bgTokenizer.lines[i]=null;var o={type:e,value:t},s=r.getTokens(i);if(null==n)s.push(o);else for(var a=0,l=0;l<s.length;l++){var h=s[l];if(n<=(a+=h.value.length)){var c=h.value.length-(a-n),u=h.value.slice(0,c),d=h.value.slice(c);s.splice(l,1,{type:h.type,value:u},o,{type:h.type,value:d});break}}this.updateLines(i,i)},this.removeExtraToken=function(t,e){this.updateLines(t,t)},this.setTheme=function(t,e){function i(i){if(r.$themeId!=t)return e&&e();if(!i||!i.cssClass)throw new Error("couldn't load module "+t+" or it didn't call define");i.$id&&(r.$themeId=i.$id),o.importCssString(i.cssText,i.cssClass,r.container),r.theme&&o.removeCssClass(r.container,r.theme.cssClass);var n="padding"in i?i.padding:"padding"in(r.theme||{})?4:r.$padding;r.$padding&&n!=r.$padding&&r.setPadding(n),r.$theme=i.cssClass,r.theme=i,o.addCssClass(r.container,i.cssClass),o.setCssClass(r.container,"ace_dark",i.isDark),r.$size&&(r.$size.width=0,r.$updateSizeAsync()),r._dispatchEvent("themeLoaded",{theme:i}),e&&e()}var n,r=this;this.$themeId=t,r._dispatchEvent("themeChange",{theme:t}),t&&"string"!=typeof t?i(t):(n=t||this.$options.theme.initialValue,s.loadModule(["theme",n],i))},this.getTheme=function(){return this.$themeId},this.setStyle=function(t,e){o.setCssClass(this.container,t,!1!==e)},this.unsetStyle=function(t){o.removeCssClass(this.container,t)},this.setCursorStyle=function(t){o.setStyle(this.scroller.style,"cursor",t)},this.setMouseCursor=function(t){o.setStyle(this.scroller.style,"cursor",t)},this.attachToShadowRoot=function(){o.importCssString(m,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}.call(n.prototype),s.defineOptions(n.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(t){this.$textLayer.setShowInvisibles(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(t){"number"==typeof t&&(this.$printMarginColumn=t),this.$showPrintMargin=!!t,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(t){this.$gutter.style.display=t?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(t){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",t)},initialValue:!1},showFoldWidgets:{set:function(t){this.$gutterLayer.setShowFoldWidgets(t),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(t){this.$textLayer.setDisplayIndentGuides(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(t){this.$gutterLayer.setHighlightGutterLine(t),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(t){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(t){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(t){"number"==typeof t&&(t+="px"),this.container.style.fontSize=t,this.updateFontSize()},initialValue:12},fontFamily:{set:function(t){this.container.style.fontFamily=t,this.updateFontSize()}},maxLines:{set:function(t){this.updateFull()}},minLines:{set:function(t){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(t){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(t){t=+t||0,this.$scrollPastEnd!=t&&(this.$scrollPastEnd=t,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(t){this.$gutterLayer.$fixedWidth=!!t,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(t){this.setTheme(t)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),e.VirtualRenderer=n})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(t,e,i){"use strict";function n(t){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var e=function(t){var e="importScripts('"+s.qualifyURL(t)+"');";try{return new Blob([e],{type:"application/javascript"})}catch(t){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(e),i.getBlob("application/javascript")}}(t),i=(window.URL||window.webkitURL).createObjectURL(e);return new Worker(i)}return new Worker(t)}function r(t){t.postMessage||(t=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=t,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}var o=t("../lib/oop"),s=t("../lib/net"),a=t("../lib/event_emitter").EventEmitter,l=t("../config");(function(){o.implement(this,a),this.$createWorkerFromOldConfig=function(e,i,r,o,s){var a,h;return t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),l.get("packaged")||!t.toUrl?o=o||l.moduleUrl(i,"worker"):(a=this.$normalizePath,o=o||a(t.toUrl("ace/worker/worker.js",null,"_")),h={},e.forEach((function(e){h[e]=a(t.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))),this.$worker=n(o),s&&this.send("importScripts",s),this.$worker.postMessage({init:!0,tlns:h,module:i,classname:r}),this.$worker},this.onMessage=function(t){var e=t.data;switch(e.type){case"event":this._signal(e.name,{data:e.data});break;case"call":var i=this.callbacks[e.id];i&&(i(e.data),delete this.callbacks[e.id]);break;case"error":this.reportError(e.data);break;case"log":window.console&&console.log&&console.log.apply(console,e.data)}},this.reportError=function(t){window.console&&console.error&&console.error(t)},this.$normalizePath=function(t){return s.qualifyURL(t)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(t,e){this.$worker.postMessage({command:t,args:e})},this.call=function(t,e,i){var n;i&&(n=this.callbackId++,this.callbacks[n]=i,e.push(n)),this.send(t,e)},this.emit=function(t,e){try{e.data&&e.data.err&&(e.data.err={message:e.data.err.message,stack:e.data.err.stack,code:e.data.err.code}),this.$worker.postMessage({event:t,data:{data:e.data}})}catch(t){console.error(t.stack)}},this.attachToDocument=function(t){this.$doc&&this.terminate(),this.$doc=t,this.call("setValue",[t.getValue()]),t.on("change",this.changeListener)},this.changeListener=function(t){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==t.action?this.deltaQueue.push(t.start,t.lines):this.deltaQueue.push(t.start,t.end)},this.$sendDeltaQueue=function(){var t=this.deltaQueue;t&&(this.deltaQueue=null,50<t.length&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(r.prototype),e.UIWorkerClient=function(t,e,i){var n=null,o=!1,s=Object.create(a),h=[],c=new r({messageBuffer:h,terminate:function(){},postMessage:function(t){h.push(t),n&&(o?setTimeout(u):u())}});c.setEmitSync=function(t){o=t};var u=function(){var t=h.shift();t.command?n[t.command].apply(n,t.args):t.event&&s._signal(t.event,t.data)};return s.postMessage=function(t){c.onMessage({data:t})},s.callback=function(t,e){this.postMessage({type:"call",id:e,data:t})},s.emit=function(t,e){this.postMessage({type:"event",name:t,data:e})},l.loadModule(["worker",e],(function(t){for(n=new t[i](s);h.length;)u()})),c},e.WorkerClient=r,e.createWorker=n})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(t,e,i){"use strict";function n(t,e,i,n,r,o){var s=this;this.length=e,this.session=t,this.doc=t.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=i;var a=t.getUndoManager().$undoStack||t.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),t.selection.on("changeCursor",this.$onCursorChange)}var r=t("./range").Range,o=t("./lib/event_emitter").EventEmitter,s=t("./lib/oop");(function(){s.implement(this,o),this.setup=function(){var t=this,e=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column);var n=this.pos;n.$insertRight=!0,n.detach(),n.markerId=i.addMarker(new r(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(i){var n=e.createAnchor(i.row,i.column);n.$insertRight=!0,n.detach(),t.others.push(n)})),i.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,e;this.othersActive||(t=this.session,(e=this).othersActive=!0,this.others.forEach((function(i){i.markerId=t.addMarker(new r(i.row,i.column,i.row,i.column+e.length),e.othersClass,null,!1)})))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var t=0;t<this.others.length;t++)this.session.removeMarker(this.others[t].markerId)}},this.onUpdate=function(t){if(this.$updating)return this.updateAnchors(t);var e=t;if(e.start.row===e.end.row&&e.start.row===this.pos.row){this.$updating=!0;var i="insert"===t.action?e.end.column-e.start.column:e.start.column-e.end.column,n=e.start.column>=this.pos.column&&e.start.column<=this.pos.column+this.length+1,o=e.start.column-this.pos.column;if(this.updateAnchors(t),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===t.action)for(var s=this.others.length-1;0<=s;s--){var a={row:(l=this.others[s]).row,column:l.column+o};this.doc.insertMergedLines(a,t.lines)}else if("remove"===t.action)for(s=this.others.length-1;0<=s;s--){var l;a={row:(l=this.others[s]).row,column:l.column+o};this.doc.remove(new r(a.row,a.column,a.row,a.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(t){this.pos.onChange(t);for(var e=this.others.length;e--;)this.others[e].onChange(t);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var t=this,e=this.session,i=function(i,n){e.removeMarker(i.markerId),i.markerId=e.addMarker(new r(i.row,i.column,i.row,i.column+t.length),n,null,!1)};i(this.pos,this.mainClass);for(var n=this.others.length;n--;)i(this.others[n],this.othersClass)}},this.onCursorChange=function(t){var e;!this.$updating&&this.session&&((e=this.session.selection.getCursor()).row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",t)):(this.hideOtherMarkers(),this._emit("cursorLeave",t)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var t=this.session.getUndoManager(),e=(t.$undoStack||t.$undostack).length-this.$undoStackDepth,i=0;i<e;i++)t.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(n.prototype),e.PlaceHolder=n})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,i){function n(t,e){return t.row==e.row&&t.column==e.column}var r=t("../lib/event"),o=t("../lib/useragent");e.onMouseDown=function(t){function e(){var t=p.renderer.pixelToScreenCoordinates(w,C),e=I.screenToDocumentPosition(t.row,t.column,t.offsetX);n(M,t)&&n(e,g.lead)||(M=t,p.selection.moveToPosition(e),p.renderer.scrollCursorIntoView(),p.removeSelectionMarkers(_),_=g.rectangularRangeBlock(M,A),p.$mouseHandler.$clickSelection&&1==_.length&&_[0].isEmpty()&&(_[0]=p.$mouseHandler.$clickSelection.clone()),_.forEach(p.addSelectionMarker,p),p.updateSelectionMarkers())}var i=t.domEvent,s=i.altKey,a=i.shiftKey,l=i.ctrlKey,h=t.getAccelKey(),c=t.getButton();if(l&&o.isMac&&(c=i.button),t.editor.inMultiSelectMode&&2==c)t.editor.textInput.onContextMenu(t.domEvent);else if(l||s||h){if(0===c){var u,d,f,p=t.editor,g=p.selection,m=p.inMultiSelectMode,v=t.getDocumentPosition(),b=g.getCursor(),y=t.inSelection()||g.isEmpty()&&n(v,b),w=t.x,C=t.y,I=p.session,A=p.renderer.pixelToScreenCoordinates(w,C),M=A;if(p.$mouseHandler.$enableJumpToDef)l&&s||h&&s?u=a?"block":"add":s&&p.$blockSelectEnabled&&(u="block");else if(h&&!s){if(u="add",!m&&a)return}else s&&p.$blockSelectEnabled&&(u="block");if(u&&o.isMac&&i.ctrlKey&&p.$mouseHandler.cancelContextMenu(),"add"==u){if(!m&&y)return;m||(d=g.toOrientedRange(),p.addSelectionMarker(d));var x=g.rangeList.rangeAtPoint(v);p.inVirtualSelectionMode=!0,a&&(x=null,d=g.ranges[0]||d,p.removeSelectionMarker(d)),p.once("mouseup",(function(){var t=g.toOrientedRange();x&&t.isEmpty()&&n(x.cursor,t.cursor)?g.substractPoint(t.cursor):(a?g.substractPoint(d.cursor):d&&(p.removeSelectionMarker(d),g.addRange(d)),g.addRange(t)),p.inVirtualSelectionMode=!1}))}else if("block"==u){t.stop(),p.inVirtualSelectionMode=!0;var _=[];m&&!h?g.toSingleRange():!m&&h&&(f=g.toOrientedRange(),p.addSelectionMarker(f)),a?A=I.documentToScreenPosition(g.lead):g.moveToPosition(v),M={row:-1,column:-1};var S=e;r.capture(p.container,(function(t){w=t.clientX,C=t.clientY}),(function(t){e(),clearInterval(k),p.removeSelectionMarkers(_),_.length||(_=[g.toOrientedRange()]),f&&(p.removeSelectionMarker(f),g.toSingleRange(f));for(var i=0;i<_.length;i++)g.addRange(_[i]);p.inVirtualSelectionMode=!1,p.$mouseHandler.$clickSelection=null}));var k=setInterval((function(){S()}),20);return t.preventDefault()}}}else 0===c&&t.editor.inMultiSelectMode&&t.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(t,e,i){e.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(t){t.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(t){t.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(t){t.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(t){t.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(t){t.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(t){t.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(t){t.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(t){t.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(t){1<t.multiSelect.rangeCount?t.multiSelect.joinSelections():t.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(t){t.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(t){t.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(t){t.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],e.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(t){t.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(t){return t&&t.inMultiSelectMode}}];var n=t("../keyboard/hash_handler").HashHandler;e.keyboardHandler=new n(e.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(t,e,i){function n(t){t.$multiselectOnSessionChange||(t.$onAddRange=t.$onAddRange.bind(t),t.$onRemoveRange=t.$onRemoveRange.bind(t),t.$onMultiSelect=t.$onMultiSelect.bind(t),t.$onSingleSelect=t.$onSingleSelect.bind(t),t.$multiselectOnSessionChange=e.onSessionChange.bind(t),t.$checkMultiselectChange=t.$checkMultiselectChange.bind(t),t.$multiselectOnSessionChange(t),t.on("changeSession",t.$multiselectOnSessionChange),t.on("mousedown",a),t.commands.addCommands(c.defaultCommands),function(t){function e(e){n&&(t.renderer.setMouseCursor(""),n=!1)}if(t.textInput){var i=t.textInput.getElement(),n=!1;l.addListener(i,"keydown",(function(i){var r=18==i.keyCode&&!(i.ctrlKey||i.shiftKey||i.metaKey);t.$blockSelectEnabled&&r?n||(t.renderer.setMouseCursor("crosshair"),n=!0):n&&e()}),t),l.addListener(i,"keyup",e,t),l.addListener(i,"blur",e,t)}}(t))}var r=t("./range_list").RangeList,o=t("./range").Range,s=t("./selection").Selection,a=t("./mouse/multi_select_handler").onMouseDown,l=t("./lib/event"),h=t("./lib/lang"),c=t("./commands/multi_select_commands");e.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=new(t("./search").Search),d=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(t,e){if(t){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(t),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),e||this.fromOrientedRange(t);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}t.cursor||(t.cursor=t.end);var n=this.rangeList.add(t);return this.$onAddRange(t),n.length&&this.$onRemoveRange(n),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),e||this.fromOrientedRange(t)}},this.toSingleRange=function(t){t=t||this.ranges[0];var e=this.rangeList.removeAll();e.length&&this.$onRemoveRange(e),t&&this.fromOrientedRange(t)},this.substractPoint=function(t){var e=this.rangeList.substractPoint(t);if(e)return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var t=this.rangeList.merge();t.length&&this.$onRemoveRange(t)},this.$onAddRange=function(t){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(t),this._signal("addRange",{range:t})},this.$onRemoveRange=function(t){var e;this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode&&(e=this.rangeList.ranges.pop(),t.push(e),this.rangeCount=0);for(var i=t.length;i--;){var n=this.ranges.indexOf(t[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:t}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(e=e||this.ranges[0])&&!e.isEqual(this.getRange())&&this.fromOrientedRange(e)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var t=this.ranges.length?this.ranges:[this.getRange()],e=[],i=0;i<t.length;i++){var n=t[i],r=n.start.row,s=n.end.row;if(r===s)e.push(n.clone());else{for(e.push(new o(r,n.start.column,r,this.session.getLine(r).length));++r<s;)e.push(this.getLineRange(r,!0));e.push(new o(s,0,s,n.end.column))}0!=i||this.isBackwards()||(e=e.reverse())}for(this.toSingleRange(),i=e.length;i--;)this.addRange(e[i])},this.joinSelections=function(){var t=this.rangeList.ranges,e=t[t.length-1],i=o.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(i,e.cursor==e.start)},this.toggleBlockSelection=function(){var t,e,i,n,r;1<this.rangeCount?(e=(t=this.rangeList.ranges)[t.length-1],i=o.fromPoints(t[0].start,e.end),this.toSingleRange(),this.setSelectionRange(i,e.cursor==e.start)):(n=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(n,r).forEach(this.addRange,this))},this.rectangularRangeBlock=function(t,e,i){var n,r,s,a,l=[],h=t.column<e.column;a=h?(n=t.column,r=e.column,s=t.offsetX,e.offsetX):(n=e.column,r=t.column,s=e.offsetX,t.offsetX);var c,u,d,f=t.row<e.row;u=f?(c=t.row,e.row):(c=e.row,t.row),n<0&&(n=0),c<0&&(c=0),c==u&&(i=!0);for(var p,g,m=c;m<=u;m++){var v=o.fromPoints(this.session.screenToDocumentPosition(m,n,s),this.session.screenToDocumentPosition(m,r,a));if(v.isEmpty()){if(d&&(p=v.end,g=d,p.row==g.row&&p.column==g.column))break;d=v.end}v.cursor=h?v.start:v.end,l.push(v)}if(f&&l.reverse(),!i){for(var b=l.length-1;l[b].isEmpty()&&0<b;)b--;if(0<b)for(var y=0;l[y].isEmpty();)y++;for(var w=b;y<=w;w--)l[w].isEmpty()&&l.splice(w,1)}return l}}.call(s.prototype);var f=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(t){t.cursor||(t.cursor=t.end);var e=this.getSelectionStyle();return t.marker=this.session.addMarker(t,"ace_selection",e),this.session.$selectionMarkers.push(t),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,t},this.removeSelectionMarker=function(t){var e;t.marker&&(this.session.removeMarker(t.marker),-1!=(e=this.session.$selectionMarkers.indexOf(t))&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(t){for(var e=this.session.$selectionMarkers,i=t.length;i--;){var n,r=t[i];r.marker&&(this.session.removeMarker(r.marker),-1!=(n=e.indexOf(r))&&e.splice(n,1))}this.session.selectionMarkerCount=e.length},this.$onAddRange=function(t){this.addSelectionMarker(t.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(t){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(t){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(t){var e,i=t.command,n=t.editor;if(n.multiSelect)return i.multiSelectAction?e="forEach"==i.multiSelectAction?n.forEachSelection(i,t.args):"forEachLine"==i.multiSelectAction?n.forEachSelection(i,t.args,!0):"single"==i.multiSelectAction?(n.exitMultiSelectMode(),i.exec(n,t.args||{})):i.multiSelectAction(n,t.args||{}):(e=i.exec(n,t.args||{}),n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()),e},this.forEachSelection=function(t,e,i){if(!this.inVirtualSelectionMode){var n,r=i&&i.keepOrder,o=1==i||i&&i.$byLines,a=this.session,l=this.selection,h=l.rangeList,c=(r?l:h).ranges;if(!c.length)return t.exec?t.exec(this,e||{}):t(this,e||{});var u=l._eventRegistry;l._eventRegistry={};var d=new s(a);this.inVirtualSelectionMode=!0;for(var f=c.length;f--;){if(o)for(;0<f&&c[f].start.row==c[f-1].end.row;)f--;d.fromOrientedRange(c[f]),d.index=f,this.selection=a.selection=d;var p=t.exec?t.exec(this,e||{}):t(this,e||{});n||void 0===p||(n=p),d.toOrientedRange(c[f])}d.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var t="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var e=this.multiSelect.rangeList.ranges,i=[],n=0;n<e.length;n++)i.push(this.session.getTextRange(e[n]));var r=this.session.getDocument().getNewLineCharacter();(t=i.join(r)).length==(i.length-1)*r.length&&(t="")}else this.selection.isEmpty()||(t=this.session.getTextRange(this.getSelectionRange()));return t},this.$checkMultiselectChange=function(t,e){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var i=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&e==this.multiSelect.anchor)return;var n=e==this.multiSelect.anchor?i.cursor==i.start?i.end:i.start:i.cursor;n.row!=e.row||this.session.$clipPositionToDocument(n.row,n.column).column!=e.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(t,e,i){var n;(e=e||{}).needle=t||e.needle,null==e.needle&&(n=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),e.needle=this.session.getTextRange(n)),this.$search.set(e);var r=this.$search.findAll(this.session);if(!r.length)return 0;var o=this.multiSelect;i||o.toSingleRange(r[0]);for(var s=r.length;s--;)o.addRange(r[s],!0);return n&&o.rangeList.rangeAtPoint(n.start)&&o.addRange(n,!0),r.length},this.selectMoreLines=function(t,e){var i=this.selection.toOrientedRange(),n=i.cursor==i.end,r=this.session.documentToScreenPosition(i.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var s,a,l,h,c=this.session.screenToDocumentPosition(r.row+t,r.column);a=i.isEmpty()?c:(s=this.session.documentToScreenPosition(n?i.end:i.start),this.session.screenToDocumentPosition(s.row+t,s.column)),n?(l=o.fromPoints(c,a)).cursor=l.start:(l=o.fromPoints(a,c)).cursor=l.end,l.desiredColumn=r.column,this.selection.inMultiSelectMode?e&&(h=i.cursor):this.selection.addRange(i),this.selection.addRange(l),h&&this.selection.substractPoint(h)},this.transposeSelections=function(t){for(var e=this.session,i=e.multiSelect,n=i.ranges,r=n.length;r--;)(s=n[r]).isEmpty()&&(a=e.getWordRange(s.start.row,s.start.column),s.start.row=a.start.row,s.start.column=a.start.column,s.end.row=a.end.row,s.end.column=a.end.column);i.mergeOverlappingRanges();var o=[];for(r=n.length;r--;){var s=n[r];o.unshift(e.getTextRange(s))}for(t<0?o.unshift(o.pop()):o.push(o.shift()),r=n.length;r--;){var a=(s=n[r]).clone();e.replace(s,o[r]),s.start.row=a.start.row,s.start.column=a.start.column}i.fromOrientedRange(i.ranges[0])},this.selectMore=function(t,e,i){var n,r,o,s,a,l=this.session,h=l.multiSelect.toOrientedRange();h.isEmpty()&&((h=l.getWordRange(h.start.row,h.start.column)).cursor=-1==t?h.start:h.end,this.multiSelect.addRange(h),i)||(n=l.getTextRange(h),o=l,s=n,a=t,u.$options.wrap=!0,u.$options.needle=s,u.$options.backwards=-1==a,(r=u.find(o))&&(r.cursor=-1==t?r.start:r.end,this.session.unfold(r),this.multiSelect.addRange(r),this.renderer.scrollCursorIntoView(null,.5)),e&&this.multiSelect.substractPoint(h.cursor))},this.alignCursors=function(){var t=this.session,e=t.multiSelect,i=e.ranges,n=-1,r=i.filter((function(t){return t.cursor.row==n||void(n=t.cursor.row)}));if(i.length&&r.length!=i.length-1){r.forEach((function(t){e.substractPoint(t.cursor)}));var s=0,a=1/0,l=i.map((function(e){var i=e.cursor,n=t.getLine(i.row).substr(i.column).search(/\S/g);return-1==n&&(n=0),i.column>s&&(s=i.column),n<a&&(a=n),n}));i.forEach((function(e,i){var n=e.cursor,r=s-n.column,c=l[i]-a;c<r?t.insert(n,h.stringRepeat(" ",r-c)):t.remove(new o(n.row,n.column,n.row,n.column-r+c)),e.start.column=e.end.column=s,e.start.row=e.end.row=n.row,e.cursor=e.end})),e.fromOrientedRange(i[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),u=c.start.row,d=c.end.row,f=u==d;if(f){for(var p,g=this.session.getLength();p=this.session.getLine(d),/[=:]/.test(p)&&++d<g;);for(;p=this.session.getLine(u),/[=:]/.test(p)&&0<--u;);u<0&&(u=0),g<=d&&(d=g-1)}var m=this.session.removeFullLines(u,d);m=this.$reAlignText(m,f);this.session.insert({row:u,column:0},m.join("\n")+"\n"),f||(c.start.column=0,c.end.column=m[m.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(t,e){function i(t){return h.stringRepeat(" ",t)}function n(t){return t[2]?i(r)+t[2]+i(o-t[2].length+s)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}var r,o,s,a=!0,l=!0;return t.map((function(t){var e=t.match(/(\s*)(.*?)(\s*)([=:].*)/);return e?(null==r?(r=e[1].length,o=e[2].length,s=e[3].length):(r+o+s!=e[1].length+e[2].length+e[3].length&&(l=!1),r!=e[1].length&&(a=!1),r>e[1].length&&(r=e[1].length),o<e[2].length&&(o=e[2].length),s>e[3].length&&(s=e[3].length)),e):[t]})).map(e?n:a?l?function(t){return t[2]?i(r+o-t[2].length)+t[2]+i(s)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}:n:function(t){return t[2]?i(r)+t[2]+i(s)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]})}}).call(f.prototype),e.onSessionChange=function(t){var e=t.session;e&&!e.multiSelect&&(e.$selectionMarkers=[],e.selection.$initRangeList(),e.multiSelect=e.selection),this.multiSelect=e&&e.multiSelect;var i=t.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),e&&(e.multiSelect.on("addRange",this.$onAddRange),e.multiSelect.on("removeRange",this.$onRemoveRange),e.multiSelect.on("multiSelect",this.$onMultiSelect),e.multiSelect.on("singleSelect",this.$onSingleSelect),e.multiSelect.lead.on("change",this.$checkMultiselectChange),e.multiSelect.anchor.on("change",this.$checkMultiselectChange)),e&&this.inMultiSelectMode!=e.selection.inMultiSelectMode&&(e.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},e.MultiSelect=n,t("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(t){n(this),t?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(t){this.$blockSelectEnabled=t},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=t("../../range").Range,r=e.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(t,e,i){var n=t.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==e&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(t,e,i){return null},this.indentationBlock=function(t,e,i){var r=/\S/,o=t.getLine(e),s=o.search(r);if(-1!=s){for(var a=i||o.length,l=t.getLength(),h=e,c=e;++e<l;){var u=t.getLine(e).search(r);if(-1!=u){if(u<=s){var d=t.getTokenAt(e,0);if(!d||"string"!==d.type)break}c=e}}if(h<c){var f=t.getLine(c).length;return new n(h,a,c,f)}}},this.openingBracketBlock=function(t,e,i,r,o){var s={row:i,column:r+1},a=t.$findClosingBracket(e,s,o);if(a){var l=t.foldWidgets[a.row];return null==l&&(l=t.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=t.getLine(a.row).length),n.fromPoints(s,a)}},this.closingBracketBlock=function(t,e,i,r,o){var s={row:i,column:r},a=t.$findOpeningBracket(e,s);if(a)return a.column++,s.column--,n.fromPoints(a,s)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";e.isDark=!1,e.cssClass="ace-tm",e.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e.$id="ace/theme/textmate",t("../lib/dom").importCssString(e.cssText,e.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";function n(t){this.session=t,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var r=t("./lib/dom");(function(){this.getRowLength=function(t){var e=this.lineWidgets&&this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0;return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1+e:1+e},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach((function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)})),t},this.$onChangeEditor=function(t){this.attach(t.editor)},this.attach=function(t){t&&t.widgetManager&&t.widgetManager!=this&&t.widgetManager.detach(),this.editor!=t&&(this.detach(),(this.editor=t)&&(t.widgetManager=this,t.renderer.on("beforeRender",this.measureWidgets),t.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(t){var e,i=this.editor;i&&(this.editor=null,i.widgetManager=null,i.renderer.off("beforeRender",this.measureWidgets),i.renderer.off("afterRender",this.renderWidgets),(e=this.session.lineWidgets)&&e.forEach((function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))})))},this.updateOnFold=function(t,e){var i=e.lineWidgets;if(i&&t.action){for(var n=t.data,r=n.start.row,o=n.end.row,s="add"==t.action,a=r+1;a<o;a++)i[a]&&(i[a].hidden=s);i[o]&&(s?i[r]?i[o].hidden=s:i[r]=i[o]:(i[r]==i[o]&&(i[r]=void 0),i[o].hidden=s))}},this.updateOnChange=function(t){var e,i,n,r,o=this.session.lineWidgets;o&&(e=t.start.row,0==(i=t.end.row-e)||("remove"==t.action?(n=o.splice(e+1,i),!o[e]&&n[n.length-1]&&(o[e]=n.pop()),n.forEach((function(t){t&&this.removeLineWidget(t)}),this)):(r=new Array(i),o[e]&&null!=o[e].column&&t.start.column>o[e].column&&e++,r.unshift(e,0),o.splice.apply(o,r)),this.$updateRows()))},this.$updateRows=function(){var t,e=this.session.lineWidgets;e&&(t=!0,e.forEach((function(e,i){if(e)for(t=!1,e.row=i;e.$oldWidget;)e.$oldWidget.row=i,e=e.$oldWidget})),t&&(this.session.lineWidgets=null))},this.$registerLineWidget=function(t){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var e=this.session.lineWidgets[t.row];return e&&(t.$oldWidget=e).el&&e.el.parentNode&&(e.el.parentNode.removeChild(e.el),e._inDocument=!1),this.session.lineWidgets[t.row]=t},this.addLineWidget=function(t){if(this.$registerLineWidget(t),t.session=this.session,!this.editor)return t;var e=this.editor.renderer;t.html&&!t.el&&(t.el=r.createElement("div"),t.el.innerHTML=t.html),t.el&&(r.addCssClass(t.el,"ace_lineWidgetContainer"),t.el.style.position="absolute",t.el.style.zIndex=5,e.container.appendChild(t.el),t._inDocument=!0,t.coverGutter||(t.el.style.zIndex=3),null==t.pixelHeight&&(t.pixelHeight=t.el.offsetHeight)),null==t.rowCount&&(t.rowCount=t.pixelHeight/e.layerConfig.lineHeight);var i,n=this.session.getFoldAt(t.row,0);return(t.$fold=n)&&(i=this.session.lineWidgets,t.row!=n.end.row||i[n.start.row]?t.hidden=!0:i[n.start.row]=t),this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows(),this.renderWidgets(null,e),this.onWidgetChanged(t),t},this.removeLineWidget=function(t){if(t._inDocument=!1,t.session=null,t.el&&t.el.parentNode&&t.el.parentNode.removeChild(t.el),t.editor&&t.editor.destroy)try{t.editor.destroy()}catch(t){}if(this.session.lineWidgets){var e=this.session.lineWidgets[t.row];if(e==t)this.session.lineWidgets[t.row]=t.$oldWidget,t.$oldWidget&&this.onWidgetChanged(t.$oldWidget);else for(;e;){if(e.$oldWidget==t){e.$oldWidget=t.$oldWidget;break}e=e.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(t){for(var e=this.session.lineWidgets,i=e&&e[t],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(t){this.session._changedWidgets.push(t),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(t,e){var i=this.session._changedWidgets,n=e.layerConfig;if(i&&i.length){for(var r=1/0,o=0;o<i.length;o++){var s=i[o];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,e.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/n.characterWidth));var a=s.h/n.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<r&&(r=s.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(t,e){var i=e.layerConfig,n=this.session.lineWidgets;if(n){for(var r=Math.min(this.firstRow,i.firstRow),o=Math.max(this.lastRow,i.lastRow,n.length);0<r&&!n[r];)r--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,e.$cursorLayer.config=i;for(var s=r;s<=o;s++){var a,l,h=n[s];h&&h.el&&(h.hidden?h.el.style.top=-100-(h.pixelHeight||0)+"px":(h._inDocument||(h._inDocument=!0,e.container.appendChild(h.el)),a=e.$cursorLayer.getPixelPosition({row:s,column:0},!0).top,h.coverLine||(a+=i.lineHeight*this.session.getRowLineCount(h.row)),h.el.style.top=a-i.offset+"px",l=h.coverGutter?0:e.gutterWidth,h.fixedWidth||(l-=e.scrollLeft),h.el.style.left=l+"px",h.fullWidth&&h.screenWidth&&(h.el.style.minWidth=i.width+2*i.padding+"px"),h.fixedWidth?h.el.style.right=e.scrollBar.getWidth()+"px":h.el.style.right=""))}}}}).call(n.prototype),e.LineWidgets=n})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(t,e,i){"use strict";function n(t,e,i){var n=t.getAnnotations().sort(s.comparePoints);if(n.length){var r=function(t,e,i){for(var n=0,r=t.length-1;n<=r;){var o=n+r>>1,s=i(e,t[o]);if(0<s)n=1+o;else{if(!(s<0))return o;r=o-1}}return-(n+1)}(n,{row:e,column:-1},s.comparePoints);r<0&&(r=-r-1),r>=n.length?r=0<i?0:n.length-1:0===r&&i<0&&(r=n.length-1);var o=n[r];if(o&&i){if(o.row===e){for(;(o=n[r+=i])&&o.row===e;);if(!o)return n.slice()}var a=[];for(e=o.row;a[i<0?"unshift":"push"](o),(o=n[r+=i])&&o.row==e;);return a.length&&a}}}var r=t("../line_widgets").LineWidgets,o=t("../lib/dom"),s=t("../range").Range;e.showErrorMarker=function(t,e){function i(t,e,i){if(0===e&&("esc"===i||"return"===i))return f.destroy(),{command:"null"}}var s=t.session;s.widgetManager||(s.widgetManager=new r(s),s.widgetManager.attach(t));var a=t.getCursorPosition(),l=a.row,h=s.widgetManager.getWidgetsAtRow(l).filter((function(t){return"errorMarker"==t.type}))[0];h?h.destroy():l-=e;var c,u=n(s,l,e);if(u){var d=u[0];a.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,a.row=d.row,c=t.renderer.$gutterLayer.$annotations[a.row]}else{if(h)return;c={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(a.row),t.selection.moveToPosition(a);var f={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},p=f.el.appendChild(o.createElement("div")),g=f.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+c.className;var m=t.renderer.$cursorLayer.getPixelPosition(a).left;g.style.left=m+t.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",p.className="error_widget "+c.className,p.innerHTML=c.text.join("<br>"),p.appendChild(o.createElement("div")),f.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(i),s.widgetManager.removeLineWidget(f),t.off("changeSelection",f.destroy),t.off("changeSession",f.destroy),t.off("mouseup",f.destroy),t.off("change",f.destroy))},t.keyBinding.addKeyboardHandler(i),t.on("changeSelection",f.destroy),t.on("changeSession",f.destroy),t.on("mouseup",f.destroy),t.on("change",f.destroy),t.session.widgetManager.addLineWidget(f),f.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(t,e,n){"use strict";t("./lib/fixoldbrowsers");var r=t("./lib/dom"),o=t("./lib/event"),s=t("./range").Range,a=t("./editor").Editor,l=t("./edit_session").EditSession,h=t("./undomanager").UndoManager,c=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),e.config=t("./config"),e.require=t,e.define=i(23),e.edit=function(t,i){if("string"==typeof t){var n=t;if(!(t=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(t&&t.env&&t.env.editor instanceof a)return t.env.editor;var s,l="";t&&/input|textarea/i.test(t.tagName)?(l=(s=t).value,t=r.createElement("pre"),s.parentNode.replaceChild(t,s)):t&&(l=t.textContent,t.innerHTML="");var h=e.createEditSession(l),u=new a(new c(t),h,i),d={document:h,editor:u,onResize:u.resize.bind(u,null)};return s&&(d.textarea=s),o.addListener(window,"resize",d.onResize),u.on("destroy",(function(){o.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),u.container.env=u.env=d,u},e.createEditSession=function(t,e){var i=new l(t,e);return i.setUndoManager(new h),i},e.Range=s,e.Editor=a,e.EditSession=l,e.UndoManager=h,e.VirtualRenderer=c,e.version=e.config.version})),ace.require(["ace/ace"],(function(e){for(var i in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(i)&&(window.ace[i]=e[i]);window.ace.default=window.ace,t&&(t.exports=window.ace)}))}).call(this,i(16)(t))},function(t,e,i){(function(t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(t,e,i){"use strict";function n(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var r=t("../lib/oop"),o=t("./text_highlight_rules").TextHighlightRules;r.inherits(n,o),e.JsonHighlightRules=n})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(){}var r=t("../range").Range;(function(){this.checkOutdent=function(t,e){return!!/^\s+$/.test(t)&&/^\s*\}/.test(e)},this.autoOutdent=function(t,e){var i=t.getLine(e).match(/^(\s*\})/);if(!i)return 0;var n=i[1].length,o=t.findMatchingBracket({row:e,column:n});if(!o||o.row==e)return 0;var s=this.$getIndent(t.getLine(o.row));t.replace(new r(e,0,e,n-1),s)},this.$getIndent=function(t){return t.match(/^\s*/)[0]}}).call(n.prototype),e.MatchingBraceOutdent=n})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(t,e,i){"use strict";var n=t("../../lib/oop"),r=t("../../range").Range,o=t("./fold_mode").FoldMode,s=e.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};n.inherits(s,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,e,i){var n=t.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var r=this._getFoldWidgetBase(t,e,i);return!r&&this.startRegionRe.test(n)?"start":r},this.getFoldWidgetRange=function(t,e,i,n){var r=t.getLine(i);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(t,r,i);var o=r.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.openingBracketBlock(t,o[1],i,s);var a=t.getCommentFoldRange(i,s+o[0].length,1);return a&&!a.isMultiLine()&&(n?a=this.getSectionRange(t,i):"all"!=e&&(a=null)),a}return"markbegin"!==e&&(o=r.match(this.foldingStopMarker))?(s=o.index+o[0].length,o[1]?this.closingBracketBlock(t,o[1],i,s):t.getCommentFoldRange(i,s,-1)):void 0},this.getSectionRange=function(t,e){for(var i=t.getLine(e),n=i.search(/\S/),o=e,s=i.length,a=e+=1,l=t.getLength();++e<l;){var h=(i=t.getLine(e)).search(/\S/);if(-1!==h){if(h<n)break;var c=this.getFoldWidgetRange(t,"all",e);if(c){if(c.start.row<=o)break;if(c.isMultiLine())e=c.end.row;else if(n==h)break}a=e}}return new r(o,s,a,t.getLine(a).length)},this.getCommentRegionBlock=function(t,e,i){for(var n=e.search(/\s*$/),o=t.getLength(),s=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++i<o;){e=t.getLine(i);var h=a.exec(e);if(h&&(h[1]?l--:l++,!l))break}if(s<i)return new r(s,n,i,e.length)}}.call(s.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(t,e,i){"use strict";function n(){this.HighlightRules=s,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new h}var r=t("../lib/oop"),o=t("./text").Mode,s=t("./json_highlight_rules").JsonHighlightRules,a=t("./matching_brace_outdent").MatchingBraceOutdent,l=t("./behaviour/cstyle").CstyleBehaviour,h=t("./folding/cstyle").FoldMode,c=t("../worker/worker_client").WorkerClient;r.inherits(n,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,e,i){var n=this.$getIndent(e);return"start"==t&&e.match(/^.*[\{\(\[]\s*$/)&&(n+=i),n},this.checkOutdent=function(t,e,i){return this.$outdent.checkOutdent(e,i)},this.autoOutdent=function(t,e,i){this.$outdent.autoOutdent(e,i)},this.createWorker=function(t){var e=new c(["ace"],"ace/mode/json_worker","JsonWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",(function(e){t.setAnnotations(e.data)})),e.on("terminate",(function(){t.clearAnnotations()})),e},this.$id="ace/mode/json"}.call(n.prototype),e.Mode=n})),ace.require(["ace/mode/json"],(function(e){t&&(t.exports=e)}))}).call(this,i(16)(t))},function(t,e,i){(function(t){ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],(function(t,e,i){"use strict";function n(t,e,i){var n=r.createElement("div");r.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],n),this.element=n.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(t),r.importCssString(a,"ace_searchbox",t.container)}var r=t("../lib/dom"),o=t("../lib/lang"),s=t("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=t("../keyboard/hash_handler").HashHandler,h=t("../lib/keys");r.importCssString(a,"ace_searchbox"),function(){this.setEditor=function(t){t.searchBox=this,t.renderer.scroller.appendChild(this.element),this.editor=t},this.setSession=function(t){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(t){this.searchBox=t.querySelector(".ace_search_form"),this.replaceBox=t.querySelector(".ace_replace_form"),this.searchOption=t.querySelector("[action=searchInSelection]"),this.replaceOption=t.querySelector("[action=toggleReplace]"),this.regExpOption=t.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=t.querySelector(".ace_search_counter")},this.$init=function(){var t=this.element;this.$initElements(t);var e=this;s.addListener(t,"mousedown",(function(t){setTimeout((function(){e.activeInput.focus()}),0),s.stopPropagation(t)})),s.addListener(t,"click",(function(t){var i=(t.target||t.srcElement).getAttribute("action");i&&e[i]?e[i]():e.$searchBarKb.commands[i]&&e.$searchBarKb.commands[i].exec(e),s.stopPropagation(t)})),s.addCommandKeyListener(t,(function(t,i,n){var r=h.keyCodeToString(n),o=e.$searchBarKb.findKeyCommand(i,r);o&&o.exec&&(o.exec(e),s.stopEvent(t))})),this.$onChange=o.delayedCall((function(){e.find(!1,!1)})),s.addListener(this.searchInput,"input",(function(){e.$onChange.schedule(20)})),s.addListener(this.searchInput,"focus",(function(){e.activeInput=e.searchInput,e.searchInput.value&&e.highlight()})),s.addListener(this.replaceInput,"focus",(function(){e.activeInput=e.replaceInput,e.searchInput.value&&e.highlight()}))},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(t){t.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(t){var e=t.isReplace=!t.isReplace;t.replaceBox.style.display=e?"":"none",t.replaceOption.checked=!1,t.$syncOptions(),t.searchInput.focus()},"Ctrl-H|Command-Option-F":function(t){t.editor.getReadOnly()||(t.replaceOption.checked=!0,t.$syncOptions(),t.replaceInput.focus())},"Ctrl-G|Command-G":function(t){t.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(t){t.findPrev()},esc:function(t){setTimeout((function(){t.hide()}))},Return:function(t){t.activeInput==t.replaceInput&&t.replace(),t.findNext()},"Shift-Return":function(t){t.activeInput==t.replaceInput&&t.replace(),t.findPrev()},"Alt-Return":function(t){t.activeInput==t.replaceInput&&t.replaceAll(),t.findAll()},Tab:function(t){(t.activeInput==t.replaceInput?t.searchInput:t.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(t){t.regExpOption.checked=!t.regExpOption.checked,t.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(t){t.caseSensitiveOption.checked=!t.caseSensitiveOption.checked,t.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(t){t.wholeWordOption.checked=!t.wholeWordOption.checked,t.$syncOptions()}},{name:"toggleReplace",exec:function(t){t.replaceOption.checked=!t.replaceOption.checked,t.$syncOptions()}},{name:"searchInSelection",exec:function(t){t.searchOption.checked=!t.searchRange,t.setSearchRange(t.searchOption.checked&&t.editor.getSelectionRange()),t.$syncOptions()}}]),this.setSearchRange=function(t){(this.searchRange=t)?this.searchRangeMarker=this.editor.session.addMarker(t,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(t){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var e=this.editor.getReadOnly();this.replaceOption.style.display=e?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!e?"":"none",this.find(!1,!1,t)},this.highlight=function(t){this.editor.session.highlight(t||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(t,e,i){var n=!this.editor.find(this.searchInput.value,{skipCurrent:t,backwards:e,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:i,range:this.searchRange})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",n),this.editor._emit("findSearchBox",{match:!n}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var t=this.editor,e=t.$search.$options.re,i=0,n=0;if(e){var r=this.searchRange?t.session.getTextRange(this.searchRange):t.getValue(),o=t.session.doc.positionToIndex(t.selection.anchor);this.searchRange&&(o-=t.session.doc.positionToIndex(this.searchRange.start));for(var s,a=e.lastIndex=0;(s=e.exec(r))&&(i++,(a=s.index)<=o&&n++,!(999<i))&&(s[0]||(e.lastIndex=a+=1,!(a>=r.length))););}this.searchCounter.textContent=n+" of "+(999<i?"999+":i)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var t=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(t,e){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=e,t&&(this.searchInput.value=t),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var t=document.activeElement;return t==this.searchInput||t==this.replaceInput}}.call(n.prototype),e.SearchBox=n,e.Search=function(t,e){(t.searchBox||new n(t)).show(t.session.getTextRange(),e)}})),ace.require(["ace/ext/searchbox"],(function(e){t&&(t.exports=e)}))}).call(this,i(16)(t))},function(t,e){t.exports="data:application/javascript;base64,Im5vIHVzZSBzdHJpY3QiOwohKGZ1bmN0aW9uKHdpbmRvdykgewppZiAodHlwZW9mIHdpbmRvdy53aW5kb3cgIT0gInVuZGVmaW5lZCIgJiYgd2luZG93LmRvY3VtZW50KQogICAgcmV0dXJuOwppZiAod2luZG93LnJlcXVpcmUgJiYgd2luZG93LmRlZmluZSkKICAgIHJldHVybjsKCmlmICghd2luZG93LmNvbnNvbGUpIHsKICAgIHdpbmRvdy5jb25zb2xlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIG1zZ3MgPSBBcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMsIDApOwogICAgICAgIHBvc3RNZXNzYWdlKHt0eXBlOiAibG9nIiwgZGF0YTogbXNnc30pOwogICAgfTsKICAgIHdpbmRvdy5jb25zb2xlLmVycm9yID0KICAgIHdpbmRvdy5jb25zb2xlLndhcm4gPSAKICAgIHdpbmRvdy5jb25zb2xlLmxvZyA9CiAgICB3aW5kb3cuY29uc29sZS50cmFjZSA9IHdpbmRvdy5jb25zb2xlOwp9CndpbmRvdy53aW5kb3cgPSB3aW5kb3c7CndpbmRvdy5hY2UgPSB3aW5kb3c7Cgp3aW5kb3cub25lcnJvciA9IGZ1bmN0aW9uKG1lc3NhZ2UsIGZpbGUsIGxpbmUsIGNvbCwgZXJyKSB7CiAgICBwb3N0TWVzc2FnZSh7dHlwZTogImVycm9yIiwgZGF0YTogewogICAgICAgIG1lc3NhZ2U6IG1lc3NhZ2UsCiAgICAgICAgZGF0YTogZXJyLmRhdGEsCiAgICAgICAgZmlsZTogZmlsZSwKICAgICAgICBsaW5lOiBsaW5lLCAKICAgICAgICBjb2w6IGNvbCwKICAgICAgICBzdGFjazogZXJyLnN0YWNrCiAgICB9fSk7Cn07Cgp3aW5kb3cubm9ybWFsaXplTW9kdWxlID0gZnVuY3Rpb24ocGFyZW50SWQsIG1vZHVsZU5hbWUpIHsKICAgIC8vIG5vcm1hbGl6ZSBwbHVnaW4gcmVxdWlyZXMKICAgIGlmIChtb2R1bGVOYW1lLmluZGV4T2YoIiEiKSAhPT0gLTEpIHsKICAgICAgICB2YXIgY2h1bmtzID0gbW9kdWxlTmFtZS5zcGxpdCgiISIpOwogICAgICAgIHJldHVybiB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBjaHVua3NbMF0pICsgIiEiICsgd2luZG93Lm5vcm1hbGl6ZU1vZHVsZShwYXJlbnRJZCwgY2h1bmtzWzFdKTsKICAgIH0KICAgIC8vIG5vcm1hbGl6ZSByZWxhdGl2ZSByZXF1aXJlcwogICAgaWYgKG1vZHVsZU5hbWUuY2hhckF0KDApID09ICIuIikgewogICAgICAgIHZhciBiYXNlID0gcGFyZW50SWQuc3BsaXQoIi8iKS5zbGljZSgwLCAtMSkuam9pbigiLyIpOwogICAgICAgIG1vZHVsZU5hbWUgPSAoYmFzZSA/IGJhc2UgKyAiLyIgOiAiIikgKyBtb2R1bGVOYW1lOwogICAgICAgIAogICAgICAgIHdoaWxlIChtb2R1bGVOYW1lLmluZGV4T2YoIi4iKSAhPT0gLTEgJiYgcHJldmlvdXMgIT0gbW9kdWxlTmFtZSkgewogICAgICAgICAgICB2YXIgcHJldmlvdXMgPSBtb2R1bGVOYW1lOwogICAgICAgICAgICBtb2R1bGVOYW1lID0gbW9kdWxlTmFtZS5yZXBsYWNlKC9eXC5cLy8sICIiKS5yZXBsYWNlKC9cL1wuXC8vLCAiLyIpLnJlcGxhY2UoL1teXC9dK1wvXC5cLlwvLywgIiIpOwogICAgICAgIH0KICAgIH0KICAgIAogICAgcmV0dXJuIG1vZHVsZU5hbWU7Cn07Cgp3aW5kb3cucmVxdWlyZSA9IGZ1bmN0aW9uIHJlcXVpcmUocGFyZW50SWQsIGlkKSB7CiAgICBpZiAoIWlkKSB7CiAgICAgICAgaWQgPSBwYXJlbnRJZDsKICAgICAgICBwYXJlbnRJZCA9IG51bGw7CiAgICB9CiAgICBpZiAoIWlkLmNoYXJBdCkKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIndvcmtlci5qcyByZXF1aXJlKCkgYWNjZXB0cyBvbmx5IChwYXJlbnRJZCwgaWQpIGFzIGFyZ3VtZW50cyIpOwoKICAgIGlkID0gd2luZG93Lm5vcm1hbGl6ZU1vZHVsZShwYXJlbnRJZCwgaWQpOwoKICAgIHZhciBtb2R1bGUgPSB3aW5kb3cucmVxdWlyZS5tb2R1bGVzW2lkXTsKICAgIGlmIChtb2R1bGUpIHsKICAgICAgICBpZiAoIW1vZHVsZS5pbml0aWFsaXplZCkgewogICAgICAgICAgICBtb2R1bGUuaW5pdGlhbGl6ZWQgPSB0cnVlOwogICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IG1vZHVsZS5mYWN0b3J5KCkuZXhwb3J0czsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIG1vZHVsZS5leHBvcnRzOwogICAgfQogICAKICAgIGlmICghd2luZG93LnJlcXVpcmUudGxucykKICAgICAgICByZXR1cm4gY29uc29sZS5sb2coInVuYWJsZSB0byBsb2FkICIgKyBpZCk7CiAgICAKICAgIHZhciBwYXRoID0gcmVzb2x2ZU1vZHVsZUlkKGlkLCB3aW5kb3cucmVxdWlyZS50bG5zKTsKICAgIGlmIChwYXRoLnNsaWNlKC0zKSAhPSAiLmpzIikgcGF0aCArPSAiLmpzIjsKICAgIAogICAgd2luZG93LnJlcXVpcmUuaWQgPSBpZDsKICAgIHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdID0ge307IC8vIHByZXZlbnQgaW5maW5pdGUgbG9vcCBvbiBicm9rZW4gbW9kdWxlcwogICAgaW1wb3J0U2NyaXB0cyhwYXRoKTsKICAgIHJldHVybiB3aW5kb3cucmVxdWlyZShwYXJlbnRJZCwgaWQpOwp9OwpmdW5jdGlvbiByZXNvbHZlTW9kdWxlSWQoaWQsIHBhdGhzKSB7CiAgICB2YXIgdGVzdFBhdGggPSBpZCwgdGFpbCA9ICIiOwogICAgd2hpbGUgKHRlc3RQYXRoKSB7CiAgICAgICAgdmFyIGFsaWFzID0gcGF0aHNbdGVzdFBhdGhdOwogICAgICAgIGlmICh0eXBlb2YgYWxpYXMgPT0gInN0cmluZyIpIHsKICAgICAgICAgICAgcmV0dXJuIGFsaWFzICsgdGFpbDsKICAgICAgICB9IGVsc2UgaWYgKGFsaWFzKSB7CiAgICAgICAgICAgIHJldHVybiAgYWxpYXMubG9jYXRpb24ucmVwbGFjZSgvXC8qJC8sICIvIikgKyAodGFpbCB8fCBhbGlhcy5tYWluIHx8IGFsaWFzLm5hbWUpOwogICAgICAgIH0gZWxzZSBpZiAoYWxpYXMgPT09IGZhbHNlKSB7CiAgICAgICAgICAgIHJldHVybiAiIjsKICAgICAgICB9CiAgICAgICAgdmFyIGkgPSB0ZXN0UGF0aC5sYXN0SW5kZXhPZigiLyIpOwogICAgICAgIGlmIChpID09PSAtMSkgYnJlYWs7CiAgICAgICAgdGFpbCA9IHRlc3RQYXRoLnN1YnN0cihpKSArIHRhaWw7CiAgICAgICAgdGVzdFBhdGggPSB0ZXN0UGF0aC5zbGljZSgwLCBpKTsKICAgIH0KICAgIHJldHVybiBpZDsKfQp3aW5kb3cucmVxdWlyZS5tb2R1bGVzID0ge307CndpbmRvdy5yZXF1aXJlLnRsbnMgPSB7fTsKCndpbmRvdy5kZWZpbmUgPSBmdW5jdGlvbihpZCwgZGVwcywgZmFjdG9yeSkgewogICAgaWYgKGFyZ3VtZW50cy5sZW5ndGggPT0gMikgewogICAgICAgIGZhY3RvcnkgPSBkZXBzOwogICAgICAgIGlmICh0eXBlb2YgaWQgIT0gInN0cmluZyIpIHsKICAgICAgICAgICAgZGVwcyA9IGlkOwogICAgICAgICAgICBpZCA9IHdpbmRvdy5yZXF1aXJlLmlkOwogICAgICAgIH0KICAgIH0gZWxzZSBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PSAxKSB7CiAgICAgICAgZmFjdG9yeSA9IGlkOwogICAgICAgIGRlcHMgPSBbXTsKICAgICAgICBpZCA9IHdpbmRvdy5yZXF1aXJlLmlkOwogICAgfQogICAgCiAgICBpZiAodHlwZW9mIGZhY3RvcnkgIT0gImZ1bmN0aW9uIikgewogICAgICAgIHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdID0gewogICAgICAgICAgICBleHBvcnRzOiBmYWN0b3J5LAogICAgICAgICAgICBpbml0aWFsaXplZDogdHJ1ZQogICAgICAgIH07CiAgICAgICAgcmV0dXJuOwogICAgfQoKICAgIGlmICghZGVwcy5sZW5ndGgpCiAgICAgICAgLy8gSWYgdGhlcmUgaXMgbm8gZGVwZW5kZW5jaWVzLCB3ZSBpbmplY3QgInJlcXVpcmUiLCAiZXhwb3J0cyIgYW5kCiAgICAgICAgLy8gIm1vZHVsZSIgYXMgZGVwZW5kZW5jaWVzLCB0byBwcm92aWRlIENvbW1vbkpTIGNvbXBhdGliaWxpdHkuCiAgICAgICAgZGVwcyA9IFsicmVxdWlyZSIsICJleHBvcnRzIiwgIm1vZHVsZSJdOwoKICAgIHZhciByZXEgPSBmdW5jdGlvbihjaGlsZElkKSB7CiAgICAgICAgcmV0dXJuIHdpbmRvdy5yZXF1aXJlKGlkLCBjaGlsZElkKTsKICAgIH07CgogICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7CiAgICAgICAgZXhwb3J0czoge30sCiAgICAgICAgZmFjdG9yeTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciBtb2R1bGUgPSB0aGlzOwogICAgICAgICAgICB2YXIgcmV0dXJuRXhwb3J0cyA9IGZhY3RvcnkuYXBwbHkodGhpcywgZGVwcy5zbGljZSgwLCBmYWN0b3J5Lmxlbmd0aCkubWFwKGZ1bmN0aW9uKGRlcCkgewogICAgICAgICAgICAgICAgc3dpdGNoIChkZXApIHsKICAgICAgICAgICAgICAgICAgICAvLyBCZWNhdXNlICJyZXF1aXJlIiwgImV4cG9ydHMiIGFuZCAibW9kdWxlIiBhcmVuJ3QgYWN0dWFsCiAgICAgICAgICAgICAgICAgICAgLy8gZGVwZW5kZW5jaWVzLCB3ZSBtdXN0IGhhbmRsZSB0aGVtIHNlcGVyYXRlbHkuCiAgICAgICAgICAgICAgICAgICAgY2FzZSAicmVxdWlyZSI6IHJldHVybiByZXE7CiAgICAgICAgICAgICAgICAgICAgY2FzZSAiZXhwb3J0cyI6IHJldHVybiBtb2R1bGUuZXhwb3J0czsKICAgICAgICAgICAgICAgICAgICBjYXNlICJtb2R1bGUiOiAgcmV0dXJuIG1vZHVsZTsKICAgICAgICAgICAgICAgICAgICAvLyBCdXQgZm9yIGFsbCBvdGhlciBkZXBlbmRlbmNpZXMsIHdlIGNhbiBqdXN0IGdvIGFoZWFkIGFuZAogICAgICAgICAgICAgICAgICAgIC8vIHJlcXVpcmUgdGhlbS4KICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OiAgICAgICAgcmV0dXJuIHJlcShkZXApOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KSk7CiAgICAgICAgICAgIGlmIChyZXR1cm5FeHBvcnRzKQogICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSByZXR1cm5FeHBvcnRzOwogICAgICAgICAgICByZXR1cm4gbW9kdWxlOwogICAgICAgIH0KICAgIH07Cn07CndpbmRvdy5kZWZpbmUuYW1kID0ge307CnJlcXVpcmUudGxucyA9IHt9Owp3aW5kb3cuaW5pdEJhc2VVcmxzICA9IGZ1bmN0aW9uIGluaXRCYXNlVXJscyh0b3BMZXZlbE5hbWVzcGFjZXMpIHsKICAgIGZvciAodmFyIGkgaW4gdG9wTGV2ZWxOYW1lc3BhY2VzKQogICAgICAgIHJlcXVpcmUudGxuc1tpXSA9IHRvcExldmVsTmFtZXNwYWNlc1tpXTsKfTsKCndpbmRvdy5pbml0U2VuZGVyID0gZnVuY3Rpb24gaW5pdFNlbmRlcigpIHsKCiAgICB2YXIgRXZlbnRFbWl0dGVyID0gd2luZG93LnJlcXVpcmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKICAgIHZhciBvb3AgPSB3aW5kb3cucmVxdWlyZSgiYWNlL2xpYi9vb3AiKTsKICAgIAogICAgdmFyIFNlbmRlciA9IGZ1bmN0aW9uKCkge307CiAgICAKICAgIChmdW5jdGlvbigpIHsKICAgICAgICAKICAgICAgICBvb3AuaW1wbGVtZW50KHRoaXMsIEV2ZW50RW1pdHRlcik7CiAgICAgICAgICAgICAgICAKICAgICAgICB0aGlzLmNhbGxiYWNrID0gZnVuY3Rpb24oZGF0YSwgY2FsbGJhY2tJZCkgewogICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICB0eXBlOiAiY2FsbCIsCiAgICAgICAgICAgICAgICBpZDogY2FsbGJhY2tJZCwKICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEKICAgICAgICAgICAgfSk7CiAgICAgICAgfTsKICAgIAogICAgICAgIHRoaXMuZW1pdCA9IGZ1bmN0aW9uKG5hbWUsIGRhdGEpIHsKICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgdHlwZTogImV2ZW50IiwKICAgICAgICAgICAgICAgIG5hbWU6IG5hbWUsCiAgICAgICAgICAgICAgICBkYXRhOiBkYXRhCiAgICAgICAgICAgIH0pOwogICAgICAgIH07CiAgICAgICAgCiAgICB9KS5jYWxsKFNlbmRlci5wcm90b3R5cGUpOwogICAgCiAgICByZXR1cm4gbmV3IFNlbmRlcigpOwp9OwoKdmFyIG1haW4gPSB3aW5kb3cubWFpbiA9IG51bGw7CnZhciBzZW5kZXIgPSB3aW5kb3cuc2VuZGVyID0gbnVsbDsKCndpbmRvdy5vbm1lc3NhZ2UgPSBmdW5jdGlvbihlKSB7CiAgICB2YXIgbXNnID0gZS5kYXRhOwogICAgaWYgKG1zZy5ldmVudCAmJiBzZW5kZXIpIHsKICAgICAgICBzZW5kZXIuX3NpZ25hbChtc2cuZXZlbnQsIG1zZy5kYXRhKTsKICAgIH0KICAgIGVsc2UgaWYgKG1zZy5jb21tYW5kKSB7CiAgICAgICAgaWYgKG1haW5bbXNnLmNvbW1hbmRdKQogICAgICAgICAgICBtYWluW21zZy5jb21tYW5kXS5hcHBseShtYWluLCBtc2cuYXJncyk7CiAgICAgICAgZWxzZSBpZiAod2luZG93W21zZy5jb21tYW5kXSkKICAgICAgICAgICAgd2luZG93W21zZy5jb21tYW5kXS5hcHBseSh3aW5kb3csIG1zZy5hcmdzKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigiVW5rbm93biBjb21tYW5kOiIgKyBtc2cuY29tbWFuZCk7CiAgICB9CiAgICBlbHNlIGlmIChtc2cuaW5pdCkgewogICAgICAgIHdpbmRvdy5pbml0QmFzZVVybHMobXNnLnRsbnMpOwogICAgICAgIHNlbmRlciA9IHdpbmRvdy5zZW5kZXIgPSB3aW5kb3cuaW5pdFNlbmRlcigpOwogICAgICAgIHZhciBjbGF6eiA9IHJlcXVpcmUobXNnLm1vZHVsZSlbbXNnLmNsYXNzbmFtZV07CiAgICAgICAgbWFpbiA9IHdpbmRvdy5tYWluID0gbmV3IGNsYXp6KHNlbmRlcik7CiAgICB9Cn07Cn0pKHRoaXMpOwoKYWNlLmRlZmluZSgiYWNlL2xpYi9vb3AiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKZXhwb3J0cy5pbmhlcml0cyA9IGZ1bmN0aW9uKGN0b3IsIHN1cGVyQ3RvcikgewogICAgY3Rvci5zdXBlcl8gPSBzdXBlckN0b3I7CiAgICBjdG9yLnByb3RvdHlwZSA9IE9iamVjdC5jcmVhdGUoc3VwZXJDdG9yLnByb3RvdHlwZSwgewogICAgICAgIGNvbnN0cnVjdG9yOiB7CiAgICAgICAgICAgIHZhbHVlOiBjdG9yLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0KICAgIH0pOwp9OwoKZXhwb3J0cy5taXhpbiA9IGZ1bmN0aW9uKG9iaiwgbWl4aW4pIHsKICAgIGZvciAodmFyIGtleSBpbiBtaXhpbikgewogICAgICAgIG9ialtrZXldID0gbWl4aW5ba2V5XTsKICAgIH0KICAgIHJldHVybiBvYmo7Cn07CgpleHBvcnRzLmltcGxlbWVudCA9IGZ1bmN0aW9uKHByb3RvLCBtaXhpbikgewogICAgZXhwb3J0cy5taXhpbihwcm90bywgbWl4aW4pOwp9OwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvcmFuZ2UiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwp2YXIgY29tcGFyZVBvaW50cyA9IGZ1bmN0aW9uKHAxLCBwMikgewogICAgcmV0dXJuIHAxLnJvdyAtIHAyLnJvdyB8fCBwMS5jb2x1bW4gLSBwMi5jb2x1bW47Cn07CnZhciBSYW5nZSA9IGZ1bmN0aW9uKHN0YXJ0Um93LCBzdGFydENvbHVtbiwgZW5kUm93LCBlbmRDb2x1bW4pIHsKICAgIHRoaXMuc3RhcnQgPSB7CiAgICAgICAgcm93OiBzdGFydFJvdywKICAgICAgICBjb2x1bW46IHN0YXJ0Q29sdW1uCiAgICB9OwoKICAgIHRoaXMuZW5kID0gewogICAgICAgIHJvdzogZW5kUm93LAogICAgICAgIGNvbHVtbjogZW5kQ29sdW1uCiAgICB9Owp9OwoKKGZ1bmN0aW9uKCkgewogICAgdGhpcy5pc0VxdWFsID0gZnVuY3Rpb24ocmFuZ2UpIHsKICAgICAgICByZXR1cm4gdGhpcy5zdGFydC5yb3cgPT09IHJhbmdlLnN0YXJ0LnJvdyAmJgogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPT09IHJhbmdlLmVuZC5yb3cgJiYKICAgICAgICAgICAgdGhpcy5zdGFydC5jb2x1bW4gPT09IHJhbmdlLnN0YXJ0LmNvbHVtbiAmJgogICAgICAgICAgICB0aGlzLmVuZC5jb2x1bW4gPT09IHJhbmdlLmVuZC5jb2x1bW47CiAgICB9OwogICAgdGhpcy50b1N0cmluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiAoIlJhbmdlOiBbIiArIHRoaXMuc3RhcnQucm93ICsgIi8iICsgdGhpcy5zdGFydC5jb2x1bW4gKwogICAgICAgICAgICAiXSAtPiBbIiArIHRoaXMuZW5kLnJvdyArICIvIiArIHRoaXMuZW5kLmNvbHVtbiArICJdIik7CiAgICB9OwoKICAgIHRoaXMuY29udGFpbnMgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDA7CiAgICB9OwogICAgdGhpcy5jb21wYXJlUmFuZ2UgPSBmdW5jdGlvbihyYW5nZSkgewogICAgICAgIHZhciBjbXAsCiAgICAgICAgICAgIGVuZCA9IHJhbmdlLmVuZCwKICAgICAgICAgICAgc3RhcnQgPSByYW5nZS5zdGFydDsKCiAgICAgICAgY21wID0gdGhpcy5jb21wYXJlKGVuZC5yb3csIGVuZC5jb2x1bW4pOwogICAgICAgIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICBjbXAgPSB0aGlzLmNvbXBhcmUoc3RhcnQucm93LCBzdGFydC5jb2x1bW4pOwogICAgICAgICAgICBpZiAoY21wID09IDEpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICB9IGVsc2UgaWYgKGNtcCA9PSAwKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIGlmIChjbXAgPT0gLTEpIHsKICAgICAgICAgICAgcmV0dXJuIC0yOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gLTEpIHsKICAgICAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICAgICAgfSBlbHNlIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDQyOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9OwogICAgdGhpcy5jb21wYXJlUG9pbnQgPSBmdW5jdGlvbihwKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShwLnJvdywgcC5jb2x1bW4pOwogICAgfTsKICAgIHRoaXMuY29udGFpbnNSYW5nZSA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLnN0YXJ0KSA9PSAwICYmIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLmVuZCkgPT0gMDsKICAgIH07CiAgICB0aGlzLmludGVyc2VjdHMgPSBmdW5jdGlvbihyYW5nZSkgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmVSYW5nZShyYW5nZSk7CiAgICAgICAgcmV0dXJuIChjbXAgPT0gLTEgfHwgY21wID09IDAgfHwgY21wID09IDEpOwogICAgfTsKICAgIHRoaXMuaXNFbmQgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW47CiAgICB9OwogICAgdGhpcy5pc1N0YXJ0ID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbjsKICAgIH07CiAgICB0aGlzLnNldFN0YXJ0ID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodHlwZW9mIHJvdyA9PSAib2JqZWN0IikgewogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93LnJvdzsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB0aGlzLnN0YXJ0LnJvdyA9IHJvdzsKICAgICAgICAgICAgdGhpcy5zdGFydC5jb2x1bW4gPSBjb2x1bW47CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuc2V0RW5kID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodHlwZW9mIHJvdyA9PSAib2JqZWN0IikgewogICAgICAgICAgICB0aGlzLmVuZC5jb2x1bW4gPSByb3cuY29sdW1uOwogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPSByb3cucm93OwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHRoaXMuZW5kLnJvdyA9IHJvdzsKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID0gY29sdW1uOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLmluc2lkZSA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuY29tcGFyZShyb3csIGNvbHVtbikgPT0gMCkgewogICAgICAgICAgICBpZiAodGhpcy5pc0VuZChyb3csIGNvbHVtbikgfHwgdGhpcy5pc1N0YXJ0KHJvdywgY29sdW1uKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfTsKICAgIHRoaXMuaW5zaWRlU3RhcnQgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNFbmQocm93LCBjb2x1bW4pKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9OwogICAgdGhpcy5pbnNpZGVFbmQgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNTdGFydChyb3csIGNvbHVtbikpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07CiAgICB0aGlzLmNvbXBhcmUgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICghdGhpcy5pc011bHRpTGluZSgpKSB7CiAgICAgICAgICAgIGlmIChyb3cgPT09IHRoaXMuc3RhcnQucm93KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gY29sdW1uIDwgdGhpcy5zdGFydC5jb2x1bW4gPyAtMSA6IChjb2x1bW4gPiB0aGlzLmVuZC5jb2x1bW4gPyAxIDogMCk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGlmIChyb3cgPCB0aGlzLnN0YXJ0LnJvdykKICAgICAgICAgICAgcmV0dXJuIC0xOwoKICAgICAgICBpZiAocm93ID4gdGhpcy5lbmQucm93KQogICAgICAgICAgICByZXR1cm4gMTsKCiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID09PSByb3cpCiAgICAgICAgICAgIHJldHVybiBjb2x1bW4gPj0gdGhpcy5zdGFydC5jb2x1bW4gPyAwIDogLTE7CgogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT09IHJvdykKICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8PSB0aGlzLmVuZC5jb2x1bW4gPyAwIDogMTsKCiAgICAgICAgcmV0dXJuIDA7CiAgICB9OwogICAgdGhpcy5jb21wYXJlU3RhcnQgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLnN0YXJ0LnJvdyA9PSByb3cgJiYgdGhpcy5zdGFydC5jb2x1bW4gPT0gY29sdW1uKSB7CiAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdGhpcy5jb21wYXJlKHJvdywgY29sdW1uKTsKICAgICAgICB9CiAgICB9OwogICAgdGhpcy5jb21wYXJlRW5kID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5lbmQucm93ID09IHJvdyAmJiB0aGlzLmVuZC5jb2x1bW4gPT0gY29sdW1uKSB7CiAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLmNvbXBhcmVJbnNpZGUgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgfSBlbHNlIGlmICh0aGlzLnN0YXJ0LnJvdyA9PSByb3cgJiYgdGhpcy5zdGFydC5jb2x1bW4gPT0gY29sdW1uKSB7CiAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdGhpcy5jb21wYXJlKHJvdywgY29sdW1uKTsKICAgICAgICB9CiAgICB9OwogICAgdGhpcy5jbGlwUm93cyA9IGZ1bmN0aW9uKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLnJvdyA+IGxhc3RSb3cpCiAgICAgICAgICAgIHZhciBlbmQgPSB7cm93OiBsYXN0Um93ICsgMSwgY29sdW1uOiAwfTsKICAgICAgICBlbHNlIGlmICh0aGlzLmVuZC5yb3cgPCBmaXJzdFJvdykKICAgICAgICAgICAgdmFyIGVuZCA9IHtyb3c6IGZpcnN0Um93LCBjb2x1bW46IDB9OwoKICAgICAgICBpZiAodGhpcy5zdGFydC5yb3cgPiBsYXN0Um93KQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7cm93OiBsYXN0Um93ICsgMSwgY29sdW1uOiAwfTsKICAgICAgICBlbHNlIGlmICh0aGlzLnN0YXJ0LnJvdyA8IGZpcnN0Um93KQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7cm93OiBmaXJzdFJvdywgY29sdW1uOiAwfTsKCiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHMoc3RhcnQgfHwgdGhpcy5zdGFydCwgZW5kIHx8IHRoaXMuZW5kKTsKICAgIH07CiAgICB0aGlzLmV4dGVuZCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgdmFyIGNtcCA9IHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CgogICAgICAgIGlmIChjbXAgPT0gMCkKICAgICAgICAgICAgcmV0dXJuIHRoaXM7CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7cm93OiByb3csIGNvbHVtbjogY29sdW1ufTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHZhciBlbmQgPSB7cm93OiByb3csIGNvbHVtbjogY29sdW1ufTsKCiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHMoc3RhcnQgfHwgdGhpcy5zdGFydCwgZW5kIHx8IHRoaXMuZW5kKTsKICAgIH07CgogICAgdGhpcy5pc0VtcHR5ID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuICh0aGlzLnN0YXJ0LnJvdyA9PT0gdGhpcy5lbmQucm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09PSB0aGlzLmVuZC5jb2x1bW4pOwogICAgfTsKICAgIHRoaXMuaXNNdWx0aUxpbmUgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gKHRoaXMuc3RhcnQucm93ICE9PSB0aGlzLmVuZC5yb3cpOwogICAgfTsKICAgIHRoaXMuY2xvbmUgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gUmFuZ2UuZnJvbVBvaW50cyh0aGlzLnN0YXJ0LCB0aGlzLmVuZCk7CiAgICB9OwogICAgdGhpcy5jb2xsYXBzZVJvd3MgPSBmdW5jdGlvbigpIHsKICAgICAgICBpZiAodGhpcy5lbmQuY29sdW1uID09IDApCiAgICAgICAgICAgIHJldHVybiBuZXcgUmFuZ2UodGhpcy5zdGFydC5yb3csIDAsIE1hdGgubWF4KHRoaXMuc3RhcnQucm93LCB0aGlzLmVuZC5yb3ctMSksIDApOwogICAgICAgIGVsc2UKICAgICAgICAgICAgcmV0dXJuIG5ldyBSYW5nZSh0aGlzLnN0YXJ0LnJvdywgMCwgdGhpcy5lbmQucm93LCAwKTsKICAgIH07CiAgICB0aGlzLnRvU2NyZWVuUmFuZ2UgPSBmdW5jdGlvbihzZXNzaW9uKSB7CiAgICAgICAgdmFyIHNjcmVlblBvc1N0YXJ0ID0gc2Vzc2lvbi5kb2N1bWVudFRvU2NyZWVuUG9zaXRpb24odGhpcy5zdGFydCk7CiAgICAgICAgdmFyIHNjcmVlblBvc0VuZCA9IHNlc3Npb24uZG9jdW1lbnRUb1NjcmVlblBvc2l0aW9uKHRoaXMuZW5kKTsKCiAgICAgICAgcmV0dXJuIG5ldyBSYW5nZSgKICAgICAgICAgICAgc2NyZWVuUG9zU3RhcnQucm93LCBzY3JlZW5Qb3NTdGFydC5jb2x1bW4sCiAgICAgICAgICAgIHNjcmVlblBvc0VuZC5yb3csIHNjcmVlblBvc0VuZC5jb2x1bW4KICAgICAgICApOwogICAgfTsKICAgIHRoaXMubW92ZUJ5ID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICB0aGlzLnN0YXJ0LnJvdyArPSByb3c7CiAgICAgICAgdGhpcy5zdGFydC5jb2x1bW4gKz0gY29sdW1uOwogICAgICAgIHRoaXMuZW5kLnJvdyArPSByb3c7CiAgICAgICAgdGhpcy5lbmQuY29sdW1uICs9IGNvbHVtbjsKICAgIH07Cgp9KS5jYWxsKFJhbmdlLnByb3RvdHlwZSk7ClJhbmdlLmZyb21Qb2ludHMgPSBmdW5jdGlvbihzdGFydCwgZW5kKSB7CiAgICByZXR1cm4gbmV3IFJhbmdlKHN0YXJ0LnJvdywgc3RhcnQuY29sdW1uLCBlbmQucm93LCBlbmQuY29sdW1uKTsKfTsKUmFuZ2UuY29tcGFyZVBvaW50cyA9IGNvbXBhcmVQb2ludHM7CgpSYW5nZS5jb21wYXJlUG9pbnRzID0gZnVuY3Rpb24ocDEsIHAyKSB7CiAgICByZXR1cm4gcDEucm93IC0gcDIucm93IHx8IHAxLmNvbHVtbiAtIHAyLmNvbHVtbjsKfTsKCgpleHBvcnRzLlJhbmdlID0gUmFuZ2U7Cn0pOwoKYWNlLmRlZmluZSgiYWNlL2FwcGx5X2RlbHRhIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCmZ1bmN0aW9uIHRocm93RGVsdGFFcnJvcihkZWx0YSwgZXJyb3JUZXh0KXsKICAgIGNvbnNvbGUubG9nKCJJbnZhbGlkIERlbHRhOiIsIGRlbHRhKTsKICAgIHRocm93ICJJbnZhbGlkIERlbHRhOiAiICsgZXJyb3JUZXh0Owp9CgpmdW5jdGlvbiBwb3NpdGlvbkluRG9jdW1lbnQoZG9jTGluZXMsIHBvc2l0aW9uKSB7CiAgICByZXR1cm4gcG9zaXRpb24ucm93ICAgID49IDAgJiYgcG9zaXRpb24ucm93ICAgIDwgIGRvY0xpbmVzLmxlbmd0aCAmJgogICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA+PSAwICYmIHBvc2l0aW9uLmNvbHVtbiA8PSBkb2NMaW5lc1twb3NpdGlvbi5yb3ddLmxlbmd0aDsKfQoKZnVuY3Rpb24gdmFsaWRhdGVEZWx0YShkb2NMaW5lcywgZGVsdGEpIHsKICAgIGlmIChkZWx0YS5hY3Rpb24gIT0gImluc2VydCIgJiYgZGVsdGEuYWN0aW9uICE9ICJyZW1vdmUiKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLmFjdGlvbiBtdXN0IGJlICdpbnNlcnQnIG9yICdyZW1vdmUnIik7CiAgICBpZiAoIShkZWx0YS5saW5lcyBpbnN0YW5jZW9mIEFycmF5KSkKICAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5saW5lcyBtdXN0IGJlIGFuIEFycmF5Iik7CiAgICBpZiAoIWRlbHRhLnN0YXJ0IHx8ICFkZWx0YS5lbmQpCiAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5zdGFydC9lbmQgbXVzdCBiZSBhbiBwcmVzZW50Iik7CiAgICB2YXIgc3RhcnQgPSBkZWx0YS5zdGFydDsKICAgIGlmICghcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBkZWx0YS5zdGFydCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuc3RhcnQgbXVzdCBiZSBjb250YWluZWQgaW4gZG9jdW1lbnQiKTsKICAgIHZhciBlbmQgPSBkZWx0YS5lbmQ7CiAgICBpZiAoZGVsdGEuYWN0aW9uID09ICJyZW1vdmUiICYmICFwb3NpdGlvbkluRG9jdW1lbnQoZG9jTGluZXMsIGVuZCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuZW5kIG11c3QgY29udGFpbmVkIGluIGRvY3VtZW50IGZvciAncmVtb3ZlJyBhY3Rpb25zIik7CiAgICB2YXIgbnVtUmFuZ2VSb3dzID0gZW5kLnJvdyAtIHN0YXJ0LnJvdzsKICAgIHZhciBudW1SYW5nZUxhc3RMaW5lQ2hhcnMgPSAoZW5kLmNvbHVtbiAtIChudW1SYW5nZVJvd3MgPT0gMCA/IHN0YXJ0LmNvbHVtbiA6IDApKTsKICAgIGlmIChudW1SYW5nZVJvd3MgIT0gZGVsdGEubGluZXMubGVuZ3RoIC0gMSB8fCBkZWx0YS5saW5lc1tudW1SYW5nZVJvd3NdLmxlbmd0aCAhPSBudW1SYW5nZUxhc3RMaW5lQ2hhcnMpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEucmFuZ2UgbXVzdCBtYXRjaCBkZWx0YSBsaW5lcyIpOwp9CgpleHBvcnRzLmFwcGx5RGVsdGEgPSBmdW5jdGlvbihkb2NMaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpIHsKICAgIAogICAgdmFyIHJvdyA9IGRlbHRhLnN0YXJ0LnJvdzsKICAgIHZhciBzdGFydENvbHVtbiA9IGRlbHRhLnN0YXJ0LmNvbHVtbjsKICAgIHZhciBsaW5lID0gZG9jTGluZXNbcm93XSB8fCAiIjsKICAgIHN3aXRjaCAoZGVsdGEuYWN0aW9uKSB7CiAgICAgICAgY2FzZSAiaW5zZXJ0IjoKICAgICAgICAgICAgdmFyIGxpbmVzID0gZGVsdGEubGluZXM7CiAgICAgICAgICAgIGlmIChsaW5lcy5sZW5ndGggPT09IDEpIHsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3Jvd10gPSBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBkZWx0YS5saW5lc1swXSArIGxpbmUuc3Vic3RyaW5nKHN0YXJ0Q29sdW1uKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHZhciBhcmdzID0gW3JvdywgMV0uY29uY2F0KGRlbHRhLmxpbmVzKTsKICAgICAgICAgICAgICAgIGRvY0xpbmVzLnNwbGljZS5hcHBseShkb2NMaW5lcywgYXJncyk7CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3ddID0gbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZG9jTGluZXNbcm93XTsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3JvdyArIGRlbHRhLmxpbmVzLmxlbmd0aCAtIDFdICs9IGxpbmUuc3Vic3RyaW5nKHN0YXJ0Q29sdW1uKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlICJyZW1vdmUiOgogICAgICAgICAgICB2YXIgZW5kQ29sdW1uID0gZGVsdGEuZW5kLmNvbHVtbjsKICAgICAgICAgICAgdmFyIGVuZFJvdyA9IGRlbHRhLmVuZC5yb3c7CiAgICAgICAgICAgIGlmIChyb3cgPT09IGVuZFJvdykgewogICAgICAgICAgICAgICAgZG9jTGluZXNbcm93XSA9IGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGxpbmUuc3Vic3RyaW5nKGVuZENvbHVtbik7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBkb2NMaW5lcy5zcGxpY2UoCiAgICAgICAgICAgICAgICAgICAgcm93LCBlbmRSb3cgLSByb3cgKyAxLAogICAgICAgICAgICAgICAgICAgIGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGRvY0xpbmVzW2VuZFJvd10uc3Vic3RyaW5nKGVuZENvbHVtbikKICAgICAgICAgICAgICAgICk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICB9Cn07Cn0pOwoKYWNlLmRlZmluZSgiYWNlL2xpYi9ldmVudF9lbWl0dGVyIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCnZhciBFdmVudEVtaXR0ZXIgPSB7fTsKdmFyIHN0b3BQcm9wYWdhdGlvbiA9IGZ1bmN0aW9uKCkgeyB0aGlzLnByb3BhZ2F0aW9uU3RvcHBlZCA9IHRydWU7IH07CnZhciBwcmV2ZW50RGVmYXVsdCA9IGZ1bmN0aW9uKCkgeyB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlOyB9OwoKRXZlbnRFbWl0dGVyLl9lbWl0ID0KRXZlbnRFbWl0dGVyLl9kaXNwYXRjaEV2ZW50ID0gZnVuY3Rpb24oZXZlbnROYW1lLCBlKSB7CiAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8ICh0aGlzLl9ldmVudFJlZ2lzdHJ5ID0ge30pOwogICAgdGhpcy5fZGVmYXVsdEhhbmRsZXJzIHx8ICh0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB7fSk7CgogICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXSB8fCBbXTsKICAgIHZhciBkZWZhdWx0SGFuZGxlciA9IHRoaXMuX2RlZmF1bHRIYW5kbGVyc1tldmVudE5hbWVdOwogICAgaWYgKCFsaXN0ZW5lcnMubGVuZ3RoICYmICFkZWZhdWx0SGFuZGxlcikKICAgICAgICByZXR1cm47CgogICAgaWYgKHR5cGVvZiBlICE9ICJvYmplY3QiIHx8ICFlKQogICAgICAgIGUgPSB7fTsKCiAgICBpZiAoIWUudHlwZSkKICAgICAgICBlLnR5cGUgPSBldmVudE5hbWU7CiAgICBpZiAoIWUuc3RvcFByb3BhZ2F0aW9uKQogICAgICAgIGUuc3RvcFByb3BhZ2F0aW9uID0gc3RvcFByb3BhZ2F0aW9uOwogICAgaWYgKCFlLnByZXZlbnREZWZhdWx0KQogICAgICAgIGUucHJldmVudERlZmF1bHQgPSBwcmV2ZW50RGVmYXVsdDsKCiAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgIGZvciAodmFyIGk9MDsgaTxsaXN0ZW5lcnMubGVuZ3RoOyBpKyspIHsKICAgICAgICBsaXN0ZW5lcnNbaV0oZSwgdGhpcyk7CiAgICAgICAgaWYgKGUucHJvcGFnYXRpb25TdG9wcGVkKQogICAgICAgICAgICBicmVhazsKICAgIH0KICAgIAogICAgaWYgKGRlZmF1bHRIYW5kbGVyICYmICFlLmRlZmF1bHRQcmV2ZW50ZWQpCiAgICAgICAgcmV0dXJuIGRlZmF1bHRIYW5kbGVyKGUsIHRoaXMpOwp9OwoKCkV2ZW50RW1pdHRlci5fc2lnbmFsID0gZnVuY3Rpb24oZXZlbnROYW1lLCBlKSB7CiAgICB2YXIgbGlzdGVuZXJzID0gKHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge30pW2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICByZXR1cm47CiAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgIGZvciAodmFyIGk9MDsgaTxsaXN0ZW5lcnMubGVuZ3RoOyBpKyspCiAgICAgICAgbGlzdGVuZXJzW2ldKGUsIHRoaXMpOwp9OwoKRXZlbnRFbWl0dGVyLm9uY2UgPSBmdW5jdGlvbihldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgX3NlbGYgPSB0aGlzOwogICAgdGhpcy5vbihldmVudE5hbWUsIGZ1bmN0aW9uIG5ld0NhbGxiYWNrKCkgewogICAgICAgIF9zZWxmLm9mZihldmVudE5hbWUsIG5ld0NhbGxiYWNrKTsKICAgICAgICBjYWxsYmFjay5hcHBseShudWxsLCBhcmd1bWVudHMpOwogICAgfSk7CiAgICBpZiAoIWNhbGxiYWNrKSB7CiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uKHJlc29sdmUpIHsKICAgICAgICAgICAgY2FsbGJhY2sgPSByZXNvbHZlOwogICAgICAgIH0pOwogICAgfQp9OwoKCkV2ZW50RW1pdHRlci5zZXREZWZhdWx0SGFuZGxlciA9IGZ1bmN0aW9uKGV2ZW50TmFtZSwgY2FsbGJhY2spIHsKICAgIHZhciBoYW5kbGVycyA9IHRoaXMuX2RlZmF1bHRIYW5kbGVyczsKICAgIGlmICghaGFuZGxlcnMpCiAgICAgICAgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB7X2Rpc2FibGVkXzoge319OwogICAgCiAgICBpZiAoaGFuZGxlcnNbZXZlbnROYW1lXSkgewogICAgICAgIHZhciBvbGQgPSBoYW5kbGVyc1tldmVudE5hbWVdOwogICAgICAgIHZhciBkaXNhYmxlZCA9IGhhbmRsZXJzLl9kaXNhYmxlZF9bZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWRpc2FibGVkKQogICAgICAgICAgICBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV0gPSBkaXNhYmxlZCA9IFtdOwogICAgICAgIGRpc2FibGVkLnB1c2gob2xkKTsKICAgICAgICB2YXIgaSA9IGRpc2FibGVkLmluZGV4T2YoY2FsbGJhY2spOwogICAgICAgIGlmIChpICE9IC0xKSAKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQogICAgaGFuZGxlcnNbZXZlbnROYW1lXSA9IGNhbGxiYWNrOwp9OwpFdmVudEVtaXR0ZXIucmVtb3ZlRGVmYXVsdEhhbmRsZXIgPSBmdW5jdGlvbihldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnM7CiAgICBpZiAoIWhhbmRsZXJzKQogICAgICAgIHJldHVybjsKICAgIHZhciBkaXNhYmxlZCA9IGhhbmRsZXJzLl9kaXNhYmxlZF9bZXZlbnROYW1lXTsKICAgIAogICAgaWYgKGhhbmRsZXJzW2V2ZW50TmFtZV0gPT0gY2FsbGJhY2spIHsKICAgICAgICBpZiAoZGlzYWJsZWQpCiAgICAgICAgICAgIHRoaXMuc2V0RGVmYXVsdEhhbmRsZXIoZXZlbnROYW1lLCBkaXNhYmxlZC5wb3AoKSk7CiAgICB9IGVsc2UgaWYgKGRpc2FibGVkKSB7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQp9OwoKRXZlbnRFbWl0dGVyLm9uID0KRXZlbnRFbWl0dGVyLmFkZEV2ZW50TGlzdGVuZXIgPSBmdW5jdGlvbihldmVudE5hbWUsIGNhbGxiYWNrLCBjYXB0dXJpbmcpIHsKICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9OwoKICAgIHZhciBsaXN0ZW5lcnMgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICBsaXN0ZW5lcnMgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV0gPSBbXTsKCiAgICBpZiAobGlzdGVuZXJzLmluZGV4T2YoY2FsbGJhY2spID09IC0xKQogICAgICAgIGxpc3RlbmVyc1tjYXB0dXJpbmcgPyAidW5zaGlmdCIgOiAicHVzaCJdKGNhbGxiYWNrKTsKICAgIHJldHVybiBjYWxsYmFjazsKfTsKCkV2ZW50RW1pdHRlci5vZmYgPQpFdmVudEVtaXR0ZXIucmVtb3ZlTGlzdGVuZXIgPQpFdmVudEVtaXR0ZXIucmVtb3ZlRXZlbnRMaXN0ZW5lciA9IGZ1bmN0aW9uKGV2ZW50TmFtZSwgY2FsbGJhY2spIHsKICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9OwoKICAgIHZhciBsaXN0ZW5lcnMgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICByZXR1cm47CgogICAgdmFyIGluZGV4ID0gbGlzdGVuZXJzLmluZGV4T2YoY2FsbGJhY2spOwogICAgaWYgKGluZGV4ICE9PSAtMSkKICAgICAgICBsaXN0ZW5lcnMuc3BsaWNlKGluZGV4LCAxKTsKfTsKCkV2ZW50RW1pdHRlci5yZW1vdmVBbGxMaXN0ZW5lcnMgPSBmdW5jdGlvbihldmVudE5hbWUpIHsKICAgIGlmICghZXZlbnROYW1lKSB0aGlzLl9ldmVudFJlZ2lzdHJ5ID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzID0gdW5kZWZpbmVkOwogICAgaWYgKHRoaXMuX2V2ZW50UmVnaXN0cnkpIHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXSA9IHVuZGVmaW5lZDsKICAgIGlmICh0aGlzLl9kZWZhdWx0SGFuZGxlcnMpIHRoaXMuX2RlZmF1bHRIYW5kbGVyc1tldmVudE5hbWVdID0gdW5kZWZpbmVkOwp9OwoKZXhwb3J0cy5FdmVudEVtaXR0ZXIgPSBFdmVudEVtaXR0ZXI7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hbmNob3IiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIG9vcCA9IHJlcXVpcmUoIi4vbGliL29vcCIpOwp2YXIgRXZlbnRFbWl0dGVyID0gcmVxdWlyZSgiLi9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKCnZhciBBbmNob3IgPSBleHBvcnRzLkFuY2hvciA9IGZ1bmN0aW9uKGRvYywgcm93LCBjb2x1bW4pIHsKICAgIHRoaXMuJG9uQ2hhbmdlID0gdGhpcy5vbkNoYW5nZS5iaW5kKHRoaXMpOwogICAgdGhpcy5hdHRhY2goZG9jKTsKICAgIAogICAgaWYgKHR5cGVvZiBjb2x1bW4gPT0gInVuZGVmaW5lZCIpCiAgICAgICAgdGhpcy5zZXRQb3NpdGlvbihyb3cucm93LCByb3cuY29sdW1uKTsKICAgIGVsc2UKICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHJvdywgY29sdW1uKTsKfTsKCihmdW5jdGlvbigpIHsKCiAgICBvb3AuaW1wbGVtZW50KHRoaXMsIEV2ZW50RW1pdHRlcik7CiAgICB0aGlzLmdldFBvc2l0aW9uID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGNsaXBQb3NpdGlvblRvRG9jdW1lbnQodGhpcy5yb3csIHRoaXMuY29sdW1uKTsKICAgIH07CiAgICB0aGlzLmdldERvY3VtZW50ID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZG9jdW1lbnQ7CiAgICB9OwogICAgdGhpcy4kaW5zZXJ0UmlnaHQgPSBmYWxzZTsKICAgIHRoaXMub25DaGFuZ2UgPSBmdW5jdGlvbihkZWx0YSkgewogICAgICAgIGlmIChkZWx0YS5zdGFydC5yb3cgPT0gZGVsdGEuZW5kLnJvdyAmJiBkZWx0YS5zdGFydC5yb3cgIT0gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKCiAgICAgICAgaWYgKGRlbHRhLnN0YXJ0LnJvdyA+IHRoaXMucm93KQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIAogICAgICAgIHZhciBwb2ludCA9ICRnZXRUcmFuc2Zvcm1lZFBvaW50KGRlbHRhLCB7cm93OiB0aGlzLnJvdywgY29sdW1uOiB0aGlzLmNvbHVtbn0sIHRoaXMuJGluc2VydFJpZ2h0KTsKICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHBvaW50LnJvdywgcG9pbnQuY29sdW1uLCB0cnVlKTsKICAgIH07CiAgICAKICAgIGZ1bmN0aW9uICRwb2ludHNJbk9yZGVyKHBvaW50MSwgcG9pbnQyLCBlcXVhbFBvaW50c0luT3JkZXIpIHsKICAgICAgICB2YXIgYkNvbElzQWZ0ZXIgPSBlcXVhbFBvaW50c0luT3JkZXIgPyBwb2ludDEuY29sdW1uIDw9IHBvaW50Mi5jb2x1bW4gOiBwb2ludDEuY29sdW1uIDwgcG9pbnQyLmNvbHVtbjsKICAgICAgICByZXR1cm4gKHBvaW50MS5yb3cgPCBwb2ludDIucm93KSB8fCAocG9pbnQxLnJvdyA9PSBwb2ludDIucm93ICYmIGJDb2xJc0FmdGVyKTsKICAgIH0KICAgICAgICAgICAgCiAgICBmdW5jdGlvbiAkZ2V0VHJhbnNmb3JtZWRQb2ludChkZWx0YSwgcG9pbnQsIG1vdmVJZkVxdWFsKSB7CiAgICAgICAgdmFyIGRlbHRhSXNJbnNlcnQgPSBkZWx0YS5hY3Rpb24gPT0gImluc2VydCI7CiAgICAgICAgdmFyIGRlbHRhUm93U2hpZnQgPSAoZGVsdGFJc0luc2VydCA/IDEgOiAtMSkgKiAoZGVsdGEuZW5kLnJvdyAgICAtIGRlbHRhLnN0YXJ0LnJvdyk7CiAgICAgICAgdmFyIGRlbHRhQ29sU2hpZnQgPSAoZGVsdGFJc0luc2VydCA/IDEgOiAtMSkgKiAoZGVsdGEuZW5kLmNvbHVtbiAtIGRlbHRhLnN0YXJ0LmNvbHVtbik7CiAgICAgICAgdmFyIGRlbHRhU3RhcnQgPSBkZWx0YS5zdGFydDsKICAgICAgICB2YXIgZGVsdGFFbmQgPSBkZWx0YUlzSW5zZXJ0ID8gZGVsdGFTdGFydCA6IGRlbHRhLmVuZDsgLy8gQ29sbGFwc2UgaW5zZXJ0IHJhbmdlLgogICAgICAgIGlmICgkcG9pbnRzSW5PcmRlcihwb2ludCwgZGVsdGFTdGFydCwgbW92ZUlmRXF1YWwpKSB7CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICByb3c6IHBvaW50LnJvdywKICAgICAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uCiAgICAgICAgICAgIH07CiAgICAgICAgfQogICAgICAgIGlmICgkcG9pbnRzSW5PcmRlcihkZWx0YUVuZCwgcG9pbnQsICFtb3ZlSWZFcXVhbCkpIHsKICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgIHJvdzogcG9pbnQucm93ICsgZGVsdGFSb3dTaGlmdCwKICAgICAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uICsgKHBvaW50LnJvdyA9PSBkZWx0YUVuZC5yb3cgPyBkZWx0YUNvbFNoaWZ0IDogMCkKICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgcm93OiBkZWx0YVN0YXJ0LnJvdywKICAgICAgICAgICAgY29sdW1uOiBkZWx0YVN0YXJ0LmNvbHVtbgogICAgICAgIH07CiAgICB9CiAgICB0aGlzLnNldFBvc2l0aW9uID0gZnVuY3Rpb24ocm93LCBjb2x1bW4sIG5vQ2xpcCkgewogICAgICAgIHZhciBwb3M7CiAgICAgICAgaWYgKG5vQ2xpcCkgewogICAgICAgICAgICBwb3MgPSB7CiAgICAgICAgICAgICAgICByb3c6IHJvdywKICAgICAgICAgICAgICAgIGNvbHVtbjogY29sdW1uCiAgICAgICAgICAgIH07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcG9zID0gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudChyb3csIGNvbHVtbik7CiAgICAgICAgfQoKICAgICAgICBpZiAodGhpcy5yb3cgPT0gcG9zLnJvdyAmJiB0aGlzLmNvbHVtbiA9PSBwb3MuY29sdW1uKQogICAgICAgICAgICByZXR1cm47CgogICAgICAgIHZhciBvbGQgPSB7CiAgICAgICAgICAgIHJvdzogdGhpcy5yb3csCiAgICAgICAgICAgIGNvbHVtbjogdGhpcy5jb2x1bW4KICAgICAgICB9OwoKICAgICAgICB0aGlzLnJvdyA9IHBvcy5yb3c7CiAgICAgICAgdGhpcy5jb2x1bW4gPSBwb3MuY29sdW1uOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlIiwgewogICAgICAgICAgICBvbGQ6IG9sZCwKICAgICAgICAgICAgdmFsdWU6IHBvcwogICAgICAgIH0pOwogICAgfTsKICAgIHRoaXMuZGV0YWNoID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGhpcy5kb2N1bWVudC5vZmYoImNoYW5nZSIsIHRoaXMuJG9uQ2hhbmdlKTsKICAgIH07CiAgICB0aGlzLmF0dGFjaCA9IGZ1bmN0aW9uKGRvYykgewogICAgICAgIHRoaXMuZG9jdW1lbnQgPSBkb2MgfHwgdGhpcy5kb2N1bWVudDsKICAgICAgICB0aGlzLmRvY3VtZW50Lm9uKCJjaGFuZ2UiLCB0aGlzLiRvbkNoYW5nZSk7CiAgICB9OwogICAgdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgdmFyIHBvcyA9IHt9OwoKICAgICAgICBpZiAocm93ID49IHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkpIHsKICAgICAgICAgICAgcG9zLnJvdyA9IE1hdGgubWF4KDAsIHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA8IDApIHsKICAgICAgICAgICAgcG9zLnJvdyA9IDA7CiAgICAgICAgICAgIHBvcy5jb2x1bW4gPSAwOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcG9zLnJvdyA9IHJvdzsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IE1hdGgubWluKHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGgsIE1hdGgubWF4KDAsIGNvbHVtbikpOwogICAgICAgIH0KCiAgICAgICAgaWYgKGNvbHVtbiA8IDApCiAgICAgICAgICAgIHBvcy5jb2x1bW4gPSAwOwoKICAgICAgICByZXR1cm4gcG9zOwogICAgfTsKCn0pLmNhbGwoQW5jaG9yLnByb3RvdHlwZSk7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9kb2N1bWVudCIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgb29wID0gcmVxdWlyZSgiLi9saWIvb29wIik7CnZhciBhcHBseURlbHRhID0gcmVxdWlyZSgiLi9hcHBseV9kZWx0YSIpLmFwcGx5RGVsdGE7CnZhciBFdmVudEVtaXR0ZXIgPSByZXF1aXJlKCIuL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwp2YXIgUmFuZ2UgPSByZXF1aXJlKCIuL3JhbmdlIikuUmFuZ2U7CnZhciBBbmNob3IgPSByZXF1aXJlKCIuL2FuY2hvciIpLkFuY2hvcjsKCnZhciBEb2N1bWVudCA9IGZ1bmN0aW9uKHRleHRPckxpbmVzKSB7CiAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICBpZiAodGV4dE9yTGluZXMubGVuZ3RoID09PSAwKSB7CiAgICAgICAgdGhpcy4kbGluZXMgPSBbIiJdOwogICAgfSBlbHNlIGlmIChBcnJheS5pc0FycmF5KHRleHRPckxpbmVzKSkgewogICAgICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoe3JvdzogMCwgY29sdW1uOiAwfSwgdGV4dE9yTGluZXMpOwogICAgfSBlbHNlIHsKICAgICAgICB0aGlzLmluc2VydCh7cm93OiAwLCBjb2x1bW46MH0sIHRleHRPckxpbmVzKTsKICAgIH0KfTsKCihmdW5jdGlvbigpIHsKCiAgICBvb3AuaW1wbGVtZW50KHRoaXMsIEV2ZW50RW1pdHRlcik7CiAgICB0aGlzLnNldFZhbHVlID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgIHZhciBsZW4gPSB0aGlzLmdldExlbmd0aCgpIC0gMTsKICAgICAgICB0aGlzLnJlbW92ZShuZXcgUmFuZ2UoMCwgMCwgbGVuLCB0aGlzLmdldExpbmUobGVuKS5sZW5ndGgpKTsKICAgICAgICB0aGlzLmluc2VydCh7cm93OiAwLCBjb2x1bW46IDB9LCB0ZXh0KTsKICAgIH07CiAgICB0aGlzLmdldFZhbHVlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0QWxsTGluZXMoKS5qb2luKHRoaXMuZ2V0TmV3TGluZUNoYXJhY3RlcigpKTsKICAgIH07CiAgICB0aGlzLmNyZWF0ZUFuY2hvciA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIG5ldyBBbmNob3IodGhpcywgcm93LCBjb2x1bW4pOwogICAgfTsKICAgIGlmICgiYWFhIi5zcGxpdCgvYS8pLmxlbmd0aCA9PT0gMCkgewogICAgICAgIHRoaXMuJHNwbGl0ID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgICAgICByZXR1cm4gdGV4dC5yZXBsYWNlKC9cclxufFxyL2csICJcbiIpLnNwbGl0KCJcbiIpOwogICAgICAgIH07CiAgICB9IGVsc2UgewogICAgICAgIHRoaXMuJHNwbGl0ID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgICAgICByZXR1cm4gdGV4dC5zcGxpdCgvXHJcbnxccnxcbi8pOwogICAgICAgIH07CiAgICB9CgoKICAgIHRoaXMuJGRldGVjdE5ld0xpbmUgPSBmdW5jdGlvbih0ZXh0KSB7CiAgICAgICAgdmFyIG1hdGNoID0gdGV4dC5tYXRjaCgvXi4qPyhcclxufFxyfFxuKS9tKTsKICAgICAgICB0aGlzLiRhdXRvTmV3TGluZSA9IG1hdGNoID8gbWF0Y2hbMV0gOiAiXG4iOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICB0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIgPSBmdW5jdGlvbigpIHsKICAgICAgICBzd2l0Y2ggKHRoaXMuJG5ld0xpbmVNb2RlKSB7CiAgICAgICAgICBjYXNlICJ3aW5kb3dzIjoKICAgICAgICAgICAgcmV0dXJuICJcclxuIjsKICAgICAgICAgIGNhc2UgInVuaXgiOgogICAgICAgICAgICByZXR1cm4gIlxuIjsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHJldHVybiB0aGlzLiRhdXRvTmV3TGluZSB8fCAiXG4iOwogICAgICAgIH0KICAgIH07CgogICAgdGhpcy4kYXV0b05ld0xpbmUgPSAiIjsKICAgIHRoaXMuJG5ld0xpbmVNb2RlID0gImF1dG8iOwogICAgdGhpcy5zZXROZXdMaW5lTW9kZSA9IGZ1bmN0aW9uKG5ld0xpbmVNb2RlKSB7CiAgICAgICAgaWYgKHRoaXMuJG5ld0xpbmVNb2RlID09PSBuZXdMaW5lTW9kZSkKICAgICAgICAgICAgcmV0dXJuOwoKICAgICAgICB0aGlzLiRuZXdMaW5lTW9kZSA9IG5ld0xpbmVNb2RlOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICB0aGlzLmdldE5ld0xpbmVNb2RlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJG5ld0xpbmVNb2RlOwogICAgfTsKICAgIHRoaXMuaXNOZXdMaW5lID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgIHJldHVybiAodGV4dCA9PSAiXHJcbiIgfHwgdGV4dCA9PSAiXHIiIHx8IHRleHQgPT0gIlxuIik7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lID0gZnVuY3Rpb24ocm93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzW3Jvd10gfHwgIiI7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lcyA9IGZ1bmN0aW9uKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICB9OwogICAgdGhpcy5nZXRBbGxMaW5lcyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLmdldExpbmVzKDAsIHRoaXMuZ2V0TGVuZ3RoKCkpOwogICAgfTsKICAgIHRoaXMuZ2V0TGVuZ3RoID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLmxlbmd0aDsKICAgIH07CiAgICB0aGlzLmdldFRleHRSYW5nZSA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkuam9pbih0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKSk7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lc0ZvclJhbmdlID0gZnVuY3Rpb24ocmFuZ2UpIHsKICAgICAgICB2YXIgbGluZXM7CiAgICAgICAgaWYgKHJhbmdlLnN0YXJ0LnJvdyA9PT0gcmFuZ2UuZW5kLnJvdykgewogICAgICAgICAgICBsaW5lcyA9IFt0aGlzLmdldExpbmUocmFuZ2Uuc3RhcnQucm93KS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uLCByYW5nZS5lbmQuY29sdW1uKV07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgbGluZXMgPSB0aGlzLmdldExpbmVzKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2UuZW5kLnJvdyk7CiAgICAgICAgICAgIGxpbmVzWzBdID0gKGxpbmVzWzBdIHx8ICIiKS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICAgICAgdmFyIGwgPSBsaW5lcy5sZW5ndGggLSAxOwogICAgICAgICAgICBpZiAocmFuZ2UuZW5kLnJvdyAtIHJhbmdlLnN0YXJ0LnJvdyA9PSBsKQogICAgICAgICAgICAgICAgbGluZXNbbF0gPSBsaW5lc1tsXS5zdWJzdHJpbmcoMCwgcmFuZ2UuZW5kLmNvbHVtbik7CiAgICAgICAgfQogICAgICAgIHJldHVybiBsaW5lczsKICAgIH07CiAgICB0aGlzLmluc2VydExpbmVzID0gZnVuY3Rpb24ocm93LCBsaW5lcykgewogICAgICAgIGNvbnNvbGUud2FybigiVXNlIG9mIGRvY3VtZW50Lmluc2VydExpbmVzIGlzIGRlcHJlY2F0ZWQuIFVzZSB0aGUgaW5zZXJ0RnVsbExpbmVzIG1ldGhvZCBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydEZ1bGxMaW5lcyhyb3csIGxpbmVzKTsKICAgIH07CiAgICB0aGlzLnJlbW92ZUxpbmVzID0gZnVuY3Rpb24oZmlyc3RSb3csIGxhc3RSb3cpIHsKICAgICAgICBjb25zb2xlLndhcm4oIlVzZSBvZiBkb2N1bWVudC5yZW1vdmVMaW5lcyBpcyBkZXByZWNhdGVkLiBVc2UgdGhlIHJlbW92ZUZ1bGxMaW5lcyBtZXRob2QgaW5zdGVhZC4iKTsKICAgICAgICByZXR1cm4gdGhpcy5yZW1vdmVGdWxsTGluZXMoZmlyc3RSb3csIGxhc3RSb3cpOwogICAgfTsKICAgIHRoaXMuaW5zZXJ0TmV3TGluZSA9IGZ1bmN0aW9uKHBvc2l0aW9uKSB7CiAgICAgICAgY29uc29sZS53YXJuKCJVc2Ugb2YgZG9jdW1lbnQuaW5zZXJ0TmV3TGluZSBpcyBkZXByZWNhdGVkLiBVc2UgaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIFsnJywgJyddKSBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydE1lcmdlZExpbmVzKHBvc2l0aW9uLCBbIiIsICIiXSk7CiAgICB9OwogICAgdGhpcy5pbnNlcnQgPSBmdW5jdGlvbihwb3NpdGlvbiwgdGV4dCkgewogICAgICAgIGlmICh0aGlzLmdldExlbmd0aCgpIDw9IDEpCiAgICAgICAgICAgIHRoaXMuJGRldGVjdE5ld0xpbmUodGV4dCk7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIHRoaXMuJHNwbGl0KHRleHQpKTsKICAgIH07CiAgICB0aGlzLmluc2VydEluTGluZSA9IGZ1bmN0aW9uKHBvc2l0aW9uLCB0ZXh0KSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHBvc2l0aW9uLnJvdywgcG9zaXRpb24uY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5wb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4gKyB0ZXh0Lmxlbmd0aCk7CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IFt0ZXh0XQogICAgICAgIH0sIHRydWUpOwogICAgICAgIAogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKGVuZCk7CiAgICB9OwogICAgCiAgICB0aGlzLmNsaXBwZWRQb3MgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChyb3cgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGg7CiAgICAgICAgfSBlbHNlIGlmIChyb3cgPCAwKSB7CiAgICAgICAgICAgIHJvdyA9IDA7CiAgICAgICAgfSBlbHNlIGlmIChyb3cgPj0gbGVuZ3RoKSB7CiAgICAgICAgICAgIHJvdyA9IGxlbmd0aCAtIDE7CiAgICAgICAgICAgIGNvbHVtbiA9IHVuZGVmaW5lZDsKICAgICAgICB9CiAgICAgICAgdmFyIGxpbmUgPSB0aGlzLmdldExpbmUocm93KTsKICAgICAgICBpZiAoY29sdW1uID09IHVuZGVmaW5lZCkKICAgICAgICAgICAgY29sdW1uID0gbGluZS5sZW5ndGg7CiAgICAgICAgY29sdW1uID0gTWF0aC5taW4oTWF0aC5tYXgoY29sdW1uLCAwKSwgbGluZS5sZW5ndGgpOwogICAgICAgIHJldHVybiB7cm93OiByb3csIGNvbHVtbjogY29sdW1ufTsKICAgIH07CiAgICAKICAgIHRoaXMuY2xvbmVQb3MgPSBmdW5jdGlvbihwb3MpIHsKICAgICAgICByZXR1cm4ge3JvdzogcG9zLnJvdywgY29sdW1uOiBwb3MuY29sdW1ufTsKICAgIH07CiAgICAKICAgIHRoaXMucG9zID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4ge3Jvdzogcm93LCBjb2x1bW46IGNvbHVtbn07CiAgICB9OwogICAgCiAgICB0aGlzLiRjbGlwUG9zaXRpb24gPSBmdW5jdGlvbihwb3NpdGlvbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChwb3NpdGlvbi5yb3cgPj0gbGVuZ3RoKSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIGxlbmd0aCAtIDEpOwogICAgICAgICAgICBwb3NpdGlvbi5jb2x1bW4gPSB0aGlzLmdldExpbmUobGVuZ3RoIC0gMSkubGVuZ3RoOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIHBvc2l0aW9uLnJvdyk7CiAgICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KHBvc2l0aW9uLmNvbHVtbiwgMCksIHRoaXMuZ2V0TGluZShwb3NpdGlvbi5yb3cpLmxlbmd0aCk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBwb3NpdGlvbjsKICAgIH07CiAgICB0aGlzLmluc2VydEZ1bGxMaW5lcyA9IGZ1bmN0aW9uKHJvdywgbGluZXMpIHsKICAgICAgICByb3cgPSBNYXRoLm1pbihNYXRoLm1heChyb3csIDApLCB0aGlzLmdldExlbmd0aCgpKTsKICAgICAgICB2YXIgY29sdW1uID0gMDsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBsaW5lcyA9IGxpbmVzLmNvbmNhdChbIiJdKTsKICAgICAgICAgICAgY29sdW1uID0gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBsaW5lcyA9IFsiIl0uY29uY2F0KGxpbmVzKTsKICAgICAgICAgICAgcm93LS07CiAgICAgICAgICAgIGNvbHVtbiA9IHRoaXMuJGxpbmVzW3Jvd10ubGVuZ3RoOwogICAgICAgIH0KICAgICAgICB0aGlzLmluc2VydE1lcmdlZExpbmVzKHtyb3c6IHJvdywgY29sdW1uOiBjb2x1bW59LCBsaW5lcyk7CiAgICB9OyAgICAKICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMgPSBmdW5jdGlvbihwb3NpdGlvbiwgbGluZXMpIHsKICAgICAgICB2YXIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB7CiAgICAgICAgICAgIHJvdzogc3RhcnQucm93ICsgbGluZXMubGVuZ3RoIC0gMSwKICAgICAgICAgICAgY29sdW1uOiAobGluZXMubGVuZ3RoID09IDEgPyBzdGFydC5jb2x1bW4gOiAwKSArIGxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdLmxlbmd0aAogICAgICAgIH07CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IGxpbmVzCiAgICAgICAgfSk7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICB0aGlzLnJlbW92ZSA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLmVuZC5yb3csIHJhbmdlLmVuZC5jb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2Uoe3N0YXJ0OiBzdGFydCwgZW5kOiBlbmR9KQogICAgICAgIH0pOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKHN0YXJ0KTsKICAgIH07CiAgICB0aGlzLnJlbW92ZUluTGluZSA9IGZ1bmN0aW9uKHJvdywgc3RhcnRDb2x1bW4sIGVuZENvbHVtbikgewogICAgICAgIHZhciBzdGFydCA9IHRoaXMuY2xpcHBlZFBvcyhyb3csIHN0YXJ0Q29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJvdywgZW5kQ29sdW1uKTsKICAgICAgICAKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICBsaW5lczogdGhpcy5nZXRMaW5lc0ZvclJhbmdlKHtzdGFydDogc3RhcnQsIGVuZDogZW5kfSkKICAgICAgICB9LCB0cnVlKTsKICAgICAgICAKICAgICAgICByZXR1cm4gdGhpcy5jbG9uZVBvcyhzdGFydCk7CiAgICB9OwogICAgdGhpcy5yZW1vdmVGdWxsTGluZXMgPSBmdW5jdGlvbihmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGZpcnN0Um93ID0gTWF0aC5taW4oTWF0aC5tYXgoMCwgZmlyc3RSb3cpLCB0aGlzLmdldExlbmd0aCgpIC0gMSk7CiAgICAgICAgbGFzdFJvdyAgPSBNYXRoLm1pbihNYXRoLm1heCgwLCBsYXN0Um93ICksIHRoaXMuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICB2YXIgZGVsZXRlRmlyc3ROZXdMaW5lID0gbGFzdFJvdyA9PSB0aGlzLmdldExlbmd0aCgpIC0gMSAmJiBmaXJzdFJvdyA+IDA7CiAgICAgICAgdmFyIGRlbGV0ZUxhc3ROZXdMaW5lICA9IGxhc3RSb3cgIDwgdGhpcy5nZXRMZW5ndGgoKSAtIDE7CiAgICAgICAgdmFyIHN0YXJ0Um93ID0gKCBkZWxldGVGaXJzdE5ld0xpbmUgPyBmaXJzdFJvdyAtIDEgICAgICAgICAgICAgICAgICA6IGZpcnN0Um93ICAgICAgICAgICAgICAgICAgICApOwogICAgICAgIHZhciBzdGFydENvbCA9ICggZGVsZXRlRmlyc3ROZXdMaW5lID8gdGhpcy5nZXRMaW5lKHN0YXJ0Um93KS5sZW5ndGggOiAwICAgICAgICAgICAgICAgICAgICAgICAgICAgKTsKICAgICAgICB2YXIgZW5kUm93ICAgPSAoIGRlbGV0ZUxhc3ROZXdMaW5lICA/IGxhc3RSb3cgKyAxICAgICAgICAgICAgICAgICAgIDogbGFzdFJvdyAgICAgICAgICAgICAgICAgICAgICk7CiAgICAgICAgdmFyIGVuZENvbCAgID0gKCBkZWxldGVMYXN0TmV3TGluZSAgPyAwICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IHRoaXMuZ2V0TGluZShlbmRSb3cpLmxlbmd0aCApOyAKICAgICAgICB2YXIgcmFuZ2UgPSBuZXcgUmFuZ2Uoc3RhcnRSb3csIHN0YXJ0Q29sLCBlbmRSb3csIGVuZENvbCk7CiAgICAgICAgdmFyIGRlbGV0ZWRMaW5lcyA9IHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHJhbmdlLnN0YXJ0LAogICAgICAgICAgICBlbmQ6IHJhbmdlLmVuZCwKICAgICAgICAgICAgYWN0aW9uOiAicmVtb3ZlIiwKICAgICAgICAgICAgbGluZXM6IHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGVsZXRlZExpbmVzOwogICAgfTsKICAgIHRoaXMucmVtb3ZlTmV3TGluZSA9IGZ1bmN0aW9uKHJvdykgewogICAgICAgIGlmIChyb3cgPCB0aGlzLmdldExlbmd0aCgpIC0gMSAmJiByb3cgPj0gMCkgewogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICAgICAgc3RhcnQ6IHRoaXMucG9zKHJvdywgdGhpcy5nZXRMaW5lKHJvdykubGVuZ3RoKSwKICAgICAgICAgICAgICAgIGVuZDogdGhpcy5wb3Mocm93ICsgMSwgMCksCiAgICAgICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICAgICAgbGluZXM6IFsiIiwgIiJdCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLnJlcGxhY2UgPSBmdW5jdGlvbihyYW5nZSwgdGV4dCkgewogICAgICAgIGlmICghKHJhbmdlIGluc3RhbmNlb2YgUmFuZ2UpKQogICAgICAgICAgICByYW5nZSA9IFJhbmdlLmZyb21Qb2ludHMocmFuZ2Uuc3RhcnQsIHJhbmdlLmVuZCk7CiAgICAgICAgaWYgKHRleHQubGVuZ3RoID09PSAwICYmIHJhbmdlLmlzRW1wdHkoKSkKICAgICAgICAgICAgcmV0dXJuIHJhbmdlLnN0YXJ0OwogICAgICAgIGlmICh0ZXh0ID09IHRoaXMuZ2V0VGV4dFJhbmdlKHJhbmdlKSkKICAgICAgICAgICAgcmV0dXJuIHJhbmdlLmVuZDsKCiAgICAgICAgdGhpcy5yZW1vdmUocmFuZ2UpOwogICAgICAgIHZhciBlbmQ7CiAgICAgICAgaWYgKHRleHQpIHsKICAgICAgICAgICAgZW5kID0gdGhpcy5pbnNlcnQocmFuZ2Uuc3RhcnQsIHRleHQpOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgZW5kID0gcmFuZ2Uuc3RhcnQ7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIHJldHVybiBlbmQ7CiAgICB9OwogICAgdGhpcy5hcHBseURlbHRhcyA9IGZ1bmN0aW9uKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGk9MDsgaTxkZWx0YXMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKGRlbHRhc1tpXSk7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMucmV2ZXJ0RGVsdGFzID0gZnVuY3Rpb24oZGVsdGFzKSB7CiAgICAgICAgZm9yICh2YXIgaT1kZWx0YXMubGVuZ3RoLTE7IGk+PTA7IGktLSkgewogICAgICAgICAgICB0aGlzLnJldmVydERlbHRhKGRlbHRhc1tpXSk7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uKGRlbHRhLCBkb05vdFZhbGlkYXRlKSB7CiAgICAgICAgdmFyIGlzSW5zZXJ0ID0gZGVsdGEuYWN0aW9uID09ICJpbnNlcnQiOwogICAgICAgIGlmIChpc0luc2VydCA/IGRlbHRhLmxpbmVzLmxlbmd0aCA8PSAxICYmICFkZWx0YS5saW5lc1swXQogICAgICAgICAgICA6ICFSYW5nZS5jb21wYXJlUG9pbnRzKGRlbHRhLnN0YXJ0LCBkZWx0YS5lbmQpKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgaWYgKGlzSW5zZXJ0ICYmIGRlbHRhLmxpbmVzLmxlbmd0aCA+IDIwMDAwKSB7CiAgICAgICAgICAgIHRoaXMuJHNwbGl0QW5kYXBwbHlMYXJnZURlbHRhKGRlbHRhLCAyMDAwMCk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBhcHBseURlbHRhKHRoaXMuJGxpbmVzLCBkZWx0YSwgZG9Ob3RWYWxpZGF0ZSk7CiAgICAgICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlIiwgZGVsdGEpOwogICAgICAgIH0KICAgIH07CiAgICAKICAgIHRoaXMuJHNhZmVBcHBseURlbHRhID0gZnVuY3Rpb24oZGVsdGEpIHsKICAgICAgICB2YXIgZG9jTGVuZ3RoID0gdGhpcy4kbGluZXMubGVuZ3RoOwogICAgICAgIGlmICgKICAgICAgICAgICAgZGVsdGEuYWN0aW9uID09ICJyZW1vdmUiICYmIGRlbHRhLnN0YXJ0LnJvdyA8IGRvY0xlbmd0aCAmJiBkZWx0YS5lbmQucm93IDwgZG9jTGVuZ3RoCiAgICAgICAgICAgIHx8IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IiAmJiBkZWx0YS5zdGFydC5yb3cgPD0gZG9jTGVuZ3RoCiAgICAgICAgKSB7CiAgICAgICAgICAgIHRoaXMuYXBwbHlEZWx0YShkZWx0YSk7CiAgICAgICAgfQogICAgfTsKICAgIAogICAgdGhpcy4kc3BsaXRBbmRhcHBseUxhcmdlRGVsdGEgPSBmdW5jdGlvbihkZWx0YSwgTUFYKSB7CiAgICAgICAgdmFyIGxpbmVzID0gZGVsdGEubGluZXM7CiAgICAgICAgdmFyIGwgPSBsaW5lcy5sZW5ndGggLSBNQVggKyAxOwogICAgICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7IAogICAgICAgIHZhciBjb2x1bW4gPSBkZWx0YS5zdGFydC5jb2x1bW47CiAgICAgICAgZm9yICh2YXIgZnJvbSA9IDAsIHRvID0gMDsgZnJvbSA8IGw7IGZyb20gPSB0bykgewogICAgICAgICAgICB0byArPSBNQVggLSAxOwogICAgICAgICAgICB2YXIgY2h1bmsgPSBsaW5lcy5zbGljZShmcm9tLCB0byk7CiAgICAgICAgICAgIGNodW5rLnB1c2goIiIpOwogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICAgICAgc3RhcnQ6IHRoaXMucG9zKHJvdyArIGZyb20sIGNvbHVtbiksCiAgICAgICAgICAgICAgICBlbmQ6IHRoaXMucG9zKHJvdyArIHRvLCBjb2x1bW4gPSAwKSwKICAgICAgICAgICAgICAgIGFjdGlvbjogZGVsdGEuYWN0aW9uLAogICAgICAgICAgICAgICAgbGluZXM6IGNodW5rCiAgICAgICAgICAgIH0sIHRydWUpOwogICAgICAgIH0KICAgICAgICBkZWx0YS5saW5lcyA9IGxpbmVzLnNsaWNlKGZyb20pOwogICAgICAgIGRlbHRhLnN0YXJ0LnJvdyA9IHJvdyArIGZyb207CiAgICAgICAgZGVsdGEuc3RhcnQuY29sdW1uID0gY29sdW1uOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YShkZWx0YSwgdHJ1ZSk7CiAgICB9OwogICAgdGhpcy5yZXZlcnREZWx0YSA9IGZ1bmN0aW9uKGRlbHRhKSB7CiAgICAgICAgdGhpcy4kc2FmZUFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogdGhpcy5jbG9uZVBvcyhkZWx0YS5zdGFydCksCiAgICAgICAgICAgIGVuZDogdGhpcy5jbG9uZVBvcyhkZWx0YS5lbmQpLAogICAgICAgICAgICBhY3Rpb246IChkZWx0YS5hY3Rpb24gPT0gImluc2VydCIgPyAicmVtb3ZlIiA6ICJpbnNlcnQiKSwKICAgICAgICAgICAgbGluZXM6IGRlbHRhLmxpbmVzLnNsaWNlKCkKICAgICAgICB9KTsKICAgIH07CiAgICB0aGlzLmluZGV4VG9Qb3NpdGlvbiA9IGZ1bmN0aW9uKGluZGV4LCBzdGFydFJvdykgewogICAgICAgIHZhciBsaW5lcyA9IHRoaXMuJGxpbmVzIHx8IHRoaXMuZ2V0QWxsTGluZXMoKTsKICAgICAgICB2YXIgbmV3bGluZUxlbmd0aCA9IHRoaXMuZ2V0TmV3TGluZUNoYXJhY3RlcigpLmxlbmd0aDsKICAgICAgICBmb3IgKHZhciBpID0gc3RhcnRSb3cgfHwgMCwgbCA9IGxpbmVzLmxlbmd0aDsgaSA8IGw7IGkrKykgewogICAgICAgICAgICBpbmRleCAtPSBsaW5lc1tpXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RoOwogICAgICAgICAgICBpZiAoaW5kZXggPCAwKQogICAgICAgICAgICAgICAgcmV0dXJuIHtyb3c6IGksIGNvbHVtbjogaW5kZXggKyBsaW5lc1tpXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RofTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHtyb3c6IGwtMSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2wtMV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aH07CiAgICB9OwogICAgdGhpcy5wb3NpdGlvblRvSW5kZXggPSBmdW5jdGlvbihwb3MsIHN0YXJ0Um93KSB7CiAgICAgICAgdmFyIGxpbmVzID0gdGhpcy4kbGluZXMgfHwgdGhpcy5nZXRBbGxMaW5lcygpOwogICAgICAgIHZhciBuZXdsaW5lTGVuZ3RoID0gdGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkubGVuZ3RoOwogICAgICAgIHZhciBpbmRleCA9IDA7CiAgICAgICAgdmFyIHJvdyA9IE1hdGgubWluKHBvcy5yb3csIGxpbmVzLmxlbmd0aCk7CiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0Um93IHx8IDA7IGkgPCByb3c7ICsraSkKICAgICAgICAgICAgaW5kZXggKz0gbGluZXNbaV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aDsKCiAgICAgICAgcmV0dXJuIGluZGV4ICsgcG9zLmNvbHVtbjsKICAgIH07Cgp9KS5jYWxsKERvY3VtZW50LnByb3RvdHlwZSk7CgpleHBvcnRzLkRvY3VtZW50ID0gRG9jdW1lbnQ7Cn0pOwoKYWNlLmRlZmluZSgiYWNlL2xpYi9sYW5nIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCmV4cG9ydHMubGFzdCA9IGZ1bmN0aW9uKGEpIHsKICAgIHJldHVybiBhW2EubGVuZ3RoIC0gMV07Cn07CgpleHBvcnRzLnN0cmluZ1JldmVyc2UgPSBmdW5jdGlvbihzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcuc3BsaXQoIiIpLnJldmVyc2UoKS5qb2luKCIiKTsKfTsKCmV4cG9ydHMuc3RyaW5nUmVwZWF0ID0gZnVuY3Rpb24gKHN0cmluZywgY291bnQpIHsKICAgIHZhciByZXN1bHQgPSAnJzsKICAgIHdoaWxlIChjb3VudCA+IDApIHsKICAgICAgICBpZiAoY291bnQgJiAxKQogICAgICAgICAgICByZXN1bHQgKz0gc3RyaW5nOwoKICAgICAgICBpZiAoY291bnQgPj49IDEpCiAgICAgICAgICAgIHN0cmluZyArPSBzdHJpbmc7CiAgICB9CiAgICByZXR1cm4gcmVzdWx0Owp9OwoKdmFyIHRyaW1CZWdpblJlZ2V4cCA9IC9eXHNccyovOwp2YXIgdHJpbUVuZFJlZ2V4cCA9IC9cc1xzKiQvOwoKZXhwb3J0cy5zdHJpbmdUcmltTGVmdCA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcucmVwbGFjZSh0cmltQmVnaW5SZWdleHAsICcnKTsKfTsKCmV4cG9ydHMuc3RyaW5nVHJpbVJpZ2h0ID0gZnVuY3Rpb24gKHN0cmluZykgewogICAgcmV0dXJuIHN0cmluZy5yZXBsYWNlKHRyaW1FbmRSZWdleHAsICcnKTsKfTsKCmV4cG9ydHMuY29weU9iamVjdCA9IGZ1bmN0aW9uKG9iaikgewogICAgdmFyIGNvcHkgPSB7fTsKICAgIGZvciAodmFyIGtleSBpbiBvYmopIHsKICAgICAgICBjb3B5W2tleV0gPSBvYmpba2V5XTsKICAgIH0KICAgIHJldHVybiBjb3B5Owp9OwoKZXhwb3J0cy5jb3B5QXJyYXkgPSBmdW5jdGlvbihhcnJheSl7CiAgICB2YXIgY29weSA9IFtdOwogICAgZm9yICh2YXIgaT0wLCBsPWFycmF5Lmxlbmd0aDsgaTxsOyBpKyspIHsKICAgICAgICBpZiAoYXJyYXlbaV0gJiYgdHlwZW9mIGFycmF5W2ldID09ICJvYmplY3QiKQogICAgICAgICAgICBjb3B5W2ldID0gdGhpcy5jb3B5T2JqZWN0KGFycmF5W2ldKTsKICAgICAgICBlbHNlIAogICAgICAgICAgICBjb3B5W2ldID0gYXJyYXlbaV07CiAgICB9CiAgICByZXR1cm4gY29weTsKfTsKCmV4cG9ydHMuZGVlcENvcHkgPSBmdW5jdGlvbiBkZWVwQ29weShvYmopIHsKICAgIGlmICh0eXBlb2Ygb2JqICE9PSAib2JqZWN0IiB8fCAhb2JqKQogICAgICAgIHJldHVybiBvYmo7CiAgICB2YXIgY29weTsKICAgIGlmIChBcnJheS5pc0FycmF5KG9iaikpIHsKICAgICAgICBjb3B5ID0gW107CiAgICAgICAgZm9yICh2YXIga2V5ID0gMDsga2V5IDwgb2JqLmxlbmd0aDsga2V5KyspIHsKICAgICAgICAgICAgY29weVtrZXldID0gZGVlcENvcHkob2JqW2tleV0pOwogICAgICAgIH0KICAgICAgICByZXR1cm4gY29weTsKICAgIH0KICAgIGlmIChPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwob2JqKSAhPT0gIltvYmplY3QgT2JqZWN0XSIpCiAgICAgICAgcmV0dXJuIG9iajsKICAgIAogICAgY29weSA9IHt9OwogICAgZm9yICh2YXIga2V5IGluIG9iaikKICAgICAgICBjb3B5W2tleV0gPSBkZWVwQ29weShvYmpba2V5XSk7CiAgICByZXR1cm4gY29weTsKfTsKCmV4cG9ydHMuYXJyYXlUb01hcCA9IGZ1bmN0aW9uKGFycikgewogICAgdmFyIG1hcCA9IHt9OwogICAgZm9yICh2YXIgaT0wOyBpPGFyci5sZW5ndGg7IGkrKykgewogICAgICAgIG1hcFthcnJbaV1dID0gMTsKICAgIH0KICAgIHJldHVybiBtYXA7Cgp9OwoKZXhwb3J0cy5jcmVhdGVNYXAgPSBmdW5jdGlvbihwcm9wcykgewogICAgdmFyIG1hcCA9IE9iamVjdC5jcmVhdGUobnVsbCk7CiAgICBmb3IgKHZhciBpIGluIHByb3BzKSB7CiAgICAgICAgbWFwW2ldID0gcHJvcHNbaV07CiAgICB9CiAgICByZXR1cm4gbWFwOwp9OwpleHBvcnRzLmFycmF5UmVtb3ZlID0gZnVuY3Rpb24oYXJyYXksIHZhbHVlKSB7CiAgZm9yICh2YXIgaSA9IDA7IGkgPD0gYXJyYXkubGVuZ3RoOyBpKyspIHsKICAgIGlmICh2YWx1ZSA9PT0gYXJyYXlbaV0pIHsKICAgICAgYXJyYXkuc3BsaWNlKGksIDEpOwogICAgfQogIH0KfTsKCmV4cG9ydHMuZXNjYXBlUmVnRXhwID0gZnVuY3Rpb24oc3RyKSB7CiAgICByZXR1cm4gc3RyLnJlcGxhY2UoLyhbLiorP14ke30oKXxbXF1cL1xcXSkvZywgJ1xcJDEnKTsKfTsKCmV4cG9ydHMuZXNjYXBlSFRNTCA9IGZ1bmN0aW9uKHN0cikgewogICAgcmV0dXJuICgiIiArIHN0cikucmVwbGFjZSgvJi9nLCAiJiMzODsiKS5yZXBsYWNlKC8iL2csICImIzM0OyIpLnJlcGxhY2UoLycvZywgIiYjMzk7IikucmVwbGFjZSgvPC9nLCAiJiM2MDsiKTsKfTsKCmV4cG9ydHMuZ2V0TWF0Y2hPZmZzZXRzID0gZnVuY3Rpb24oc3RyaW5nLCByZWdFeHApIHsKICAgIHZhciBtYXRjaGVzID0gW107CgogICAgc3RyaW5nLnJlcGxhY2UocmVnRXhwLCBmdW5jdGlvbihzdHIpIHsKICAgICAgICBtYXRjaGVzLnB1c2goewogICAgICAgICAgICBvZmZzZXQ6IGFyZ3VtZW50c1thcmd1bWVudHMubGVuZ3RoLTJdLAogICAgICAgICAgICBsZW5ndGg6IHN0ci5sZW5ndGgKICAgICAgICB9KTsKICAgIH0pOwoKICAgIHJldHVybiBtYXRjaGVzOwp9OwpleHBvcnRzLmRlZmVycmVkQ2FsbCA9IGZ1bmN0aW9uKGZjbikgewogICAgdmFyIHRpbWVyID0gbnVsbDsKICAgIHZhciBjYWxsYmFjayA9IGZ1bmN0aW9uKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CgogICAgdmFyIGRlZmVycmVkID0gZnVuY3Rpb24odGltZW91dCkgewogICAgICAgIGRlZmVycmVkLmNhbmNlbCgpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCAwKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwoKICAgIGRlZmVycmVkLnNjaGVkdWxlID0gZGVmZXJyZWQ7CgogICAgZGVmZXJyZWQuY2FsbCA9IGZ1bmN0aW9uKCkgewogICAgICAgIHRoaXMuY2FuY2VsKCk7CiAgICAgICAgZmNuKCk7CiAgICAgICAgcmV0dXJuIGRlZmVycmVkOwogICAgfTsKCiAgICBkZWZlcnJlZC5jYW5jZWwgPSBmdW5jdGlvbigpIHsKICAgICAgICBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgCiAgICBkZWZlcnJlZC5pc1BlbmRpbmcgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gdGltZXI7CiAgICB9OwoKICAgIHJldHVybiBkZWZlcnJlZDsKfTsKCgpleHBvcnRzLmRlbGF5ZWRDYWxsID0gZnVuY3Rpb24oZmNuLCBkZWZhdWx0VGltZW91dCkgewogICAgdmFyIHRpbWVyID0gbnVsbDsKICAgIHZhciBjYWxsYmFjayA9IGZ1bmN0aW9uKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CgogICAgdmFyIF9zZWxmID0gZnVuY3Rpb24odGltZW91dCkgewogICAgICAgIGlmICh0aW1lciA9PSBudWxsKQogICAgICAgICAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIHRpbWVvdXQgfHwgZGVmYXVsdFRpbWVvdXQpOwogICAgfTsKCiAgICBfc2VsZi5kZWxheSA9IGZ1bmN0aW9uKHRpbWVvdXQpIHsKICAgICAgICB0aW1lciAmJiBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCBkZWZhdWx0VGltZW91dCk7CiAgICB9OwogICAgX3NlbGYuc2NoZWR1bGUgPSBfc2VsZjsKCiAgICBfc2VsZi5jYWxsID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgIH07CgogICAgX3NlbGYuY2FuY2VsID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGltZXIgJiYgY2xlYXJUaW1lb3V0KHRpbWVyKTsKICAgICAgICB0aW1lciA9IG51bGw7CiAgICB9OwoKICAgIF9zZWxmLmlzUGVuZGluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aW1lcjsKICAgIH07CgogICAgcmV0dXJuIF9zZWxmOwp9Owp9KTsKCmFjZS5kZWZpbmUoImFjZS93b3JrZXIvbWlycm9yIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCnZhciBSYW5nZSA9IHJlcXVpcmUoIi4uL3JhbmdlIikuUmFuZ2U7CnZhciBEb2N1bWVudCA9IHJlcXVpcmUoIi4uL2RvY3VtZW50IikuRG9jdW1lbnQ7CnZhciBsYW5nID0gcmVxdWlyZSgiLi4vbGliL2xhbmciKTsKICAgIAp2YXIgTWlycm9yID0gZXhwb3J0cy5NaXJyb3IgPSBmdW5jdGlvbihzZW5kZXIpIHsKICAgIHRoaXMuc2VuZGVyID0gc2VuZGVyOwogICAgdmFyIGRvYyA9IHRoaXMuZG9jID0gbmV3IERvY3VtZW50KCIiKTsKICAgIAogICAgdmFyIGRlZmVycmVkVXBkYXRlID0gdGhpcy5kZWZlcnJlZFVwZGF0ZSA9IGxhbmcuZGVsYXllZENhbGwodGhpcy5vblVwZGF0ZS5iaW5kKHRoaXMpKTsKICAgIAogICAgdmFyIF9zZWxmID0gdGhpczsKICAgIHNlbmRlci5vbigiY2hhbmdlIiwgZnVuY3Rpb24oZSkgewogICAgICAgIHZhciBkYXRhID0gZS5kYXRhOwogICAgICAgIGlmIChkYXRhWzBdLnN0YXJ0KSB7CiAgICAgICAgICAgIGRvYy5hcHBseURlbHRhcyhkYXRhKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGRhdGEubGVuZ3RoOyBpICs9IDIpIHsKICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KGRhdGFbaSsxXSkpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgZCA9IHthY3Rpb246ICJpbnNlcnQiLCBzdGFydDogZGF0YVtpXSwgbGluZXM6IGRhdGFbaSsxXX07CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIHZhciBkID0ge2FjdGlvbjogInJlbW92ZSIsIHN0YXJ0OiBkYXRhW2ldLCBlbmQ6IGRhdGFbaSsxXX07CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBkb2MuYXBwbHlEZWx0YShkLCB0cnVlKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAoX3NlbGYuJHRpbWVvdXQpCiAgICAgICAgICAgIHJldHVybiBkZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZShfc2VsZi4kdGltZW91dCk7CiAgICAgICAgX3NlbGYub25VcGRhdGUoKTsKICAgIH0pOwp9OwoKKGZ1bmN0aW9uKCkgewogICAgCiAgICB0aGlzLiR0aW1lb3V0ID0gNTAwOwogICAgCiAgICB0aGlzLnNldFRpbWVvdXQgPSBmdW5jdGlvbih0aW1lb3V0KSB7CiAgICAgICAgdGhpcy4kdGltZW91dCA9IHRpbWVvdXQ7CiAgICB9OwogICAgCiAgICB0aGlzLnNldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHsKICAgICAgICB0aGlzLmRvYy5zZXRWYWx1ZSh2YWx1ZSk7CiAgICAgICAgdGhpcy5kZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZSh0aGlzLiR0aW1lb3V0KTsKICAgIH07CiAgICAKICAgIHRoaXMuZ2V0VmFsdWUgPSBmdW5jdGlvbihjYWxsYmFja0lkKSB7CiAgICAgICAgdGhpcy5zZW5kZXIuY2FsbGJhY2sodGhpcy5kb2MuZ2V0VmFsdWUoKSwgY2FsbGJhY2tJZCk7CiAgICB9OwogICAgCiAgICB0aGlzLm9uVXBkYXRlID0gZnVuY3Rpb24oKSB7CiAgICB9OwogICAgCiAgICB0aGlzLmlzUGVuZGluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLmRlZmVycmVkVXBkYXRlLmlzUGVuZGluZygpOwogICAgfTsKICAgIAp9KS5jYWxsKE1pcnJvci5wcm90b3R5cGUpOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbW9kZS9qc29uL2pzb25fcGFyc2UiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKICAgIHZhciBhdCwgICAgIC8vIFRoZSBpbmRleCBvZiB0aGUgY3VycmVudCBjaGFyYWN0ZXIKICAgICAgICBjaCwgICAgIC8vIFRoZSBjdXJyZW50IGNoYXJhY3RlcgogICAgICAgIGVzY2FwZWUgPSB7CiAgICAgICAgICAgICciJzogICciJywKICAgICAgICAgICAgJ1xcJzogJ1xcJywKICAgICAgICAgICAgJy8nOiAgJy8nLAogICAgICAgICAgICBiOiAgICAnXGInLAogICAgICAgICAgICBmOiAgICAnXGYnLAogICAgICAgICAgICBuOiAgICAnXG4nLAogICAgICAgICAgICByOiAgICAnXHInLAogICAgICAgICAgICB0OiAgICAnXHQnCiAgICAgICAgfSwKICAgICAgICB0ZXh0LAoKICAgICAgICBlcnJvciA9IGZ1bmN0aW9uIChtKSB7CgogICAgICAgICAgICB0aHJvdyB7CiAgICAgICAgICAgICAgICBuYW1lOiAgICAnU3ludGF4RXJyb3InLAogICAgICAgICAgICAgICAgbWVzc2FnZTogbSwKICAgICAgICAgICAgICAgIGF0OiAgICAgIGF0LAogICAgICAgICAgICAgICAgdGV4dDogICAgdGV4dAogICAgICAgICAgICB9OwogICAgICAgIH0sCgogICAgICAgIG5leHQgPSBmdW5jdGlvbiAoYykgewoKICAgICAgICAgICAgaWYgKGMgJiYgYyAhPT0gY2gpIHsKICAgICAgICAgICAgICAgIGVycm9yKCJFeHBlY3RlZCAnIiArIGMgKyAiJyBpbnN0ZWFkIG9mICciICsgY2ggKyAiJyIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjaCA9IHRleHQuY2hhckF0KGF0KTsKICAgICAgICAgICAgYXQgKz0gMTsKICAgICAgICAgICAgcmV0dXJuIGNoOwogICAgICAgIH0sCgogICAgICAgIG51bWJlciA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBudW1iZXIsCiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnJzsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJy0nKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnLSc7CiAgICAgICAgICAgICAgICBuZXh0KCctJyk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgd2hpbGUgKGNoID49ICcwJyAmJiBjaCA8PSAnOScpIHsKICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICcuJykgewogICAgICAgICAgICAgICAgc3RyaW5nICs9ICcuJzsKICAgICAgICAgICAgICAgIHdoaWxlIChuZXh0KCkgJiYgY2ggPj0gJzAnICYmIGNoIDw9ICc5JykgewogICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICdlJyB8fCBjaCA9PT0gJ0UnKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICctJyB8fCBjaCA9PT0gJysnKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHdoaWxlIChjaCA+PSAnMCcgJiYgY2ggPD0gJzknKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBudW1iZXIgPSArc3RyaW5nOwogICAgICAgICAgICBpZiAoaXNOYU4obnVtYmVyKSkgewogICAgICAgICAgICAgICAgZXJyb3IoIkJhZCBudW1iZXIiKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiBudW1iZXI7CiAgICAgICAgICAgIH0KICAgICAgICB9LAoKICAgICAgICBzdHJpbmcgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgaGV4LAogICAgICAgICAgICAgICAgaSwKICAgICAgICAgICAgICAgIHN0cmluZyA9ICcnLAogICAgICAgICAgICAgICAgdWZmZmY7CgogICAgICAgICAgICBpZiAoY2ggPT09ICciJykgewogICAgICAgICAgICAgICAgd2hpbGUgKG5leHQoKSkgewogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJyInKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN0cmluZzsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoID09PSAnXFwnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAndScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gMDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCA0OyBpICs9IDEpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZXggPSBwYXJzZUludChuZXh0KCksIDE2KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWlzRmluaXRlKGhleCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gdWZmZmYgKiAxNiArIGhleDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKHVmZmZmKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YgZXNjYXBlZVtjaF0gPT09ICdzdHJpbmcnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gZXNjYXBlZVtjaF07CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoY2ggPT0gIlxuIiB8fCBjaCA9PSAiXHIiKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBzdHJpbmciKTsKICAgICAgICB9LAoKICAgICAgICB3aGl0ZSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHdoaWxlIChjaCAmJiBjaCA8PSAnICcpIHsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIHdvcmQgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICBzd2l0Y2ggKGNoKSB7CiAgICAgICAgICAgIGNhc2UgJ3QnOgogICAgICAgICAgICAgICAgbmV4dCgndCcpOwogICAgICAgICAgICAgICAgbmV4dCgncicpOwogICAgICAgICAgICAgICAgbmV4dCgndScpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIGNhc2UgJ2YnOgogICAgICAgICAgICAgICAgbmV4dCgnZicpOwogICAgICAgICAgICAgICAgbmV4dCgnYScpOwogICAgICAgICAgICAgICAgbmV4dCgnbCcpOwogICAgICAgICAgICAgICAgbmV4dCgncycpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICBjYXNlICduJzoKICAgICAgICAgICAgICAgIG5leHQoJ24nKTsKICAgICAgICAgICAgICAgIG5leHQoJ3UnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJVbmV4cGVjdGVkICciICsgY2ggKyAiJyIpOwogICAgICAgIH0sCgogICAgICAgIHZhbHVlLCAgLy8gUGxhY2UgaG9sZGVyIGZvciB0aGUgdmFsdWUgZnVuY3Rpb24uCgogICAgICAgIGFycmF5ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGFycmF5ID0gW107CgogICAgICAgICAgICBpZiAoY2ggPT09ICdbJykgewogICAgICAgICAgICAgICAgbmV4dCgnWycpOwogICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnXScpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBhcnJheTsgICAvLyBlbXB0eSBhcnJheQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAgYXJyYXkucHVzaCh2YWx1ZSgpKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ10nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5OwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBuZXh0KCcsJyk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiQmFkIGFycmF5Iik7CiAgICAgICAgfSwKCiAgICAgICAgb2JqZWN0ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGtleSwKICAgICAgICAgICAgICAgIG9iamVjdCA9IHt9OwoKICAgICAgICAgICAgaWYgKGNoID09PSAneycpIHsKICAgICAgICAgICAgICAgIG5leHQoJ3snKTsKICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICd9JykgewogICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2JqZWN0OyAgIC8vIGVtcHR5IG9iamVjdAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAga2V5ID0gc3RyaW5nKCk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgICAgICBuZXh0KCc6Jyk7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKG9iamVjdCwga2V5KSkgewogICAgICAgICAgICAgICAgICAgICAgICBlcnJvcignRHVwbGljYXRlIGtleSAiJyArIGtleSArICciJyk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIG9iamVjdFtrZXldID0gdmFsdWUoKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ30nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnLCcpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBvYmplY3QiKTsKICAgICAgICB9OwoKICAgIHZhbHVlID0gZnVuY3Rpb24gKCkgewoKICAgICAgICB3aGl0ZSgpOwogICAgICAgIHN3aXRjaCAoY2gpIHsKICAgICAgICBjYXNlICd7JzoKICAgICAgICAgICAgcmV0dXJuIG9iamVjdCgpOwogICAgICAgIGNhc2UgJ1snOgogICAgICAgICAgICByZXR1cm4gYXJyYXkoKTsKICAgICAgICBjYXNlICciJzoKICAgICAgICAgICAgcmV0dXJuIHN0cmluZygpOwogICAgICAgIGNhc2UgJy0nOgogICAgICAgICAgICByZXR1cm4gbnVtYmVyKCk7CiAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIGNoID49ICcwJyAmJiBjaCA8PSAnOScgPyBudW1iZXIoKSA6IHdvcmQoKTsKICAgICAgICB9CiAgICB9OwoKICAgIHJldHVybiBmdW5jdGlvbiAoc291cmNlLCByZXZpdmVyKSB7CiAgICAgICAgdmFyIHJlc3VsdDsKCiAgICAgICAgdGV4dCA9IHNvdXJjZTsKICAgICAgICBhdCA9IDA7CiAgICAgICAgY2ggPSAnICc7CiAgICAgICAgcmVzdWx0ID0gdmFsdWUoKTsKICAgICAgICB3aGl0ZSgpOwogICAgICAgIGlmIChjaCkgewogICAgICAgICAgICBlcnJvcigiU3ludGF4IGVycm9yIik7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gdHlwZW9mIHJldml2ZXIgPT09ICdmdW5jdGlvbicgPyBmdW5jdGlvbiB3YWxrKGhvbGRlciwga2V5KSB7CiAgICAgICAgICAgIHZhciBrLCB2LCB2YWx1ZSA9IGhvbGRlcltrZXldOwogICAgICAgICAgICBpZiAodmFsdWUgJiYgdHlwZW9mIHZhbHVlID09PSAnb2JqZWN0JykgewogICAgICAgICAgICAgICAgZm9yIChrIGluIHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKHZhbHVlLCBrKSkgewogICAgICAgICAgICAgICAgICAgICAgICB2ID0gd2Fsayh2YWx1ZSwgayk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2ICE9PSB1bmRlZmluZWQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlW2tdID0gdjsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSB2YWx1ZVtrXTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gcmV2aXZlci5jYWxsKGhvbGRlciwga2V5LCB2YWx1ZSk7CiAgICAgICAgfSh7Jyc6IHJlc3VsdH0sICcnKSA6IHJlc3VsdDsKICAgIH07Cn0pOwoKYWNlLmRlZmluZSgiYWNlL21vZGUvanNvbl93b3JrZXIiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIG9vcCA9IHJlcXVpcmUoIi4uL2xpYi9vb3AiKTsKdmFyIE1pcnJvciA9IHJlcXVpcmUoIi4uL3dvcmtlci9taXJyb3IiKS5NaXJyb3I7CnZhciBwYXJzZSA9IHJlcXVpcmUoIi4vanNvbi9qc29uX3BhcnNlIik7Cgp2YXIgSnNvbldvcmtlciA9IGV4cG9ydHMuSnNvbldvcmtlciA9IGZ1bmN0aW9uKHNlbmRlcikgewogICAgTWlycm9yLmNhbGwodGhpcywgc2VuZGVyKTsKICAgIHRoaXMuc2V0VGltZW91dCgyMDApOwp9OwoKb29wLmluaGVyaXRzKEpzb25Xb3JrZXIsIE1pcnJvcik7CgooZnVuY3Rpb24oKSB7CgogICAgdGhpcy5vblVwZGF0ZSA9IGZ1bmN0aW9uKCkgewogICAgICAgIHZhciB2YWx1ZSA9IHRoaXMuZG9jLmdldFZhbHVlKCk7CiAgICAgICAgdmFyIGVycm9ycyA9IFtdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGlmICh2YWx1ZSkKICAgICAgICAgICAgICAgIHBhcnNlKHZhbHVlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBwb3MgPSB0aGlzLmRvYy5pbmRleFRvUG9zaXRpb24oZS5hdC0xKTsKICAgICAgICAgICAgZXJyb3JzLnB1c2goewogICAgICAgICAgICAgICAgcm93OiBwb3Mucm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBwb3MuY29sdW1uLAogICAgICAgICAgICAgICAgdGV4dDogZS5tZXNzYWdlLAogICAgICAgICAgICAgICAgdHlwZTogImVycm9yIgogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgdGhpcy5zZW5kZXIuZW1pdCgiYW5ub3RhdGUiLCBlcnJvcnMpOwogICAgfTsKCn0pLmNhbGwoSnNvbldvcmtlci5wcm90b3R5cGUpOwoKfSk7Cg=="},function(t,e,i){t.exports=function(){"use strict";function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(e>0?t.toFixed(e).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}function e(t,e,i){function n(t,e,i){return Math.max(e,Math.min(t,i))}function r(t,r,o){if(o&&(a=!0),a){t.preventDefault();var s=e.getBoundingClientRect(),l=s.width,h=s.height,c=r.clientX,u=r.clientY,d=n(c-s.left,0,l),f=n(u-s.top,0,h);i(d/l,f/h)}}function o(t,e){1===(void 0===t.buttons?t.which:t.buttons)?r(t,t,e):a=!1}function s(t,e){1===t.touches.length?r(t,t.touches[0],e):a=!1}var a=!1;t.add(e,"mousedown",(function(t){o(t,!0)})),t.add(e,"touchstart",(function(t){s(t,!0)})),t.add(window,"mousemove",o),t.add(e,"touchmove",s),t.add(window,"mouseup",(function(t){a=!1})),t.add(e,"touchend",(function(t){a=!1})),t.add(e,"touchcancel",(function(t){a=!1}))}function i(t,e){return(e||document).querySelector(t)}function n(t){t.preventDefault(),t.stopPropagation()}function r(t,e,i,r,o){t.add(e,u,(function(t){i.indexOf(t.key)>=0&&(o&&n(t),r(t))}))}var o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.startsWith=String.prototype.startsWith||function(t){return 0===this.indexOf(t)},String.prototype.padStart=String.prototype.padStart||function(t,e){for(var i=this;i.length<t;)i=e+i;return i};var l={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"},h=function(){function e(t,i,n,r){o(this,e);var s=this;if(void 0===t);else if(Array.isArray(t))this.rgba=t;else if(void 0===n){var l=t&&""+t;l&&function(t){if(t.startsWith("hsl")){var i=t.match(/([\-\d\.e]+)/g).map(Number),n=a(i,4),r=n[0],o=n[1],l=n[2],h=n[3];void 0===h&&(h=1),r/=360,o/=100,l/=100,s.hsla=[r,o,l,h]}else if(t.startsWith("rgb")){var c=t.match(/([\-\d\.e]+)/g).map(Number),u=a(c,4),d=u[0],f=u[1],p=u[2],g=u[3];void 0===g&&(g=1),s.rgba=[d,f,p,g]}else t.startsWith("#")?s.rgba=e.hexToRgb(t):s.rgba=e.nameToRgb(t)||e.hexToRgb(t)}(l.toLowerCase())}else this.rgba=[t,i,n,void 0===r?1:r]}return s(e,[{key:"printRGB",value:function(e){var i=e?this.rgba:this.rgba.slice(0,3),n=i.map((function(e,i){return t(e,3===i?3:0)}));return e?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(e){var i=[360,100,100,1],n=["","%","%",""],r=e?this.hsla:this.hsla.slice(0,3),o=r.map((function(e,r){return t(e*i[r],3===r?3:1)+n[r]}));return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var e=this.hex;return t?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(t){3===t.length&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(t){3===t.length&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(t,e){return e<3?t.toString(16):Math.round(255*t).toString(16)})).map((function(t){return t.padStart(2,"0")})).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var e=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(t){return parseInt(t,16)}));return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(t){var i=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),n=l[i];return void 0===n?n:e.hexToRgb(n.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var e=a(t,4),i=e[0],n=e[1],r=e[2],o=e[3];i/=255,n/=255,r/=255;var s=Math.max(i,n,r),l=Math.min(i,n,r),h=void 0,c=void 0,u=(s+l)/2;if(s===l)h=c=0;else{var d=s-l;switch(c=u>.5?d/(2-s-l):d/(s+l),s){case i:h=(n-r)/d+(n<r?6:0);break;case n:h=(r-i)/d+2;break;case r:h=(i-n)/d+4}h/=6}return[h,c,u,o]}},{key:"hslToRgb",value:function(t){var e=a(t,4),i=e[0],n=e[1],r=e[2],o=e[3],s=void 0,l=void 0,h=void 0;if(0===n)s=l=h=r;else{var c=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},u=r<.5?r*(1+n):r+n-r*n,d=2*r-u;s=c(d,u,i+1/3),l=c(d,u,i),h=c(d,u,i-1/3)}var f=[255*s,255*l,255*h].map(Math.round);return f[3]=o,f}}]),e}(),c=function(){function t(){o(this,t),this._events=[]}return s(t,[{key:"add",value:function(t,e,i){t.addEventListener(e,i,!1),this._events.push({target:t,type:e,handler:i})}},{key:"remove",value:function(e,i,n){this._events=this._events.filter((function(r){var o=!0;return e&&e!==r.target&&(o=!1),i&&i!==r.type&&(o=!1),n&&n!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o}))}},{key:"destroy",value:function(){this._events.forEach((function(e){return t._doRemove(e.target,e.type,e.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(t,e,i){t.removeEventListener(e,i,!1)}}]),t}(),u="keydown",d="mousedown",f="focusin",p=document.createElement("style");return p.textContent=".picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:stretch;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:'';display:block;width:100%;height:0;-webkit-box-ordinal-group:2;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{-webkit-box-flex:1;flex:1 1 auto}.layout_default .picker_sl::before{content:'';display:block;padding-bottom:100%}.layout_default .picker_editor{-webkit-box-ordinal-group:2;order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{-webkit-box-ordinal-group:2;order:1;-webkit-box-flex:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{-webkit-box-ordinal-group:2;order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px dodgerblue}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:whitesmoke;background-image:-webkit-gradient(linear, left bottom, left top, from(gainsboro), to(transparent));background-image:-webkit-linear-gradient(bottom, gainsboro, transparent);background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:-webkit-gradient(linear, left bottom, left top, from(transparent), to(gainsboro));background-image:-webkit-linear-gradient(bottom, transparent, gainsboro);background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:white}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid white;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:-webkit-gradient(linear, left top, right top, from(red), color-stop(yellow), color-stop(lime), color-stop(cyan), color-stop(blue), color-stop(magenta), to(red));background-image:-webkit-linear-gradient(left, red, yellow, lime, cyan, blue, magenta, red);background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:-webkit-gradient(linear, left top, left bottom, from(white), color-stop(50%, rgba(255,255,255,0))),-webkit-gradient(linear, left bottom, left top, from(black), color-stop(50%, rgba(0,0,0,0))),-webkit-gradient(linear, left top, right top, from(gray), to(rgba(128,128,128,0)));background-image:-webkit-linear-gradient(top, white, rgba(255,255,255,0) 50%),-webkit-linear-gradient(bottom, black, rgba(0,0,0,0) 50%),-webkit-linear-gradient(left, gray, rgba(128,128,128,0));background-image:linear-gradient(180deg, white, rgba(255,255,255,0) 50%),linear-gradient(0deg, black, rgba(0,0,0,0) 50%),linear-gradient(90deg, gray, rgba(128,128,128,0))}.picker_alpha,.picker_sample{position:relative;background:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\") left top/contain white;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:'';position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,0.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:\"\";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}",document.documentElement.firstElementChild.appendChild(p),function(){function t(e){o(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new c,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(e)}return s(t,[{key:"setOptions",value:function(t){var e,i,n,o,s=this;t&&(e=this.settings,t instanceof HTMLElement?e.parent=t:(e.parent&&t.parent&&e.parent!==t.parent&&(this._events.remove(e.parent),this._popupInited=!1),function(t,e,i){for(var n in t)i&&0<=i.indexOf(n)||(e[n]=t[n])}(t,e),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose),(i=t.color||t.colour)&&this._setColor(i)),(n=e.parent)&&e.popup&&!this._popupInited?(o=function(t){return s.openHandler(t)},this._events.add(n,"click",o),r(this._events,n,[" ","Spacebar","Enter"],o),this._popupInited=!0):t.parent&&!e.popup&&this.show())}},{key:"openHandler",value:function(t){var e;this.show()&&(t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none",e=t&&"keydown"===t.type?this._domEdit:this.domElement,setTimeout((function(){return e.focus()}),100),this.onOpen&&this.onOpen(this.colour))}},{key:"closeHandler",value:function(t){var e,i=t&&t.type,r=!1;t?i===d||i===f?(e=(this.__containedEvent||0)+100,t.timeStamp>e&&(r=!0)):(n(t),r=!0):r=!0,r&&this.hide()&&(this.settings.parent.style.pointerEvents="",i!==d&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,e){this.closeHandler(),this.setOptions(t),e&&this.openHandler()}},{key:"setColor",value:function(t,e){this._setColor(t,{silent:e})}},{key:"_setColor",value:function(t,e){if("string"==typeof t&&(t=t.trim()),t){e=e||{};var i,n=void 0;try{n=new h(t)}catch(t){if(e.failSilently)return;throw t}this.settings.alpha||((i=n.hsla)[3]=1,n.hsla=i),this.colour=this.color=n,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(t,e){this.setColor(t,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var e,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(e=r,(n=document.createElement("div")).innerHTML=e,n.firstElementChild);return this.domElement=o,this._domH=i(".picker_hue",o),this._domSL=i(".picker_sl",o),this._domA=i(".picker_alpha",o),this._domEdit=i(".picker_editor input",o),this._domSample=i(".picker_sample",o),this._domOkay=i(".picker_done button",o),this._domCancel=i(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){function t(t,e,i){a.add(t,e,i)}function i(t){n._ifPopup((function(){return n.closeHandler(t)})),n.onDone&&n.onDone(n.colour)}var n=this,o=this,s=this.domElement,a=this._events;t(s,"click",(function(t){return t.preventDefault()})),e(a,this._domH,(function(t,e){return o._setHSLA(t)})),e(a,this._domSL,(function(t,e){return o._setHSLA(null,t,1-e)})),this.settings.alpha&&e(a,this._domA,(function(t,e){return o._setHSLA(null,null,null,1-e)}));var l=this._domEdit;t(l,"input",(function(t){o._setColor(this.value,{fromEditor:!0,failSilently:!0})})),t(l,"focus",(function(t){this.selectionStart===this.selectionEnd&&this.select()})),this._ifPopup((function(){function e(t){return n.closeHandler(t)}function i(t){n.__containedEvent=t.timeStamp}t(window,d,e),t(window,f,e),r(a,s,["Esc","Escape"],e),t(s,d,i),t(s,f,i),t(n._domCancel,"click",e)})),t(this._domOkay,"click",i),r(a,s,["Enter"],i)}},{key:"_setPosition",value:function(){var t=this.settings.parent,e=this.domElement;t!==e.parentNode&&t.appendChild(e),this._ifPopup((function(i){"static"===getComputedStyle(t).position&&(t.style.position="relative");var n=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(t){t===n?e.classList.add(t):e.classList.remove(t)})),e.classList.add(n)}))}},{key:"_setHSLA",value:function(t,e,i,n,r){r=r||{};var o=this.colour,s=o.hsla;[t,e,i,n].forEach((function(t,e){!t&&0!==t||(s[e]=t)})),o.hsla=s,this._updateUI(r),this.onChange&&!r.silent&&this.onChange(o)}},{key:"_updateUI",value:function(t){function e(t,e,i){e.style.left=100*i+"%"}function n(t,e,i){e.style.top=100*i+"%"}if(this.domElement){t=t||{};var r=this.colour,o=r.hsla,s="hsl("+360*o[0]+", 100%, 50%)",a=r.hslString,l=r.hslaString,h=this._domH,c=this._domSL,u=this._domA,d=i(".picker_selector",h),f=i(".picker_selector",c),p=i(".picker_selector",u);e(0,d,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=s,e(0,f,o[1]),n(0,f,1-o[2]),c.style.color=a,n(0,p,1-o[3]);var g=a,m=g.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[g,m]+")";if(this._domA.style.backgroundImage=v+", url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\")",!t.fromEditor){var b=this.settings.editorFormat,y=this.settings.alpha,w=void 0;switch(b){case"rgb":w=r.printRGB(y);break;case"hsl":w=r.printHSL(y);break;default:w=r.printHex(y)}this._domEdit.value=w}this._domSample.style.color=l}}},{key:"_ifPopup",value:function(t,e){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(t){var e=this.domElement;if(!e)return!1;var i=t?"":"none",n=e.style.display!==i;return n&&(e.style.display=i),n}}],[{key:"StyleElement",get:function(){return p}}]),t}()}()},function(t,e){window.ace.define("ace/theme/jsoneditor",["require","exports","module","ace/lib/dom"],(function(t,e,i){e.isDark=!1,e.cssClass="ace-jsoneditor",e.cssText='.ace-jsoneditor .ace_gutter {\nbackground: #ebebeb;\ncolor: #333\n}\n\n.ace-jsoneditor.ace_editor {\nfont-family: "dejavu sans mono", "droid sans mono", consolas, monaco, "lucida console", "courier new", courier, monospace, sans-serif;\nline-height: 1.3;\nbackground-color: #fff;\n}\n.ace-jsoneditor .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8\n}\n.ace-jsoneditor .ace_scroller {\nbackground-color: #FFFFFF\n}\n.ace-jsoneditor .ace_text-layer {\ncolor: gray\n}\n.ace-jsoneditor .ace_variable {\ncolor: #1a1a1a\n}\n.ace-jsoneditor .ace_cursor {\nborder-left: 2px solid #000000\n}\n.ace-jsoneditor .ace_overwrite-cursors .ace_cursor {\nborder-left: 0px;\nborder-bottom: 1px solid #000000\n}\n.ace-jsoneditor .ace_marker-layer .ace_selection {\nbackground: lightgray\n}\n.ace-jsoneditor.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px #FFFFFF;\nborder-radius: 2px\n}\n.ace-jsoneditor .ace_marker-layer .ace_step {\nbackground: rgb(255, 255, 0)\n}\n.ace-jsoneditor .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid #BFBFBF\n}\n.ace-jsoneditor .ace_marker-layer .ace_active-line {\nbackground: #FFFBD1\n}\n.ace-jsoneditor .ace_gutter-active-line {\nbackground-color : #dcdcdc\n}\n.ace-jsoneditor .ace_marker-layer .ace_selected-word {\nborder: 1px solid lightgray\n}\n.ace-jsoneditor .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-jsoneditor .ace_keyword,\n.ace-jsoneditor .ace_meta,\n.ace-jsoneditor .ace_support.ace_constant.ace_property-value {\ncolor: #AF956F\n}\n.ace-jsoneditor .ace_keyword.ace_operator {\ncolor: #484848\n}\n.ace-jsoneditor .ace_keyword.ace_other.ace_unit {\ncolor: #96DC5F\n}\n.ace-jsoneditor .ace_constant.ace_language {\ncolor: darkorange\n}\n.ace-jsoneditor .ace_constant.ace_numeric {\ncolor: red\n}\n.ace-jsoneditor .ace_constant.ace_character.ace_entity {\ncolor: #BF78CC\n}\n.ace-jsoneditor .ace_invalid {\ncolor: #FFFFFF;\nbackground-color: #FF002A;\n}\n.ace-jsoneditor .ace_fold {\nbackground-color: #AF956F;\nborder-color: #000000\n}\n.ace-jsoneditor .ace_storage,\n.ace-jsoneditor .ace_support.ace_class,\n.ace-jsoneditor .ace_support.ace_function,\n.ace-jsoneditor .ace_support.ace_other,\n.ace-jsoneditor .ace_support.ace_type {\ncolor: #C52727\n}\n.ace-jsoneditor .ace_string {\ncolor: green\n}\n.ace-jsoneditor .ace_comment {\ncolor: #BCC8BA\n}\n.ace-jsoneditor .ace_entity.ace_name.ace_tag,\n.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {\ncolor: #606060\n}\n.ace-jsoneditor .ace_markup.ace_underline {\ntext-decoration: underline\n}\n.ace-jsoneditor .ace_indent-guide {\nbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y\n}',t("../lib/dom").importCssString(e.cssText,e.cssClass)}))},function(t,e,i){e.tryRequireAjv=function(){try{return i(44)}catch(t){}}},function(t,e,i){"use strict";function n(t){if(!(this instanceof n))return new n(t);t=this._opts=y.copy(t)||{},function(t){var e=t._opts.logger;if(!1===e)t.logger={log:c,warn:c,error:c};else{if(void 0===e&&(e=console),!("object"==typeof e&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=m(t.format),this._cache=t.cache||new f,this._loadingSchemas={},this._compilations=[],this.RULES=v(),this._getId=function(t){switch(t.schemaId){case"auto":return l;case"id":return s;default:return a}}(t),t.loopRequired=t.loopRequired||1/0,"property"==t.errorDataPath&&(t._errorDataPathProperty=!0),void 0===t.serialize&&(t.serialize=g),this._metaOpts=function(t){for(var e=y.copy(t._opts),i=0;i<A.length;i++)delete e[A[i]];return e}(this),t.formats&&function(t){for(var e in t._opts.formats){var i=t._opts.formats[e];t.addFormat(e,i)}}(this),t.keywords&&function(t){for(var e in t._opts.keywords){var i=t._opts.keywords[e];t.addKeyword(e,i)}}(this),function(t){var e;if(t._opts.$data&&(e=i(77),t.addMetaSchema(e,e.$id,!0)),!1!==t._opts.meta){var n=i(32);t._opts.$data&&(n=b(n,M)),t.addMetaSchema(n,I,!0),t._refs["http://json-schema.org/schema"]=I}}(this),"object"==typeof t.meta&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var i in e)t.addSchema(e[i],i)}(this)}function r(t,e){return e=d.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function o(t,e,i){for(var n in e){var r=e[n];r.meta||i&&!i.test(n)||(t._cache.del(r.cacheKey),delete e[n])}}function s(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function a(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function l(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function h(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function c(){}var u=i(45),d=i(17),f=i(49),p=i(25),g=i(26),m=i(50),v=i(51),b=i(72),y=i(7);(t.exports=n).prototype.validate=function(t,e){var i;if("string"==typeof t){if(!(i=this.getSchema(t)))throw new Error('no schema with key or ref "'+t+'"')}else{var n=this._addSchema(t);i=n.validate||this._compile(n)}var r=i(e);return!0!==i.$async&&(this.errors=i.errors),r},n.prototype.compile=function(t,e){var i=this._addSchema(t,void 0,e);return i.validate||this._compile(i)},n.prototype.addSchema=function(t,e,i,n){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,i,n);return this}var o=this._getId(t);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return h(this,e=d.normalizeId(e||o)),this._schemas[e]=this._addSchema(t,i,n,!0),this},n.prototype.addMetaSchema=function(t,e,i){return this.addSchema(t,e,i,!0),this},n.prototype.validateSchema=function(t,e){var i=t.$schema;if(void 0!==i&&"string"!=typeof i)throw new Error("$schema must be a string");if(!(i=i||this._opts.defaultMeta||function(t){var e=t._opts.meta;return t._opts.defaultMeta="object"==typeof e?t._getId(e)||e:t.getSchema(I)?I:void 0,t._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);var n=this.validate(i,t);if(!n&&e){var r="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(r);this.logger.error(r)}return n},n.prototype.getSchema=function(t){var e=r(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return function(t,e){var i=d.schema.call(t,{schema:{}},e);if(i){var n=i.schema,r=i.root,o=i.baseId,s=u.call(t,n,r,void 0,o);return t._fragments[e]=new p({ref:e,fragment:!0,schema:n,root:r,baseId:o,validate:s}),s}}(this,t)}},n.prototype.removeSchema=function(t){if(t instanceof RegExp)return o(this,this._schemas,t),o(this,this._refs,t),this;switch(typeof t){case"undefined":return o(this,this._schemas),o(this,this._refs),this._cache.clear(),this;case"string":var e=r(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var i=this._opts.serialize,n=i?i(t):t;this._cache.del(n);var s=this._getId(t);s&&(s=d.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this},n.prototype.addFormat=function(t,e){return"string"==typeof e&&(e=new RegExp(e)),this._formats[t]=e,this},n.prototype.errorsText=function(t,e){if(!(t=t||this.errors))return"No errors";for(var i=void 0===(e=e||{}).separator?", ":e.separator,n=void 0===e.dataVar?"data":e.dataVar,r="",o=0;o<t.length;o++){var s=t[o];s&&(r+=n+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)},n.prototype._addSchema=function(t,e,i,n){if("object"!=typeof t&&"boolean"!=typeof t)throw new Error("schema should be object or boolean");var r=this._opts.serialize,o=r?r(t):t,s=this._cache.get(o);if(s)return s;n=n||!1!==this._opts.addUsedSchema;var a=d.normalizeId(this._getId(t));a&&n&&h(this,a);var l,c=!1!==this._opts.validateSchema&&!e;c&&!(l=a&&a==d.normalizeId(t.$schema))&&this.validateSchema(t,!0);var u=d.ids.call(this,t),f=new p({id:a,schema:t,localRefs:u,cacheKey:o,meta:i});return"#"!=a[0]&&n&&(this._refs[a]=f),this._cache.put(o,f),c&&l&&this.validateSchema(t,!0),f},n.prototype._compile=function(t,e){function i(){var e=t.validate,n=e.apply(this,arguments);return i.errors=e.errors,n}if(t.compiling)return(t.validate=i).schema=t.schema,i.errors=null,i.root=e||i,!0===t.schema.$async&&(i.$async=!0),i;var n,r;t.compiling=!0,t.meta&&(n=this._opts,this._opts=this._metaOpts);try{r=u.call(this,t.schema,e,t.localRefs)}catch(e){throw delete t.validate,e}finally{t.compiling=!1,t.meta&&(this._opts=n)}return t.validate=r,t.refs=r.refs,t.refVal=r.refVal,t.root=r.root,r},n.prototype.compileAsync=i(73);var w=i(74);n.prototype.addKeyword=w.add,n.prototype.getKeyword=w.get,n.prototype.removeKeyword=w.remove,n.prototype.validateKeyword=w.validate;var C=i(19);n.ValidationError=C.Validation,n.MissingRefError=C.MissingRef,n.$dataMetaSchema=b;var I="http://json-schema.org/draft-07/schema",A=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],M=["/properties"]},function(t,e,i){"use strict";function n(t,e,i,b){function y(){var t=D.validate,e=t.apply(this,arguments);return y.errors=t.errors,e}function w(t,i,r,f){var b=!i||i&&i.schema==t;if(i.schema!=e.schema)return n.call(S,t,i,r,f);var y=!0===t.$async,w=p({isTop:!0,schema:t,isRoot:b,baseId:f,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:d.MissingRef,RULES:P,validate:p,util:u,resolve:c,resolveRef:C,usePattern:M,useDefault:x,useCustomRule:_,opts:k,formats:Z,logger:S.logger,self:S});w=h(E,a)+h(R,o)+h(j,s)+h(L,l)+w;k.processCode&&(w=k.processCode(w,t));try{var I=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",w)(S,P,Z,e,E,j,L,m,g,v);E[0]=I}catch(t){throw S.logger.error("Error compiling schema, function code:",w),t}return I.schema=t,I.errors=null,I.refs=T,I.refVal=E,I.root=b?I:i,y&&(I.$async=!0),!0===k.sourceCode&&(I.source={code:w,patterns:R,defaults:j}),I}function C(t,r,o){r=c.url(t,r);var s,a,l=T[r];if(void 0!==l)return A(s=E[l],a="refVal["+l+"]");if(!o&&e.refs){var h=e.refs[r];if(void 0!==h)return A(s=e.refVal[h],a=I(r,s))}a=I(r);var u,d,f,p=c.call(S,w,e,r);if(void 0!==p||(u=i&&i[r])&&(p=c.inlineRef(u,k.inlineRefs)?u:n.call(S,u,e,i,t)),void 0!==p)return d=p,f=T[r],E[f]=d,A(p,a);delete T[r]}function I(t,e){var i=E.length;return E[i]=e,"refVal"+(T[t]=i)}function A(t,e){return"object"==typeof t||"boolean"==typeof t?{code:e,schema:t,inline:!0}:{code:e,$async:t&&!!t.$async}}function M(t){var e=O[t];return void 0===e&&(e=O[t]=R.length,R[e]=t),"pattern"+e}function x(t){switch(typeof t){case"boolean":case"number":return""+t;case"string":return u.toQuotedString(t);case"object":if(null===t)return"null";var e=f(t),i=N[e];return void 0===i&&(i=N[e]=j.length,j[i]=t),"default"+i}}function _(t,e,i,n){if(!1!==S._opts.validateSchema){var r=t.definition.dependencies;if(r&&!r.every((function(t){return Object.prototype.hasOwnProperty.call(i,t)})))throw new Error("parent schema must have all required keywords: "+r.join(","));var o=t.definition.validateSchema;if(o&&!o(e)){var s="keyword schema is invalid: "+S.errorsText(o.errors);if("log"!=S._opts.validateSchema)throw new Error(s);S.logger.error(s)}}var a,l=t.definition.compile,h=t.definition.inline,c=t.definition.macro;if(l)a=l.call(S,e,i,n);else if(c)a=c.call(S,e,i,n),!1!==k.validateSchema&&S.validateSchema(a,!0);else if(h)a=h.call(S,n,t.keyword,e,i);else if(!(a=t.definition.validate))return;if(void 0===a)throw new Error('custom keyword "'+t.keyword+'"failed to compile');var u=L.length;return{code:"customRule"+u,validate:L[u]=a}}var S=this,k=this._opts,E=[void 0],T={},R=[],O={},j=[],N={},L=[],B=function(t,e,i){var n=r.call(this,t,e,i);return 0<=n?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:t,root:e,baseId:i},{index:n,compiling:!1})}.call(this,t,e=e||{schema:t,refVal:E,refs:T},b),D=this._compilations[B.index];if(B.compiling)return D.callValidate=y;var Z=this._formats,P=this.RULES;try{var W=w(t,e,i,b);D.validate=W;var $=D.callValidate;return $&&($.schema=W.schema,$.errors=null,$.refs=W.refs,$.refVal=W.refVal,$.root=W.root,$.$async=W.$async,k.sourceCode&&($.source=W.source)),W}finally{(function(t,e,i){var n=r.call(this,t,e,i);0<=n&&this._compilations.splice(n,1)}).call(this,t,e,b)}}function r(t,e,i){for(var n=0;n<this._compilations.length;n++){var r=this._compilations[n];if(r.schema==t&&r.root==e&&r.baseId==i)return n}return-1}function o(t,e){return"var pattern"+t+" = new RegExp("+u.toQuotedString(e[t])+");"}function s(t){return"var default"+t+" = defaults["+t+"];"}function a(t,e){return void 0===e[t]?"":"var refVal"+t+" = refVal["+t+"];"}function l(t){return"var customRule"+t+" = customRules["+t+"];"}function h(t,e){if(!t.length)return"";for(var i="",n=0;n<t.length;n++)i+=e(n,t);return i}var c=i(17),u=i(7),d=i(19),f=i(26),p=i(27),g=u.ucs2length,m=i(18),v=d.Validation;t.exports=n},function(t,e,i){/** @license URI.js v4.4.0 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
!function(t){"use strict";function e(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length>1){e[0]=e[0].slice(0,-1);for(var n=e.length-1,r=1;r<n;++r)e[r]=e[r].slice(1,-1);return e[n]=e[n].slice(1),e.join("")}return e[0]}function i(t){return"(?:"+t+")"}function n(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).split(" ").pop().split("]").shift().toLowerCase()}function r(t){return t.toUpperCase()}function o(t){return void 0!==t&&null!==t?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[]}function s(t,e){var i=t;if(e)for(var n in e)i[n]=e[n];return i}function a(t){var n="[A-Za-z]",r="[0-9]",o=e(r,"[A-Fa-f]"),s=i(i("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+i("%[89A-Fa-f]"+o+"%"+o+o)+"|"+i("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=e("[\\:\\/\\?\\#\\[\\]\\@]",a),h=t?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",c=t?"[\\uE000-\\uF8FF]":"[]",u=e(n,r,"[\\-\\.\\_\\~]",h),d=i(n+e(n,r,"[\\+\\-\\.]")+"*"),f=i(i(s+"|"+e(u,a,"[\\:]"))+"*"),p=(i(i("25[0-5]")+"|"+i("2[0-4]"+r)+"|"+i("1"+r+r)+"|"+i("[1-9]"+r)+"|"+r),i(i("25[0-5]")+"|"+i("2[0-4]"+r)+"|"+i("1"+r+r)+"|"+i("0?[1-9]"+r)+"|0?0?"+r)),g=i(p+"\\."+p+"\\."+p+"\\."+p),m=i(o+"{1,4}"),v=i(i(m+"\\:"+m)+"|"+g),b=i(i(m+"\\:")+"{6}"+v),y=i("\\:\\:"+i(m+"\\:")+"{5}"+v),w=i(i(m)+"?\\:\\:"+i(m+"\\:")+"{4}"+v),C=i(i(i(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+i(m+"\\:")+"{3}"+v),I=i(i(i(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+i(m+"\\:")+"{2}"+v),A=i(i(i(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),M=i(i(i(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),x=i(i(i(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),_=i(i(i(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),S=i([b,y,w,C,I,A,M,x,_].join("|")),k=i(i(u+"|"+s)+"+"),E=(i(S+"\\%25"+k),i(S+i("\\%25|\\%(?!"+o+"{2})")+k)),T=i("[vV]"+o+"+\\."+e(u,a,"[\\:]")+"+"),R=i("\\["+i(E+"|"+S+"|"+T)+"\\]"),O=i(i(s+"|"+e(u,a))+"*"),j=i(R+"|"+g+"(?!"+O+")|"+O),N=i(r+"*"),L=i(i(f+"@")+"?"+j+i("\\:"+N)+"?"),B=i(s+"|"+e(u,a,"[\\:\\@]")),D=i(B+"*"),Z=i(B+"+"),P=i(i(s+"|"+e(u,a,"[\\@]"))+"+"),W=i(i("\\/"+D)+"*"),$=i("\\/"+i(Z+W)+"?"),H=i(P+W),z=i(Z+W),G="(?!"+B+")",F=(i(W+"|"+$+"|"+H+"|"+z+"|"+G),i(i(B+"|"+e("[\\/\\?]",c))+"*")),V=i(i(B+"|[\\/\\?]")+"*"),K=i(i("\\/\\/"+L+W)+"|"+$+"|"+z+"|"+G),Y=i(d+"\\:"+K+i("\\?"+F)+"?"+i("\\#"+V)+"?"),U=i(i("\\/\\/"+L+W)+"|"+$+"|"+H+"|"+G),X=i(U+i("\\?"+F)+"?"+i("\\#"+V)+"?");return i(Y+"|"+X),i(d+"\\:"+K+i("\\?"+F)+"?"),i(i("\\/\\/("+i("("+f+")@")+"?("+j+")"+i("\\:("+N+")")+"?)")+"?("+W+"|"+$+"|"+z+"|"+G+")"),i("\\?("+F+")"),i("\\#("+V+")"),i(i("\\/\\/("+i("("+f+")@")+"?("+j+")"+i("\\:("+N+")")+"?)")+"?("+W+"|"+$+"|"+H+"|"+G+")"),i("\\?("+F+")"),i("\\#("+V+")"),i(i("\\/\\/("+i("("+f+")@")+"?("+j+")"+i("\\:("+N+")")+"?)")+"?("+W+"|"+$+"|"+z+"|"+G+")"),i("\\?("+F+")"),i("\\#("+V+")"),i("("+f+")@"),i("\\:("+N+")"),{NOT_SCHEME:new RegExp(e("[^]",n,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(e("[^\\%]",u,a,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",u,l),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+g+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+i(i("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}function l(t){throw new RangeError(P[t])}function h(t,e){for(var i=[],n=t.length;n--;)i[n]=e(t[n]);return i}function c(t,e){var i=t.split("@"),n="";return i.length>1&&(n=i[0]+"@",t=i[1]),t=t.replace(Z,"."),n+h(t.split("."),e).join(".")}function u(t){for(var e=[],i=0,n=t.length;i<n;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var o=t.charCodeAt(i++);56320==(64512&o)?e.push(((1023&r)<<10)+(1023&o)+65536):(e.push(r),i--)}else e.push(r)}return e}function d(t){var e=t.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function f(t){for(var e="",i=0,n=t.length;i<n;){var r=parseInt(t.substr(i+1,2),16);if(r<128)e+=String.fromCharCode(r),i+=3;else if(r>=194&&r<224){if(n-i>=6){var o=parseInt(t.substr(i+4,2),16);e+=String.fromCharCode((31&r)<<6|63&o)}else e+=t.substr(i,6);i+=6}else if(r>=224){if(n-i>=9){var s=parseInt(t.substr(i+4,2),16),a=parseInt(t.substr(i+7,2),16);e+=String.fromCharCode((15&r)<<12|(63&s)<<6|63&a)}else e+=t.substr(i,9);i+=9}else e+=t.substr(i,3),i+=3}return e}function p(t,e){function i(t){var i=f(t);return i.match(e.UNRESERVED)?i:t}return t.scheme&&(t.scheme=String(t.scheme).replace(e.PCT_ENCODED,i).toLowerCase().replace(e.NOT_SCHEME,"")),void 0!==t.userinfo&&(t.userinfo=String(t.userinfo).replace(e.PCT_ENCODED,i).replace(e.NOT_USERINFO,d).replace(e.PCT_ENCODED,r)),void 0!==t.host&&(t.host=String(t.host).replace(e.PCT_ENCODED,i).toLowerCase().replace(e.NOT_HOST,d).replace(e.PCT_ENCODED,r)),void 0!==t.path&&(t.path=String(t.path).replace(e.PCT_ENCODED,i).replace(t.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,d).replace(e.PCT_ENCODED,r)),void 0!==t.query&&(t.query=String(t.query).replace(e.PCT_ENCODED,i).replace(e.NOT_QUERY,d).replace(e.PCT_ENCODED,r)),void 0!==t.fragment&&(t.fragment=String(t.fragment).replace(e.PCT_ENCODED,i).replace(e.NOT_FRAGMENT,d).replace(e.PCT_ENCODED,r)),t}function g(t){return t.replace(/^0*(.*)/,"$1")||"0"}function m(t,e){var i=t.match(e.IPV4ADDRESS)||[],n=O(i,2),r=n[1];return r?r.split(".").map(g).join("."):t}function v(t,e){var i=t.match(e.IPV6ADDRESS)||[],n=O(i,3),r=n[1],o=n[2];if(r){for(var s=r.toLowerCase().split("::").reverse(),a=O(s,2),l=a[0],h=a[1],c=h?h.split(":").map(g):[],u=l.split(":").map(g),d=e.IPV4ADDRESS.test(u[u.length-1]),f=d?7:8,p=u.length-f,v=Array(f),b=0;b<f;++b)v[b]=c[b]||u[p+b]||"";d&&(v[f-1]=m(v[f-1],e));var y=v.reduce((function(t,e,i){if(!e||"0"===e){var n=t[t.length-1];n&&n.index+n.length===i?n.length++:t.push({index:i,length:1})}return t}),[]),w=y.sort((function(t,e){return e.length-t.length}))[0],C=void 0;if(w&&w.length>1){var I=v.slice(0,w.index),A=v.slice(w.index+w.length);C=I.join(":")+"::"+A.join(":")}else C=v.join(":");return o&&(C+="%"+o),C}return t}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={},n=!1!==e.iri?R:T;"suffix"===e.reference&&(t=(e.scheme?e.scheme+":":"")+"//"+t);var r=t.match(U);if(r){X?(i.scheme=r[1],i.userinfo=r[3],i.host=r[4],i.port=parseInt(r[5],10),i.path=r[6]||"",i.query=r[7],i.fragment=r[8],isNaN(i.port)&&(i.port=r[5])):(i.scheme=r[1]||void 0,i.userinfo=-1!==t.indexOf("@")?r[3]:void 0,i.host=-1!==t.indexOf("//")?r[4]:void 0,i.port=parseInt(r[5],10),i.path=r[6]||"",i.query=-1!==t.indexOf("?")?r[7]:void 0,i.fragment=-1!==t.indexOf("#")?r[8]:void 0,isNaN(i.port)&&(i.port=t.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?r[4]:void 0)),i.host&&(i.host=v(m(i.host,n),n)),void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||i.path||void 0!==i.query?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",e.reference&&"suffix"!==e.reference&&e.reference!==i.reference&&(i.error=i.error||"URI is not a "+e.reference+" reference.");var o=Y[(e.scheme||i.scheme||"").toLowerCase()];if(e.unicodeSupport||o&&o.unicodeSupport)p(i,n);else{if(i.host&&(e.domainHost||o&&o.domainHost))try{i.host=K.toASCII(i.host.replace(n.PCT_ENCODED,f).toLowerCase())}catch(t){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+t}p(i,T)}o&&o.parse&&o.parse(i,e)}else i.error=i.error||"URI can not be parsed.";return i}function y(t,e){var i=!1!==e.iri?R:T,n=[];return void 0!==t.userinfo&&(n.push(t.userinfo),n.push("@")),void 0!==t.host&&n.push(v(m(String(t.host),i),i).replace(i.IPV6ADDRESS,(function(t,e,i){return"["+e+(i?"%25"+i:"")+"]"}))),"number"!=typeof t.port&&"string"!=typeof t.port||(n.push(":"),n.push(String(t.port))),n.length?n.join(""):void 0}function w(t){for(var e=[];t.length;)if(t.match(J))t=t.replace(J,"");else if(t.match(Q))t=t.replace(Q,"/");else if(t.match(q))t=t.replace(q,"/"),e.pop();else if("."===t||".."===t)t="";else{var i=t.match(tt);if(!i)throw new Error("Unexpected dot segment condition");var n=i[0];t=t.slice(n.length),e.push(n)}return e.join("")}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.iri?R:T,n=[],r=Y[(e.scheme||t.scheme||"").toLowerCase()];if(r&&r.serialize&&r.serialize(t,e),t.host)if(i.IPV6ADDRESS.test(t.host));else if(e.domainHost||r&&r.domainHost)try{t.host=e.iri?K.toUnicode(t.host):K.toASCII(t.host.replace(i.PCT_ENCODED,f).toLowerCase())}catch(i){t.error=t.error||"Host's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+i}p(t,i),"suffix"!==e.reference&&t.scheme&&(n.push(t.scheme),n.push(":"));var o=y(t,e);if(void 0!==o&&("suffix"!==e.reference&&n.push("//"),n.push(o),t.path&&"/"!==t.path.charAt(0)&&n.push("/")),void 0!==t.path){var s=t.path;e.absolutePath||r&&r.absolutePath||(s=w(s)),void 0===o&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==t.query&&(n.push("?"),n.push(t.query)),void 0!==t.fragment&&(n.push("#"),n.push(t.fragment)),n.join("")}function I(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r={};return n||(t=b(C(t,i),i),e=b(C(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(r.scheme=e.scheme,r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=w(e.path||""),r.query=e.query):(void 0!==e.userinfo||void 0!==e.host||void 0!==e.port?(r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=w(e.path||""),r.query=e.query):(e.path?("/"===e.path.charAt(0)?r.path=w(e.path):(void 0===t.userinfo&&void 0===t.host&&void 0===t.port||t.path?t.path?r.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:r.path=e.path:r.path="/"+e.path,r.path=w(r.path)),r.query=e.query):(r.path=t.path,void 0!==e.query?r.query=e.query:r.query=t.query),r.userinfo=t.userinfo,r.host=t.host,r.port=t.port),r.scheme=t.scheme),r.fragment=e.fragment,r}function A(t,e,i){var n=s({scheme:"null"},i);return C(I(b(t,n),b(e,n),n,!0),n)}function M(t,e){return"string"==typeof t?t=C(b(t,e),e):"object"===n(t)&&(t=b(C(t,e),e)),t}function x(t,e,i){return"string"==typeof t?t=C(b(t,i),i):"object"===n(t)&&(t=C(t,i)),"string"==typeof e?e=C(b(e,i),i):"object"===n(e)&&(e=C(e,i)),t===e}function _(t,e){return t&&t.toString().replace(e&&e.iri?R.ESCAPE:T.ESCAPE,d)}function S(t,e){return t&&t.toString().replace(e&&e.iri?R.PCT_ENCODED:T.PCT_ENCODED,f)}function k(t){return"boolean"==typeof t.secure?t.secure:"wss"===String(t.scheme).toLowerCase()}function E(t){var e=f(t);return e.match(ct)?e:t}var T=a(!1),R=a(!0),O=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},N=2147483647,L=36,B=/^xn--/,D=/[^\0-\x7E]/,Z=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},W=Math.floor,$=String.fromCharCode,H=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:L},z=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},G=function(t,e,i){var n=0;for(t=i?W(t/700):t>>1,t+=W(t/e);t>455;n+=L)t=W(t/35);return W(n+36*t/(t+38))},F=function(t){var e=[],i=t.length,n=0,r=128,o=72,s=t.lastIndexOf("-");s<0&&(s=0);for(var a=0;a<s;++a)t.charCodeAt(a)>=128&&l("not-basic"),e.push(t.charCodeAt(a));for(var h=s>0?s+1:0;h<i;){for(var c=n,u=1,d=L;;d+=L){h>=i&&l("invalid-input");var f=H(t.charCodeAt(h++));(f>=L||f>W((N-n)/u))&&l("overflow"),n+=f*u;var p=d<=o?1:d>=o+26?26:d-o;if(f<p)break;var g=L-p;u>W(N/g)&&l("overflow"),u*=g}var m=e.length+1;o=G(n-c,m,0==c),W(n/m)>N-r&&l("overflow"),r+=W(n/m),n%=m,e.splice(n++,0,r)}return String.fromCodePoint.apply(String,e)},V=function(t){var e=[];t=u(t);var i=t.length,n=128,r=0,o=72,s=!0,a=!1,h=void 0;try{for(var c,d=t[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value;f<128&&e.push($(f))}}catch(t){a=!0,h=t}finally{try{!s&&d.return&&d.return()}finally{if(a)throw h}}var p=e.length,g=p;for(p&&e.push("-");g<i;){var m=N,v=!0,b=!1,y=void 0;try{for(var w,C=t[Symbol.iterator]();!(v=(w=C.next()).done);v=!0){var I=w.value;I>=n&&I<m&&(m=I)}}catch(t){b=!0,y=t}finally{try{!v&&C.return&&C.return()}finally{if(b)throw y}}var A=g+1;m-n>W((N-r)/A)&&l("overflow"),r+=(m-n)*A,n=m;var M=!0,x=!1,_=void 0;try{for(var S,k=t[Symbol.iterator]();!(M=(S=k.next()).done);M=!0){var E=S.value;if(E<n&&++r>N&&l("overflow"),E==n){for(var T=r,R=L;;R+=L){var O=R<=o?1:R>=o+26?26:R-o;if(T<O)break;var j=T-O,B=L-O;e.push($(z(O+j%B,0))),T=W(j/B)}e.push($(z(T,0))),o=G(r,A,g==p),r=0,++g}}}catch(t){x=!0,_=t}finally{try{!M&&k.return&&k.return()}finally{if(x)throw _}}++r,++n}return e.join("")},K={version:"2.1.0",ucs2:{decode:u,encode:function(t){return String.fromCodePoint.apply(String,j(t))}},decode:F,encode:V,toASCII:function(t){return c(t,(function(t){return D.test(t)?"xn--"+V(t):t}))},toUnicode:function(t){return c(t,(function(t){return B.test(t)?F(t.slice(4).toLowerCase()):t}))}},Y={},U=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,X=void 0==="".match(/(){0}/)[1],J=/^\.\.?\//,Q=/^\/\.(\/|$)/,q=/^\/\.\.(\/|$)/,tt=/^\/?(?:.|\n)*?(?=\/|$)/,et={scheme:"http",domainHost:!0,parse:function(t,e){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t},serialize:function(t,e){var i="https"===String(t.scheme).toLowerCase();return t.port!==(i?443:80)&&""!==t.port||(t.port=void 0),t.path||(t.path="/"),t}},it={scheme:"https",domainHost:et.domainHost,parse:et.parse,serialize:et.serialize},nt={scheme:"ws",domainHost:!0,parse:function(t,e){var i=t;return i.secure=k(i),i.resourceName=(i.path||"/")+(i.query?"?"+i.query:""),i.path=void 0,i.query=void 0,i},serialize:function(t,e){if(t.port!==(k(t)?443:80)&&""!==t.port||(t.port=void 0),"boolean"==typeof t.secure&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){var i=t.resourceName.split("?"),n=O(i,2),r=n[0],o=n[1];t.path=r&&"/"!==r?r:void 0,t.query=o,t.resourceName=void 0}return t.fragment=void 0,t}},rt={scheme:"wss",domainHost:nt.domainHost,parse:nt.parse,serialize:nt.serialize},ot={},st="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",at="[0-9A-Fa-f]",lt=i(i("%[EFef]"+at+"%"+at+at+"%"+at+at)+"|"+i("%[89A-Fa-f]"+at+"%"+at+at)+"|"+i("%"+at+at)),ht=e("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ct=new RegExp(st,"g"),ut=new RegExp(lt,"g"),dt=new RegExp(e("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ht),"g"),ft=new RegExp(e("[^]",st,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),pt=ft,gt={scheme:"mailto",parse:function(t,e){var i=t,n=i.to=i.path?i.path.split(","):[];if(i.path=void 0,i.query){for(var r=!1,o={},s=i.query.split("&"),a=0,l=s.length;a<l;++a){var h=s[a].split("=");switch(h[0]){case"to":for(var c=h[1].split(","),u=0,d=c.length;u<d;++u)n.push(c[u]);break;case"subject":i.subject=S(h[1],e);break;case"body":i.body=S(h[1],e);break;default:r=!0,o[S(h[0],e)]=S(h[1],e)}}r&&(i.headers=o)}i.query=void 0;for(var f=0,p=n.length;f<p;++f){var g=n[f].split("@");if(g[0]=S(g[0]),e.unicodeSupport)g[1]=S(g[1],e).toLowerCase();else try{g[1]=K.toASCII(S(g[1],e).toLowerCase())}catch(t){i.error=i.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}n[f]=g.join("@")}return i},serialize:function(t,e){var i=t,n=o(t.to);if(n){for(var s=0,a=n.length;s<a;++s){var l=String(n[s]),h=l.lastIndexOf("@"),c=l.slice(0,h).replace(ut,E).replace(ut,r).replace(dt,d),u=l.slice(h+1);try{u=e.iri?K.toUnicode(u):K.toASCII(S(u,e).toLowerCase())}catch(t){i.error=i.error||"Email address's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+t}n[s]=c+"@"+u}i.path=n.join(",")}var f=t.headers=t.headers||{};t.subject&&(f.subject=t.subject),t.body&&(f.body=t.body);var p=[];for(var g in f)f[g]!==ot[g]&&p.push(g.replace(ut,E).replace(ut,r).replace(ft,d)+"="+f[g].replace(ut,E).replace(ut,r).replace(pt,d));return p.length&&(i.query=p.join("&")),i}},mt=/^([^\:]+)\:(.*)/,vt={scheme:"urn",parse:function(t,e){var i=t.path&&t.path.match(mt),n=t;if(i){var r=e.scheme||n.scheme||"urn",o=i[1].toLowerCase(),s=i[2],a=r+":"+(e.nid||o),l=Y[a];n.nid=o,n.nss=s,n.path=void 0,l&&(n=l.parse(n,e))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(t,e){var i=e.scheme||t.scheme||"urn",n=t.nid,r=i+":"+(e.nid||n),o=Y[r];o&&(t=o.serialize(t,e));var s=t,a=t.nss;return s.path=(n||e.nid)+":"+a,s}},bt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,yt={scheme:"urn:uuid",parse:function(t,e){var i=t;return i.uuid=i.nss,i.nss=void 0,e.tolerant||i.uuid&&i.uuid.match(bt)||(i.error=i.error||"UUID is not valid."),i},serialize:function(t,e){var i=t;return i.nss=(t.uuid||"").toLowerCase(),i}};Y[et.scheme]=et,Y[it.scheme]=it,Y[nt.scheme]=nt,Y[rt.scheme]=rt,Y[gt.scheme]=gt,Y[vt.scheme]=vt,Y[yt.scheme]=yt,t.SCHEMES=Y,t.pctEncChar=d,t.pctDecChars=f,t.parse=b,t.removeDotSegments=w,t.serialize=C,t.resolveComponents=I,t.resolve=A,t.normalize=M,t.equal=x,t.escapeComponent=_,t.unescapeComponent=S,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,i){"use strict";t.exports=function(t){for(var e,i=0,n=t.length,r=0;r<n;)i++,55296<=(e=t.charCodeAt(r++))&&e<=56319&&r<n&&56320==(64512&(e=t.charCodeAt(r)))&&r++;return i}},function(t,e,i){"use strict";var n=t.exports=function(t,e,i){"function"==typeof e&&(i=e,e={}),function t(e,i,r,o,s,a,l,h,c,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in i(o,s,a,l,h,c,u),o){var f=o[d];if(Array.isArray(f)){if(d in n.arrayKeywords)for(var p=0;p<f.length;p++)t(e,i,r,f[p],s+"/"+d+"/"+p,a,s,d,o,p)}else if(d in n.propsKeywords){if(f&&"object"==typeof f)for(var g in f)t(e,i,r,f[g],s+"/"+d+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,d,o,g)}else(d in n.keywords||e.allKeys&&!(d in n.skipKeywords))&&t(e,i,r,f,s+"/"+d,a,s,d,o)}r(o,s,a,l,h,c,u)}}(e,"function"==typeof(i=e.cb||i)?i:i.pre||function(){},i.post||function(){},t,"",t)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},function(t,e,i){"use strict";var n=t.exports=function(){this._cache={}};n.prototype.put=function(t,e){this._cache[t]=e},n.prototype.get=function(t){return this._cache[t]},n.prototype.del=function(t){delete this._cache[t]},n.prototype.clear=function(){this._cache={}}},function(t,e,i){"use strict";function n(t){return t="full"==t?"full":"fast",a.copy(n[t])}function r(t){var e=t.match(l);if(!e)return!1;var i,n=+e[1],r=+e[2],o=+e[3];return 1<=r&&r<=12&&1<=o&&o<=(2!=r||(i=n)%4!=0||i%100==0&&i%400!=0?h[r]:29)}function o(t,e){var i=t.match(c);if(!i)return!1;var n=i[1],r=i[2],o=i[3],s=i[5];return(n<=23&&r<=59&&o<=59||23==n&&59==r&&60==o)&&(!e||s)}function s(t){if(C.test(t))return!1;try{return new RegExp(t),!0}catch(t){return!1}}var a=i(7),l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,h=[0,31,28,31,30,31,30,31,31,30,31,30,31],c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,u=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,f=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,g=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,v=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,b=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;(t.exports=n).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":f,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:u,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:s,uuid:g,"json-pointer":m,"json-pointer-uri-fragment":v,"relative-json-pointer":b},n.full={date:r,time:o,"date-time":function(t){var e=t.split(y);return 2==e.length&&r(e[0])&&o(e[1],!0)},uri:function(t){return w.test(t)&&d.test(t)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":f,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:u,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:s,uuid:g,"json-pointer":m,"json-pointer-uri-fragment":v,"relative-json-pointer":b};var y=/t|\s/i,w=/\/|:/,C=/[^\\]\\Z/},function(t,e,i){"use strict";var n=i(52),r=i(7).toHash;t.exports=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],e=["type","$comment"];return t.all=r(e),t.types=r(["number","integer","string","array","object","boolean","null"]),t.forEach((function(i){i.rules=i.rules.map((function(i){var r,o;return"object"==typeof i&&(o=i[r=Object.keys(i)[0]],i=r,o.forEach((function(i){e.push(i),t.all[i]=!0}))),e.push(i),t.all[i]={keyword:i,code:n[i],implements:o}})),t.all.$comment={keyword:"$comment",code:n.$comment},i.type&&(t.types[i.type]=i)})),t.keywords=r(e.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),t.custom={},t}},function(t,e,i){"use strict";t.exports={$ref:i(53),allOf:i(54),anyOf:i(55),$comment:i(56),const:i(57),contains:i(58),dependencies:i(59),enum:i(60),format:i(61),if:i(62),items:i(63),maximum:i(28),minimum:i(28),maxItems:i(29),minItems:i(29),maxLength:i(30),minLength:i(30),maxProperties:i(31),minProperties:i(31),multipleOf:i(64),not:i(65),oneOf:i(66),pattern:i(67),properties:i(68),propertyNames:i(69),required:i(70),uniqueItems:i(71),validate:i(27)}},function(t,e,i){"use strict";t.exports=function(t,e){var i,n,r=" ",o=t.level,s=t.dataLevel,a=t.schema[e],l=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,c="data"+(s||""),u="valid"+o;if("#"==a||"#/"==a)n=t.isRoot?(i=t.async,"validate"):(i=!0===t.root.schema.$async,"root.refVal[0]");else{var d,f,p=t.resolveRef(t.baseId,a,t.isRoot);if(void 0===p){var g,m=t.MissingRefError.message(t.baseId,a);if("fail"==t.opts.missingRefs){t.logger.error(m),(g=g||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { ref: '"+t.util.escapeQuotes(a)+"' } ",!1!==t.opts.messages&&(r+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(a)+"' "),t.opts.verbose&&(r+=" , schema: "+t.util.toQuotedString(a)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var v=r;r=g.pop();!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(r+=" if (false) { ")}else{if("ignore"!=t.opts.missingRefs)throw new t.MissingRefError(t.baseId,a,m);t.logger.warn(m),h&&(r+=" if (true) { ")}}else p.inline?((d=t.util.copy(t)).level++,f="valid"+d.level,d.schema=p.schema,d.schemaPath="",d.errSchemaPath=a,r+=" "+t.validate(d).replace(/validate\.schema/g,p.code)+" ",h&&(r+=" if ("+f+") { ")):(i=!0===p.$async||t.async&&!1!==p.$async,n=p.code)}if(n){(g=g||[]).push(r),r="",t.opts.passContext?r+=" "+n+".call(this, ":r+=" "+n+"( ",r+=" "+c+", (dataPath || '')",'""'!=t.errorPath&&(r+=" + "+t.errorPath);var b=r+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?t.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(r=g.pop(),i){if(!t.async)throw new Error("async schema referenced by sync schema");h&&(r+=" var "+u+"; "),r+=" try { await "+b+"; ",h&&(r+=" "+u+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",h&&(r+=" "+u+" = false; "),r+=" } ",h&&(r+=" if ("+u+") { ")}else r+=" if (!"+b+") { if (vErrors === null) vErrors = "+n+".errors; else vErrors = vErrors.concat("+n+".errors); errors = vErrors.length; } ",h&&(r+=" else { ")}return r}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.schema[e],r=t.schemaPath+t.util.getProperty(e),o=t.errSchemaPath+"/"+e,s=!t.opts.allErrors,a=t.util.copy(t),l="";a.level++;var h="valid"+a.level,c=a.baseId,u=!0,d=n;if(d)for(var f,p=-1,g=d.length-1;p<g;)f=d[p+=1],(t.opts.strictKeywords?"object"==typeof f&&0<Object.keys(f).length||!1===f:t.util.schemaHasRules(f,t.RULES.all))&&(u=!1,a.schema=f,a.schemaPath=r+"["+p+"]",a.errSchemaPath=o+"/"+p,i+=" "+t.validate(a)+" ",a.baseId=c,s&&(i+=" if ("+h+") { ",l+="}"));return s&&(i+=u?" if (true) { ":" "+l.slice(0,-1)+" "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u="errs__"+n,d=t.util.copy(t),f="";d.level++;var p="valid"+d.level;if(o.every((function(e){return t.opts.strictKeywords?"object"==typeof e&&0<Object.keys(e).length||!1===e:t.util.schemaHasRules(e,t.RULES.all)}))){var g=d.baseId;i+=" var "+u+" = errors; var "+c+" = false; ";var m=t.compositeRule;t.compositeRule=d.compositeRule=!0;var v=o;if(v)for(var b,y=-1,w=v.length-1;y<w;)b=v[y+=1],d.schema=b,d.schemaPath=s+"["+y+"]",d.errSchemaPath=a+"/"+y,i+=" "+t.validate(d)+" ",d.baseId=g,i+=" "+c+" = "+c+" || "+p+"; if (!"+c+") { ",f+="}";t.compositeRule=d.compositeRule=m,i+=" "+f+" if (!"+c+") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",t.opts.allErrors&&(i+=" } ")}else l&&(i+=" if (true) { ");return i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.schema[e],r=t.errSchemaPath+"/"+e,o=(t.opts.allErrors,t.util.toQuotedString(n));return!0===t.opts.$comment?i+=" console.log("+o+");":"function"==typeof t.opts.$comment&&(i+=" self._opts.$comment("+o+", "+t.util.toQuotedString(r)+", validate.root.schema);"),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u=t.opts.$data&&o&&o.$data;u&&(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; "),u||(i+=" var schema"+n+" = validate.schema"+s+";"),i+="var "+c+" = equal("+h+", schema"+n+"); if (!"+c+") { ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { allowedValue: schema"+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be equal to constant' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var f=i;i=d.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u="errs__"+n,d=t.util.copy(t);d.level++;var f,p,g,m="valid"+d.level,v="i"+n,b=d.dataLevel=t.dataLevel+1,y="data"+b,w=t.baseId,C=t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length||!1===o:t.util.schemaHasRules(o,t.RULES.all);i+="var "+u+" = errors;var "+c+";",C?(f=t.compositeRule,t.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=s,d.errSchemaPath=a,i+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+h+".length; "+v+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,v,t.opts.jsonPointers,!0),p=h+"["+v+"]",d.dataPathArr[b]=v,g=t.validate(d),d.baseId=w,t.util.varOccurences(g,y)<2?i+=" "+t.util.varReplace(g,y,p)+" ":i+=" var "+y+" = "+p+"; "+g+" ",i+=" if ("+m+") break; } ",t.compositeRule=d.compositeRule=f,i+=" if (!"+m+") {"):i+=" if ("+h+".length == 0) {";var I=I||[];I.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: 'should contain a valid item' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var A=i;i=I.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",C&&(i+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),t.opts.allErrors&&(i+=" } "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="errs__"+n,u=t.util.copy(t),d="";u.level++;var f,p="valid"+u.level,g={},m={},v=t.opts.ownProperties;for(O in o)"__proto__"!=O&&(N=o[O],(f=Array.isArray(N)?m:g)[O]=N);i+="var "+c+" = errors;";var b=t.errorPath;for(O in i+="var missing"+n+";",m)if((f=m[O]).length){if(i+=" if ( "+h+t.util.getProperty(O)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(O)+"') "),l){i+=" && ( ";var y=f;if(y)for(var w=-1,C=y.length-1;w<C;)S=y[w+=1],w&&(i+=" || "),i+=" ( ( "+(R=h+(T=t.util.getProperty(S)))+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(S)+"') "),i+=") && (missing"+n+" = "+t.util.toQuotedString(t.opts.jsonPointers?S:T)+") ) ";i+=")) { ";var I="missing"+n,A="' + "+I+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(b,I,!0):b+" + "+I);var M=M||[];M.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { property: '"+t.util.escapeQuotes(O)+"', missingProperty: '"+A+"', depsCount: "+f.length+", deps: '"+t.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==t.opts.messages&&(i+=" , message: 'should have ",1==f.length?i+="property "+t.util.escapeQuotes(f[0]):i+="properties "+t.util.escapeQuotes(f.join(", ")),i+=" when property "+t.util.escapeQuotes(O)+" is present' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var x=i;i=M.pop();!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+x+"]); ":i+=" validate.errors = ["+x+"]; return false; ":i+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var _=f;if(_)for(var S,k=-1,E=_.length-1;k<E;){S=_[k+=1];var T=t.util.getProperty(S),R=(A=t.util.escapeQuotes(S),h+T);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(b,S,t.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(S)+"') "),i+=") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { property: '"+t.util.escapeQuotes(O)+"', missingProperty: '"+A+"', depsCount: "+f.length+", deps: '"+t.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==t.opts.messages&&(i+=" , message: 'should have ",1==f.length?i+="property "+t.util.escapeQuotes(f[0]):i+="properties "+t.util.escapeQuotes(f.join(", ")),i+=" when property "+t.util.escapeQuotes(O)+" is present' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",l&&(d+="}",i+=" else { ")}t.errorPath=b;var O,j=u.baseId;for(O in g){var N=g[O];(t.opts.strictKeywords?"object"==typeof N&&0<Object.keys(N).length||!1===N:t.util.schemaHasRules(N,t.RULES.all))&&(i+=" "+p+" = true; if ( "+h+t.util.getProperty(O)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(O)+"') "),i+=") { ",u.schema=N,u.schemaPath=s+t.util.getProperty(O),u.errSchemaPath=a+"/"+t.util.escapeFragment(O),i+=" "+t.validate(u)+" ",u.baseId=j,i+=" } ",l&&(i+=" if ("+p+") { ",d+="}"))}return l&&(i+=" "+d+" if ("+c+" == errors) {"),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u=t.opts.$data&&o&&o.$data,d=(u&&(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; "),"i"+n),f="schema"+n;u||(i+=" var "+f+" = validate.schema"+s+";"),i+="var "+c+";",u&&(i+=" if (schema"+n+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+n+")) "+c+" = false; else {"),i+=c+" = false;for (var "+d+"=0; "+d+"<"+f+".length; "+d+"++) if (equal("+h+", "+f+"["+d+"])) { "+c+" = true; break; }",u&&(i+=" } "),i+=" if (!"+c+") { ";var p=p||[];p.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { allowedValues: schema"+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;i=p.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e,i){var n=" ",r=t.level,o=t.dataLevel,s=t.schema[e],a=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,c="data"+(o||"");if(!1===t.opts.format)return h&&(n+=" if (true) { "),n;var u,d=t.opts.$data&&s&&s.$data,f=d?(n+=" var schema"+r+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ","schema"+r):s,p=t.opts.unknownFormats,g=Array.isArray(p);if(d)n+=" var "+(u="format"+r)+" = formats["+f+"]; var "+(m="isObject"+r)+" = typeof "+u+" == 'object' && !("+u+" instanceof RegExp) && "+u+".validate; var "+(b="formatType"+r)+" = "+m+" && "+u+".type || 'string'; if ("+m+") { ",t.async&&(n+=" var async"+r+" = "+u+".async; "),n+=" "+u+" = "+u+".validate; } if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+u+" ",g&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+u+" && "+b+" == '"+i+"' && !(typeof "+u+" == 'function' ? ",t.async?n+=" (async"+r+" ? await "+u+"("+c+") : "+u+"("+c+")) ":n+=" "+u+"("+c+") ",n+=" : "+u+".test("+c+"))))) {";else{if(!(u=t.formats[s])){if("ignore"==p)return t.logger.warn('unknown format "'+s+'" ignored in schema at path "'+t.errSchemaPath+'"'),h&&(n+=" if (true) { "),n;if(g&&0<=p.indexOf(s))return h&&(n+=" if (true) { "),n;throw new Error('unknown format "'+s+'" is used in schema at path "'+t.errSchemaPath+'"')}var m,v,b=(m="object"==typeof u&&!(u instanceof RegExp)&&u.validate)&&u.type||"string";if(m&&(v=!0===u.async,u=u.validate),b!=i)return h&&(n+=" if (true) { "),n;if(v){if(!t.async)throw new Error("async format in sync schema");n+=" if (!(await "+(y="formats"+t.util.getProperty(s)+".validate")+"("+c+"))) { "}else{n+=" if (! ";var y="formats"+t.util.getProperty(s);m&&(y+=".validate"),n+="function"==typeof u?" "+y+"("+c+") ":" "+y+".test("+c+") ",n+=") { "}}var w=w||[];w.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { format: ",n+=d?""+f:""+t.util.toQuotedString(s),n+=" } ",!1!==t.opts.messages&&(n+=" , message: 'should match format \"",n+=d?"' + "+f+" + '":""+t.util.escapeQuotes(s),n+="\"' "),t.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+a:""+t.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var C=n;n=w.pop();return!t.compositeRule&&h?t.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",h&&(n+=" else { "),n}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u="errs__"+n,d=t.util.copy(t);d.level++;var f,p,g="valid"+d.level,m=t.schema.then,v=t.schema.else,b=void 0!==m&&(t.opts.strictKeywords?"object"==typeof m&&0<Object.keys(m).length||!1===m:t.util.schemaHasRules(m,t.RULES.all)),y=void 0!==v&&(t.opts.strictKeywords?"object"==typeof v&&0<Object.keys(v).length||!1===v:t.util.schemaHasRules(v,t.RULES.all)),w=d.baseId;return b||y?(d.createErrors=!1,d.schema=o,d.schemaPath=s,d.errSchemaPath=a,i+=" var "+u+" = errors; var "+c+" = true; ",p=t.compositeRule,t.compositeRule=d.compositeRule=!0,i+=" "+t.validate(d)+" ",d.baseId=w,d.createErrors=!0,i+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",t.compositeRule=d.compositeRule=p,b?(i+=" if ("+g+") { ",d.schema=t.schema.then,d.schemaPath=t.schemaPath+".then",d.errSchemaPath=t.errSchemaPath+"/then",i+=" "+t.validate(d)+" ",d.baseId=w,i+=" "+c+" = "+g+"; ",b&&y?i+=" var "+(f="ifClause"+n)+" = 'then'; ":f="'then'",i+=" } ",y&&(i+=" else { ")):i+=" if (!"+g+") { ",y&&(d.schema=t.schema.else,d.schemaPath=t.schemaPath+".else",d.errSchemaPath=t.errSchemaPath+"/else",i+=" "+t.validate(d)+" ",d.baseId=w,i+=" "+c+" = "+g+"; ",b&&y?i+=" var "+(f="ifClause"+n)+" = 'else'; ":f="'else'",i+=" } "),i+=" if (!"+c+") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { failingKeyword: "+f+" } ",!1!==t.opts.messages&&(i+=" , message: 'should match \"' + "+f+" + '\" schema' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",l&&(i+=" else { ")):l&&(i+=" if (true) { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u="errs__"+n,d=t.util.copy(t),f="";d.level++;var p="valid"+d.level,g="i"+n,m=d.dataLevel=t.dataLevel+1,v="data"+m,b=t.baseId;if(i+="var "+u+" = errors;var "+c+";",Array.isArray(o)){var y,w,C,I=t.schema.additionalItems;!1===I&&(i+=" "+c+" = "+h+".length <= "+o.length+"; ",y=a,a=t.errSchemaPath+"/additionalItems",(w=w||[]).push(i+=" if (!"+c+") { "),i="",!1!==t.createErrors?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { limit: "+o.length+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),t.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",C=i,i=w.pop(),!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",a=y,l&&(f+="}",i+=" else { "));var A=o;if(A)for(var M=-1,x=A.length-1;M<x;){var _,S,k=A[M+=1];(t.opts.strictKeywords?"object"==typeof k&&0<Object.keys(k).length||!1===k:t.util.schemaHasRules(k,t.RULES.all))&&(i+=" "+p+" = true; if ("+h+".length > "+M+") { ",_=h+"["+M+"]",d.schema=k,d.schemaPath=s+"["+M+"]",d.errSchemaPath=a+"/"+M,d.errorPath=t.util.getPathExpr(t.errorPath,M,t.opts.jsonPointers,!0),d.dataPathArr[m]=M,S=t.validate(d),d.baseId=b,t.util.varOccurences(S,v)<2?i+=" "+t.util.varReplace(S,v,_)+" ":i+=" var "+v+" = "+_+"; "+S+" ",i+=" } ",l&&(i+=" if ("+p+") { ",f+="}"))}"object"==typeof I&&(t.opts.strictKeywords?"object"==typeof I&&0<Object.keys(I).length||!1===I:t.util.schemaHasRules(I,t.RULES.all))&&(d.schema=I,d.schemaPath=t.schemaPath+".additionalItems",d.errSchemaPath=t.errSchemaPath+"/additionalItems",i+=" "+p+" = true; if ("+h+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+h+".length; "+g+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0),_=h+"["+g+"]",d.dataPathArr[m]=g,S=t.validate(d),d.baseId=b,t.util.varOccurences(S,v)<2?i+=" "+t.util.varReplace(S,v,_)+" ":i+=" var "+v+" = "+_+"; "+S+" ",l&&(i+=" if (!"+p+") break; "),i+=" } } ",l&&(i+=" if ("+p+") { ",f+="}"))}else(t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length||!1===o:t.util.schemaHasRules(o,t.RULES.all))&&(d.schema=o,d.schemaPath=s,d.errSchemaPath=a,i+=" for (var "+g+" = 0; "+g+" < "+h+".length; "+g+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0),_=h+"["+g+"]",d.dataPathArr[m]=g,S=t.validate(d),d.baseId=b,t.util.varOccurences(S,v)<2?i+=" "+t.util.varReplace(S,v,_)+" ":i+=" var "+v+" = "+_+"; "+S+" ",l&&(i+=" if (!"+p+") break; "),i+=" }");return l&&(i+=" "+f+" if ("+u+" == errors) {"),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c=t.opts.$data&&o&&o.$data,u=c?(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ","schema"+n):o;if(!c&&"number"!=typeof o)throw new Error(e+" must be number");i+="var division"+n+";if (",c&&(i+=" "+u+" !== undefined && ( typeof "+u+" != 'number' || "),i+=" (division"+n+" = "+h+" / "+u+", ",t.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+t.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",c&&(i+=" ) "),i+=" ) { ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { multipleOf: "+u+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be multiple of ",i+=c?"' + "+u:u+"'"),t.opts.verbose&&(i+=" , schema: ",i+=c?"validate.schema"+s:""+o,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var f=i;i=d.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="errs__"+n,u=t.util.copy(t);u.level++;var d,f,p,g,m="valid"+u.level;return(t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length||!1===o:t.util.schemaHasRules(o,t.RULES.all))?(u.schema=o,u.schemaPath=s,u.errSchemaPath=a,i+=" var "+c+" = errors; ",d=t.compositeRule,t.compositeRule=u.compositeRule=!0,u.createErrors=!1,u.opts.allErrors&&(f=u.opts.allErrors,u.opts.allErrors=!1),i+=" "+t.validate(u)+" ",u.createErrors=!0,f&&(u.opts.allErrors=f),t.compositeRule=u.compositeRule=d,(p=p||[]).push(i+=" if ("+m+") { "),i="",!1!==t.createErrors?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: 'should NOT be valid' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",g=i,i=p.pop(),!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",t.opts.allErrors&&(i+=" } ")):(i+=" var err = ",!1!==t.createErrors?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: 'should NOT be valid' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u="errs__"+n,d=t.util.copy(t),f="";d.level++;var p="valid"+d.level,g=d.baseId,m="prevValid"+n,v="passingSchemas"+n;i+="var "+u+" = errors , "+m+" = false , "+c+" = false , "+v+" = null; ";var b=t.compositeRule;t.compositeRule=d.compositeRule=!0;var y=o;if(y)for(var w,C=-1,I=y.length-1;C<I;)w=y[C+=1],(t.opts.strictKeywords?"object"==typeof w&&0<Object.keys(w).length||!1===w:t.util.schemaHasRules(w,t.RULES.all))?(d.schema=w,d.schemaPath=s+"["+C+"]",d.errSchemaPath=a+"/"+C,i+=" "+t.validate(d)+" ",d.baseId=g):i+=" var "+p+" = true; ",C&&(i+=" if ("+p+" && "+m+") { "+c+" = false; "+v+" = ["+v+", "+C+"]; } else { ",f+="}"),i+=" if ("+p+") { "+c+" = "+m+" = true; "+v+" = "+C+"; }";return t.compositeRule=d.compositeRule=b,i+=f+"if (!"+c+") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { passingSchemas: "+v+" } ",!1!==t.opts.messages&&(i+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",t.opts.allErrors&&(i+=" } "),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c=t.opts.$data&&o&&o.$data,u=c?(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ","schema"+n):o;i+="if ( ",c&&(i+=" ("+u+" !== undefined && typeof "+u+" != 'string') || "),i+=" !"+(c?"(new RegExp("+u+"))":t.usePattern(o))+".test("+h+") ) { ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { pattern: ",i+=c?""+u:""+t.util.toQuotedString(o),i+=" } ",!1!==t.opts.messages&&(i+=" , message: 'should match pattern \"",i+=c?"' + "+u+" + '":""+t.util.escapeQuotes(o),i+="\"' "),t.opts.verbose&&(i+=" , schema: ",i+=c?"validate.schema"+s:""+t.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var f=i;i=d.pop();return!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},function(t,e,i){"use strict";t.exports=function(t,e){function i(t){return"__proto__"!==t}var n=" ",r=t.level,o=t.dataLevel,s=t.schema[e],a=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,c="data"+(o||""),u="errs__"+r,d=t.util.copy(t),f="";d.level++;var p,g,m,v="valid"+d.level,b="key"+r,y="idx"+r,w=d.dataLevel=t.dataLevel+1,C="data"+w,I="dataProperties"+r,A=Object.keys(s||{}).filter(i),M=t.schema.patternProperties||{},x=Object.keys(M).filter(i),_=t.schema.additionalProperties,S=A.length||x.length,k=!1===_,E="object"==typeof _&&Object.keys(_).length,T=t.opts.removeAdditional,R=k||E||T,O=t.opts.ownProperties,j=t.baseId,N=t.schema.required;if(N&&(!t.opts.$data||!N.$data)&&N.length<t.opts.loopRequired&&(p=t.util.toHash(N)),n+="var "+u+" = errors;var "+v+" = true;",O&&(n+=" var "+I+" = undefined;"),R){if(n+=O?" "+I+" = "+I+" || Object.keys("+c+"); for (var "+y+"=0; "+y+"<"+I+".length; "+y+"++) { var "+b+" = "+I+"["+y+"]; ":" for (var "+b+" in "+c+") { ",S){if(n+=" var isAdditional"+r+" = !(false ",A.length)if(8<A.length)n+=" || validate.schema"+a+".hasOwnProperty("+b+") ";else{var L=A;if(L)for(var B=-1,D=L.length-1;B<D;)z=L[B+=1],n+=" || "+b+" == "+t.util.toQuotedString(z)+" "}if(x.length){var Z=x;if(Z)for(var P=-1,W=Z.length-1;P<W;)it=Z[P+=1],n+=" || "+t.usePattern(it)+".test("+b+") "}n+=" ); if (isAdditional"+r+") { "}"all"==T?n+=" delete "+c+"["+b+"]; ":(U=t.errorPath,g="' + "+b+" + '",t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,b,t.opts.jsonPointers)),k?T?n+=" delete "+c+"["+b+"]; ":(n+=" "+v+" = false; ",X=l,l=t.errSchemaPath+"/additionalProperties",(Q=Q||[]).push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { additionalProperty: '"+g+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",q=n,n=Q.pop(),!t.compositeRule&&h?t.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=X,h&&(n+=" break; ")):E&&("failing"==T?(n+=" var "+u+" = errors; ",m=t.compositeRule,t.compositeRule=d.compositeRule=!0,d.schema=_,d.schemaPath=t.schemaPath+".additionalProperties",d.errSchemaPath=t.errSchemaPath+"/additionalProperties",d.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,b,t.opts.jsonPointers),ot=c+"["+b+"]",d.dataPathArr[w]=b,st=t.validate(d),d.baseId=j,t.util.varOccurences(st,C)<2?n+=" "+t.util.varReplace(st,C,ot)+" ":n+=" var "+C+" = "+ot+"; "+st+" ",n+=" if (!"+v+") { errors = "+u+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+b+"]; } ",t.compositeRule=d.compositeRule=m):(d.schema=_,d.schemaPath=t.schemaPath+".additionalProperties",d.errSchemaPath=t.errSchemaPath+"/additionalProperties",d.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,b,t.opts.jsonPointers),ot=c+"["+b+"]",d.dataPathArr[w]=b,st=t.validate(d),d.baseId=j,t.util.varOccurences(st,C)<2?n+=" "+t.util.varReplace(st,C,ot)+" ":n+=" var "+C+" = "+ot+"; "+st+" ",h&&(n+=" if (!"+v+") break; "))),t.errorPath=U),S&&(n+=" } "),n+=" } ",h&&(n+=" if ("+v+") { ",f+="}")}var $=t.opts.useDefaults&&!t.compositeRule;if(A.length){var H=A;if(H)for(var z,G=-1,F=H.length-1;G<F;){var V,K,Y,U,X,J,Q,q,tt=s[z=H[G+=1]];(t.opts.strictKeywords?"object"==typeof tt&&0<Object.keys(tt).length||!1===tt:t.util.schemaHasRules(tt,t.RULES.all))&&(ot=c+(V=t.util.getProperty(z)),K=$&&void 0!==tt.default,d.schema=tt,d.schemaPath=a+V,d.errSchemaPath=l+"/"+t.util.escapeFragment(z),d.errorPath=t.util.getPath(t.errorPath,z,t.opts.jsonPointers),d.dataPathArr[w]=t.util.toQuotedString(z),st=t.validate(d),d.baseId=j,t.util.varOccurences(st,C)<2?(st=t.util.varReplace(st,C,ot),Y=ot):n+=" var "+(Y=C)+" = "+ot+"; ",K?n+=" "+st+" ":(p&&p[z]?(n+=" if ( "+Y+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(z)+"') "),n+=") { "+v+" = false; ",U=t.errorPath,X=l,J=t.util.escapeQuotes(z),t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(U,z,t.opts.jsonPointers)),l=t.errSchemaPath+"/required",(Q=Q||[]).push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+J+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+J+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",q=n,n=Q.pop(),!t.compositeRule&&h?t.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=X,t.errorPath=U,n+=" } else { "):h?(n+=" if ( "+Y+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(z)+"') "),n+=") { "+v+" = true; } else { "):(n+=" if ("+Y+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(z)+"') "),n+=" ) { "),n+=" "+st+" } ")),h&&(n+=" if ("+v+") { ",f+="}")}}if(x.length){var et=x;if(et)for(var it,nt=-1,rt=et.length-1;nt<rt;){var ot,st;tt=M[it=et[nt+=1]];(t.opts.strictKeywords?"object"==typeof tt&&0<Object.keys(tt).length||!1===tt:t.util.schemaHasRules(tt,t.RULES.all))&&(d.schema=tt,d.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(it),d.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(it),n+=O?" "+I+" = "+I+" || Object.keys("+c+"); for (var "+y+"=0; "+y+"<"+I+".length; "+y+"++) { var "+b+" = "+I+"["+y+"]; ":" for (var "+b+" in "+c+") { ",n+=" if ("+t.usePattern(it)+".test("+b+")) { ",d.errorPath=t.util.getPathExpr(t.errorPath,b,t.opts.jsonPointers),ot=c+"["+b+"]",d.dataPathArr[w]=b,st=t.validate(d),d.baseId=j,t.util.varOccurences(st,C)<2?n+=" "+t.util.varReplace(st,C,ot)+" ":n+=" var "+C+" = "+ot+"; "+st+" ",h&&(n+=" if (!"+v+") break; "),n+=" } ",h&&(n+=" else "+v+" = true; "),n+=" } ",h&&(n+=" if ("+v+") { ",f+="}"))}}return h&&(n+=" "+f+" if ("+u+" == errors) {"),n}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="errs__"+n,u=t.util.copy(t);u.level++;var d,f,p,g,m,v,b,y,w,C,I,A="valid"+u.level;return i+="var "+c+" = errors;",(t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length||!1===o:t.util.schemaHasRules(o,t.RULES.all))&&(u.schema=o,u.schemaPath=s,u.errSchemaPath=a,f="idx"+n,p="i"+n,g="' + "+(d="key"+n)+" + '",m="data"+(u.dataLevel=t.dataLevel+1),v="dataProperties"+n,b=t.opts.ownProperties,y=t.baseId,b&&(i+=" var "+v+" = undefined; "),i+=b?" "+v+" = "+v+" || Object.keys("+h+"); for (var "+f+"=0; "+f+"<"+v+".length; "+f+"++) { var "+d+" = "+v+"["+f+"]; ":" for (var "+d+" in "+h+") { ",i+=" var startErrs"+n+" = errors; ",w=d,C=t.compositeRule,t.compositeRule=u.compositeRule=!0,I=t.validate(u),u.baseId=y,t.util.varOccurences(I,m)<2?i+=" "+t.util.varReplace(I,m,w)+" ":i+=" var "+m+" = "+w+"; "+I+" ",t.compositeRule=u.compositeRule=C,i+=" if (!"+A+") { for (var "+p+"=startErrs"+n+"; "+p+"<errors; "+p+"++) { vErrors["+p+"].propertyName = "+d+"; } var err = ",!1!==t.createErrors?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { propertyName: '"+g+"' } ",!1!==t.opts.messages&&(i+=" , message: 'property name \\'"+g+"\\' is invalid' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),l&&(i+=" break; "),i+=" } }"),l&&(i+=" if ("+c+" == errors) {"),i}},function(t,e,i){"use strict";t.exports=function(t,e){var i=" ",n=t.level,r=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),a=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,h="data"+(r||""),c="valid"+n,u=t.opts.$data&&o&&o.$data,d=(u&&(i+=" var schema"+n+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; "),"schema"+n);if(!u)if(o.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var f=[],p=o;if(p)for(var g,m=-1,v=p.length-1;m<v;){g=p[m+=1];var b=t.schema.properties[g];b&&(t.opts.strictKeywords?"object"==typeof b&&0<Object.keys(b).length||!1===b:t.util.schemaHasRules(b,t.RULES.all))||(f[f.length]=g)}}else f=o;if(u||f.length){var y=t.errorPath,w=u||f.length>=t.opts.loopRequired,C=t.opts.ownProperties;if(l)if(i+=" var missing"+n+"; ",w){u||(i+=" var "+d+" = validate.schema"+s+"; ");var I="' + "+(k="schema"+n+"["+(x="i"+n)+"]")+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(y,k,t.opts.jsonPointers)),i+=" var "+c+" = true; ",u&&(i+=" if (schema"+n+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+n+")) "+c+" = false; else {"),i+=" for (var "+x+" = 0; "+x+" < "+d+".length; "+x+"++) { "+c+" = "+h+"["+d+"["+x+"]] !== undefined ",C&&(i+=" && Object.prototype.hasOwnProperty.call("+h+", "+d+"["+x+"]) "),i+="; if (!"+c+") break; } ",u&&(i+=" } "),(S=S||[]).push(i+=" if (!"+c+") { "),i="",!1!==t.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { missingProperty: '"+I+"' } ",!1!==t.opts.messages&&(i+=" , message: '",t.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+I+"\\'",i+="' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var A=i;i=S.pop();!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var M=f;if(M)for(var x=-1,_=M.length-1;x<_;)T=M[x+=1],x&&(i+=" || "),i+=" ( ( "+(N=h+(j=t.util.getProperty(T)))+" === undefined ",C&&(i+=" || ! Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(T)+"') "),i+=") && (missing"+n+" = "+t.util.toQuotedString(t.opts.jsonPointers?T:j)+") ) ";i+=") { ";var S;I="' + "+(k="missing"+n)+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(y,k,!0):y+" + "+k),(S=S||[]).push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { missingProperty: '"+I+"' } ",!1!==t.opts.messages&&(i+=" , message: '",t.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+I+"\\'",i+="' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",A=i,i=S.pop(),!t.compositeRule&&l?t.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(w){u||(i+=" var "+d+" = validate.schema"+s+"; ");var k;I="' + "+(k="schema"+n+"["+(x="i"+n)+"]")+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(y,k,t.opts.jsonPointers)),u&&(i+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==t.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { missingProperty: '"+I+"' } ",!1!==t.opts.messages&&(i+=" , message: '",t.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+I+"\\'",i+="' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),i+=" for (var "+x+" = 0; "+x+" < "+d+".length; "+x+"++) { if ("+h+"["+d+"["+x+"]] === undefined ",C&&(i+=" || ! Object.prototype.hasOwnProperty.call("+h+", "+d+"["+x+"]) "),i+=") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { missingProperty: '"+I+"' } ",!1!==t.opts.messages&&(i+=" , message: '",t.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+I+"\\'",i+="' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",u&&(i+=" } ")}else{var E=f;if(E)for(var T,R=-1,O=E.length-1;R<O;){T=E[R+=1];var j=t.util.getProperty(T),N=(I=t.util.escapeQuotes(T),h+j);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(y,T,t.opts.jsonPointers)),i+=" if ( "+N+" === undefined ",C&&(i+=" || ! Object.prototype.hasOwnProperty.call("+h+", '"+t.util.escapeQuotes(T)+"') "),i+=") { var err = ",!1!==t.createErrors?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(a)+" , params: { missingProperty: '"+I+"' } ",!1!==t.opts.messages&&(i+=" , message: '",t.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+I+"\\'",i+="' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=y}else l&&(i+=" if (true) {");return i}},function(t,e,i){"use strict";t.exports=function(t,e){var i,n,r,o,s,a=" ",l=t.level,h=t.dataLevel,c=t.schema[e],u=t.schemaPath+t.util.getProperty(e),d=t.errSchemaPath+"/"+e,f=!t.opts.allErrors,p="data"+(h||""),g="valid"+l,m=t.opts.$data&&c&&c.$data,v=m?(a+=" var schema"+l+" = "+t.util.getData(c.$data,h,t.dataPathArr)+"; ","schema"+l):c;return(c||m)&&!1!==t.opts.uniqueItems?(m&&(a+=" var "+g+"; if ("+v+" === false || "+v+" === undefined) "+g+" = true; else if (typeof "+v+" != 'boolean') "+g+" = false; else { "),a+=" var i = "+p+".length , "+g+" = true , j; if (i > 1) { ",i=t.schema.items&&t.schema.items.type,n=Array.isArray(i),!i||"object"==i||"array"==i||n&&(0<=i.indexOf("object")||0<=i.indexOf("array"))?a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+g+" = false; break outer; } } } ":(a+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ",r="checkDataType"+(n?"s":""),a+=" if ("+t.util[r](i,"item",t.opts.strictNumbers,!0)+") continue; ",n&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+g+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),a+=" } ",m&&(a+=" } "),(o=o||[]).push(a+=" if (!"+g+") { "),a="",!1!==t.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(d)+" , params: { i: i, j: j } ",!1!==t.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(a+=" , schema: ",a+=m?"validate.schema"+u:""+c,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ",s=a,a=o.pop(),!t.compositeRule&&f?t.async?a+=" throw new ValidationError(["+s+"]); ":a+=" validate.errors = ["+s+"]; return false; ":a+=" var err = "+s+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",f&&(a+=" else { ")):f&&(a+=" if (true) { "),a}},function(t,e,i){"use strict";var n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];t.exports=function(t,e){for(var i=0;i<e.length;i++){t=JSON.parse(JSON.stringify(t));for(var r=e[i].split("/"),o=t,s=1;s<r.length;s++)o=o[r[s]];for(s=0;s<n.length;s++){var a=n[s],l=o[a];l&&(o[a]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}},function(t,e,i){"use strict";function n(t,e,i){function o(t){var e=t.$schema;return e&&!s.getSchema(e)?n.call(s,{$ref:e},!0):Promise.resolve()}var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof e&&(i=e,e=void 0);var a=o(t).then((function(){var i=s._addSchema(t,void 0,e);return i.validate||function t(i){try{return s._compile(i)}catch(n){if(n instanceof r)return function(n){function r(){delete s._loadingSchemas[l]}function a(t){return s._refs[t]||s._schemas[t]}var l=n.missingSchema;if(a(l))throw new Error("Schema "+l+" is loaded but "+n.missingRef+" cannot be resolved");var h=s._loadingSchemas[l];return h||(h=s._loadingSchemas[l]=s._opts.loadSchema(l)).then(r,r),h.then((function(t){if(!a(l))return o(t).then((function(){a(l)||s.addSchema(t,l,void 0,e)}))})).then((function(){return t(i)}))}(n);throw n}}(i)}));return i&&a.then((function(t){i(null,t)}),i),a}var r=i(19).MissingRef;t.exports=n},function(t,e,i){"use strict";function n(t,e){n.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(s,!0);if(i(t))return!0;if(n.errors=i.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}var r=/^[a-z_$][a-z0-9_$-]*$/i,o=i(75),s=i(76);t.exports={add:function(t,e){function i(t,e,i){for(var r,s=0;s<n.length;s++){var a=n[s];if(a.type==e){r=a;break}}r||(r={type:e,rules:[]},n.push(r));var l={keyword:t,definition:i,custom:!0,code:o,implements:i.implements};r.rules.push(l),n.custom[t]=l}var n=this.RULES;if(n.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!r.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var s=e.type;if(Array.isArray(s))for(var a=0;a<s.length;a++)i(t,s[a],e);else i(t,s,e);var l=e.metaSchema;l&&(e.$data&&this._opts.$data&&(l={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(l,!0))}return n.keywords[t]=n.all[t]=!0,this},get:function(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1},remove:function(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var i=0;i<e.length;i++)for(var n=e[i].rules,r=0;r<n.length;r++)if(n[r].keyword==t){n.splice(r,1);break}return this},validate:n}},function(t,e,i){"use strict";t.exports=function(t,e){var i,n,r,o,s,a,l=" ",h=t.level,c=t.dataLevel,u=t.schema[e],d=t.schemaPath+t.util.getProperty(e),f=t.errSchemaPath+"/"+e,p=!t.opts.allErrors,g="data"+(c||""),m="valid"+h,v="errs__"+h,b=t.opts.$data&&u&&u.$data,y=b?(l+=" var schema"+h+" = "+t.util.getData(u.$data,c,t.dataPathArr)+"; ","schema"+h):u,w="definition"+h,C=this.definition,I="";if(b&&C.$data){a="keywordValidate"+h;var A=C.validateSchema;l+=" var "+w+" = RULES.custom['"+e+"'].definition; var "+a+" = "+w+".validate;"}else{if(!(s=t.useCustomRule(this,u,t.schema,t)))return;y="validate.schema"+d,a=s.code,n=C.compile,r=C.inline,o=C.macro}var M,x,_,S,k,E,T,R,O,j,N=a+".errors",L="i"+h,B="ruleErr"+h,D=C.async;if(D&&!t.async)throw new Error("async keyword in sync schema");return r||o||(l+=N+" = null;"),l+="var "+v+" = errors;var "+m+";",b&&C.$data&&(I+="}",l+=" if ("+y+" === undefined) { "+m+" = true; } else { ",A&&(I+="}",l+=" "+m+" = "+w+".validateSchema("+y+"); if ("+m+") { ")),r?C.statements?l+=" "+s.validate+" ":l+=" "+m+" = "+s.validate+"; ":o?(I="",(M=t.util.copy(t)).level++,x="valid"+M.level,M.schema=s.validate,M.schemaPath="",_=t.compositeRule,t.compositeRule=M.compositeRule=!0,S=t.validate(M).replace(/validate\.schema/g,a),t.compositeRule=M.compositeRule=_,l+=" "+S):((R=R||[]).push(l),l="",l+=" "+a+".call( ",t.opts.passContext?l+="this":l+="self",n||!1===C.schema?l+=" , "+g+" ":l+=" , "+y+" , "+g+" , validate.schema"+t.schemaPath+" ",l+=" , (dataPath || '')",'""'!=t.errorPath&&(l+=" + "+t.errorPath),T=l+=" , "+(k=c?"data"+(c-1||""):"parentData")+" , "+(E=c?t.dataPathArr[c]:"parentDataProperty")+" , rootData ) ",l=R.pop(),!1===C.errors?(l+=" "+m+" = ",D&&(l+="await "),l+=T+"; "):l+=D?" var "+(N="customErrors"+h)+" = null; try { "+m+" = await "+T+"; } catch (e) { "+m+" = false; if (e instanceof ValidationError) "+N+" = e.errors; else throw e; } ":" "+N+" = null; "+m+" = "+T+"; "),C.modifying&&(l+=" if ("+k+") "+g+" = "+k+"["+E+"];"),l+=""+I,C.valid?p&&(l+=" if (true) { "):(l+=" if ( ",void 0===C.valid?(l+=" !",l+=o?""+x:m):l+=" "+!C.valid+" ",l+=") { ",i=this.keyword,(R=R||[]).push(l),(R=R||[]).push(l=""),l="",!1!==t.createErrors?(l+=" { keyword: '"+(i||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(l+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(l+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),l+=" } "):l+=" {} ",O=l,l=R.pop(),!t.compositeRule&&p?t.async?l+=" throw new ValidationError(["+O+"]); ":l+=" validate.errors = ["+O+"]; return false; ":l+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",j=l,l=R.pop(),r?C.errors?"full"!=C.errors&&(l+=" for (var "+L+"="+v+"; "+L+"<errors; "+L+"++) { var "+B+" = vErrors["+L+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+f+'"; } ',t.opts.verbose&&(l+=" "+B+".schema = "+y+"; "+B+".data = "+g+"; "),l+=" } "):!1===C.errors?l+=" "+j+" ":(l+=" if ("+v+" == errors) { "+j+" } else { for (var "+L+"="+v+"; "+L+"<errors; "+L+"++) { var "+B+" = vErrors["+L+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+f+'"; } ',t.opts.verbose&&(l+=" "+B+".schema = "+y+"; "+B+".data = "+g+"; "),l+=" } } "):o?(l+=" var err = ",!1!==t.createErrors?(l+=" { keyword: '"+(i||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(l+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(l+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&p&&(t.async?l+=" throw new ValidationError(vErrors); ":l+=" validate.errors = vErrors; return false; ")):!1===C.errors?l+=" "+j+" ":(l+=" if (Array.isArray("+N+")) { if (vErrors === null) vErrors = "+N+"; else vErrors = vErrors.concat("+N+"); errors = vErrors.length; for (var "+L+"="+v+"; "+L+"<errors; "+L+"++) { var "+B+" = vErrors["+L+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; "+B+'.schemaPath = "'+f+'"; ',t.opts.verbose&&(l+=" "+B+".schema = "+y+"; "+B+".data = "+g+"; "),l+=" } } else { "+j+" } "),l+=" } ",p&&(l+=" else { ")),l}},function(t,e,i){"use strict";var n=i(32);t.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},function(t){t.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t){return t.getInternalPath()}function c(t){return t.getField()}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t){this.editor=t,this.dom={}}function f(t,e){this.editor=t,this.parent=e,this.dom={}}i.r(e),i.d(e,"treeModeMixins",(function(){return Z}));var p=i(13),g=i.n(p),m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.locked=!1}var e,i;return e=t,(i=[{key:"highlight",value:function(t){this.locked||(this.node!==t&&(this.node&&this.node.setHighlight(!1),this.node=t,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){var t;this.locked||(t=this).node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout((function(){t.node.setHighlight(!1),t.node=void 0,t.unhighlightTimer=void 0}),0))}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&n(e.prototype,i),t}(),v=i(0),b=function(){function t(e){function i(t){return e.node.findNodeByInternalPath(t)}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.editor=e,this.history=[],this.index=-1,this.clear(),this.actions={editField:{undo:function(t){i(t.parentPath).childs[t.index].updateField(t.oldValue)},redo:function(t){i(t.parentPath).childs[t.index].updateField(t.newValue)}},editValue:{undo:function(t){i(t.path).updateValue(t.oldValue)},redo:function(t){i(t.path).updateValue(t.newValue)}},changeType:{undo:function(t){i(t.path).changeType(t.oldType)},redo:function(t){i(t.path).changeType(t.newType)}},appendNodes:{undo:function(t){var e=i(t.parentPath);t.paths.map(i).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=i(t.parentPath);t.nodes.forEach((function(t){e.appendChild(t)}))}},insertBeforeNodes:{undo:function(t){var e=i(t.parentPath);t.paths.map(i).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=i(t.parentPath),n=i(t.beforePath);t.nodes.forEach((function(t){e.insertBefore(t,n)}))}},insertAfterNodes:{undo:function(t){var e=i(t.parentPath);t.paths.map(i).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=i(t.parentPath),n=i(t.afterPath);t.nodes.forEach((function(t){e.insertAfter(t,n),n=t}))}},removeNodes:{undo:function(t){var e=i(t.parentPath),n=e.childs[t.index]||e.append;t.nodes.forEach((function(t){e.insertBefore(t,n)}))},redo:function(t){var e=i(t.parentPath);t.paths.map(i).forEach((function(t){e.removeChild(t)}))}},duplicateNodes:{undo:function(t){var e=i(t.parentPath);t.clonePaths.map(i).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=i(t.parentPath),n=i(t.afterPath);t.paths.map(i).forEach((function(t){var i,r=t.clone();"object"===e.type&&(i=e.getFieldNames(),r.field=Object(v.findUniqueName)(t.field,i)),e.insertAfter(r,n),n=r}))}},moveNodes:{undo:function(t){var e=i(t.oldParentPath),n=i(t.newParentPath),r=e.childs[t.oldIndex]||e.append;n.childs.slice(t.newIndex,t.newIndex+t.count).forEach((function(i,n){i.field=t.fieldNames[n],e.moveBefore(i,r)})),null===t.newParentPathRedo&&(t.newParentPathRedo=n.getInternalPath())},redo:function(t){var e=i(t.oldParentPathRedo),n=i(t.newParentPathRedo),r=n.childs[t.newIndexRedo]||n.append;e.childs.slice(t.oldIndexRedo,t.oldIndexRedo+t.count).forEach((function(e,i){e.field=t.fieldNames[i],n.moveBefore(e,r)}))}},sort:{undo:function(t){var e=i(t.path);e.hideChilds(),e.childs=t.oldChilds,e.updateDom({updateIndexes:!0}),e.showChilds()},redo:function(t){var e=i(t.path);e.hideChilds(),e.childs=t.newChilds,e.updateDom({updateIndexes:!0}),e.showChilds()}},transform:{undo:function(t){i(t.path).setInternalValue(t.oldValue)},redo:function(t){i(t.path).setInternalValue(t.newValue)}}}}var e,i;return e=t,(i=[{key:"onChange",value:function(){}},{key:"add",value:function(t,e){this.index++,this.history[this.index]={action:t,params:e,timestamp:new Date},this.index<this.history.length-1&&this.history.splice(this.index+1,this.history.length-this.index-1),this.onChange()}},{key:"clear",value:function(){this.history=[],this.index=-1,this.onChange()}},{key:"canUndo",value:function(){return 0<=this.index}},{key:"canRedo",value:function(){return this.index<this.history.length-1}},{key:"undo",value:function(){if(this.canUndo()){var t=this.history[this.index];if(t){var e=this.actions[t.action];if(e&&e.undo){if(e.undo(t.params),t.params.oldSelection)try{this.editor.setDomSelection(t.params.oldSelection)}catch(t){console.error(t)}}else console.error(new Error('unknown action "'+t.action+'"'))}this.index--,this.onChange()}}},{key:"redo",value:function(){if(this.canRedo()){this.index++;var t=this.history[this.index];if(t){var e=this.actions[t.action];if(e&&e.redo){if(e.redo(t.params),t.params.newSelection)try{this.editor.setDomSelection(t.params.newSelection)}catch(t){console.error(t)}}else console.error(new Error('unknown action "'+t.action+'"'))}this.onChange()}}},{key:"destroy",value:function(){this.editor=null,this.history=[],this.index=-1}}])&&r(e.prototype,i),t}(),y=i(1),w=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;this.editor=e,this.timeout=void 0,this.delay=200,this.lastText=void 0,this.results=null,this.dom={},this.dom.container=i;var r=document.createElement("div");(this.dom.wrapper=r).className="jsoneditor-search",i.appendChild(r);var o=document.createElement("div");(this.dom.results=o).className="jsoneditor-results",r.appendChild(o);var s=document.createElement("div");(this.dom.input=s).className="jsoneditor-frame",s.title=Object(y.c)("searchTitle"),r.appendChild(s);var a=document.createElement("button");a.type="button",a.className="jsoneditor-refresh",s.appendChild(a);var l=document.createElement("input");l.type="text",(this.dom.search=l).oninput=function(t){n._onDelayedSearch(t)},l.onchange=function(t){n._onSearch()},l.onkeydown=function(t){n._onKeyDown(t)},l.onkeyup=function(t){n._onKeyUp(t)},a.onclick=function(t){l.select()},s.appendChild(l);var h=document.createElement("button");h.type="button",h.title=Object(y.c)("searchNextResultTitle"),h.className="jsoneditor-next",h.onclick=function(){n.next()},s.appendChild(h);var c=document.createElement("button");c.type="button",c.title=Object(y.c)("searchPreviousResultTitle"),c.className="jsoneditor-previous",c.onclick=function(){n.previous()},s.appendChild(c)}var e,i;return e=t,(i=[{key:"next",value:function(t){var e;this.results&&((e=null!==this.resultIndex?this.resultIndex+1:0)>this.results.length-1&&(e=0),this._setActiveResult(e,t))}},{key:"previous",value:function(t){var e,i;this.results&&(e=this.results.length-1,(i=null!==this.resultIndex?this.resultIndex-1:e)<0&&(i=e),this._setActiveResult(i,t))}},{key:"_setActiveResult",value:function(t,e){var i;if(this.activeResult&&(i=this.activeResult.node,"field"===this.activeResult.elem?delete i.searchFieldActive:delete i.searchValueActive,i.updateDom()),!this.results||!this.results[t])return this.resultIndex=void 0,void(this.activeResult=void 0);this.resultIndex=t;var n=this.results[this.resultIndex].node,r=this.results[this.resultIndex].elem;"field"===r?n.searchFieldActive=!0:n.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],n.updateDom(),n.scrollTo((function(){e&&n.focus(r)}))}},{key:"_clearDelay",value:function(){void 0!==this.timeout&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(){this._clearDelay();var t=this;this.timeout=setTimeout((function(e){t._onSearch()}),this.delay)}},{key:"_onSearch",value:function(t){this._clearDelay();var e=this.dom.search.value,i=0<e.length?e:void 0;if(i!==this.lastText||t){this.lastText=i,this.results=this.editor.search(i);var n,r=this.results[0]?this.results[0].node.MAX_SEARCH_RESULTS:1/0,o=0;if(this.activeResult)for(var s=0;s<this.results.length;s++)if(this.results[s].node===this.activeResult.node){o=s;break}this._setActiveResult(o,!1),void 0!==i?(n=this.results.length,this.dom.results.textContent=0===n?"no results":1===n?"1 result":r<n?r+"+ results":n+" results"):this.dom.results.textContent=""}}},{key:"_onKeyDown",value:function(t){var e=t.which;27===e?(this.dom.search.value="",this._onSearch(),t.preventDefault(),t.stopPropagation()):13===e&&(t.ctrlKey?this._onSearch(!0):t.shiftKey?this.previous():this.next(),t.preventDefault(),t.stopPropagation())}},{key:"_onKeyUp",value:function(t){var e=t.keyCode;27!==e&&13!==e&&this._onDelayedSearch(t)}},{key:"clear",value:function(){this.dom.search.value="",this._onSearch()}},{key:"forceSearch",value:function(){this._onSearch(!0)}},{key:"isEmpty",value:function(){return""===this.dom.search.value}},{key:"destroy",value:function(){this.editor=null,this.dom.container.removeChild(this.dom.wrapper),this.dom=null,this.results=null,this.activeResult=null,this._clearDelay()}}])&&o(e.prototype,i),t}(),C=i(3),I=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.root=i,this.path=document.createElement("div"),this.path.className="jsoneditor-treepath",this.path.setAttribute("tabindex",0),this.contentMenuClicked=!1,e.appendChild(this.path),this.reset())}var e,i;return e=t,(i=[{key:"reset",value:function(){this.path.textContent=Object(y.c)("selectNode")}},{key:"setPath",value:function(t){var e=this;this.path.textContent="",t&&t.length&&t.forEach((function(i,n){var r,o,s,a=document.createElement("span");a.className="jsoneditor-treepath-element",a.innerText=i.name,a.onclick=function(t){this.selectionCallback&&this.selectionCallback(t)}.bind(e,i),e.path.appendChild(a),i.children.length&&((r=document.createElement("span")).className="jsoneditor-treepath-seperator",r.textContent="►",r.onclick=function(){e.contentMenuClicked=!0;var o=[];i.children.forEach((function(r){o.push({text:r.name,className:"jsoneditor-type-modes"+(t[n+1]+1&&t[n+1].name===r.name?" jsoneditor-selected":""),click:function(t,e){this.contextMenuCallback&&this.contextMenuCallback(t,e)}.bind(e,i,r.name)})})),new C.a(o).show(r,e.root,!0)},e.path.appendChild(r)),n===t.length-1&&(o=(r||a).getBoundingClientRect().right,e.path.offsetWidth<o&&(e.path.scrollLeft=o),e.path.scrollLeft&&((s=document.createElement("span")).className="jsoneditor-treepath-show-all-btn",s.title="show all path",s.textContent="...",s.onclick=function(t){e.contentMenuClicked=!1,Object(v.addClassName)(e.path,"show-all"),e.path.style.width=e.path.parentNode.getBoundingClientRect().width-10+"px",e.path.onblur=function(){if(e.contentMenuClicked)return e.contentMenuClicked=!1,void e.path.focus();Object(v.removeClassName)(e.path,"show-all"),e.path.onblur=void 0,e.path.style.width="",e.setPath(t)}}.bind(e,t),e.path.insertBefore(s,e.path.firstChild)))}))}},{key:"onSectionSelected",value:function(t){"function"==typeof t&&(this.selectionCallback=t)}},{key:"onContextMenuItemSelected",value:function(t){"function"==typeof t&&(this.contextMenuCallback=t)}}])&&s(e.prototype,i),t}(),A=i(11),M=i.n(A),x=i(12),_=i(5),S=i(6),k=i(2),E=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.editor=e,this.dom={},this.expanded=!1,i&&i instanceof Object?(this.setField(i.field,i.fieldEditable),"value"in i&&this.setValue(i.value,i.type),"internalValue"in i&&this.setInternalValue(i.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=Object(v.debounce)(this._onChangeValue.bind(this),t.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=Object(v.debounce)(this._onChangeField.bind(this),t.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}var e,i;return e=t,(i=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:T}},{key:"_updateEditability",value:function(){var t;this.editable={field:!0,value:!0},this.editor&&(this.editable.field="tree"===this.editor.options.mode,this.editable.value="view"!==this.editor.options.mode,"tree"!==this.editor.options.mode&&"form"!==this.editor.options.mode||"function"!=typeof this.editor.options.onEditable||("boolean"==typeof(t=this.editor.options.onEditable({field:this.field,value:this.value,path:this.getPath()}))?(this.editable.field=t,this.editable.value=t):("boolean"==typeof t.field&&(this.editable.field=t.field),"boolean"==typeof t.value&&(this.editable.value=t.value))))}},{key:"getPath",value:function(){for(var t=this,e=[];t;){var i=t.getName();void 0!==i&&e.unshift(i),t=t.parent}return e}},{key:"getInternalPath",value:function(){for(var t=this,e=[];t;)t.parent&&e.unshift(t.getIndex()),t=t.parent;return e}},{key:"getName",value:function(){return this.parent?"array"!==this.parent.type?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(t){if(t){if(0===t.length)return this;if(t.length&&this.childs&&this.childs.length)for(var e=0;e<this.childs.length;++e)if(""+t[0]==""+this.childs[e].getName())return this.childs[e].findNodeByPath(t.slice(1))}}},{key:"findNodeByInternalPath",value:function(t){if(t){for(var e=this,i=0;i<t.length&&e;i++){var n=t[i];e=e.childs[n]}return e}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(t){for(var e=Object(v.parsePath)(t),i=this;i&&0<e.length;)!function(){var t=e.shift();if("number"==typeof t){if("array"!==i.type)throw new Error("Cannot get child node at index "+t+": node is no array");i=i.childs[t]}else{if("object"!==i.type)throw new Error("Cannot get child node "+t+": node is no object");i=i.childs.filter((function(e){return e.field===t}))[0]}}();return i}},{key:"findParents",value:function(){for(var t=[],e=this.parent;e;)t.unshift(e),e=e.parent;return t}},{key:"setError",value:function(t,e){this.error=t,this.errorChild=e,this.dom&&this.dom.tr&&this.updateError()}},{key:"updateError",value:function(){var t=this,e=this.fieldError||this.valueError||this.error,i=this.dom.tdError;if(e&&this.dom&&this.dom.tr){Object(v.addClassName)(this.dom.tr,"jsoneditor-validation-error"),i||(i=document.createElement("td"),this.dom.tdError=i,this.dom.tdValue.parentNode.appendChild(i));var n=document.createElement("button");n.type="button",n.className="jsoneditor-button jsoneditor-schema-error";var r=function(){t.dom.popupAnchor&&t.dom.popupAnchor.destroy()},o=function(){delete t.dom.popupAnchor},s=function(i){var r=t.editor.frame;t.dom.popupAnchor=Object(x.a)(n,t.editor.getPopupAnchor(),o,i);var s=n.getBoundingClientRect(),a=120<r.getBoundingClientRect().width-s.x?"jsoneditor-above":"jsoneditor-left",l=document.createElement("div");l.className="jsoneditor-popover "+a,l.appendChild(document.createTextNode(e.message)),t.dom.popupAnchor.appendChild(l)};n.onmouseover=function(){t.dom.popupAnchor||s(!0)},n.onfocus=function(){r(),s(!1)},n.onblur=function(){r()};var a=this.errorChild;for(a&&(n.onclick=function(){a.findParents().forEach((function(t){t.expand(!1)})),a.scrollTo((function(){a.focus()}))});i.firstChild;)i.removeChild(i.firstChild);i.appendChild(n)}else this.dom.tr&&Object(v.removeClassName)(this.dom.tr,"jsoneditor-validation-error"),i&&(this.dom.tdError.parentNode.removeChild(this.dom.tdError),delete this.dom.tdError)}},{key:"getIndex",value:function(){if(this.parent){var t=this.parent.childs.indexOf(this);return-1!==t?t:null}return-1}},{key:"setParent",value:function(t){this.parent=t}},{key:"setField",value:function(t,e){this.field=t,this.previousField=t,this.fieldEditable=!0===e}},{key:"getField",value:function(){return void 0===this.field&&this._getDomField(),this.field}},{key:"setValue",value:function(e,i){var n,r,o,s,a,l,h,c,d=this.childs;if(this.type=this._getType(e),i&&i!==this.type){if("string"!==i||"auto"!==this.type)throw new Error('Type mismatch: cannot cast value of type "'+this.type+' to the specified type "'+i+'"');this.type=i}if("array"===this.type){for(this.childs||(this.childs=[]),r=0;r<e.length;r++)void 0===(a=e[r])||a instanceof Function||(r<this.childs.length?((n=this.childs[r]).fieldEditable=!1,n.index=r,n.setValue(a)):(n=new t(this.editor,{value:a}),s=r<this.getMaxVisibleChilds(),this.appendChild(n,s,!1)));for(o=this.childs.length;o>=e.length;o--)this.removeChild(this.childs[o],!1)}else if("object"===this.type){for(this.childs||(this.childs=[]),o=this.childs.length-1;0<=o;o--)u(e,this.childs[o].field)||this.removeChild(this.childs[o],!1);for(var f in r=0,e)u(e,f)&&(void 0===(a=e[f])||a instanceof Function||((l=this.findChildByProperty(f))?(l.setField(f,!0),l.setValue(a)):(h=new t(this.editor,{field:f,value:a}),c=r<this.getMaxVisibleChilds(),this.appendChild(h,c,!1))),r++);!(this.value="")===this.editor.options.sortObjectKeys&&this.sort([],"asc",!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=e;Array.isArray(d)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"setInternalValue",value:function(e){var i,n,r,o,s,a=this.childs;if(this.type=e.type,"array"===e.type){for(this.childs||(this.childs=[]),o=0;o<e.childs.length;o++)void 0===(i=e.childs[o])||i instanceof Function||(o<this.childs.length?((n=this.childs[o]).fieldEditable=!1,n.index=o,n.setInternalValue(i)):(n=new t(this.editor,{internalValue:i}),r=o<this.getMaxVisibleChilds(),this.appendChild(n,r,!1)));for(s=this.childs.length;s>=e.childs.length;s--)this.removeChild(this.childs[s],!1)}else if("object"===e.type){for(this.childs||(this.childs=[]),o=0;o<e.childs.length;o++)void 0===(i=e.childs[o])||i instanceof Function||(o<this.childs.length?(delete(n=this.childs[o]).index,n.setField(i.field,!0),n.setInternalValue(i.value)):(n=new t(this.editor,{field:i.field,internalValue:i.value}),r=o<this.getMaxVisibleChilds(),this.appendChild(n,r,!1)));for(s=this.childs.length;s>=e.childs.length;s--)this.removeChild(this.childs[s],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=e.value;Array.isArray(a)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var t;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(t=this._detachFromDom(),this.clearDom(),this._attachToDom(t)):this.clearDom()}},{key:"getValue",value:function(){if("array"===this.type){var t=[];return this.childs.forEach((function(e){t.push(e.getValue())})),t}if("object"!==this.type)return void 0===this.value&&this._getDomValue(),this.value;var e={};return this.childs.forEach((function(t){e[t.getField()]=t.getValue()})),e}},{key:"getInternalValue",value:function(){return"array"===this.type?{type:this.type,childs:this.childs.map((function(t){return t.getInternalValue()}))}:"object"===this.type?{type:this.type,childs:this.childs.map((function(t){return{field:t.getField(),value:t.getInternalValue()}}))}:(void 0===this.value&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var t=this.parent?this.parent.getNodePath():[];return t.push(this),t}},{key:"clone",value:function(){var e,i=new t(this.editor);return i.type=this.type,i.field=this.field,i.fieldInnerText=this.fieldInnerText,i.fieldEditable=this.fieldEditable,i.previousField=this.previousField,i.value=this.value,i.valueInnerText=this.valueInnerText,i.previousValue=this.previousValue,i.expanded=this.expanded,i.visibleChilds=this.visibleChilds,this.childs?(e=[],this.childs.forEach((function(t){var n=t.clone();n.setParent(i),e.push(n)})),i.childs=e):i.childs=void 0,i}},{key:"expand",value:function(t){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),!1!==t&&this.childs.forEach((function(e){e.expand(t)})),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(t){this.childs&&(this.hideChilds(),!1!==t&&this.childs.forEach((function(e){e.collapse(t)})),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){if(this.childs&&this.expanded){var t=this.dom.tr,e=t?t.parentNode:void 0;if(e){var i=this.getAppendDom();i.parentNode||((r=t.nextSibling)?e.insertBefore(i,r):e.appendChild(i));for(var n=Math.min(this.childs.length,this.visibleChilds),r=this._getNextTr(),o=0;o<n;o++){var s=this.childs[o];s.getDom().parentNode||e.insertBefore(s.getDom(),r),s.showChilds()}var a=this.getShowMoreDom();r=this._getNextTr(),a.parentNode||e.insertBefore(a,r),this.showMore.updateDom()}}}},{key:"_getNextTr",value:function(){return this.showMore&&this.showMore.getDom().parentNode?this.showMore.getDom():this.append&&this.append.getDom().parentNode?this.append.getDom():void 0}},{key:"hide",value:function(t){var e=this.dom.tr,i=e?e.parentNode:void 0;i&&i.removeChild(e),this.dom.popupAnchor&&this.dom.popupAnchor.destroy(),this.hideChilds(t)}},{key:"hideChilds",value:function(t){var e,i;this.childs&&this.expanded&&((e=this.getAppendDom()).parentNode&&e.parentNode.removeChild(e),this.childs.forEach((function(t){t.hide()})),(i=this.getShowMoreDom()).parentNode&&i.parentNode.removeChild(i),t&&!t.resetVisibleChilds||(this.visibleChilds=this.getMaxVisibleChilds()))}},{key:"_updateCssClassName",value:function(){var t;this.dom.field&&this.editor&&this.editor.options&&"function"==typeof this.editor.options.onClassName&&this.dom.tree&&(Object(v.removeAllClassNames)(this.dom.tree),t=this.editor.options.onClassName({path:this.getPath(),field:this.field,value:this.value})||"",Object(v.addClassName)(this.dom.tree,"jsoneditor-values "+t))}},{key:"recursivelyUpdateCssClassesOnNodes",value:function(){if(this._updateCssClassName(),Array.isArray(this.childs))for(var t=0;t<this.childs.length;t++)this.childs[t].recursivelyUpdateCssClassesOnNodes()}},{key:"expandTo",value:function(){for(var t=this.parent;t;)t.expanded||t.expand(),t=t.parent}},{key:"appendChild",value:function(t,e,i){var n,r,o;this._hasChilds()&&(t.setParent(this),t.fieldEditable="object"===this.type,"array"===this.type&&(t.index=this.childs.length),"object"===this.type&&void 0===t.field&&t.setField(""),this.childs.push(t),this.expanded&&!1!==e&&(n=t.getDom(),o=(r=this._getNextTr())?r.parentNode:void 0,r&&o&&o.insertBefore(n,r),t.showChilds(),this.visibleChilds++),!1!==i&&(this.updateDom({updateIndexes:!0}),t.updateDom({recurse:!0})))}},{key:"moveBefore",value:function(t,e,i){var n,r,o;this._hasChilds()&&((n=this.dom.tr?this.dom.tr.parentNode:void 0)&&((r=document.createElement("tr")).style.height=n.clientHeight+"px",n.appendChild(r)),t.parent&&t.parent.removeChild(t),e instanceof R||!e?this.childs.length+1>this.visibleChilds?(o=this.childs[this.visibleChilds-1],this.insertBefore(t,o,i)):this.appendChild(t,!0,i):this.insertBefore(t,e,i),n&&n.removeChild(r))}},{key:"insertBefore",value:function(t,e,i){if(this._hasChilds()){if(this.visibleChilds++,"object"===this.type&&void 0===t.field&&t.setField(""),e===this.append)t.setParent(this),t.fieldEditable="object"===this.type,this.childs.push(t);else{var n=this.childs.indexOf(e);if(-1===n)throw new Error("Node not found");t.setParent(this),t.fieldEditable="object"===this.type,this.childs.splice(n,0,t)}var r,o,s;this.expanded&&(r=t.getDom(),s=(o=e.getDom())?o.parentNode:void 0,o&&s&&s.insertBefore(r,o),t.showChilds(),this.showChilds()),!1!==i&&(this.updateDom({updateIndexes:!0}),t.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(t,e){var i,n;this._hasChilds()&&(i=this.childs.indexOf(e),(n=this.childs[i+1])?this.insertBefore(t,n):this.appendChild(t))}},{key:"search",value:function(t,e){Array.isArray(e)||(e=[]);var i=t?t.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,void 0!==this.field&&e.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.field).toLowerCase().indexOf(i)&&(this.searchField=!0,e.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach((function(i){i.search(t,e)})):void 0!==this.value&&e.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.value).toLowerCase().indexOf(i)&&(this.searchValue=!0,e.push({node:this,elem:"value"})),this._updateDomValue()),e}},{key:"scrollTo",value:function(t){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,t)}},{key:"expandPathToNode",value:function(){for(var t=this;t&&t.parent;){for(var e="array"===t.parent.type?t.index:t.parent.childs.indexOf(t);t.parent.visibleChilds<e+1;)t.parent.visibleChilds+=this.getMaxVisibleChilds();t.parent.expand(!1),t=t.parent}}},{key:"focus",value:function(e){if(t.focusElement=e,this.dom.tr&&this.dom.tr.parentNode){var i=this.dom;switch(e){case"drag":i.drag?i.drag.focus():i.menu.focus();break;case"menu":i.menu.focus();break;case"expand":this._hasChilds()?i.expand.focus():i.field&&this.fieldEditable?(i.field.focus(),Object(v.selectContentEditable)(i.field)):i.value&&!this._hasChilds()?(i.value.focus(),Object(v.selectContentEditable)(i.value)):i.menu.focus();break;case"field":i.field&&this.fieldEditable?(i.field.focus(),Object(v.selectContentEditable)(i.field)):i.value&&!this._hasChilds()?(i.value.focus(),Object(v.selectContentEditable)(i.value)):this._hasChilds()?i.expand.focus():i.menu.focus();break;case"value":default:i.select?i.select.focus():i.value&&!this._hasChilds()?(i.value.focus(),Object(v.selectContentEditable)(i.value)):i.field&&this.fieldEditable?(i.field.focus(),Object(v.selectContentEditable)(i.field)):this._hasChilds()?i.expand.focus():i.menu.focus()}}}},{key:"containsNode",value:function(t){if(this===t)return!0;var e=this.childs;if(e)for(var i=0,n=e.length;i<n;i++)if(e[i].containsNode(t))return!0;return!1}},{key:"removeChild",value:function(t,e){if(this.childs){var i=this.childs.indexOf(t);if(-1!==i){i<this.visibleChilds&&this.expanded&&this.visibleChilds--,t.hide(),delete t.searchField,delete t.searchValue;var n=this.childs.splice(i,1)[0];return n.parent=null,!1!==e&&this.updateDom({updateIndexes:!0}),n}}}},{key:"_remove",value:function(t){this.removeChild(t)}},{key:"changeType",value:function(t){var e,i=this.type;i!==t&&("string"!==t&&"auto"!==t||"string"!==i&&"auto"!==i?(e=this._detachFromDom(),this.clearDom(),"object"===(this.type=t)?(this.childs||(this.childs=[]),this.childs.forEach((function(t){t.clearDom(),delete t.index,t.fieldEditable=!0,void 0===t.field&&(t.field="")})),"string"!==i&&"auto"!==i||(this.expanded=!0)):"array"===t?(this.childs||(this.childs=[]),this.childs.forEach((function(t,e){t.clearDom(),t.fieldEditable=!1,t.index=e})),"string"!==i&&"auto"!==i||(this.expanded=!0)):this.expanded=!1,this._attachToDom(e)):this.type=t,"auto"!==t&&"string"!==t||(this.value="string"===t?String(this.value):Object(v.parseString)(String(this.value)),this.focus()),this.updateDom({updateIndexes:!0}))}},{key:"deepEqual",value:function(t){var e;if("array"===this.type){if(!Array.isArray(t))return!1;if(this.childs.length!==t.length)return!1;for(e=0;e<this.childs.length;e++)if(!this.childs[e].deepEqual(t[e]))return!1}else if("object"===this.type){if("object"!==a(t)||!t)return!1;var i=Object.keys(t);if(this.childs.length!==i.length)return!1;for(e=0;e<i.length;e++){var n=this.childs[e];if(n.field!==i[e]||!n.deepEqual(t[n.field]))return!1}}else if(this.value!==t)return!1;return!0}},{key:"_getDomValue",value:function(){if(this._clearValueError(),this.dom.value&&"array"!==this.type&&"object"!==this.type&&(this.valueInnerText=Object(v.getInnerText)(this.dom.value),""===this.valueInnerText&&""!==this.dom.value.innerHTML&&(this.dom.value.textContent="")),void 0!==this.valueInnerText)try{var t,e;(e="string"===this.type?this._unescapeHTML(this.valueInnerText):(t=this._unescapeHTML(this.valueInnerText),Object(v.parseString)(t)))!==this.value&&(this.value=e,this._debouncedOnChangeValue())}catch(t){this._setValueError(Object(y.c)("cannotParseValueError"))}}},{key:"_setValueError",value:function(t){this.valueError={message:t},this.updateError()}},{key:"_clearValueError",value:function(){this.valueError&&(this.valueError=null,this.updateError())}},{key:"_setFieldError",value:function(t){this.fieldError={message:t},this.updateError()}},{key:"_clearFieldError",value:function(){this.fieldError&&(this.fieldError=null,this.updateError())}},{key:"_onChangeValue",value:function(){var t,e=this.editor.getDomSelection();e.range&&(t=Object(v.textDiff)(String(this.value),String(this.previousValue)),e.range.startOffset=t.start,e.range.endOffset=t.end);var i,n=this.editor.getDomSelection();n.range&&(i=Object(v.textDiff)(String(this.previousValue),String(this.value)),n.range.startOffset=i.start,n.range.endOffset=i.end),this.editor._onAction("editValue",{path:this.getInternalPath(),oldValue:this.previousValue,newValue:this.value,oldSelection:e,newSelection:n}),this.previousValue=this.value}},{key:"_onChangeField",value:function(){var t,e=this.editor.getDomSelection(),i=this.previousField||"";e.range&&(t=Object(v.textDiff)(this.field,i),e.range.startOffset=t.start,e.range.endOffset=t.end);var n,r=this.editor.getDomSelection();r.range&&(n=Object(v.textDiff)(i,this.field),r.range.startOffset=n.start,r.range.endOffset=n.end),this.editor._onAction("editField",{parentPath:this.parent.getInternalPath(),index:this.getIndex(),oldValue:this.previousField,newValue:this.field,oldSelection:e,newSelection:r}),this.previousField=this.field}},{key:"_updateDomValue",value:function(){var t=this.dom.value;if(t){var e,i=["jsoneditor-value"],n=this.value,r="auto"===this.type?Object(v.getType)(n):this.type,o="string"===r&&Object(v.isUrl)(n);if(i.push("jsoneditor-"+r),o&&i.push("jsoneditor-url"),""===String(this.value)&&"array"!==this.type&&"object"!==this.type&&i.push("jsoneditor-empty"),this.searchValueActive&&i.push("jsoneditor-highlight-active"),this.searchValue&&i.push("jsoneditor-highlight"),t.className=i.join(" "),"array"===r||"object"===r?(e=this.childs?this.childs.length:0,t.title=this.type+" containing "+e+" items"):o&&this.editable.value?t.title=Object(y.c)("openUrl"):t.title="","boolean"===r&&this.editable.value?(this.dom.checkbox||(this.dom.checkbox=document.createElement("input"),this.dom.checkbox.type="checkbox",this.dom.tdCheckbox=document.createElement("td"),this.dom.tdCheckbox.className="jsoneditor-tree",this.dom.tdCheckbox.appendChild(this.dom.checkbox),this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox,this.dom.tdValue)),this.dom.checkbox.checked=this.value):this.dom.tdCheckbox&&(this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox),delete this.dom.tdCheckbox,delete this.dom.checkbox),this.enum&&this.editable.value){if(!this.dom.select){this.dom.select=document.createElement("select"),this.id=this.field+"_"+(new Date).getUTCMilliseconds(),this.dom.select.id=this.id,this.dom.select.name=this.dom.select.id,this.dom.select.option=document.createElement("option"),this.dom.select.option.value="",this.dom.select.option.textContent="--",this.dom.select.appendChild(this.dom.select.option);for(var s=0;s<this.enum.length;s++)this.dom.select.option=document.createElement("option"),this.dom.select.option.value=this.enum[s],this.dom.select.option.textContent=this.enum[s],this.dom.select.option.value===this.value&&(this.dom.select.option.selected=!0),this.dom.select.appendChild(this.dom.select.option);this.dom.tdSelect=document.createElement("td"),this.dom.tdSelect.className="jsoneditor-tree",this.dom.tdSelect.appendChild(this.dom.select),this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect,this.dom.tdValue)}!this.schema||u(this.schema,"oneOf")||u(this.schema,"anyOf")||u(this.schema,"allOf")?delete this.valueFieldHTML:(this.valueFieldHTML=this.dom.tdValue.innerHTML,this.dom.tdValue.style.visibility="hidden",this.dom.tdValue.textContent="")}else this.dom.tdSelect&&(this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect),delete this.dom.tdSelect,delete this.dom.select,this.dom.tdValue.innerHTML=this.valueFieldHTML,this.dom.tdValue.style.visibility="",delete this.valueFieldHTML);if(this.editable.value&&this.editor.options.colorPicker&&"string"==typeof n&&Object(v.isValidColor)(n)?(this.dom.color||(this.dom.color=document.createElement("div"),this.dom.color.className="jsoneditor-color",this.dom.tdColor=document.createElement("td"),this.dom.tdColor.className="jsoneditor-tree",this.dom.tdColor.appendChild(this.dom.color),this.dom.tdValue.parentNode.insertBefore(this.dom.tdColor,this.dom.tdValue)),Object(v.addClassName)(this.dom.value,"jsoneditor-color-value"),this.dom.color.style.backgroundColor=n):this._deleteDomColor(),this._showTimestampTag()){this.dom.date||(this.dom.date=document.createElement("div"),this.dom.date.className="jsoneditor-date",this.dom.value.parentNode.appendChild(this.dom.date));var a=null;if("function"==typeof this.editor.options.timestampFormat&&(a=this.editor.options.timestampFormat({field:this.field,value:this.value,path:this.getPath()})),a){for(;this.dom.date.firstChild;)this.dom.date.removeChild(this.dom.date.firstChild);this.dom.date.appendChild(document.createTextNode(a))}else this.dom.date.textContent=new Date(n).toISOString();this.dom.date.title=new Date(n).toString()}else this.dom.date&&(this.dom.date.parentNode.removeChild(this.dom.date),delete this.dom.date);Object(v.stripFormatting)(t),this._updateDomDefault()}}},{key:"_deleteDomColor",value:function(){this.dom.color&&(this.dom.tdColor.parentNode.removeChild(this.dom.tdColor),delete this.dom.tdColor,delete this.dom.color,Object(v.removeClassName)(this.dom.value,"jsoneditor-color-value"))}},{key:"_updateDomField",value:function(){var t,e=this.dom.field;e&&((t=Object(v.makeFieldTooltip)(this.schema,this.editor.options.language))&&(e.title=t),(""===String(this.field)&&this.parent&&"array"!==this.parent.type?Object(v.addClassName):Object(v.removeClassName))(e,"jsoneditor-empty"),(this.searchFieldActive?Object(v.addClassName):Object(v.removeClassName))(e,"jsoneditor-highlight-active"),(this.searchField?Object(v.addClassName):Object(v.removeClassName))(e,"jsoneditor-highlight"),Object(v.stripFormatting)(e))}},{key:"_getDomField",value:function(t){if(this._clearFieldError(),this.dom.field&&this.fieldEditable&&(this.fieldInnerText=Object(v.getInnerText)(this.dom.field),""===this.fieldInnerText&&""!==this.dom.field.innerHTML&&(this.dom.field.textContent="")),void 0!==this.fieldInnerText)try{var e=this._unescapeHTML(this.fieldInnerText),i=this.parent.getFieldNames(this);-1!==i.indexOf(e)?t?(e=Object(v.findUniqueName)(e,i))!==this.field&&(this.field=e,this._debouncedOnChangeField()):this._setFieldError(Object(y.c)("duplicateFieldError")):e!==this.field&&(this.field=e,this._debouncedOnChangeField())}catch(t){this._setFieldError(Object(y.c)("cannotParseFieldError"))}}},{key:"_updateDomDefault",value:function(){var t;!this.schema||void 0===this.schema.default||this._hasChilds()||(t=this.dom.select?this.dom.select:this.dom.value)&&(this.value===this.schema.default?(t.title=Object(y.c)("default"),Object(v.addClassName)(t,"jsoneditor-is-default"),Object(v.removeClassName)(t,"jsoneditor-is-not-default")):(t.removeAttribute("title"),Object(v.removeClassName)(t,"jsoneditor-is-default"),Object(v.addClassName)(t,"jsoneditor-is-not-default")))}},{key:"_showTimestampTag",value:function(){if("number"!=typeof this.value)return!1;var t=this.editor.options.timestampTag;if("function"!=typeof t)return!0===t&&Object(v.isTimestamp)(this.field,this.value);var e=t({field:this.field,value:this.value,path:this.getPath()});return"boolean"==typeof e?e:Object(v.isTimestamp)(this.field,this.value)}},{key:"clearDom",value:function(){this.dom={}}},{key:"getDom",value:function(){var t,e,i,n,r=this.dom;if(r.tr)return r.tr;this._updateEditability(),r.tr=document.createElement("tr"),"tree"===(r.tr.node=this).editor.options.mode&&(t=document.createElement("td"),this.editable.field&&this.parent&&((e=document.createElement("button")).type="button",(r.drag=e).className="jsoneditor-button jsoneditor-dragarea",e.title=Object(y.c)("drag"),t.appendChild(e)),r.tr.appendChild(t),i=document.createElement("td"),(n=document.createElement("button")).type="button",(r.menu=n).className="jsoneditor-button jsoneditor-contextmenu-button",n.title=Object(y.c)("actionsMenu"),i.appendChild(r.menu),r.tr.appendChild(i));var o=document.createElement("td");return r.tr.appendChild(o),r.tree=this._createDomTree(),o.appendChild(r.tree),this.updateDom({updateIndexes:!0}),r.tr}},{key:"isVisible",value:function(){return this.dom&&this.dom.tr&&this.dom.tr.parentNode||!1}},{key:"isDescendantOf",value:function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1}},{key:"_createDomField",value:function(){return document.createElement("div")}},{key:"setHighlight",value:function(t){this.dom.tr&&(Object(t?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-highlight"),this.append&&this.append.setHighlight(t),this.childs&&this.childs.forEach((function(e){e.setHighlight(t)})))}},{key:"setSelected",value:function(t,e){this.selected=t,this.dom.tr&&(Object(t?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-selected"),Object(e?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-first"),this.append&&this.append.setSelected(t),this.showMore&&this.showMore.setSelected(t),this.childs&&this.childs.forEach((function(e){e.setSelected(t)})))}},{key:"updateValue",value:function(t){this.value=t,this.previousValue=t,this.valueError=void 0,this.updateDom()}},{key:"updateField",value:function(t){this.field=t,this.previousField=t,this.fieldError=void 0,this.updateDom()}},{key:"updateDom",value:function(e){var i=this.dom.tree;i&&(i.style.marginLeft=24*this.getLevel()+"px");var n,r,o,s=this.dom.field;s&&(this.fieldEditable?(s.contentEditable=this.editable.field,s.spellcheck=!1,s.className="jsoneditor-field"):(s.contentEditable=!1,s.className="jsoneditor-readonly"),r=void 0!==this.index?this.index:void 0!==this.field?this.field:(n=this.editor.options.schema?t._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):void 0)&&n.title?n.title:this._hasChilds()?this.type:"",o=this._escapeHTML(r),document.activeElement===s&&o===this._unescapeHTML(Object(v.getInnerText)(s))||(s.innerHTML=o),this._updateSchema());var a,l=this.dom.value;l&&("array"===this.type||"object"===this.type?this.updateNodeName():(a=this._escapeHTML(this.value),document.activeElement===l&&a===this._unescapeHTML(Object(v.getInnerText)(l))||(l.innerHTML=a)));var h=this.dom.tr;h&&("array"===this.type||"object"===this.type?(Object(v.addClassName)(h,"jsoneditor-expandable"),this.expanded?(Object(v.addClassName)(h,"jsoneditor-expanded"),Object(v.removeClassName)(h,"jsoneditor-collapsed")):(Object(v.addClassName)(h,"jsoneditor-collapsed"),Object(v.removeClassName)(h,"jsoneditor-expanded"))):(Object(v.removeClassName)(h,"jsoneditor-expandable"),Object(v.removeClassName)(h,"jsoneditor-expanded"),Object(v.removeClassName)(h,"jsoneditor-collapsed"))),this._updateDomField(),this._updateDomValue(),e&&!0===e.updateIndexes&&this._updateDomIndexes(),e&&!0===e.recurse&&this.childs&&this.childs.forEach((function(t){t.updateDom(e)})),this.error&&this.updateError(),this.append&&this.append.updateDom(),this.showMore&&this.showMore.updateDom(),this._updateCssClassName()}},{key:"_updateSchema",value:function(){this.editor&&this.editor.options&&(this.schema=this.editor.options.schema?t._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):null,this.schema?this.enum=t._findEnum(this.schema):delete this.enum)}},{key:"_updateDomIndexes",value:function(){var t=this.dom.value,e=this.childs;t&&e&&("array"===this.type?e.forEach((function(t,e){t.index=e;var i=t.dom.field;i&&(i.textContent=e)})):"object"===this.type&&e.forEach((function(t){void 0!==t.index&&(delete t.index,void 0===t.field&&(t.field=""))})))}},{key:"_createDomValue",value:function(){var t;return"array"===this.type?(t=document.createElement("div")).textContent="[...]":"object"===this.type?(t=document.createElement("div")).textContent="{...}":(!this.editable.value&&Object(v.isUrl)(this.value)?(t=document.createElement("a")).href=this.value:((t=document.createElement("div")).contentEditable=this.editable.value,t.spellcheck=!1),t.innerHTML=this._escapeHTML(this.value)),t}},{key:"_createDomExpandButton",value:function(){var t=document.createElement("button");return t.type="button",this._hasChilds()?(t.className=this.expanded?"jsoneditor-button jsoneditor-expanded":"jsoneditor-button jsoneditor-collapsed",t.title=Object(y.c)("expandTitle")):(t.className="jsoneditor-button jsoneditor-invisible",t.title=""),t}},{key:"_createDomTree",value:function(){var t=this.dom,e=document.createElement("table"),i=document.createElement("tbody");e.style.borderCollapse="collapse",e.className="jsoneditor-values",e.appendChild(i);var n=document.createElement("tr");i.appendChild(n);var r=document.createElement("td");r.className="jsoneditor-tree",n.appendChild(r),t.expand=this._createDomExpandButton(),r.appendChild(t.expand),t.tdExpand=r;var o=document.createElement("td");o.className="jsoneditor-tree",n.appendChild(o),t.field=this._createDomField(),o.appendChild(t.field),t.tdField=o;var s=document.createElement("td");s.className="jsoneditor-tree",n.appendChild(s),"object"!==this.type&&"array"!==this.type&&(s.appendChild(document.createTextNode(":")),s.className="jsoneditor-separator"),t.tdSeparator=s;var a=document.createElement("td");return a.className="jsoneditor-tree",n.appendChild(a),t.value=this._createDomValue(),a.appendChild(t.value),t.tdValue=a,e}},{key:"onEvent",value:function(t){var e,i,n=t.type,r=t.target||t.srcElement,o=this.dom,s=this,a=this._hasChilds();"function"==typeof this.editor.options.onEvent&&this._onEvent(t),r!==o.drag&&r!==o.menu||("mouseover"===n?this.editor.highlighter.highlight(this):"mouseout"===n&&this.editor.highlighter.unhighlight()),"click"===n&&r===o.menu&&((e=s.editor.highlighter).highlight(s),e.lock(),Object(v.addClassName)(o.menu,"jsoneditor-selected"),this.showContextMenu(o.menu,(function(){Object(v.removeClassName)(o.menu,"jsoneditor-selected"),e.unlock(),e.unhighlight()}))),"click"===n&&r===o.expand&&a&&(i=t.ctrlKey,this._onExpand(i)),"click"!==n||t.target!==s.dom.tdColor&&t.target!==s.dom.color||this._showColorPicker(),"change"===n&&r===o.checkbox&&(this.dom.value.textContent=String(!this.value),this._getDomValue(),this._updateDomDefault()),"change"===n&&r===o.select&&(this.dom.value.innerHTML=this._escapeHTML(o.select.value),this._getDomValue(),this._updateDomValue());var l=o.value;if(r===l)switch(n){case"blur":case"change":this._getDomValue(),this._clearValueError(),this._updateDomValue();var h=this._escapeHTML(this.value);h!==this._unescapeHTML(Object(v.getInnerText)(l))&&(l.innerHTML=h);break;case"input":this._getDomValue(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"click":t.ctrlKey&&this.editable.value&&Object(v.isUrl)(this.value)&&(t.preventDefault(),window.open(this.value,"_blank","noopener"));break;case"keyup":this._getDomValue(),this._updateDomValue();break;case"cut":case"paste":setTimeout((function(){s._getDomValue(),s._updateDomValue()}),1)}var c=o.field;if(r===c)switch(n){case"blur":this._getDomField(!0),this._updateDomField();var u=this._escapeHTML(this.field);u!==this._unescapeHTML(Object(v.getInnerText)(c))&&(c.innerHTML=u);break;case"input":this._getDomField(),this._updateSchema(),this._updateDomField(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"keyup":this._getDomField(),this._updateDomField();break;case"cut":case"paste":setTimeout((function(){s._getDomField(),s._updateDomField()}),1)}var d=o.tree;d&&r===d.parentNode&&"click"===n&&!t.hasMoved&&((void 0!==t.offsetX?t.offsetX<24*(this.getLevel()+1):t.pageX<Object(v.getAbsoluteLeft)(o.tdSeparator))||a?c&&(Object(v.setEndOfContentEditable)(c),c.focus()):l&&!this.enum&&(Object(v.setEndOfContentEditable)(l),l.focus())),(r!==o.tdExpand||a)&&r!==o.tdField&&r!==o.tdSeparator||"click"!==n||t.hasMoved||c&&(Object(v.setEndOfContentEditable)(c),c.focus()),"keydown"===n&&this.onKeyDown(t)}},{key:"_onEvent",value:function(t){var e,i=t.target;i!==this.dom.field&&i!==this.dom.value||(e={field:this.getField(),path:this.getPath()},this._hasChilds()||i!==this.dom.value||(e.value=this.getValue()),this.editor.options.onEvent(e,t))}},{key:"onKeyDown",value:function(e){var i,n,r,o,s,a,l,h,u,d,f,p,g,m,b,y,w,C,I,A,M,x,_=e.which||e.keyCode,S=e.target||e.srcElement,k=e.ctrlKey,E=e.shiftKey,T=e.altKey,O=!1,j="tree"===this.editor.options.mode,N=0<this.editor.multiselection.nodes.length?this.editor.multiselection.nodes:[this],L=N[0],B=N[N.length-1];13===_?S===this.dom.value?this.editable.value&&!e.ctrlKey||Object(v.isUrl)(this.value)&&(window.open(this.value,"_blank","noopener"),O=!0):S===this.dom.expand&&this._hasChilds()&&(g=e.ctrlKey,this._onExpand(g),S.focus(),O=!0):68===_?k&&j&&(t.onDuplicate(N),O=!0):69===_?k&&(this._onExpand(E),S.focus(),O=!0):77===_&&j?k&&(this.showContextMenu(S),O=!0):46===_&&j?k&&(t.onRemove(N),O=!0):45===_&&j?k&&!E?(this._onInsertBefore(),O=!0):k&&E&&(this._onInsertAfter(),O=!0):35===_?T&&((m=this._lastNode())&&m.focus(t.focusElement||this._getElementName(S)),O=!0):36===_?T&&((b=this._firstNode())&&b.focus(t.focusElement||this._getElementName(S)),O=!0):37===_?T&&!E?((y=this._previousElement(S))&&this.focus(this._getElementName(y)),O=!0):T&&E&&j&&(C=B.expanded?(w=B.getAppendDom())?w.nextSibling:void 0:B.getDom().nextSibling)&&(n=t.getNodeFromTarget(C),r=C.nextSibling,I=t.getNodeFromTarget(r),n&&n instanceof R&&1!==B.parent.childs.length&&I&&I.parent&&(o=this.editor.getDomSelection(),s=(a=L.parent).childs[B.getIndex()+1]||a.append,l=L.getIndex(),h=I.getIndex(),u=a.getInternalPath(),d=I.parent.getInternalPath(),N.forEach((function(t){I.parent.moveBefore(t,I)})),this.focus(t.focusElement||this._getElementName(S)),this.editor._onAction("moveNodes",{count:N.length,fieldNames:N.map(c),oldParentPath:a.getInternalPath(),newParentPath:L.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:L.getIndex(),oldIndexRedo:l,newIndexRedo:h,oldParentPathRedo:u,newParentPathRedo:d,oldSelection:o,newSelection:this.editor.getDomSelection()}))):38===_?T&&!E?((i=this._previousNode())&&(this.editor.deselect(!0),i.focus(t.focusElement||this._getElementName(S))),O=!0):!T&&k&&E&&j?((i=this._previousNode())&&((p=this.editor.multiselection).start=p.start||this,p.end=i,f=this.editor._findTopLevelNodes(p.start,p.end),this.editor.select(f),i.focus("field")),O=!0):T&&E&&j&&((i=L._previousNode())&&i.parent&&(o=this.editor.getDomSelection(),s=(a=L.parent).childs[B.getIndex()+1]||a.append,l=L.getIndex(),h=i.getIndex(),u=a.getInternalPath(),d=i.parent.getInternalPath(),N.forEach((function(t){i.parent.moveBefore(t,i)})),this.focus(t.focusElement||this._getElementName(S)),this.editor._onAction("moveNodes",{count:N.length,fieldNames:N.map(c),oldParentPath:a.getInternalPath(),newParentPath:L.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:L.getIndex(),oldIndexRedo:l,newIndexRedo:h,oldParentPathRedo:u,newParentPathRedo:d,oldSelection:o,newSelection:this.editor.getDomSelection()})),O=!0):39===_?T&&!E?((A=this._nextElement(S))&&this.focus(this._getElementName(A)),O=!0):T&&E&&j&&(M=L.getDom().previousSibling)&&(i=t.getNodeFromTarget(M))&&i.parent&&!i.isVisible()&&(o=this.editor.getDomSelection(),s=(a=L.parent).childs[B.getIndex()+1]||a.append,l=L.getIndex(),h=i.getIndex(),u=a.getInternalPath(),d=i.parent.getInternalPath(),N.forEach((function(t){i.parent.moveBefore(t,i)})),this.focus(t.focusElement||this._getElementName(S)),this.editor._onAction("moveNodes",{count:N.length,fieldNames:N.map(c),oldParentPath:a.getInternalPath(),newParentPath:L.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:L.getIndex(),oldIndexRedo:l,newIndexRedo:h,oldParentPathRedo:u,newParentPathRedo:d,oldSelection:o,newSelection:this.editor.getDomSelection()})):40===_&&(T&&!E?((n=this._nextNode())&&(this.editor.deselect(!0),n.focus(t.focusElement||this._getElementName(S))),O=!0):!T&&k&&E&&j?((n=this._nextNode())&&((p=this.editor.multiselection).start=p.start||this,p.end=n,f=this.editor._findTopLevelNodes(p.start,p.end),this.editor.select(f),n.focus("field")),O=!0):T&&E&&j&&((n=B.expanded?B.append?B.append._nextNode():void 0:B._nextNode())&&!n.isVisible()&&(n=n.parent.showMore),n&&n instanceof R&&(n=B),(x=n&&(n._nextNode()||n.parent.append))&&x.parent&&(o=this.editor.getDomSelection(),s=(a=L.parent).childs[B.getIndex()+1]||a.append,l=L.getIndex(),h=x.getIndex(),u=a.getInternalPath(),d=x.parent.getInternalPath(),N.forEach((function(t){x.parent.moveBefore(t,x)})),this.focus(t.focusElement||this._getElementName(S)),this.editor._onAction("moveNodes",{count:N.length,fieldNames:N.map(c),oldParentPath:a.getInternalPath(),newParentPath:L.parent.getInternalPath(),oldParentPathRedo:u,newParentPathRedo:d,oldIndexRedo:l,newIndexRedo:h,oldIndex:s.getIndex(),newIndex:L.getIndex(),oldSelection:o,newSelection:this.editor.getDomSelection()})),O=!0)),O&&(e.preventDefault(),e.stopPropagation())}},{key:"_onExpand",value:function(t){var e,i,n;t&&(n=(i=(e=this.dom.tr.parentNode).parentNode).scrollTop,i.removeChild(e)),this.expanded?this.collapse(t):this.expand(t),t&&(i.appendChild(e),i.scrollTop=n)}},{key:"_showColorPicker",value:function(){var t,e;"function"==typeof this.editor.options.onColorPicker&&this.dom.color&&((t=this)._deleteDomColor(),t.updateDom(),e=Object(x.a)(this.dom.color,this.editor.getPopupAnchor()),this.editor.options.onColorPicker(e,this.value,(function(e){"string"==typeof e&&e!==t.value&&(t._deleteDomColor(),t.value=e,t.updateDom(),t._debouncedOnChangeValue())})))}},{key:"getFieldNames",value:function(t){return"object"===this.type?this.childs.filter((function(e){return e!==t})).map((function(t){return t.field})):[]}},{key:"_onInsertBefore",value:function(e,i,n){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==i?i:"",type:n});o.expand(!0);var s=this.getInternalPath();this.parent.insertBefore(o,this),this.editor.highlighter.unhighlight(),o.focus("field");var a=this.editor.getDomSelection();this.editor._onAction("insertBeforeNodes",{nodes:[o],paths:[o.getInternalPath()],beforePath:s,parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:a})}},{key:"_onInsertAfter",value:function(e,i,n){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==i?i:"",type:n});o.expand(!0),this.parent.insertAfter(o,this),this.editor.highlighter.unhighlight(),o.focus("field");var s=this.editor.getDomSelection();this.editor._onAction("insertAfterNodes",{nodes:[o],paths:[o.getInternalPath()],afterPath:this.getInternalPath(),parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:s})}},{key:"_onAppend",value:function(e,i,n){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==i?i:"",type:n});o.expand(!0),this.parent.appendChild(o),this.editor.highlighter.unhighlight(),o.focus("field");var s=this.editor.getDomSelection();this.editor._onAction("appendNodes",{nodes:[o],paths:[o.getInternalPath()],parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:s})}},{key:"_onChangeType",value:function(t){var e,i,n=this.type;t!==n&&(e=this.editor.getDomSelection(),this.changeType(t),i=this.editor.getDomSelection(),this.editor._onAction("changeType",{path:this.getInternalPath(),oldType:n,newType:t,oldSelection:e,newSelection:i}))}},{key:"sort",value:function(t,e,i){var n,r,o=!(2<arguments.length&&void 0!==i)||i;"string"==typeof t&&(t=Object(v.parsePath)(t)),this._hasChilds()&&(this.hideChilds(),n=this.childs,this.childs=this.childs.concat(),r="desc"===e?-1:1,"object"===this.type?this.childs.sort((function(t,e){return r*M()(t.field,e.field)})):this.childs.sort((function(e,i){var n=e.getNestedChild(t),o=i.getNestedChild(t);if(!n)return r;if(!o)return-r;var s=n.value,a=o.value;return"string"!=typeof s&&"string"!=typeof a?a<s?r:s<a?-r:0:r*M()(s,a)})),this._updateDomIndexes(),this.showChilds(),!0===o&&this.editor._onAction("sort",{path:this.getInternalPath(),oldChilds:n,newChilds:this.childs}))}},{key:"update",value:function(t){var e=this.getInternalValue();this.setValue(t),this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:e,newValue:this.getInternalValue()})}},{key:"_detachFromDom",value:function(){var t=this.dom.tr?this.dom.tr.parentNode:void 0,e=this.expanded?this.getAppendDom():this.getDom(),i=e&&e.parentNode?e.nextSibling:void 0;return this.hide({resetVisibleChilds:!1}),{table:t,nextTr:i}}},{key:"_attachToDom",value:function(t){t.table&&(t.nextTr?t.table.insertBefore(this.getDom(),t.nextTr):t.table.appendChild(this.getDom())),this.expanded&&this.showChilds()}},{key:"transform",value:function(t){if(this._hasChilds()){this.hideChilds();try{var e=this.getInternalValue(),i=this.getValue(),n=this.editor.options.executeQuery(i,t);this.setValue(n);var r=this.getInternalValue();this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:e,newValue:r}),this.showChilds()}catch(t){this.showChilds(),this.editor._onError(t)}}}},{key:"extract",value:function(){this.editor.node.hideChilds(),this.hideChilds();try{var t=this.editor.node.getInternalValue();this.editor._setRoot(this);var e=this.editor.node.getInternalValue();this.editor._onAction("transform",{path:this.editor.node.getInternalPath(),oldValue:t,newValue:e})}catch(t){this.editor._onError(t)}finally{this.updateDom({recurse:!0}),this.showChilds()}}},{key:"getNestedChild",value:function(t){for(var e=0,i=this;i&&e<t.length;)i=i.findChildByProperty(t[e]),e++;return i}},{key:"findChildByProperty",value:function(t){if("object"===this.type)return this.childs.find((function(e){return e.field===t}))}},{key:"getAppendDom",value:function(){return this.append||(this.append=new R(this.editor),this.append.setParent(this)),this.append.getDom()}},{key:"getShowMoreDom",value:function(){return this.showMore||(this.showMore=new O(this.editor,this)),this.showMore.getDom()}},{key:"nextSibling",value:function(){var t=this.parent.childs.indexOf(this);return this.parent.childs[t+1]||this.parent.append}},{key:"_previousNode",value:function(){var e=null,i=this.getDom();if(i&&i.parentNode)for(var n=i;n=n.previousSibling,e=t.getNodeFromTarget(n),n&&e&&e instanceof R&&!e.isVisible(););return e}},{key:"_nextNode",value:function(){var e=null,i=this.getDom();if(i&&i.parentNode)for(var n=i;n=n.nextSibling,e=t.getNodeFromTarget(n),n&&e&&e instanceof R&&!e.isVisible(););return e}},{key:"_firstNode",value:function(){var e,i=null,n=this.getDom();return n&&n.parentNode&&(e=n.parentNode.firstChild,i=t.getNodeFromTarget(e)),i}},{key:"_lastNode",value:function(){var e=null,i=this.getDom();if(i&&i.parentNode){var n=i.parentNode.lastChild;for(e=t.getNodeFromTarget(n);n&&e&&!e.isVisible();)n=n.previousSibling,e=t.getNodeFromTarget(n)}return e}},{key:"_previousElement",value:function(t){var e=this.dom;switch(t){case e.value:if(this.fieldEditable)return e.field;case e.field:if(this._hasChilds())return e.expand;case e.expand:return e.menu;case e.menu:if(e.drag)return e.drag;default:return null}}},{key:"_nextElement",value:function(t){var e=this.dom;switch(t){case e.drag:return e.menu;case e.menu:if(this._hasChilds())return e.expand;case e.expand:if(this.fieldEditable)return e.field;case e.field:if(!this._hasChilds())return e.value;default:return null}}},{key:"_getElementName",value:function(t){var e=this;return Object.keys(this.dom).find((function(i){return e.dom[i]===t}))}},{key:"_hasChilds",value:function(){return"array"===this.type||"object"===this.type}},{key:"addTemplates",value:function(t,e){var i=this,n=i.editor.options.templates;null!=n&&(n.length&&t.push({type:"separator"}),n.forEach((function(n){t.push({text:n.text,className:n.className||"jsoneditor-type-object",title:n.title,click:e?function(t,e){i._onAppend(t,e)}.bind(this,n.field,n.value):function(t,e){i._onInsertBefore(t,e)}.bind(this,n.field,n.value)})})))}},{key:"showContextMenu",value:function(e,i){var n,r,o,s,a=this,l=[];this.editable.value&&l.push({text:Object(y.c)("type"),title:Object(y.c)("typeTitle"),className:"jsoneditor-type-"+this.type,submenu:[{text:Object(y.c)("auto"),className:"jsoneditor-type-auto"+("auto"===this.type?" jsoneditor-selected":""),title:Object(y.c)("autoType"),click:function(){a._onChangeType("auto")}},{text:Object(y.c)("array"),className:"jsoneditor-type-array"+("array"===this.type?" jsoneditor-selected":""),title:Object(y.c)("arrayType"),click:function(){a._onChangeType("array")}},{text:Object(y.c)("object"),className:"jsoneditor-type-object"+("object"===this.type?" jsoneditor-selected":""),title:Object(y.c)("objectType"),click:function(){a._onChangeType("object")}},{text:Object(y.c)("string"),className:"jsoneditor-type-string"+("string"===this.type?" jsoneditor-selected":""),title:Object(y.c)("stringType"),click:function(){a._onChangeType("string")}}]}),this._hasChilds()&&(this.editor.options.enableSort&&l.push({text:Object(y.c)("sort"),title:Object(y.c)("sortTitle",{type:this.type}),className:"jsoneditor-sort-asc",click:function(){a.showSortModal()}}),this.editor.options.enableTransform&&l.push({text:Object(y.c)("transform"),title:Object(y.c)("transformTitle",{type:this.type}),className:"jsoneditor-transform",click:function(){a.showTransformModal()}}),this.parent&&l.push({text:Object(y.c)("extract"),title:Object(y.c)("extractTitle",{type:this.type}),className:"jsoneditor-extract",click:function(){a.extract()}})),this.parent&&this.parent._hasChilds()&&(l.length&&l.push({type:"separator"}),n=a.parent.childs,a===n[n.length-1]&&(r=[{text:Object(y.c)("auto"),className:"jsoneditor-type-auto",title:Object(y.c)("autoType"),click:function(){a._onAppend("","","auto")}},{text:Object(y.c)("array"),className:"jsoneditor-type-array",title:Object(y.c)("arrayType"),click:function(){a._onAppend("",[])}},{text:Object(y.c)("object"),className:"jsoneditor-type-object",title:Object(y.c)("objectType"),click:function(){a._onAppend("",{})}},{text:Object(y.c)("string"),className:"jsoneditor-type-string",title:Object(y.c)("stringType"),click:function(){a._onAppend("","","string")}}],a.addTemplates(r,!0),l.push({text:Object(y.c)("appendText"),title:Object(y.c)("appendTitle"),submenuTitle:Object(y.c)("appendSubmenuTitle"),className:"jsoneditor-append",click:function(){a._onAppend("","","auto")},submenu:r})),o=[{text:Object(y.c)("auto"),className:"jsoneditor-type-auto",title:Object(y.c)("autoType"),click:function(){a._onInsertBefore("","","auto")}},{text:Object(y.c)("array"),className:"jsoneditor-type-array",title:Object(y.c)("arrayType"),click:function(){a._onInsertBefore("",[])}},{text:Object(y.c)("object"),className:"jsoneditor-type-object",title:Object(y.c)("objectType"),click:function(){a._onInsertBefore("",{})}},{text:Object(y.c)("string"),className:"jsoneditor-type-string",title:Object(y.c)("stringType"),click:function(){a._onInsertBefore("","","string")}}],a.addTemplates(o,!1),l.push({text:Object(y.c)("insert"),title:Object(y.c)("insertTitle"),submenuTitle:Object(y.c)("insertSub"),className:"jsoneditor-insert",click:function(){a._onInsertBefore("","","auto")},submenu:o}),this.editable.field&&(l.push({text:Object(y.c)("duplicateText"),title:Object(y.c)("duplicateField"),className:"jsoneditor-duplicate",click:function(){t.onDuplicate(a)}}),l.push({text:Object(y.c)("removeText"),title:Object(y.c)("removeField"),className:"jsoneditor-remove",click:function(){t.onRemove(a)}}))),this.editor.options.onCreateMenu&&(s=a.getPath(),l=this.editor.options.onCreateMenu(l,{type:"single",path:s,paths:[s]})),new C.a(l,{close:i}).show(e,this.editor.getPopupAnchor())}},{key:"showSortModal",value:function(){var t=this,e=this.editor.options.modalAnchor||k.a,i=this.getValue();Object(_.showSortModal)(e,i,(function(e){var i=e.path,n=Object(v.parsePath)(i);t.sortedBy=e,t.sort(n,e.direction)}),t.sortedBy)}},{key:"showTransformModal",value:function(){var t=this,e=this.editor.options,i=e.modalAnchor,n=e.createQuery,r=e.executeQuery,o=e.queryDescription,s=this.getValue();Object(S.showTransformModal)({container:i||k.a,json:s,queryDescription:o,createQuery:n,executeQuery:r,onTransform:function(e){t.transform(e)}})}},{key:"_getType",value:function(t){return t instanceof Array?"array":t instanceof Object?"object":"string"==typeof t&&"string"!=typeof Object(v.parseString)(t)?"string":"auto"}},{key:"_escapeHTML",value:function(t){if("string"!=typeof t)return String(t);var e=String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ {2}/g," &nbsp;").replace(/^ /,"&nbsp;").replace(/ $/,"&nbsp;"),i=JSON.stringify(e),n=i.substring(1,i.length-1);return!0===this.editor.options.escapeUnicode&&(n=Object(v.escapeUnicodeChars)(n)),n}},{key:"_unescapeHTML",value:function(t){var e='"'+this._escapeJSON(t)+'"';return Object(v.parse)(e).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;|\u00A0/g," ").replace(/&amp;/g,"&")}},{key:"_escapeJSON",value:function(t){for(var e="",i=0;i<t.length;){var n=t.charAt(i);"\n"===n?e+="\\n":"\\"===n?(e+=n,i++,""!==(n=t.charAt(i))&&-1!=='"\\/bfnrtu'.indexOf(n)||(e+="\\"),e+=n):e+='"'===n?'\\"':n,i++}return e}},{key:"updateNodeName",value:function(){var t,e=this.childs?this.childs.length:0;if("object"===this.type||"array"===this.type){if(this.editor.options.onNodeName)try{t=this.editor.options.onNodeName({path:this.getPath(),size:e,type:this.type})}catch(t){console.error("Error in onNodeName callback: ",t)}this.dom.value.textContent="object"===this.type?"{"+(t||e)+"}":"["+(t||e)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){if(this.expanded&&(this.updateNodeName(),"undefined"!==this.childs))for(var t in this.childs)this.childs[t].recursivelyUpdateNodeName()}}])&&l(e.prototype,i),t}();E.prototype.DEBOUNCE_INTERVAL=150,E.prototype.MAX_SEARCH_RESULTS=999;var T=100;E.focusElement=void 0,E.select=function(t){setTimeout((function(){Object(v.selectContentEditable)(t)}),0)},E.onDragStart=function(t,e){if(!Array.isArray(t))return E.onDragStart([t],e);var i,n,r,o,s,a;0!==t.length&&(i=t[0],n=t[t.length-1],r=i.parent,o=E.getNodeFromTarget(e.target),s=i.editor,a=Object(v.getAbsoluteTop)(o.dom.tr)-Object(v.getAbsoluteTop)(i.dom.tr),s.mousemove||(s.mousemove=Object(v.addEventListener)(e.view,"mousemove",(function(e){E.onDrag(t,e)}))),s.mouseup||(s.mouseup=Object(v.addEventListener)(e.view,"mouseup",(function(e){E.onDragEnd(t,e)}))),s.highlighter.lock(),s.drag={oldCursor:document.body.style.cursor,oldSelection:s.getDomSelection(),oldPaths:t.map(h),oldParent:r,oldNextNode:r.childs[n.getIndex()+1]||r.append,oldParentPathRedo:r.getInternalPath(),oldIndexRedo:i.getIndex(),mouseX:e.pageX,offsetY:a,level:i.getLevel()},document.body.style.cursor="move",e.preventDefault())},E.onDrag=function(t,e){if(!Array.isArray(t))return E.onDrag([t],e);if(0!==t.length){var i,n,r,o,s,a,l,h=t[0].editor,c=e.pageY-h.drag.offsetY,u=e.pageX,d=!1,f=t[0],p=f.dom.tr,g=Object(v.getAbsoluteTop)(p),m=p.offsetHeight;if(c<g){for(x=p;x=x.previousSibling,_=E.getNodeFromTarget(x),o=x?Object(v.getAbsoluteTop)(x):0,x&&c<o;);_&&!_.parent&&(_=void 0),_||(x=(n=p.parentNode.firstChild)?n.nextSibling:void 0,(_=E.getNodeFromTarget(x))===f&&(_=void 0)),_&&_.isVisible()&&(o=(x=_.dom.tr)?Object(v.getAbsoluteTop)(x):0)+m<c&&(_=void 0),!_||!1!==h.options.limitDragging&&_.parent!==t[0].parent||(t.forEach((function(t){_.parent.moveBefore(t,_)})),d=!0)}else{var b,y,w=t[t.length-1];if(y=(b=w.expanded&&w.append?w.append.getDom():w.dom.tr)?b.nextSibling:void 0){for(s=Object(v.getAbsoluteTop)(y),i=y;r=E.getNodeFromTarget(i),i&&(a=i.nextSibling?Object(v.getAbsoluteTop)(i.nextSibling):0,l=i?a-s:0,r&&r.parent.childs.length===t.length&&r.parent.childs[t.length-1]===w&&(g+=27),i=i.nextSibling),i&&g+l<c;);if(r&&r.parent){for(var C=u-h.drag.mouseX,I=Math.round(C/24/2),A=h.drag.level+I,M=r.getLevel(),x=r.dom.tr&&r.dom.tr.previousSibling;M<A&&x;){var _=E.getNodeFromTarget(x);if(!t.some((function(t){return t===_||_.isDescendantOf(t)}))){if(!(_ instanceof R))break;var S=_.parent.childs;if(S.length===t.length&&S[t.length-1]===w)break;M=(r=E.getNodeFromTarget(x)).getLevel()}x=x.previousSibling}r instanceof R&&!r.isVisible()&&r.parent.showMore.isVisible()&&(r=r._nextNode()),r&&(!1===h.options.limitDragging||r.parent===t[0].parent)&&r.dom.tr&&r.dom.tr!==b.nextSibling&&(t.forEach((function(t){r.parent.moveBefore(t,r)})),d=!0)}}}d&&(h.drag.mouseX=u,h.drag.level=f.getLevel()),h.startAutoScroll(c),e.preventDefault()}},E.onDragEnd=function(t,e){if(!Array.isArray(t))return E.onDrag([t],e);var i,n,r,o,s,a,l,h,u,d;0!==t.length&&(i=t[0],n=i.editor,t[0]&&t[0].dom.menu.focus(),r=n.drag.oldParent.getInternalPath(),o=i.parent.getInternalPath(),s=n.drag.oldParent===i.parent,a=n.drag.oldNextNode.getIndex(),l=i.getIndex(),h=n.drag.oldParentPathRedo,u=n.drag.oldIndexRedo,d=s&&u<l?l+t.length:l,s&&u===l||n._onAction("moveNodes",{count:t.length,fieldNames:t.map(c),oldParentPath:r,newParentPath:o,oldIndex:a,newIndex:l,oldIndexRedo:u,newIndexRedo:d,oldParentPathRedo:h,newParentPathRedo:null,oldSelection:n.drag.oldSelection,newSelection:n.getDomSelection()}),document.body.style.cursor=n.drag.oldCursor,n.highlighter.unlock(),t.forEach((function(t){t.updateDom(),e.target!==t.dom.drag&&e.target!==t.dom.menu&&n.highlighter.unhighlight()})),delete n.drag,n.mousemove&&(Object(v.removeEventListener)(e.view,"mousemove",n.mousemove),delete n.mousemove),n.mouseup&&(Object(v.removeEventListener)(e.view,"mouseup",n.mouseup),delete n.mouseup),n.stopAutoScroll(),e.preventDefault())},E._findEnum=function(t){if(t.enum)return t.enum;var e=t.oneOf||t.anyOf||t.allOf;if(e){var i=e.filter((function(t){return t.enum}));if(0<i.length)return i[0].enum}return null},E._findSchema=function(t,e,i){for(var n=t,r=n,o=(o=t.oneOf||t.anyOf||t.allOf)||[t],s=0;s<o.length;s++){"$ref"in(n=o[s])&&"string"==typeof n.$ref&&(n=e[n.$ref])&&(r=E._findSchema(n,e,i));for(var a=0;a<i.length&&n;a++){var l=i.slice(a+1,i.length),h=i[a];if("string"!=typeof h||!n.patternProperties||n.properties&&h in n.properties)"string"==typeof h&&n.properties?h in n.properties?(n=n.properties[h])&&(r=E._findSchema(n,e,l)):r=null:"number"==typeof h&&n.items&&(n=n.items)&&(r=E._findSchema(n,e,l));else for(var c in n.patternProperties)h.match(c)&&(r.properties||r.patternProperties)&&(r=E._findSchema(n.patternProperties[c],e,l))}}return r===t&&0<i.length?null:r},E.onRemove=function(t){if(!Array.isArray(t))return E.onRemove([t]);var e,i,n,r,o,s,a;t&&0<t.length&&(i=(e=t[0]).parent,n=e.editor,r=e.getIndex(),n.highlighter.unhighlight(),o=n.getDomSelection(),E.blurNodes(t),s=n.getDomSelection(),a=t.map(h),t.forEach((function(t){t.parent._remove(t)})),n._onAction("removeNodes",{nodes:t,paths:a,parentPath:i.getInternalPath(),index:r,oldSelection:o,newSelection:s}))},E.onDuplicate=function(t){if(!Array.isArray(t))return E.onDuplicate([t]);var e,i,n,r,o,s,a;t&&0<t.length&&(e=t[t.length-1],i=e.parent,(n=e.editor).deselect(n.multiselection.nodes),r=n.getDomSelection(),o=e,s=t.map((function(t){var e,n=t.clone();return"object"===t.parent.type&&(e=t.parent.getFieldNames(),n.field=Object(v.findUniqueName)(t.field,e)),i.insertAfter(n,o),o=n})),1===t.length?"object"===s[0].parent.type?(s[0].dom.field.innerHTML=t[0]._escapeHTML(t[0].field),s[0].focus("field")):s[0].focus():n.select(s),a=n.getDomSelection(),n._onAction("duplicateNodes",{paths:t.map(h),clonePaths:s.map(h),afterPath:e.getInternalPath(),parentPath:i.getInternalPath(),oldSelection:r,newSelection:a}))},E.getNodeFromTarget=function(t){for(;t;){if(t.node)return t.node;t=t.parentNode}},E.targetIsColorPicker=function(t){var e=E.getNodeFromTarget(t);if(e)for(var i=t&&t.parentNode;i;){if(i===e.dom.color)return!0;i=i.parentNode}return!1},E.blurNodes=function(t){var e,i,n;Array.isArray(t)?(i=(e=t[0]).parent,n=e.getIndex(),i.childs[n+t.length]?i.childs[n+t.length].focus():i.childs[n-1]?i.childs[n-1].focus():i.focus()):E.blurNodes([t])};var R=((d.prototype=new E).getDom=function(){var t=this.dom;if(t.tr)return t.tr;this._updateEditability();var e,i,n=document.createElement("tr");n.className="jsoneditor-append",n.node=this,t.tr=n,"tree"===this.editor.options.mode&&(t.tdDrag=document.createElement("td"),e=document.createElement("td"),t.tdMenu=e,(i=document.createElement("button")).type="button",i.className="jsoneditor-button jsoneditor-contextmenu-button",i.title="Click to open the actions menu (Ctrl+M)",t.menu=i,e.appendChild(t.menu));var r=document.createElement("td"),o=document.createElement("div");return o.appendChild(document.createTextNode("("+Object(y.c)("empty")+")")),o.className="jsoneditor-readonly",r.appendChild(o),t.td=r,t.text=o,this.updateDom(),n},d.prototype.getPath=function(){return null},d.prototype.getIndex=function(){return null},d.prototype.updateDom=function(t){var e=this.dom,i=e.td;i&&(i.style.paddingLeft=24*this.getLevel()+26+"px");var n=e.text;n&&(n.firstChild.nodeValue="("+Object(y.c)("empty")+" "+this.parent.type+")");var r=e.tr;this.isVisible()?e.tr.firstChild||(e.tdDrag&&r.appendChild(e.tdDrag),e.tdMenu&&r.appendChild(e.tdMenu),r.appendChild(i)):e.tr.firstChild&&(e.tdDrag&&r.removeChild(e.tdDrag),e.tdMenu&&r.removeChild(e.tdMenu),r.removeChild(i))},d.prototype.isVisible=function(){return 0===this.parent.childs.length},d.prototype.showContextMenu=function(t,e){var i=this,n=[{text:Object(y.c)("auto"),className:"jsoneditor-type-auto",title:Object(y.c)("autoType"),click:function(){i._onAppend("","","auto")}},{text:Object(y.c)("array"),className:"jsoneditor-type-array",title:Object(y.c)("arrayType"),click:function(){i._onAppend("",[])}},{text:Object(y.c)("object"),className:"jsoneditor-type-object",title:Object(y.c)("objectType"),click:function(){i._onAppend("",{})}},{text:Object(y.c)("string"),className:"jsoneditor-type-string",title:Object(y.c)("stringType"),click:function(){i._onAppend("","","string")}}];i.addTemplates(n,!0);var r,o=[{text:Object(y.c)("appendText"),title:Object(y.c)("appendTitleAuto"),submenuTitle:Object(y.c)("appendSubmenuTitle"),className:"jsoneditor-insert",click:function(){i._onAppend("","","auto")},submenu:n}];this.editor.options.onCreateMenu&&(r=i.parent.getPath(),o=this.editor.options.onCreateMenu(o,{type:"append",path:r,paths:[r]})),new C.a(o,{close:e}).show(t,this.editor.getPopupAnchor())},d.prototype.onEvent=function(t){var e,i=t.type,n=t.target||t.srcElement,r=this.dom;n===r.menu&&("mouseover"===i?this.editor.highlighter.highlight(this.parent):"mouseout"===i&&this.editor.highlighter.unhighlight()),"click"===i&&n===r.menu&&((e=this.editor.highlighter).highlight(this.parent),e.lock(),Object(v.addClassName)(r.menu,"jsoneditor-selected"),this.showContextMenu(r.menu,(function(){Object(v.removeClassName)(r.menu,"jsoneditor-selected"),e.unlock(),e.unhighlight()}))),"keydown"===i&&this.onKeyDown(t)},d),O=((f.prototype=new E).getDom=function(){return this.dom.tr||(this._updateEditability(),this.dom.tr||(e=(t=this).parent,(i=document.createElement("a")).appendChild(document.createTextNode(Object(y.c)("showMore"))),i.href="#",i.onclick=function(i){return e.visibleChilds=Math.floor(e.visibleChilds/e.getMaxVisibleChilds()+1)*e.getMaxVisibleChilds(),t.updateDom(),e.showChilds(),i.preventDefault(),!1},(n=document.createElement("a")).appendChild(document.createTextNode(Object(y.c)("showAll"))),n.href="#",n.onclick=function(i){return e.visibleChilds=1/0,t.updateDom(),e.showChilds(),i.preventDefault(),!1},r=document.createElement("div"),o=document.createTextNode(this._getShowMoreText()),r.className="jsoneditor-show-more",r.appendChild(o),r.appendChild(i),r.appendChild(document.createTextNode(". ")),r.appendChild(n),r.appendChild(document.createTextNode(". ")),(s=document.createElement("td")).appendChild(r),a=document.createElement("tr"),"tree"===this.editor.options.mode&&(a.appendChild(document.createElement("td")),a.appendChild(document.createElement("td"))),a.appendChild(s),a.className="jsoneditor-show-more",this.dom.tr=a,this.dom.moreContents=r,this.dom.moreText=o),this.updateDom()),this.dom.tr;var t,e,i,n,r,o,s,a},f.prototype.updateDom=function(t){var e;this.isVisible()?(this.dom.tr.node=this.parent.childs[this.parent.visibleChilds],this.dom.tr.parentNode||(e=this.parent._getNextTr())&&e.parentNode.insertBefore(this.dom.tr,e),this.dom.moreText.nodeValue=this._getShowMoreText(),this.dom.moreContents.style.marginLeft=24*(this.getLevel()+1)+"px"):this.dom.tr&&this.dom.tr.parentNode&&this.dom.tr.parentNode.removeChild(this.dom.tr)},f.prototype._getShowMoreText=function(){return Object(y.c)("showMoreStatus",{visibleChilds:this.parent.visibleChilds,totalChilds:this.parent.childs.length})+" "},f.prototype.isVisible=function(){return this.parent.expanded&&this.parent.childs.length>this.parent.visibleChilds},f.prototype.onEvent=function(t){"keydown"===t.type&&this.onKeyDown(t)},f),j=i(8),N=i(9),L={start:function(t,e){return 0===e.indexOf(t)},contain:function(t,e){return-1<e.indexOf(t)}},B=i(4),D={create:function(t,e){if(!t)throw new Error("No container element provided.");this.container=t,this.dom={},this.highlighter=new m,this.selection=void 0,this.multiselection={nodes:[]},this.validateSchema=null,this.validationSequence=0,this.errorNodes=[],this.lastSchemaErrors=void 0,this.node=null,this.focusTarget=null,this._setOptions(e),e.autocomplete&&(this.autocomplete=function(t){function e(t){var e,i;document.createRange?((e=document.createRange()).selectNodeContents(t),e.collapse(!1),(i=window.getSelection()).removeAllRanges(),i.addRange(e)):document.selection&&((e=document.body.createTextRange()).moveToElementText(t),e.collapse(!1),e.select())}function i(t){return void 0===h&&((h=document.createElement("span")).style.visibility="hidden",h.style.position="fixed",h.style.outline="0",h.style.margin="0",h.style.padding="0",h.style.border="0",h.style.left="0",h.style.whiteSpace="pre",h.style.fontSize=s,h.style.fontFamily=a,h.style.fontWeight="normal",document.body.appendChild(h)),h.textContent=t,h.getBoundingClientRect().right}function n(){this.style.backgroundColor="#ddd"}function r(){this.style.backgroundColor=""}function o(){m.hide(),m.onmouseselection(this.__hint,m.rs)}(t=t||{}).filter=t.filter||"start",t.trigger=t.trigger||"keydown",t.confirmKeys=t.confirmKeys||[39,35,9],t.caseSensitive=t.caseSensitive||!1;var s="",a="",l=document.createElement("div");l.style.position="relative",l.style.outline="0",l.style.border="0",l.style.margin="0",l.style.padding="0";var h,c,u=document.createElement("div");u.className="autocomplete dropdown",u.style.position="absolute",u.style.visibility="hidden";var d,f,p,g,m,v={onArrowDown:function(){},onArrowUp:function(){},onEnter:function(){},onTab:function(){},startFrom:0,options:[],element:null,elementHint:null,elementStyle:null,wrapper:l,show:function(t,e,i){var n=this;this.startFrom=e,this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null),""===s&&(s=window.getComputedStyle(t).getPropertyValue("font-size")),""===a&&(a=window.getComputedStyle(t).getPropertyValue("font-family")),u.style.marginLeft="0",u.style.marginTop=t.getBoundingClientRect().height+"px",this.options=i.map(String),this.element!==t&&(this.element=t,this.elementStyle={zIndex:this.element.style.zIndex,position:this.element.style.position,backgroundColor:this.element.style.backgroundColor,borderColor:this.element.style.borderColor}),this.element.style.zIndex=3,this.element.style.position="relative",this.element.style.backgroundColor="transparent",this.element.style.borderColor="transparent",this.elementHint=t.cloneNode(),this.elementHint.className="autocomplete hint",this.elementHint.style.zIndex=2,this.elementHint.style.position="absolute",this.elementHint.onfocus=function(){n.element.focus()},this.element.addEventListener&&(this.element.removeEventListener("keydown",y),this.element.addEventListener("keydown",y,!1),this.element.removeEventListener("blur",w),this.element.addEventListener("blur",w,!1)),l.appendChild(this.elementHint),l.appendChild(u),t.parentElement.appendChild(l),this.repaint(t)},setText:function(t){this.element.innerText=t},getText:function(){return this.element.innerText},hideDropDown:function(){this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null,b.hide(),this.element.style.zIndex=this.elementStyle.zIndex,this.element.style.position=this.elementStyle.position,this.element.style.backgroundColor=this.elementStyle.backgroundColor,this.element.style.borderColor=this.elementStyle.borderColor)},repaint:function(e){var n=(n=e.innerText).replace("\n",""),r=this.options.length,o=n.substring(this.startFrom);c=n.substring(0,this.startFrom);for(var s=0;s<r;s++){var a=this.options[s];if(!t.caseSensitive&&0===a.toLowerCase().indexOf(o.toLowerCase())||t.caseSensitive&&0===a.indexOf(o)){this.elementHint.innerText=c+o+a.substring(o.length),this.elementHint.realInnerText=c+a;break}}u.style.left=i(c)+"px",b.refresh(o,this.options),this.elementHint.style.width=i(this.elementHint.innerText)+10+"px","hidden"===u.style.visibility||(this.elementHint.style.width=i(this.elementHint.innerText)+u.clientWidth+"px")}},b=(d=u,f=[],p=0,g=-1,m={rs:v,hide:function(){d.style.visibility="hidden"},refresh:function(e,i){d.style.visibility="hidden",p=0,d.textContent="";var s=window.innerHeight||document.documentElement.clientHeight,a=d.parentNode.getBoundingClientRect(),l=a.top-6,h=s-a.bottom-6;f=[];var c="function"==typeof t.filter?t.filter:L[t.filter],u=c?i.filter((function(i){return c(t.caseSensitive?e:e.toLowerCase(),t.caseSensitive?i:i.toLowerCase(),t)})):[];0!==(f=u.map((function(t){var i=document.createElement("div");i.className="item",i.onmouseover=n,i.onmouseout=r,i.onmousedown=o,i.__hint=t,i.textContent="",i.appendChild(document.createTextNode(t.substring(0,e.length)));var s=document.createElement("b");return s.appendChild(document.createTextNode(t.substring(e.length))),i.appendChild(s),d.appendChild(i),i}))).length&&(1===f.length&&(e.toLowerCase()===f[0].__hint.toLowerCase()&&!t.caseSensitive||e===f[0].__hint&&t.caseSensitive)||f.length<2||(m.highlight(0),3*h<l?(d.style.maxHeight=l+"px",d.style.top="",d.style.bottom="100%"):(d.style.top="100%",d.style.bottom="",d.style.maxHeight=h+"px"),d.style.visibility="visible"))},highlight:function(t){-1!==g&&f[g]&&(f[g].className="item"),f[t].className="item hover",g=t},move:function(t){return"hidden"===d.style.visibility?"":(p+t===-1||p+t===f.length||(p+=t,m.highlight(p)),f[p].__hint)},onmouseselection:function(){}}),y=function(i){var n=(i=i||window.event).keyCode;if(null!=this.elementHint&&33!==n&&34!==n){if(27===n)return v.hideDropDown(),v.element.focus(),i.preventDefault(),void i.stopPropagation();var r,o,s=(s=this.element.innerText).replace("\n","");if(0<=t.confirmKeys.indexOf(n))return 9===n&&0===this.elementHint.innerText.length&&v.onTab(),void(0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,v.hideDropDown(),e(this.element),9===n&&(v.element.focus(),i.preventDefault(),i.stopPropagation())));if(13!==n){if(40===n){var a=s.substring(this.startFrom),l=b.move(1);return""===l&&v.onArrowDown(),this.elementHint.innerText=c+a+l.substring(a.length),this.elementHint.realInnerText=c+l,i.preventDefault(),void i.stopPropagation()}38===n&&(r=s.substring(this.startFrom),""===(o=b.move(-1))&&v.onArrowUp(),this.elementHint.innerText=c+r+o.substring(r.length),this.elementHint.realInnerText=c+o,i.preventDefault(),i.stopPropagation())}else if(0===this.elementHint.innerText.length)v.onEnter();else{var h="hidden"===u.style.visibility;if(b.hide(),h)return v.hideDropDown(),v.element.focus(),void v.onEnter();this.element.innerText=this.elementHint.realInnerText,v.hideDropDown(),e(this.element),i.preventDefault(),i.stopPropagation()}}}.bind(v),w=function(){v.hideDropDown()};return b.onmouseselection=function(t,i){i.element.innerText=i.elementHint.innerText=c+t,i.hideDropDown(),window.setTimeout((function(){i.element.focus(),e(i.element)}),1)},v}(e.autocomplete)),this.options.history&&"view"!==this.options.mode&&(this.history=new b(this)),this._createFrame(),this._createTable()},destroy:function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},_setOptions:function(t){var e=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,limitDragging:!1,onSelectionChange:null,colorPicker:!0,onColorPicker:function(t,e,i){var n,r;g.a?(n=t.getBoundingClientRect().top,r=Object(v.getWindow)(t).innerHeight-n<300&&300<n,new g.a({parent:t,color:e,popup:r?"top":"bottom",onDone:function(t){var e=1===t.rgba[3]?t.hex.substr(0,7):t.hex;i(e)}}).show()):console.warn("Cannot open color picker: the `vanilla-picker` library is not included in the bundle. Either use the full bundle or implement your own color picker using `onColorPicker`.")},timestampTag:!0,timestampFormat:null,createQuery:B.a,executeQuery:B.b,onEvent:null,enableSort:!0,enableTransform:!0},t&&(Object.keys(t).forEach((function(i){e.options[i]=t[i]})),null==t.limitDragging&&null!=t.schema&&(this.options.limitDragging=!0)),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=Object(v.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),t.onSelectionChange&&this.onSelectionChange(t.onSelectionChange),Object(y.b)(this.options.languages),Object(y.a)(this.options.language)},set:function(t){var e,i;t instanceof Function||void 0===t?this.clear():(this.content.removeChild(this.table),e={field:this.options.name,value:t},i=new E(this,e),this._setRoot(i),this.validate(),this.node.expand(!1),this.content.appendChild(this.table)),this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},update:function(t){var e,i,n;this.node.deepEqual(t)||(e=this.getSelection(),this.onChangeDisabled=!0,this.node.update(t),this.onChangeDisabled=!1,this.validate(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),e&&e.start&&e.end?(i=this.node.findNodeByPath(e.start.path),n=this.node.findNodeByPath(e.end.path),i&&n?this.setSelection(e.start,e.end):this.setSelection({},{})):this.setSelection({},{}))},get:function(){return this.node?this.node.getValue():void 0},getText:function(){return JSON.stringify(this.get())},setText:function(t){try{this.set(Object(v.parse)(t))}catch(i){var e=Object(v.repair)(t);this.set(Object(v.parse)(e))}},updateText:function(t){try{this.update(Object(v.parse)(t))}catch(i){var e=Object(v.repair)(t);this.update(Object(v.parse)(e))}},setName:function(t){this.options.name=t,this.node&&this.node.updateField(this.options.name)},getName:function(){return this.options.name},focus:function(){var t=this.scrollableContent.querySelector("[contenteditable=true]");t?t.focus():this.node.dom.expand?this.node.dom.expand.focus():this.node.dom.menu?this.node.dom.menu.focus():(t=this.frame.querySelector("button"))&&t.focus()},clear:function(){this.node&&(this.node.hide(),delete this.node),this.treePath&&this.treePath.reset()},_setRoot:function(t){this.clear(),(this.node=t).setParent(null),t.setField(this.getName(),!1),delete t.index,this.tbody.appendChild(t.getDom())},search:function(t){var e;return this.node?(this.content.removeChild(this.table),e=this.node.search(t),this.content.appendChild(this.table)):e=[],e},expandAll:function(){this.node&&(this.content.removeChild(this.table),this.node.expand(),this.content.appendChild(this.table))},collapseAll:function(){this.node&&(this.content.removeChild(this.table),this.node.collapse(),this.content.appendChild(this.table))},_onAction:function(t,e){this.history&&this.history.add(t,e),this._onChange()},_onChange:function(){if(!this.onChangeDisabled){var t;if(this.selection=this.getDomSelection(),this._debouncedValidate(),this.treePath&&((t=this.node&&this.selection?this.node.findNodeByInternalPath(this.selection.path):this.multiselection?this.multiselection.nodes[0]:void 0)?this._updateTreePath(t.getNodePath()):this.treePath.reset()),this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(t){console.error("Error in onChangeJSON callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}if(this.options.onClassName&&this.node.recursivelyUpdateCssClassesOnNodes(),this.options.onNodeName&&this.node.childs)try{this.node.recursivelyUpdateNodeName()}catch(t){console.error("Error in onNodeName callback: ",t)}}},validate:function(){var t=this,e=this.node;if(e){var i=e.getValue(),n=[];this.validateSchema&&(this.validateSchema(i)||(n=this.validateSchema.errors.map((function(t){return Object(v.improveSchemaError)(t)})).map((function(t){return{node:e.findNode(t.dataPath),error:t,type:"validation"}})).filter((function(t){return null!=t.node}))));try{this.validationSequence++;var r=this,o=this.validationSequence;this._validateCustom(i).then((function(e){var i;o===r.validationSequence&&(i=[].concat(n,e||[]),r._renderValidationErrors(i),"function"==typeof t.options.onValidationError&&(Object(v.isValidationErrorChanged)(i,t.lastSchemaErrors)&&t.options.onValidationError.call(t,i),t.lastSchemaErrors=i))})).catch((function(t){console.error(t)}))}catch(i){console.error(i)}}},_renderValidationErrors:function(t){this.errorNodes&&this.errorNodes.forEach((function(t){t.setError(null)}));var e=t.reduce((function(t,e){return e.node.findParents().filter((function(e){return!t.some((function(t){return t[0]===e}))})).map((function(t){return[t,e.node]})).concat(t)}),[]);this.errorNodes=e.map((function(t){return{node:t[0],child:t[1],error:{message:"object"===t[0].type?Object(y.c)("containsInvalidProperties"):Object(y.c)("containsInvalidItems")}}})).concat(t).map((function(t){return t.node.setError(t.error,t.child),t.node}))},_validateCustom:function(t){try{if(this.options.onValidate){var e=this.node,i=this.options.onValidate(t);return(Object(v.isPromise)(i)?i:Promise.resolve(i)).then((function(t){return Array.isArray(t)?t.filter((function(t){var e=Object(v.isValidValidationError)(t);return e||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',t),e})).map((function(t){var i;try{i=t&&t.path?e.findNodeByPath(t.path):null}catch(t){}return i||console.warn("Ignoring validation error: node not found. Path:",t.path,"Error:",t),{node:i,error:t,type:"customValidation"}})).filter((function(t){return t&&t.node&&t.error&&t.error.message})):null}))}}catch(t){return Promise.reject(t)}return Promise.resolve(null)},refresh:function(){this.node&&this.node.updateDom({recurse:!0})},startAutoScroll:function(t){var e=this,i=this.scrollableContent,n=Object(v.getAbsoluteTop)(i),r=i.clientHeight,o=n+r;t<n+24&&0<i.scrollTop?this.autoScrollStep=(n+24-t)/3:o-24<t&&r+i.scrollTop<i.scrollHeight?this.autoScrollStep=(o-24-t)/3:this.autoScrollStep=void 0,this.autoScrollStep?this.autoScrollTimer||(this.autoScrollTimer=setInterval((function(){e.autoScrollStep?i.scrollTop-=e.autoScrollStep:e.stopAutoScroll()}),50)):this.stopAutoScroll()},stopAutoScroll:function(){this.autoScrollTimer&&(clearTimeout(this.autoScrollTimer),delete this.autoScrollTimer),this.autoScrollStep&&delete this.autoScrollStep},setDomSelection:function(t){var e,i,n,r,o;t&&("scrollTop"in t&&this.scrollableContent&&(this.scrollableContent.scrollTop=t.scrollTop),t.paths?(e=this,i=t.paths.map((function(t){return e.node.findNodeByInternalPath(t)})),this.select(i)):(r=(n=t.path?this.node.findNodeByInternalPath(t.path):null)&&t.domName?n.dom[t.domName]:null,t.range&&r?(o=Object.assign({},t.range,{container:r}),Object(v.setSelectionOffset)(o)):n&&n.focus()))},getDomSelection:function(){var t=E.getNodeFromTarget(this.focusTarget),e=this.focusTarget,i=t?Object.keys(t.dom).find((function(i){return t.dom[i]===e})):null,n=Object(v.getSelectionOffset)();return n&&"DIV"!==n.container.nodeName&&(n=null),n&&n.container!==e&&(n=null),n&&delete n.container,{path:t?t.getInternalPath():null,domName:i,range:n,paths:0<this.multiselection.length?this.multiselection.nodes.map((function(t){return t.getInternalPath()})):null,scrollTop:this.scrollableContent?this.scrollableContent.scrollTop:0}},scrollTo:function(t,e){var i,n,r,o,s=this.scrollableContent;s?((i=this).animateTimeout&&(clearTimeout(i.animateTimeout),delete i.animateTimeout),i.animateCallback&&(i.animateCallback(!1),delete i.animateCallback),n=s.clientHeight,r=s.scrollHeight-n,o=Math.min(Math.max(t-n/4,0),r),function t(){var n=s.scrollTop,r=o-n;3<Math.abs(r)?(s.scrollTop+=r/3,i.animateCallback=e,i.animateTimeout=setTimeout(t,50)):(e&&e(!0),s.scrollTop=o,delete i.animateTimeout,delete i.animateCallback)}()):e&&e(!1)},_createFrame:function(){function t(t){l._onEvent&&l._onEvent(t)}this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.container.appendChild(this.frame),this.contentOuter=document.createElement("div"),this.contentOuter.className="jsoneditor-outer";var e,i,n,r,o,s,a,l=this,h={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new N.a(h),this.frame.onclick=function(e){var i=e.target;t(e),"BUTTON"===i.nodeName&&e.preventDefault()},this.frame.oninput=t,this.frame.onchange=t,this.frame.onkeydown=t,this.frame.onkeyup=t,this.frame.oncut=t,this.frame.onpaste=t,this.frame.onmousedown=t,this.frame.onmouseup=t,this.frame.onmouseover=t,this.frame.onmouseout=t,Object(v.addEventListener)(this.frame,"focus",t,!0),Object(v.addEventListener)(this.frame,"blur",t,!0),this.frame.onfocusin=t,this.frame.onfocusout=t,this.options.mainMenuBar&&(Object(v.addClassName)(this.contentOuter,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(e=document.createElement("button")).type="button",e.className="jsoneditor-expand-all",e.title=Object(y.c)("expandAll"),e.onclick=function(){l.expandAll()},this.menu.appendChild(e),(i=document.createElement("button")).type="button",i.title=Object(y.c)("collapseAll"),i.className="jsoneditor-collapse-all",i.onclick=function(){l.collapseAll()},this.menu.appendChild(i),this.options.enableSort&&((n=document.createElement("button")).type="button",n.className="jsoneditor-sort",n.title=Object(y.c)("sortTitleShort"),n.onclick=function(){l.node.showSortModal()},this.menu.appendChild(n)),this.options.enableTransform&&((r=document.createElement("button")).type="button",r.title=Object(y.c)("transformTitleShort"),r.className="jsoneditor-transform",r.onclick=function(){l.node.showTransformModal()},this.menu.appendChild(r)),this.history&&((o=document.createElement("button")).type="button",o.className="jsoneditor-undo jsoneditor-separator",o.title=Object(y.c)("undo"),o.onclick=function(){l._onUndo()},this.menu.appendChild(o),this.dom.undo=o,(s=document.createElement("button")).type="button",s.className="jsoneditor-redo",s.title=Object(y.c)("redo"),s.onclick=function(){l._onRedo()},this.menu.appendChild(s),this.dom.redo=s,this.history.onChange=function(){o.disabled=!l.history.canUndo(),s.disabled=!l.history.canRedo()},this.history.onChange()),this.options&&this.options.modes&&this.options.modes.length&&((a=this).modeSwitcher=new j.a(this.menu,this.options.modes,this.options.mode,(function(t){a.setMode(t),a.modeSwitcher.focus()}))),this.options.search&&(this.searchBox=new w(this,this.menu))),this.options.navigationBar&&(this.navBar=document.createElement("div"),this.navBar.className="jsoneditor-navigation-bar nav-bar-empty",this.frame.appendChild(this.navBar),this.treePath=new I(this.navBar,this.getPopupAnchor()),this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)),this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)))},_onUndo:function(){this.history&&(this.history.undo(),this._onChange())},_onRedo:function(){this.history&&(this.history.redo(),this._onChange())},_onEvent:function(t){if(!E.targetIsColorPicker(t.target)){var e,i=E.getNodeFromTarget(t.target);if("keydown"===t.type&&this._onKeyDown(t),i&&"focus"===t.type&&(this.focusTarget=t.target,this.options.autocomplete&&"focus"===this.options.autocomplete.trigger&&this._showAutoComplete(t.target)),"mousedown"===t.type&&this._startDragDistance(t),"mousemove"!==t.type&&"mouseup"!==t.type&&"click"!==t.type||this._updateDragDistance(t),i&&this.options&&this.options.navigationBar&&i&&("keydown"===t.type||"mousedown"===t.type)&&(e=this,setTimeout((function(){e._updateTreePath(i.getNodePath())}))),i&&i.selected){if("click"===t.type){if(t.target===i.dom.menu)return void this.showContextMenu(t.target);t.hasMoved||this.deselect()}"mousedown"===t.type&&E.onDragStart(this.multiselection.nodes,t)}else"mousedown"===t.type&&Object(v.hasParentNode)(t.target,this.content)&&(this.deselect(),i&&t.target===i.dom.drag?E.onDragStart(i,t):i&&(t.target===i.dom.field||t.target===i.dom.value||t.target===i.dom.select)||this._onMultiSelectStart(t));i&&i.onEvent(t)}},_updateTreePath:function(t){function e(t){return t.parent?"array"===t.parent.type?t.index:t.field:t.field||t.type}var i;t&&t.length?(Object(v.removeClassName)(this.navBar,"nav-bar-empty"),i=[],t.forEach((function(t){var n={name:e(t),node:t,children:[]};t.childs&&t.childs.length&&t.childs.forEach((function(t){n.children.push({name:e(t),node:t})})),i.push(n)})),this.treePath.setPath(i)):Object(v.addClassName)(this.navBar,"nav-bar-empty")},_onTreePathSectionSelected:function(t){t&&t.node&&(t.node.expandTo(),t.node.focus())},_onTreePathMenuItemSelected:function(t,e){var i;t&&t.children.length&&(i=t.children.find((function(t){return t.name===e})))&&i.node&&(this._updateTreePath(i.node.getNodePath()),i.node.expandTo(),i.node.focus())},_startDragDistance:function(t){this.dragDistanceEvent={initialTarget:t.target,initialPageX:t.pageX,initialPageY:t.pageY,dragDistance:0,hasMoved:!1}},_updateDragDistance:function(t){this.dragDistanceEvent||this._startDragDistance(t);var e=t.pageX-this.dragDistanceEvent.initialPageX,i=t.pageY-this.dragDistanceEvent.initialPageY;return this.dragDistanceEvent.dragDistance=Math.sqrt(e*e+i*i),this.dragDistanceEvent.hasMoved=this.dragDistanceEvent.hasMoved||10<this.dragDistanceEvent.dragDistance,t.dragDistance=this.dragDistanceEvent.dragDistance,t.hasMoved=this.dragDistanceEvent.hasMoved,t.dragDistance},_onMultiSelectStart:function(t){var e,i=E.getNodeFromTarget(t.target);"tree"===this.options.mode&&void 0===this.options.onEditable&&(this.multiselection={start:i||null,end:null,nodes:[]},this._startDragDistance(t),(e=this).mousemove||(this.mousemove=Object(v.addEventListener)(t.view,"mousemove",(function(t){e._onMultiSelect(t)}))),this.mouseup||(this.mouseup=Object(v.addEventListener)(t.view,"mouseup",(function(t){e._onMultiSelectEnd(t)}))),t.preventDefault())},_onMultiSelect:function(t){var e,i,n,r;t.preventDefault(),this._updateDragDistance(t),t.hasMoved&&((e=E.getNodeFromTarget(t.target))&&(null==this.multiselection.start&&(this.multiselection.start=e),this.multiselection.end=e),this.deselect(),i=this.multiselection.start,n=this.multiselection.end||this.multiselection.start,i&&n&&(this.multiselection.nodes=this._findTopLevelNodes(i,n),this.multiselection.nodes&&this.multiselection.nodes.length&&(r=this.multiselection.nodes[0],this.multiselection.start===r||this.multiselection.start.isDescendantOf(r)?this.multiselection.direction="down":this.multiselection.direction="up"),this.select(this.multiselection.nodes)))},_onMultiSelectEnd:function(t){this.multiselection.nodes[0]&&this.multiselection.nodes[0].dom.menu.focus(),this.multiselection.start=null,this.multiselection.end=null,this.mousemove&&(Object(v.removeEventListener)(t.view,"mousemove",this.mousemove),delete this.mousemove),this.mouseup&&(Object(v.removeEventListener)(t.view,"mouseup",this.mouseup),delete this.mouseup)},deselect:function(t){var e=!!this.multiselection.nodes.length;this.multiselection.nodes.forEach((function(t){t.setSelected(!1)})),this.multiselection.nodes=[],t&&(this.multiselection.start=null,this.multiselection.end=null),e&&this._selectionChangedHandler&&this._selectionChangedHandler()},select:function(t){if(!Array.isArray(t))return this.select([t]);var e,i;t&&(this.deselect(),this.multiselection.nodes=t.slice(0),e=t[0],t.forEach((function(t){t.expandPathToNode(),t.setSelected(!0,t===e)})),this._selectionChangedHandler&&(i=this.getSelection(),this._selectionChangedHandler(i.start,i.end)))},_findTopLevelNodes:function(t,e){for(var i=t.getNodePath(),n=e.getNodePath(),r=0;r<i.length&&i[r]===n[r];)r++;var o=i[r-1],s=i[r],a=n[r];if(s&&a||(o.parent?o=(a=s=o).parent:(s=o.childs[0],a=o.childs[o.childs.length-1])),o&&s&&a){var l=o.childs.indexOf(s),h=o.childs.indexOf(a),c=Math.min(l,h),u=Math.max(l,h);return o.childs.slice(c,u+1)}return[]},_showAutoComplete:function(t){var e,i=E.getNodeFromTarget(t),n="";0<=t.className.indexOf("jsoneditor-value")&&(n="value"),0<=t.className.indexOf("jsoneditor-field")&&(n="field"),""!==n&&(e=this,setTimeout((function(){var r;i&&("focus"===e.options.autocomplete.trigger||0<t.innerText.length)&&null!==(r=e.options.autocomplete.getOptions(t.innerText,i.getPath(),n,i.editor))?"function"==typeof r.then?r.then((function(i){null===i?e.autocomplete.hideDropDown():i.options?e.autocomplete.show(t,i.startFrom,i.options):e.autocomplete.show(t,0,i)})).catch((function(t){console.error(t)})):r.options?e.autocomplete.show(t,r.startFrom,r.options):e.autocomplete.show(t,0,r):e.autocomplete.hideDropDown()}),50))},_onKeyDown:function(t){var e,i=t.which||t.keyCode,n=t.altKey,r=t.ctrlKey,o=t.metaKey,s=t.shiftKey,a=!1,l=this.focusTarget;9===i&&(e=this,setTimeout((function(){e.focusTarget!==l&&Object(v.selectContentEditable)(e.focusTarget)}),0)),this.searchBox&&(r&&70===i?(this.searchBox.dom.search.focus(),this.searchBox.dom.search.select(),a=!0):(114===i||r&&71===i)&&(s?this.searchBox.previous(!0):this.searchBox.next(!0),a=!0)),this.history&&(r&&!s&&90===i?(this._onUndo(),a=!0):r&&s&&90===i&&(this._onRedo(),a=!0)),this.options.autocomplete&&!a&&(r||n||o||1!==t.key.length&&8!==i&&46!==i||(a=!1,this._showAutoComplete(t.target))),a&&(t.preventDefault(),t.stopPropagation())},_createTable:function(){var t;this.options.navigationBar&&Object(v.addClassName)(this.contentOuter,"has-nav-bar"),this.scrollableContent=document.createElement("div"),this.scrollableContent.className="jsoneditor-tree",this.contentOuter.appendChild(this.scrollableContent),this.content=document.createElement("div"),this.content.className="jsoneditor-tree-inner",this.scrollableContent.appendChild(this.content),this.table=document.createElement("table"),this.table.className="jsoneditor-tree",this.content.appendChild(this.table),this.colgroupContent=document.createElement("colgroup"),"tree"===this.options.mode&&((t=document.createElement("col")).width="24px",this.colgroupContent.appendChild(t)),(t=document.createElement("col")).width="24px",this.colgroupContent.appendChild(t),t=document.createElement("col"),this.colgroupContent.appendChild(t),this.table.appendChild(this.colgroupContent),this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.frame.appendChild(this.contentOuter)},showContextMenu:function(t,e){var i,n=[],r=this.multiselection.nodes.slice();n.push({text:Object(y.c)("duplicateText"),title:Object(y.c)("duplicateTitle"),className:"jsoneditor-duplicate",click:function(){E.onDuplicate(r)}}),n.push({text:Object(y.c)("remove"),title:Object(y.c)("removeTitle"),className:"jsoneditor-remove",click:function(){E.onRemove(r)}}),this.options.onCreateMenu&&(i=r.map((function(t){return t.getPath()})),n=this.options.onCreateMenu(n,{type:"multiple",path:i[0],paths:i})),new C.a(n,{close:e}).show(t,this.getPopupAnchor())},getPopupAnchor:function(){return this.options.popupAnchor||this.frame},getSelection:function(){var t,e,i={start:null,end:null};return this.multiselection.nodes&&this.multiselection.nodes.length&&this.multiselection.nodes.length&&(t=this.multiselection.nodes[0],e=this.multiselection.nodes[this.multiselection.nodes.length-1],"down"===this.multiselection.direction?(i.start=t.serialize(),i.end=e.serialize()):(i.start=e.serialize(),i.end=t.serialize())),i},onSelectionChange:function(t){"function"==typeof t&&(this._selectionChangedHandler=Object(v.debounce)(t,this.DEBOUNCE_INTERVAL))},setSelection:function(t,e){t&&t.dom&&t.range&&(console.warn("setSelection/getSelection usage for text selection is deprecated and should not be used, see documentation for supported selection options"),this.setDomSelection(t));var i=this._getNodeInstancesByRange(t,e);i.forEach((function(t){t.expandTo()})),this.select(i)},_getNodeInstancesByRange:function(t,e){var i,n;t&&t.path&&(i=this.node.findNodeByPath(t.path),e&&e.path&&(n=this.node.findNodeByPath(e.path)));var r=[];if(i instanceof E)if(n instanceof E&&n!==i)if(i.parent===n.parent){e=i.getIndex()<n.getIndex()?(t=i,n):(t=n,i);var o=t;for(r.push(o);o=o.nextSibling(),r.push(o),o&&o!==e;);}else r=this._findTopLevelNodes(i,n);else r.push(i);return r},getNodesByRange:function(t,e){var i=this._getNodeInstancesByRange(t,e),n=[];return i.forEach((function(t){n.push(t.serialize())})),n}},Z=[{mode:"tree",mixin:D,data:"json"},{mode:"view",mixin:D,data:"json"},{mode:"form",mixin:D,data:"json"}]},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.r(e),i.d(e,"previewModeMixins",(function(){return v}));var r=i(1),o=i(8),s=i(15),a=i(5),l=i(6),h=i(21),c=i(2),u=i(9),d=i(0),f=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onChange=e,this.calculateItemSize=i||function(){return 1},this.limit=n,this.items=[],this.index=-1}var e,i;return e=t,(i=[{key:"add",value:function(t){for(;this._calculateHistorySize()>this.limit&&1<this.items.length;)this.items.shift(),this.index--;this.items=this.items.slice(0,this.index+1),this.items.push(t),this.index++,this.onChange()}},{key:"_calculateHistorySize",value:function(){var t=this.calculateItemSize,e=0;return this.items.forEach((function(i){e+=t(i)})),e}},{key:"undo",value:function(){if(this.canUndo())return this.index--,this.onChange(),this.items[this.index]}},{key:"redo",value:function(){if(this.canRedo())return this.index++,this.onChange(),this.items[this.index]}},{key:"canUndo",value:function(){return 0<this.index}},{key:"canRedo",value:function(){return this.index<this.items.length-1}},{key:"clear",value:function(){this.items=[],this.index=-1,this.onChange()}}])&&n(e.prototype,i),t}(),p=i(4),g=h.textModeMixins[0].mixin,m={create:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};void 0===e.statusBar&&(e.statusBar=!0),e.mainMenuBar=!1!==e.mainMenuBar,e.enableSort=!1!==e.enableSort,e.enableTransform=!1!==e.enableTransform,e.createQuery=e.createQuery||p.a,e.executeQuery=e.executeQuery||p.b,"number"==typeof(this.options=e).indentation?this.indentation=Number(e.indentation):this.indentation=2,Object(r.b)(this.options.languages),Object(r.a)(this.options.language),this.mode="preview";var i=this;this.container=t,this.dom={},this.json=void 0,this.text="",this._debouncedValidate=Object(d.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=t.clientWidth,this.height=t.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-preview",this.frame.onclick=function(t){t.preventDefault()};var n,a,l,h,g,m,v,b,y={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new u.a(y),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.dom.busy=document.createElement("div"),this.dom.busy.className="jsoneditor-busy",this.dom.busyContent=document.createElement("span"),this.dom.busyContent.textContent="busy...",this.dom.busy.appendChild(this.dom.busyContent),this.content.appendChild(this.dom.busy),this.dom.previewContent=document.createElement("pre"),this.dom.previewContent.className="jsoneditor-preview",this.dom.previewText=document.createTextNode(""),this.dom.previewContent.appendChild(this.dom.previewText),this.content.appendChild(this.dom.previewContent),this.options.mainMenuBar&&(Object(d.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(n=document.createElement("button")).type="button",n.className="jsoneditor-format",n.title=Object(r.c)("formatTitle"),this.menu.appendChild(n),n.onclick=function(){i.executeWithBusyMessage((function(){try{i.format()}catch(t){i._onError(t)}}),"formatting...")},(a=document.createElement("button")).type="button",a.className="jsoneditor-compact",a.title=Object(r.c)("compactTitle"),this.menu.appendChild(a),a.onclick=function(){i.executeWithBusyMessage((function(){try{i.compact()}catch(t){i._onError(t)}}),"compacting...")},this.options.enableSort&&((l=document.createElement("button")).type="button",l.className="jsoneditor-sort",l.title=Object(r.c)("sortTitleShort"),l.onclick=function(){i._showSortModal()},this.menu.appendChild(l)),this.options.enableTransform&&((h=document.createElement("button")).type="button",h.title=Object(r.c)("transformTitleShort"),h.className="jsoneditor-transform",h.onclick=function(){i._showTransformModal()},this.dom.transform=h,this.menu.appendChild(h)),(g=document.createElement("button")).type="button",g.className="jsoneditor-repair",g.title=Object(r.c)("repairTitle"),this.menu.appendChild(g),!(g.onclick=function(){void 0===i.json&&i.executeWithBusyMessage((function(){try{i.repair()}catch(t){i._onError(t)}}),"repairing...")})!==this.options.history&&(this.history=new f((function(){i.dom.undo.disabled=!i.history.canUndo(),i.dom.redo.disabled=!i.history.canRedo()}),(function(t){return 2*t.text.length}),c.c),(m=document.createElement("button")).type="button",m.className="jsoneditor-undo jsoneditor-separator",m.title=Object(r.c)("undo"),m.onclick=function(){var t=i.history.undo();t&&i._applyHistory(t)},this.menu.appendChild(m),this.dom.undo=m,(v=document.createElement("button")).type="button",v.className="jsoneditor-redo",v.title=Object(r.c)("redo"),v.onclick=function(){var t=i.history.redo();t&&i._applyHistory(t)},this.menu.appendChild(v),this.dom.redo=v,this.history.onChange()),this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new o.a(this.menu,this.options.modes,this.options.mode,(function(t){i.setMode(t),i.modeSwitcher.focus()})))),this.errorTable=new s.a({errorTableVisible:!0,onToggleVisibility:function(){i.validate()},onFocusLine:null,onChangeHeight:function(t){var e=t+(i.dom.statusBar?i.dom.statusBar.clientHeight:0)+1;i.content.style.marginBottom=-e+"px",i.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.content),this.frame.appendChild(this.errorTable.getErrorTable()),this.container.appendChild(this.frame),e.statusBar&&(Object(d.addClassName)(this.content,"has-status-bar"),b=document.createElement("div"),(this.dom.statusBar=b).className="jsoneditor-statusbar",this.frame.appendChild(b),this.dom.fileSizeInfo=document.createElement("span"),this.dom.fileSizeInfo.className="jsoneditor-size-info",this.dom.fileSizeInfo.innerText="",b.appendChild(this.dom.fileSizeInfo),this.dom.arrayInfo=document.createElement("span"),this.dom.arrayInfo.className="jsoneditor-size-info",this.dom.arrayInfo.innerText="",b.appendChild(this.dom.arrayInfo),b.appendChild(this.errorTable.getErrorCounter()),b.appendChild(this.errorTable.getWarningIcon()),b.appendChild(this.errorTable.getErrorIcon())),this._renderPreview(),this.setSchema(this.options.schema,this.options.schemaRefs)},_renderPreview:function(){var t=this.getText();this.dom.previewText.nodeValue=Object(d.limitCharacters)(t,c.b),this.dom.fileSizeInfo&&(this.dom.fileSizeInfo.innerText="Size: "+Object(d.formatSize)(t.length)),this.dom.arrayInfo&&(Array.isArray(this.json)?this.dom.arrayInfo.innerText="Array: "+this.json.length+" items":this.dom.arrayInfo.innerText="")},_onChange:function(){if(this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(t){console.error("Error in onChangeJSON callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}},_showSortModal:function(){var t=this;this.executeWithBusyMessage((function(){var e=t.options.modalAnchor||c.a,i=t.get();t._renderPreview(),Object(a.showSortModal)(e,i,(function(e){t.executeWithBusyMessage((function(){var n,r,o,s;n=i,r=e,Array.isArray(n)&&(o=Object(d.sort)(n,r.path,r.direction),t.sortedBy=r,t._setAndFireOnChange(o)),Object(d.isObject)(n)&&(s=Object(d.sortObjectKeys)(n,r.direction),t.sortedBy=r,t._setAndFireOnChange(s))}),"sorting...")}),t.sortedBy)}),"parsing...")},_showTransformModal:function(){var t=this;this.executeWithBusyMessage((function(){var e=t.options,i=e.createQuery,n=e.executeQuery,r=e.modalAnchor,o=e.queryDescription,s=t.get();t._renderPreview(),Object(l.showTransformModal)({container:r||c.a,json:s,queryDescription:o,createQuery:i,executeQuery:n,onTransform:function(e){t.executeWithBusyMessage((function(){var i=n(s,e);t._setAndFireOnChange(i)}),"transforming...")}})}),"parsing...")},destroy:function(){this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this._debouncedValidate=null,this.history&&(this.history.clear(),this.history=null),this.frameFocusTracker.destroy()},compact:function(){var t=this.get(),e=JSON.stringify(t);this._setTextAndFireOnChange(e,t)},format:function(){var t=this.get(),e=JSON.stringify(t,null,this.indentation);this._setTextAndFireOnChange(e,t)},repair:function(){var t=this.getText(),e=Object(d.repair)(t);this._setTextAndFireOnChange(e)},focus:function(){this.dom.transform.focus()},set:function(t){this.history&&this.history.clear(),this._set(t)},update:function(t){this._set(t)},_set:function(t){this.text=void 0,this.json=t,this._renderPreview(),this._pushHistory(),this._debouncedValidate()},_setAndFireOnChange:function(t){this._set(t),this._onChange()},get:function(){var t;return void 0===this.json&&(t=this.getText(),this.json=Object(d.parse)(t)),this.json},getText:function(){return void 0===this.text&&(this.text=JSON.stringify(this.json,null,this.indentation),!0===this.options.escapeUnicode&&(this.text=Object(d.escapeUnicodeChars)(this.text))),this.text},setText:function(t){this.history&&this.history.clear(),this._setText(t)},updateText:function(t){this.getText()!==t&&this._setText(t)},_setText:function(t,e){var i;!0===this.options.escapeUnicode?this.text=Object(d.escapeUnicodeChars)(t):this.text=t,this.json=e,this._renderPreview(),void 0===this.json?(i=this).executeWithBusyMessage((function(){try{i.json=i.get(),i._renderPreview(),i._pushHistory()}catch(t){}}),"parsing..."):this._pushHistory(),this._debouncedValidate()},_setTextAndFireOnChange:function(t,e){this._setText(t,e),this._onChange()},_applyHistory:function(t){this.json=t.json,this.text=t.text,this._renderPreview(),this._debouncedValidate()},_pushHistory:function(){var t;this.history&&(t={text:this.text,json:this.json},this.history.add(t))},executeWithBusyMessage:function(t,e){var i;this.getText().length>c.d?(i=this,Object(d.addClassName)(i.frame,"busy"),i.dom.busyContent.innerText=e,setTimeout((function(){t(),Object(d.removeClassName)(i.frame,"busy"),i.dom.busyContent.innerText=""}),100)):t()}};m.validate=g.validate,m._renderErrors=g._renderErrors;var v=[{mode:"preview",mixin:m,data:"json"}]}],t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(n,r,function(t){return e[t]}.bind(null,r));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=36);var e,i}))},function(t,e,i){var n=i(14);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),i(3)("62bece8f",n,!0,{})},function(t,e,i){var n=i(1);e=t.exports=i(2)(!1),e.push([t.i,".jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=search],.jsoneditor-modal input[type=text],.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=search],.jsoneditor input[type=text]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=search]:focus,.jsoneditor-modal input[type=text]:focus,.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=search]:focus,.jsoneditor input[type=text]:focus{border:inherit;box-shadow:inherit}.jsoneditor-modal textarea,.jsoneditor textarea{height:inherit}.jsoneditor-modal select,.jsoneditor select{display:inherit;height:inherit}.jsoneditor-modal label,.jsoneditor label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor-modal table,.jsoneditor table{border-collapse:collapse;width:auto}.jsoneditor-modal td,.jsoneditor-modal th,.jsoneditor td,.jsoneditor th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#fff;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt}.jsoneditor .autocomplete.dropdown .item{color:#333}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ddd}.jsoneditor .autocomplete.hint{color:#aaa;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:2}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#fff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 4px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:0 0;font-size:10pt;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px hsla(0,0%,50%,.5);padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background:url("+n(i(0))+") 0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url("+n(i(0))+')}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu li,.jsoneditor-contextmenu ul{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:focus,.jsoneditor-contextmenu .jsoneditor-menu button:hover{color:#1a1a1a;background-color:#f5f5f5;outline:0}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:0 0!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:grey}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:10pt;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table td,.jsoneditor-modal table th{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal select,.jsoneditor-modal textarea{background:#fff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal,.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal option,.jsoneditor-modal select,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal textarea{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal input,.jsoneditor-modal select{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-default,div.jsoneditor-field,div.jsoneditor-readonly,div.jsoneditor-value{border:1px solid transparent;min-height:16px;min-width:32px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-color-value,div.jsoneditor-value.jsoneditor-invalid{color:#1a1a1a}div.jsoneditor-readonly{min-width:16px;color:grey}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:grey}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:grey}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:0 0}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:grey;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background:transparent url('+n(i(0))+")}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:1px solid #e5e5e5}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:0 0}div.jsoneditor-tree button.jsoneditor-dragarea{background:url("+n(i(0))+") -72px -72px;cursor:move}div.jsoneditor-tree :focus{outline:0}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:grey;font-family:arial,sans-serif;font-size:10pt}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:grey}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid grey;cursor:pointer}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background:url("+n(i(0))+') -168px -48px}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #fe0;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px rgba(0,0,0,.4)}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}a.jsoneditor-value.jsoneditor-url,div.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:focus,a.jsoneditor-value.jsoneditor-url:hover{color:#ee422e}div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value.jsoneditor-highlight,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover{background-color:#ffffab;border:1px solid #fe0;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-array,div.jsoneditor-value.jsoneditor-object{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:focus,div.jsoneditor-tree div.jsoneditor-show-more a:hover{color:#ee422e}.ace-jsoneditor,textarea.jsoneditor-text{min-height:150px}.ace-jsoneditor *,textarea.jsoneditor-text *{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-contextmenu-button,tr.jsoneditor-selected button.jsoneditor-dragarea{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:focus,div.jsoneditor-tree button.jsoneditor-dragarea:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor td,div.jsoneditor th,div.jsoneditor tr{padding:0;margin:0}.jsoneditor-popover,.jsoneditor-schema-error,div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor td,div.jsoneditor textarea,div.jsoneditor th,pre.jsoneditor-preview{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.4);color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:focus .jsoneditor-popover,.jsoneditor-schema-error:hover .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:grey;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:normal}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background:url('+n(i(0))+") -168px -48px}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background:url("+n(i(0))+") -25px 0}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>.jsoneditor-modes>button,.jsoneditor-menu>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background:transparent url("+n(i(0))+");color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:10pt;float:left}.jsoneditor-menu>.jsoneditor-modes>button:hover,.jsoneditor-menu>button:hover{background-color:hsla(0,0%,100%,.2);border:1px solid hsla(0,0%,100%,.4)}.jsoneditor-menu>.jsoneditor-modes>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>button:focus{background-color:hsla(0,0%,100%,.3)}.jsoneditor-menu>.jsoneditor-modes>button:disabled,.jsoneditor-menu>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator,.jsoneditor-menu>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:10pt;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:grey;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:10pt}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:0;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url("+n(i(0))+");vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:grey;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:10pt}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background:url("+n(i(0))+") -168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background:url("+n(i(0))+') -25px 0}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:0}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px hsla(0,0%,50%,.3)}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:10pt}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*!\n * Selectr 2.4.0\n * https://github.com/Mobius1/Selectr\n *\n * Released under the MIT license\n */.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0) translate3d(0,-50%,0);-ms-transform:rotate(0) translate3d(0,-50%,0);-moz-transform:rotate(0) translate3d(0,-50%,0);-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.native-open .selectr-selected:before,.selectr-container.open .selectr-selected:before{border-width:0 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999 #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:after,.selectr-clear:before,.selectr-input-clear:after,.selectr-input-clear:before,.selectr-tag-remove:after,.selectr-tag-remove:before{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:after,.selectr-tag-remove:before{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.notice .selectr-options-container,.selectr-container.open .selectr-input-container,.selectr-container.open .selectr-options{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999 #999 transparent;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0,50%,0);-ms-transform:rotate(180deg) translate3d(0,50%,0);-moz-transform:rotate(180deg) translate3d(0,50%,0);-webkit-transform:rotate(180deg) translate3d(0,50%,0);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.has-selected .selectr-placeholder,.selectr-empty{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running spin;-webkit-animation:.5s linear 0s normal forwards infinite running spin;animation:.5s linear 0s normal forwards infinite running spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(1turn) translate3d(0,-50%,0);transform:rotate(1turn) translate3d(0,-50%,0)}}@keyframes spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(1turn) translate3d(0,-50%,0);transform:rotate(1turn) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999 #999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999 #999 transparent;border-radius:3px 3px 0 0;background-color:#fff;top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}',""])},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"jsoneditor-container",class:{"max-box":t.max,"min-box":!t.max},style:t.getHeight},[i("div",{ref:"jsoneditor",staticClass:"jsoneditor-box"}),t._v(" "),"code"==t.options.mode&&t.plus?i("button",{staticClass:"max-btn",attrs:{type:"button",size:"mini"},on:{click:function(e){t.max=!t.max}}}):t._e()])},r=[],o={render:n,staticRenderFns:r};e.a=o}])}))},bd9d:function(t,e){function i(t){var e,i=t.length;while(i--){if(e=t.readUInt8(i),255!==e){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}t.exports=i},c05f:function(t,e,i){var n=i("7b97"),r=i("1310");function o(t,e,i,s,a){return t===e||(null==t||null==e||!r(t)&&!r(e)?t!==t&&e!==e:n(t,e,i,s,o,a))}t.exports=o},c098:function(t,e){var i=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(t,e){var r=typeof t;return e=null==e?i:e,!!e&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}t.exports=r},c119:function(t,e,i){var n=i("8c8a");e.encrypt=function(t,e){var i=n(e,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return n(r,i)}},c198:function(t,e,i){(function(e,n,r){t.exports=n(i("21bf"),i("1132"),i("72fe"),i("2b79"),i("38ba"))})(0,(function(t){return function(){var e=t,i=e.lib,n=i.BlockCipher,r=e.algo,o=[],s=[],a=[],l=[],h=[],c=[],u=[],d=[],f=[],p=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var i=0,n=0;for(e=0;e<256;e++){var r=n^n<<1^n<<2^n<<3^n<<4;r=r>>>8^255&r^99,o[i]=r,s[r]=i;var g=t[i],m=t[g],v=t[m],b=257*t[r]^16843008*r;a[i]=b<<24|b>>>8,l[i]=b<<16|b>>>16,h[i]=b<<8|b>>>24,c[i]=b;b=16843009*v^65537*m^257*g^16843008*i;u[r]=b<<24|b>>>8,d[r]=b<<16|b>>>16,f[r]=b<<8|b>>>24,p[r]=b,i?(i=g^t[t[t[v^g]]],n^=t[t[n]]):i=n=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,n=this._nRounds=i+6,r=4*(n+1),s=this._keySchedule=[],a=0;a<r;a++)a<i?s[a]=e[a]:(c=s[a-1],a%i?i>6&&a%i==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=c<<8|c>>>24,c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=g[a/i|0]<<24),s[a]=s[a-i]^c);for(var l=this._invKeySchedule=[],h=0;h<r;h++){a=r-h;if(h%4)var c=s[a];else c=s[a-4];l[h]=h<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^f[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,l,h,c,o)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,u,d,f,p,s);i=t[e+1];t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,n,r,o,s,a){for(var l=this._nRounds,h=t[e]^i[0],c=t[e+1]^i[1],u=t[e+2]^i[2],d=t[e+3]^i[3],f=4,p=1;p<l;p++){var g=n[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^s[255&d]^i[f++],m=n[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^s[255&h]^i[f++],v=n[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^s[255&c]^i[f++],b=n[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^s[255&u]^i[f++];h=g,c=m,u=v,d=b}g=(a[h>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^i[f++],m=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^i[f++],v=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&c])^i[f++],b=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^i[f++];t[e]=g,t[e+1]=m,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=n._createHelper(m)}(),t.AES}))},c1c9:function(t,e,i){var n=i("a454"),r=i("f3c1"),o=r(n);t.exports=o},c24d:function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},c2ae:function(t,e,i){t.exports=i("e372").PassThrough},c345:function(t,e,i){"use strict";var n=i("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,o,s={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),i=n.trim(t.substr(o+1)),e){if(s[e]&&r.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([i]):s[e]?s[e]+", "+i:i}})),s):s}},c3c0:function(t,e,i){"use strict";var n=i("da3e"),r=i("3fb5");function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function s(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}else for(var n=0,r=0;r<t.length;r++){var s=t.charCodeAt(r);s<128?i[n++]=s:s<2048?(i[n++]=s>>6|192,i[n++]=63&s|128):o(t,r)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++r)),i[n++]=s>>18|240,i[n++]=s>>12&63|128,i[n++]=s>>6&63|128,i[n++]=63&s|128):(i[n++]=s>>12|224,i[n++]=s>>6&63|128,i[n++]=63&s|128)}else for(r=0;r<t.length;r++)i[r]=0|t[r];return i}function a(t){for(var e="",i=0;i<t.length;i++)e+=c(t[i].toString(16));return e}function l(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}function h(t,e){for(var i="",n=0;n<t.length;n++){var r=t[n];"little"===e&&(r=l(r)),i+=u(r.toString(16))}return i}function c(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}function d(t,e,i,r){var o=i-e;n(o%4===0);for(var s=new Array(o/4),a=0,l=e;a<s.length;a++,l+=4){var h;h="big"===r?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],s[a]=h>>>0}return s}function f(t,e){for(var i=new Array(4*t.length),n=0,r=0;n<t.length;n++,r+=4){var o=t[n];"big"===e?(i[r]=o>>>24,i[r+1]=o>>>16&255,i[r+2]=o>>>8&255,i[r+3]=255&o):(i[r+3]=o>>>24,i[r+2]=o>>>16&255,i[r+1]=o>>>8&255,i[r]=255&o)}return i}function p(t,e){return t>>>e|t<<32-e}function g(t,e){return t<<e|t>>>32-e}function m(t,e){return t+e>>>0}function v(t,e,i){return t+e+i>>>0}function b(t,e,i,n){return t+e+i+n>>>0}function y(t,e,i,n,r){return t+e+i+n+r>>>0}function w(t,e,i,n){var r=t[e],o=t[e+1],s=n+o>>>0,a=(s<n?1:0)+i+r;t[e]=a>>>0,t[e+1]=s}function C(t,e,i,n){var r=e+n>>>0,o=(r<e?1:0)+t+i;return o>>>0}function I(t,e,i,n){var r=e+n;return r>>>0}function A(t,e,i,n,r,o,s,a){var l=0,h=e;h=h+n>>>0,l+=h<e?1:0,h=h+o>>>0,l+=h<o?1:0,h=h+a>>>0,l+=h<a?1:0;var c=t+i+r+s+l;return c>>>0}function M(t,e,i,n,r,o,s,a){var l=e+n+o+a;return l>>>0}function x(t,e,i,n,r,o,s,a,l,h){var c=0,u=e;u=u+n>>>0,c+=u<e?1:0,u=u+o>>>0,c+=u<o?1:0,u=u+a>>>0,c+=u<a?1:0,u=u+h>>>0,c+=u<h?1:0;var d=t+i+r+s+l+c;return d>>>0}function _(t,e,i,n,r,o,s,a,l,h){var c=e+n+o+a+h;return c>>>0}function S(t,e,i){var n=e<<32-i|t>>>i;return n>>>0}function k(t,e,i){var n=t<<32-i|e>>>i;return n>>>0}function E(t,e,i){return t>>>i}function T(t,e,i){var n=t<<32-i|e>>>i;return n>>>0}e.inherits=r,e.toArray=s,e.toHex=a,e.htonl=l,e.toHex32=h,e.zero2=c,e.zero8=u,e.join32=d,e.split32=f,e.rotr32=p,e.rotl32=g,e.sum32=m,e.sum32_3=v,e.sum32_4=b,e.sum32_5=y,e.sum64=w,e.sum64_hi=C,e.sum64_lo=I,e.sum64_4_hi=A,e.sum64_4_lo=M,e.sum64_5_hi=x,e.sum64_5_lo=_,e.rotr64_hi=S,e.rotr64_lo=k,e.shr64_hi=E,e.shr64_lo=T},c401:function(t,e,i){"use strict";var n=i("c532");t.exports=function(t,e,i){return n.forEach(i,(function(i){t=i(t,e)})),t}},c532:function(t,e,i){"use strict";var n=i("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function s(t){return"undefined"===typeof t}function a(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function h(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function u(t){return"string"===typeof t}function d(t){return"number"===typeof t}function f(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function g(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function y(t){return f(t)&&b(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function C(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function I(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function A(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function M(){var t={};function e(e,i){p(t[i])&&p(e)?t[i]=M(t[i],e):p(e)?t[i]=M({},e):o(e)?t[i]=e.slice():t[i]=e}for(var i=0,n=arguments.length;i<n;i++)A(arguments[i],e);return t}function x(t,e,i){return A(e,(function(e,r){t[r]=i&&"function"===typeof e?n(e,i):e})),t}function _(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:h,isArrayBufferView:c,isString:u,isNumber:d,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:v,isFunction:b,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:I,forEach:A,merge:M,extend:x,trim:C,stripBOM:_}},c584:function(t,e){function i(t,e){return t.has(e)}t.exports=i},c591:function(t,e,i){"use strict";(function(e){var n,r=i("b639"),o=r.Buffer,s={};for(n in r)r.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=r[n]);var a=s.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(a[n]=o[n]);if(s.Buffer.prototype=o.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,i){if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&"undefined"===typeof t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,e,i)}),a.alloc||(a.alloc=function(t,e,i){if("number"!==typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=o(t);return e&&0!==e.length?"string"===typeof i?n.fill(e,i):n.fill(e):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(l){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,i("4362"))},c869:function(t,e,i){var n=i("0b07"),r=i("2b3e"),o=n(r,"Set");t.exports=o},c8af:function(t,e,i){"use strict";var n=i("c532");t.exports=function(t,e){n.forEach(t,(function(i,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[n])}))}},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},c8fe:function(t,e,i){var n=i("f8af");function r(t,e){var i=e?n(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}t.exports=r},cabf:function(t,e,i){},cb5a:function(t,e,i){var n=i("9638");function r(t,e){var i=t.length;while(i--)if(n(t[i][0],e))return i;return-1}t.exports=r},cd91:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},cd9d:function(t,e){function i(t){return t}t.exports=i},cee4:function(t,e,i){"use strict";var n=i("c532"),r=i("1d2b"),o=i("0a06"),s=i("4a7b"),a=i("2444");function l(t){var e=new o(t),i=r(o.prototype.request,e);return n.extend(i,o.prototype,e),n.extend(i,e),i}var h=l(a);h.Axios=o,h.create=function(t){return l(s(h.defaults,t))},h.Cancel=i("7a77"),h.CancelToken=i("8df4"),h.isCancel=i("2e67"),h.all=function(t){return Promise.all(t)},h.spread=i("0df6"),h.isAxiosError=i("5f02"),t.exports=h,t.exports.default=h},cf35:function(t,e,i){"use strict";(function(e,n){var r;t.exports=E,E.ReadableState=k;i("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=i("f12a"),a=i("b639").Buffer,l=e.Uint8Array||function(){};function h(t){return a.from(t)}function c(t){return a.isBuffer(t)||t instanceof l}var u,d=i(8);u=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=i("22ab"),v=i("9019"),b=i("05f0"),y=b.getHighWaterMark,w=i("d113").codes,C=w.ERR_INVALID_ARG_TYPE,I=w.ERR_STREAM_PUSH_AFTER_EOF,A=w.ERR_METHOD_NOT_IMPLEMENTED,M=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i("3fb5")(E,s);var x=v.errorOrDestroy,_=["error","close","destroy","pause","resume"];function S(t,e,i){if("function"===typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}function k(t,e,n){r=r||i("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof r),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=i("7d72").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function E(t){if(r=r||i("5e7d"),!(this instanceof E))return new E(t);var e=this instanceof r;this._readableState=new k(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function T(t,e,i,n,r){u("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,B(t,s);else if(r||(o=O(s,e)),o)x(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=h(e)),n)s.endEmitted?x(t,new M):R(t,s,e,!0);else if(s.ended)x(t,new I);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?R(t,s,e,!1):P(t,s)):R(t,s,e,!1)}else n||(s.reading=!1,P(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function R(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&D(t)),P(t,e)}function O(t,e){var i;return c(e)||"string"===typeof e||void 0===e||t.objectMode||(i=new C("chunk",["string","Buffer","Uint8Array"],e)),i}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=v.destroy,E.prototype._undestroy=v.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var i,n=this._readableState;return n.objectMode?i=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=a.from(t,e),e=""),i=!0),T(this,t,e,!1,i)},E.prototype.unshift=function(t){return T(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){f||(f=i("7d72").StringDecoder);var e=new f(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,r="";while(null!==n)r+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var j=1073741824;function N(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function L(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=N(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t,e){if(u("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Z(t)))}}function D(t){var e=t._readableState;u("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(u("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(Z,t))}function Z(t){var e=t._readableState;u("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function P(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(W,t,e))}function W(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var i=e.length;if(u("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function $(t){return function(){var e=t._readableState;u("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,V(t))}}function H(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){u("readable nexttick read 0"),t.read(0)}function G(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(F,t,e))}function F(t,e){u("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;u("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function Y(t){var e=t._readableState;u("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(U,e,t))}function U(t,e){if(u("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function X(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}E.prototype.read=function(t){u("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return u("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):D(this),null;if(t=L(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var n,r=e.needReadable;return u("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,u("length less than watermark",r)),e.ended||e.reading?(r=!1,u("reading or ended",r)):r&&(u("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=L(i,e))),n=t>0?K(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&Y(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){x(this,new A("_read()"))},E.prototype.pipe=function(t,e){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?h:b;function l(t,e){u("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function h(){u("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",l);var c=$(i);t.on("drain",c);var d=!1;function f(){u("cleanup"),t.removeListener("close",m),t.removeListener("finish",v),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),i.removeListener("end",h),i.removeListener("end",b),i.removeListener("data",p),d=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){u("ondata");var n=t.write(e);u("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==X(r.pipes,t))&&!d&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function g(e){u("onerror",e),b(),t.removeListener("error",g),0===o(t,"error")&&x(t,e)}function m(){t.removeListener("finish",v),b()}function v(){u("onfinish"),t.removeListener("close",m),b()}function b(){u("unpipe"),i.unpipe(t)}return i.on("data",p),S(t,"error",g),t.once("close",m),t.once("finish",v),t.emit("pipe",i),r.flowing||(u("pipe resume"),i.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=X(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},E.prototype.on=function(t,e){var i=s.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?D(this):r.reading||n.nextTick(z,this))),i},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var i=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(H,this),i},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(H,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(u("resume"),t.flowing=!t.readableListening,G(this,t)),t.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(u("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){if(u("wrapped data"),i.decoder&&(r=i.decoder.write(r)),(!i.objectMode||null!==r&&void 0!==r)&&(i.objectMode||r&&r.length)){var o=e.push(r);o||(n=!0,t.pause())}})),t)void 0===this[r]&&"function"===typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<_.length;o++)t.on(_[o],this.emit.bind(this,_[o]));return this._read=function(e){u("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=i("57e2")),p(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=K,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(t,e){return void 0===g&&(g=i("f83c")),g(E,t,e)})}).call(this,i("c8ba"),i("4362"))},cfbd:function(t,e,i){"use strict";const n=i("3fb5"),r=i("bc12"),o=i("6283").DecoderBuffer,s=i("8360"),a=i("8b71");function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){s.call(this,"der",t)}function c(t,e){let i=t.readUInt8(e);if(t.isError(i))return i;const n=a.tagClass[i>>6],r=0===(32&i);if(31===(31&i)){let n=i;i=0;while(128===(128&n)){if(n=t.readUInt8(e),t.isError(n))return n;i<<=7,i|=127&n}}else i&=31;const o=a.tag[i];return{cls:n,primitive:r,tag:i,tagStr:o}}function u(t,e,i){let n=t.readUInt8(i);if(t.isError(n))return n;if(!e&&128===n)return null;if(0===(128&n))return n;const r=127&n;if(r>4)return t.error("length octect is too long");n=0;for(let o=0;o<r;o++){n<<=8;const e=t.readUInt8(i);if(t.isError(e))return e;n|=e}return n}t.exports=l,l.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},n(h,s),h.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;const n=t.save(),r=c(t,'Failed to peek tag: "'+e+'"');return t.isError(r)?r:(t.restore(n),r.tag===e||r.tagStr===e||r.tagStr+"of"===e||i)},h.prototype._decodeTag=function(t,e,i){const n=c(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let r=u(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(r))return r;if(!i&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==r)return t.skip(r,'Failed to match body of: "'+e+'"');const o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(r=t.offset-o.offset,t.restore(o),t.skip(r,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){for(;;){const i=c(t,e);if(t.isError(i))return i;const n=u(t,i.primitive,e);if(t.isError(n))return n;let r;if(r=i.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},h.prototype._decodeList=function(t,e,i,n){const r=[];while(!t.isEmpty()){const e=this._peekTag(t,"end");if(t.isError(e))return e;const o=i.decode(t,"der",n);if(t.isError(o)&&e)break;r.push(o)}return r},h.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let i="";for(let t=0;t<e.length/2;t++)i+=String.fromCharCode(e.readUInt16BE(2*t));return i}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,i){let n;const r=[];let o=0,s=0;while(!t.isEmpty())s=t.readUInt8(),o<<=7,o|=127&s,0===(128&s)&&(r.push(o),o=0);128&s&&r.push(o);const a=r[0]/40|0,l=r[0]%40;if(n=i?r:[a,l].concat(r.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},h.prototype._decodeTime=function(t,e){const i=t.raw().toString();let n,r,o,s,a,l;if("gentime"===e)n=0|i.slice(0,4),r=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),a=0|i.slice(10,12),l=0|i.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),o=0|i.slice(4,6),s=0|i.slice(6,8),a=0|i.slice(8,10),l=0|i.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,o,s,a,l,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){const i=t.raw();let n=new r(i);return e&&(n=e[n.toString(10)]||n),n},h.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},d02c:function(t,e,i){var n=i("5e2e"),r=i("79bc"),o=i("7b83"),s=200;function a(t,e){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!r||a.length<s-1)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(t,e),this.size=i.size,this}t.exports=a},d0eb:function(t,e,i){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(6).Buffer}catch(S){}function a(t,e){var i=t.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(t,e,i){var n=a(t,i);return i-1>=e&&(n|=a(t,i-1)<<4),n}function h(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"===typeof t)return this._initNumber(t,e,i);if("object"===typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&(r++,this.negative=1),r<t.length&&(16===e?this._parseHex(t,r,i):(this._parseBase(t,e,r),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,s,a=0;if("be"===i)for(r=t.length-1,o=0;r>=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r<t.length;r+=3)s=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,s=0;if("be"===i)for(n=t.length-1;n>=e;n-=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n<t.length;n+=2)r=l(t,e,n)<<o,this.words[s]|=67108863&r,o>=18?(o-=18,s+=1,this.words[s]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,s=o%n,a=Math.min(o,o-s)+i,l=0,c=i;c<a;c+=n)l=h(t,c,c+n,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var u=1;for(l=h(t,c,t.length,e),c=0;c<s;c++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var 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"],u=[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(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var n=i/26|0,r=i%26;e[i]=(t.words[n]&1<<r)>>>r}return e}function p(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],s=r*o,a=67108863&s,l=s/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var c=l>>>26,u=67108863&l,d=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=d;f++){var p=h-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+u,c+=s/67108864|0,u=67108863&s}i.words[h]=0|u,l=0|c}return 0!==l?i.words[h]=0|l:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<r|o)).toString(16);o=a>>>24-r&16777215,i=0!==o||s!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,s--)}0!==o&&(i=o.toString(16)+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?g+i:c[h-g.length]+g+i}this.isZero()&&(i="0"+i);while(i.length%e!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===e,h=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[a]=s;for(;a<o;a++)h[a]=0}else{for(a=0;a<o-r;a++)h[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),h[o-a-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0===(8191&e)&&(i+=13,e>>>=13),0===(127&e)&&(i+=7,e>>>=7),0===(15&e)&&(i+=4,e>>>=4),0===(3&e)&&(i+=2,e>>>=2),0===(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;n<i.length;n++)this.words[n]=e.words[n]^i.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,i,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o<n.length;o++)e=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<i.length;o++)e=(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,s=0;s<n.length;s++)e=(0|i.words[s])-(0|n.words[s])+o,o=e>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)e=(0|i.words[s])+o,o=e>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var n,r,o,s=t.words,a=e.words,l=i.words,h=0,c=0|s[0],u=8191&c,d=c>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],v=8191&m,b=m>>>13,y=0|s[3],w=8191&y,C=y>>>13,I=0|s[4],A=8191&I,M=I>>>13,x=0|s[5],_=8191&x,S=x>>>13,k=0|s[6],E=8191&k,T=k>>>13,R=0|s[7],O=8191&R,j=R>>>13,N=0|s[8],L=8191&N,B=N>>>13,D=0|s[9],Z=8191&D,P=D>>>13,W=0|a[0],$=8191&W,H=W>>>13,z=0|a[1],G=8191&z,F=z>>>13,V=0|a[2],K=8191&V,Y=V>>>13,U=0|a[3],X=8191&U,J=U>>>13,Q=0|a[4],q=8191&Q,tt=Q>>>13,et=0|a[5],it=8191&et,nt=et>>>13,rt=0|a[6],ot=8191&rt,st=rt>>>13,at=0|a[7],lt=8191&at,ht=at>>>13,ct=0|a[8],ut=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,gt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(u,$),r=Math.imul(u,H),r=r+Math.imul(d,$)|0,o=Math.imul(d,H);var mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,$),r=Math.imul(p,H),r=r+Math.imul(g,$)|0,o=Math.imul(g,H),n=n+Math.imul(u,G)|0,r=r+Math.imul(u,F)|0,r=r+Math.imul(d,G)|0,o=o+Math.imul(d,F)|0;var vt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,$),r=Math.imul(v,H),r=r+Math.imul(b,$)|0,o=Math.imul(b,H),n=n+Math.imul(p,G)|0,r=r+Math.imul(p,F)|0,r=r+Math.imul(g,G)|0,o=o+Math.imul(g,F)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,Y)|0,r=r+Math.imul(d,K)|0,o=o+Math.imul(d,Y)|0;var bt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,$),r=Math.imul(w,H),r=r+Math.imul(C,$)|0,o=Math.imul(C,H),n=n+Math.imul(v,G)|0,r=r+Math.imul(v,F)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,F)|0,n=n+Math.imul(p,K)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(u,X)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(d,X)|0,o=o+Math.imul(d,J)|0;var yt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,$),r=Math.imul(A,H),r=r+Math.imul(M,$)|0,o=Math.imul(M,H),n=n+Math.imul(w,G)|0,r=r+Math.imul(w,F)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,F)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,Y)|0,r=r+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,r=r+Math.imul(p,J)|0,r=r+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,tt)|0,r=r+Math.imul(d,q)|0,o=o+Math.imul(d,tt)|0;var wt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(_,$),r=Math.imul(_,H),r=r+Math.imul(S,$)|0,o=Math.imul(S,H),n=n+Math.imul(A,G)|0,r=r+Math.imul(A,F)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,F)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(v,X)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,q)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(u,it)|0,r=r+Math.imul(u,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var Ct=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(E,$),r=Math.imul(E,H),r=r+Math.imul(T,$)|0,o=Math.imul(T,H),n=n+Math.imul(_,G)|0,r=r+Math.imul(_,F)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,F)|0,n=n+Math.imul(A,K)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(w,X)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(b,q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(g,it)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(u,ot)|0,r=r+Math.imul(u,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var It=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(O,$),r=Math.imul(O,H),r=r+Math.imul(j,$)|0,o=Math.imul(j,H),n=n+Math.imul(E,G)|0,r=r+Math.imul(E,F)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(T,F)|0,n=n+Math.imul(_,K)|0,r=r+Math.imul(_,Y)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(A,X)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(C,q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(b,it)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(u,lt)|0,r=r+Math.imul(u,ht)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ht)|0;var At=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,$),r=Math.imul(L,H),r=r+Math.imul(B,$)|0,o=Math.imul(B,H),n=n+Math.imul(O,G)|0,r=r+Math.imul(O,F)|0,r=r+Math.imul(j,G)|0,o=o+Math.imul(j,F)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(_,X)|0,r=r+Math.imul(_,J)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(A,q)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(w,it)|0,r=r+Math.imul(w,nt)|0,r=r+Math.imul(C,it)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(g,lt)|0,o=o+Math.imul(g,ht)|0,n=n+Math.imul(u,ut)|0,r=r+Math.imul(u,dt)|0,r=r+Math.imul(d,ut)|0,o=o+Math.imul(d,dt)|0;var Mt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(Z,$),r=Math.imul(Z,H),r=r+Math.imul(P,$)|0,o=Math.imul(P,H),n=n+Math.imul(L,G)|0,r=r+Math.imul(L,F)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(B,F)|0,n=n+Math.imul(O,K)|0,r=r+Math.imul(O,Y)|0,r=r+Math.imul(j,K)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(E,X)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(_,q)|0,r=r+Math.imul(_,tt)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,it)|0,r=r+Math.imul(A,nt)|0,r=r+Math.imul(M,it)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(w,ot)|0,r=r+Math.imul(w,st)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ht)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ht)|0,n=n+Math.imul(p,ut)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(g,ut)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(u,pt)|0,r=r+Math.imul(u,gt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var xt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(Z,G),r=Math.imul(Z,F),r=r+Math.imul(P,G)|0,o=Math.imul(P,F),n=n+Math.imul(L,K)|0,r=r+Math.imul(L,Y)|0,r=r+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,X)|0,r=r+Math.imul(O,J)|0,r=r+Math.imul(j,X)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(T,q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,r=r+Math.imul(_,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,r=r+Math.imul(A,st)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(w,lt)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(v,ut)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,gt)|0,r=r+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var _t=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,K),r=Math.imul(Z,Y),r=r+Math.imul(P,K)|0,o=Math.imul(P,Y),n=n+Math.imul(L,X)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,q)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(j,q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(E,it)|0,r=r+Math.imul(E,nt)|0,r=r+Math.imul(T,it)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(_,ot)|0,r=r+Math.imul(_,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,lt)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(w,ut)|0,r=r+Math.imul(w,dt)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,gt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,gt)|0;var St=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(Z,X),r=Math.imul(Z,J),r=r+Math.imul(P,X)|0,o=Math.imul(P,J),n=n+Math.imul(L,q)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul(B,q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(E,ot)|0,r=r+Math.imul(E,st)|0,r=r+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(_,lt)|0,r=r+Math.imul(_,ht)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(A,ut)|0,r=r+Math.imul(A,dt)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,dt)|0,n=n+Math.imul(w,pt)|0,r=r+Math.imul(w,gt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,gt)|0;var kt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(Z,q),r=Math.imul(Z,tt),r=r+Math.imul(P,q)|0,o=Math.imul(P,tt),n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(E,lt)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0,n=n+Math.imul(_,ut)|0,r=r+Math.imul(_,dt)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(A,pt)|0,r=r+Math.imul(A,gt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,gt)|0;var Et=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(Z,it),r=Math.imul(Z,nt),r=r+Math.imul(P,it)|0,o=Math.imul(P,nt),n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ht)|0,r=r+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(E,ut)|0,r=r+Math.imul(E,dt)|0,r=r+Math.imul(T,ut)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(_,pt)|0,r=r+Math.imul(_,gt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,gt)|0;var Tt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Z,ot),r=Math.imul(Z,st),r=r+Math.imul(P,ot)|0,o=Math.imul(P,st),n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ht)|0,r=r+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0,n=n+Math.imul(O,ut)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0,n=n+Math.imul(E,pt)|0,r=r+Math.imul(E,gt)|0,r=r+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Rt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(Z,lt),r=Math.imul(Z,ht),r=r+Math.imul(P,lt)|0,o=Math.imul(P,ht),n=n+Math.imul(L,ut)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,gt)|0,r=r+Math.imul(j,pt)|0,o=o+Math.imul(j,gt)|0;var Ot=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,ut),r=Math.imul(Z,dt),r=r+Math.imul(P,ut)|0,o=Math.imul(P,dt),n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,gt)|0,r=r+Math.imul(B,pt)|0,o=o+Math.imul(B,gt)|0;var jt=(h+n|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(Z,pt),r=Math.imul(Z,gt),r=r+Math.imul(P,pt)|0,o=Math.imul(P,gt);var Nt=(h+n|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l[0]=mt,l[1]=vt,l[2]=bt,l[3]=yt,l[4]=wt,l[5]=Ct,l[6]=It,l[7]=At,l[8]=Mt,l[9]=xt,l[10]=_t,l[11]=St,l[12]=kt,l[13]=Et,l[14]=Tt,l[15]=Rt,l[16]=Ot,l[17]=jt,l[18]=Nt,0!==h&&(l[19]=h,i.length++),i};function m(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var s=r;r=0;for(var a=67108863&n,l=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=l;h++){var c=o-h,u=0|t.words[c],d=0|e.words[h],f=u*d,p=67108863&f;s=s+(f/67108864|0)|0,p=p+a|0,a=67108863&p,s=s+(p>>>26)|0,r+=s>>>26,s&=67108863}i.words[o]=a,n=s,s=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(t,e,i){var n=new b;return n.mulp(t,e,i)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),i},b.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,i,t);return e},b.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var n=0,r=0;r<e;r++)n|=(1&t)<<e-r-1,t>>=1;return n},b.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s<o;s++)n[s]=e[t[s]],r[s]=i[t[s]]},b.prototype.transform=function(t,e,i,n,r,o){this.permute(o,t,e,i,n,r);for(var s=1;s<r;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),c=0;c<r;c+=a)for(var u=l,d=h,f=0;f<s;f++){var p=i[c+f],g=n[c+f],m=i[c+f+s],v=n[c+f+s],b=u*m-d*v;v=u*v+d*m,m=b,i[c+f]=p+m,n[c+f]=g+v,i[c+f+s]=p-m,n[c+f+s]=g-v,f!==a&&(b=l*u-h*d,d=l*d+h*u,u=b)}},b.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},b.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=t[n];t[n]=t[i-n-1],t[i-n-1]=r,r=e[n],e[n]=-e[i-n-1],e[i-n-1]=-r}},b.prototype.normalize13b=function(t,e){for(var i=0,n=0;n<e/2;n++){var r=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+i;t[n]=67108863&r,i=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,i,r){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<r;++s)i[s]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},b.prototype.mulp=function(t,e,i){var n=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),h=new Array(n),c=new Array(n),u=new Array(n),d=i.words;d.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,h,n),this.transform(s,o,a,l,n,r),this.transform(h,o,c,u,n,r);for(var f=0;f<n;f++){var p=a[f]*c[f]-l[f]*u[f];l[f]=a[f]*u[f]+l[f]*c[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,d,o,n,r),this.conjugate(d,o,n),this.normalize13b(d,n),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var i=this,n=0;n<e.length;n++,i=i.sqr())if(0!==e[n])break;if(++n<e.length)for(var r=i.sqr();n<e.length;n++,r=r.sqr())0!==e[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,l=(0|this.words[e])-a<<i;this.words[e]=l|s,s=a>>>26-i}s&&(this.words[e]=s,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){var r;n("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,l=i;if(r-=s,r=Math.max(0,r),l){for(var h=0;h<s;h++)l.words[h]=this.words[h];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=r);h--){var u=0|this.words[h];this.words[h]=c<<26-o|u>>>o,c=u&a}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var r,o,s=t.length+i;this._expand(s);var a=0;for(r=0;r<t.length;r++){o=(0|this.words[r+i])+a;var l=(0|t.words[r])*e;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+a,a=o>>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)o=-(0|this.words[r])+a,a=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.length-t.length,n=this.clone(),r=t,s=0|r.words[r.length-1],a=this._countBits(s);i=26-a,0!==i&&(r=r.ushln(i),n.iushln(i),s=0|r.words[r.length-1]);var l,h=n.length-r.length;if("mod"!==e){l=new o(null),l.length=h+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,h);0===u.negative&&(n=u,l&&(l.words[h]=1));for(var d=h-1;d>=0;d--){var f=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);f=Math.min(f/s|0,67108863),n._ishlnsubmul(r,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.iadd(t)),{div:r,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),s=new o(0),a=new o(0),l=new o(1),h=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++h;var c=i.clone(),u=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(r.isOdd()||s.isOdd())&&(r.iadd(c),s.isub(u)),r.iushrn(1),s.iushrn(1)}for(var p=0,g=1;0===(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(u)),a.iushrn(1),l.iushrn(1)}e.cmp(i)>=0?(e.isub(i),r.isub(a),s.isub(l)):(i.isub(e),a.isub(r),l.isub(s))}return{a:a,b:l,gcd:i.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,s=new o(1),a=new o(0),l=i.clone();while(e.cmpn(1)>0&&i.cmpn(1)>0){for(var h=0,c=1;0===(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0){e.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var u=0,d=1;0===(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0){i.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}e.cmp(i)>=0?(e.isub(i),s.isub(a)):(i.isub(e),a.isub(s))}return r=0===e.cmpn(1)?s:a,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);do{while(e.isEven())e.iushrn(1);while(i.isEven())i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,i=(t-e)/26,r=1<<e;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,s=i;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>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(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){n<r?e=-1:n>r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},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(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),e=i.bitLength()}while(e>this.n);var n=e<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(C,w),C.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&i,r=10;r<t.length;r++){var s=0|t.words[r];t.words[r-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(I,w),r(A,w),r(M,w),M.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new I;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}var r=this.m.subn(1),s=0;while(!r.isZero()&&0===r.andln(1))s++,r.iushrn(1);n(!r.isZero());var a=new o(1).toRed(this),l=a.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,h).cmp(l))c.redIAdd(l);var u=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=s;while(0!==f.cmp(a)){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var v=this.pow(u,new o(1).iushln(p-m-1));d=d.redMul(v),u=v.redSqr(),f=f.redMul(u),p=m}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var s=n[0],a=0,l=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=h-1;u>=0;u--){var d=c>>u&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===u)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}h=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},r(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,i("62e4")(t))},d113:function(t,e,i){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r={};function o(t,e,i){function o(t,i,n){return"string"===typeof e?e:e(t,i,n)}i||(i=Error);var s=function(t){function e(e,i,n){return t.call(this,o(e,i,n))||this}return n(e,t),e}(i);s.prototype.name=i.name,s.prototype.code=t,r[t]=s}function s(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function l(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function h(t,e,i){return"number"!==typeof i&&(i=0),!(i+e.length>t.length)&&-1!==t.indexOf(e,i)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,i){var n,r;if("string"===typeof e&&a(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",l(t," argument"))r="The ".concat(t," ").concat(n," ").concat(s(e,"type"));else{var o=h(t,".")?"property":"argument";r='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(s(e,"type"))}return r+=". Received type ".concat(typeof i),r}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},d17b:function(t,e,i){t.exports=i("e372").Transform},d1c8:function(t,e,i){"use strict";const n=i("3fb5");function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=r,r.prototype.isError=function(t){return t instanceof o},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){let e;const i=this._reporterState,n=t instanceof o;if(e=n?t:new o(i.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!i.options.partial)throw e;return n||i.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},d327:function(t,e){function i(){return[]}t.exports=i},d370:function(t,e,i){var n=i("253c"),r=i("1310"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(t){return r(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},d424:function(t,e,i){"use strict";var n=i("3fb5"),r=i("8707").Buffer,o=i("6430"),s=r.alloc(128),a=64;function l(t,e){o.call(this,"digest"),"string"===typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length<a&&(e=r.concat([e,s],a));for(var i=this._ipad=r.allocUnsafe(a),n=this._opad=r.allocUnsafe(a),l=0;l<a;l++)i[l]=54^e[l],n[l]=92^e[l];this._hash=[i]}n(l,o),l.prototype._update=function(t){this._hash.push(t)},l.prototype._final=function(){var t=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,t]))},t.exports=l},d485:function(t,e,i){t.exports=o;var n=i("faa1").EventEmitter,r=i("3fb5");function o(){n.call(this)}r(o,n),o.Readable=i("e372"),o.Writable=i("2c63"),o.Duplex=i("0960"),o.Transform=i("d17b"),o.PassThrough=i("c2ae"),o.Stream=o,o.prototype.pipe=function(t,e){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function o(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(i.on("end",a),i.on("close",l));var s=!1;function a(){s||(s=!0,t.end())}function l(){s||(s=!0,"function"===typeof t.destroy&&t.destroy())}function h(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){i.removeListener("data",r),t.removeListener("drain",o),i.removeListener("end",a),i.removeListener("close",l),i.removeListener("error",h),t.removeListener("error",h),i.removeListener("end",c),i.removeListener("close",c),t.removeListener("close",c)}return i.on("error",h),t.on("error",h),i.on("end",c),i.on("close",c),t.on("close",c),t.emit("pipe",i),t}},d612:function(t,e,i){var n=i("7b83"),r=i("7ed2"),o=i("dc0f");function s(t){var e=-1,i=null==t?0:t.length;this.__data__=new n;while(++e<i)this.add(t[e])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,t.exports=s},d70e:function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},d925:function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d97e:function(t,e){(function(){"use strict";var e,i,n=Function("return this")(),r="Boolean Number String Function Array Date RegExp Object".split(" "),o={};for(e in r)r.hasOwnProperty(e)&&(i=r[e],o["[object "+i+"]"]=i.toLowerCase());function s(t){return null===t||void 0===t?String(t):o[Object.prototype.toString.call(t)]||"object"}function a(t){var e,i;if("object"===s(t))for(e in t)if(i=t[e],void 0!==i&&"function"!==s(i))return!1;return!0}String.prototype.entityify||(String.prototype.entityify=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}),String.prototype.quote||(String.prototype.quote=function(){var t,e,i=this.length,n='"';for(e=0;e<i;e+=1)if(t=this.charAt(e),t>=" ")"\\"!==t&&'"'!==t||(n+="\\"),n+=t;else switch(t){case"\b":n+="\\b";break;case"\f":n+="\\f";break;case"\n":n+="\\n";break;case"\r":n+="\\r";break;case"\t":n+="\\t";break;default:t=t.charCodeAt(),n+="\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16)}return n+'"'}),String.prototype.supplant||(String.prototype.supplant=function(t){return this.replace(/{([^{}]*)}/g,(function(e,i){var n=t[i];return"string"===typeof n||"number"===typeof n?n:e}))}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s*(\S*(?:\s+\S+)*)\s*$/,"$1")}),t.exports={typeOf:s,isEmpty:a},n.typeOf=n.typeOf||s,n.isEmpty=n.isEmpty||a})()},da03:function(t,e,i){var n=i("2b3e"),r=n["__core-js_shared__"];t.exports=r},da3e:function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},dc0f:function(t,e){function i(t){return this.__data__.has(t)}t.exports=i},dc14:function(t,e,i){"use strict";(function(e,n){var r=i("966d");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){B(e,t)}}t.exports=y;var s,a=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:r.nextTick;y.WritableState=b;var l=Object.create(i("3a7c"));l.inherits=i("3fb5");var h={deprecate:i("b7d1")},c=i("429b"),u=i("8707").Buffer,d=n.Uint8Array||function(){};function f(t){return u.from(t)}function p(t){return u.isBuffer(t)||t instanceof d}var g,m=i("4681");function v(){}function b(t,e){s=s||i("b19a"),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,a=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(a||0===a)?a:l,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(t){S(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(s=s||i("b19a"),!g.call(y,this)&&!(this instanceof s))return new y(t);this._writableState=new b(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)),c.call(this)}function w(t,e){var i=new Error("write after end");t.emit("error",i),r.nextTick(e,i)}function C(t,e,i,n){var o=!0,s=!1;return null===i?s=new TypeError("May not write null values to stream"):"string"===typeof i||void 0===i||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),r.nextTick(n,s),o=!1),o}function I(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,i)),e}function A(t,e,i,n,r,o){if(!i){var s=I(e,n,r);n!==s&&(i=!0,r="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else M(t,e,!1,a,n,r,o);return l}function M(t,e,i,n,r,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,i?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function x(t,e,i,n,o){--e.pendingcb,i?(r.nextTick(o,n),r.nextTick(N,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),N(t,e))}function _(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function S(t,e){var i=t._writableState,n=i.sync,r=i.writecb;if(_(i),e)x(t,i,n,e,r);else{var o=R(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||T(t,i),n?a(k,t,i,o,r):k(t,i,o,r)}}function k(t,e,i,n){i||E(t,e),e.pendingcb--,n(),N(t,e)}function E(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function T(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var n=e.bufferedRequestCount,r=new Array(n),s=e.corkedRequestsFree;s.entry=i;var a=0,l=!0;while(i)r[a]=i,i.isBuf||(l=!1),i=i.next,a+=1;r.allBuffers=l,M(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{while(i){var h=i.chunk,c=i.encoding,u=i.callback,d=e.objectMode?1:h.length;if(M(t,e,!1,d,h,c,u),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),N(t,e)}))}function j(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(O,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function N(t,e){var i=R(e);return i&&(j(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}function L(t,e,i){e.ending=!0,N(t,e),i&&(e.finished?r.nextTick(i):t.once("finish",i)),e.ended=!0,t.writable=!1}function B(t,e,i){var n=t.entry;t.entry=null;while(n){var r=n.callback;e.pendingcb--,r(i),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}l.inherits(y,c),b.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!g.call(this,t)||this===y&&(t&&t._writableState instanceof b)}})):g=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,i){var n=this._writableState,r=!1,o=!n.objectMode&&p(t);return o&&!u.isBuffer(t)&&(t=f(t)),"function"===typeof e&&(i=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof i&&(i=v),n.ended?w(this,i):(o||C(this,n,t,i))&&(n.pendingcb++,r=A(this,n,o,t,e,i)),r},y.prototype.cork=function(){var t=this._writableState;t.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||T(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,i){var n=this._writableState;"function"===typeof t?(i=t,t=null,e=null):"function"===typeof e&&(i=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||L(this,n,i)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i("4362"),i("c8ba"))},dc57:function(t,e){var i=Function.prototype,n=i.toString;function r(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=r},dcbe:function(t,e,i){var n=i("30c9"),r=i("1310");function o(t){return r(t)&&n(t)}t.exports=o},df2f:function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){return function(){var e=t,i=e.lib,n=i.WordArray,r=i.Hasher,o=e.algo,s=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],a=i[3],l=i[4],h=0;h<80;h++){if(h<16)s[h]=0|t[e+h];else{var c=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=c<<1|c>>>31}var u=(n<<5|n>>>27)+l+s[h];u+=h<20?1518500249+(r&o|~r&a):h<40?1859775393+(r^o^a):h<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,l=a,a=o,o=r<<30|r>>>2,r=n,n=u}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a)}(),t.SHA1}))},df7c:function(t,e,i){(function(t){function i(t,e){for(var i=0,n=t.length-1;n>=0;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}function n(t){"string"!==typeof t&&(t+="");var e,i=0,n=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){i=e+1;break}}else-1===n&&(r=!1,n=e+1);return-1===n?"":t.slice(i,n)}function r(t,e){if(t.filter)return t.filter(e);for(var i=[],n=0;n<t.length;n++)e(t[n],n,t)&&i.push(t[n]);return i}e.resolve=function(){for(var e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,n="/"===s.charAt(0))}return e=i(r(e.split("/"),(function(t){return!!t})),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),s="/"===o(t,-1);return t=i(r(t.split("/"),(function(t){return!!t})),!n).join("/"),t||n||(t="."),t&&s&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,i){function n(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var i=t.length-1;i>=0;i--)if(""!==t[i])break;return e>i?[]:t.slice(e,i-e+1)}t=e.resolve(t).substr(1),i=e.resolve(i).substr(1);for(var r=n(t.split("/")),o=n(i.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var h=[];for(l=a;l<r.length;l++)h.push("..");return h=h.concat(o.slice(a)),h.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),i=47===e,n=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){n=o;break}}else r=!1;return-1===n?i?"/":".":i&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var i=n(t);return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,i=0,n=-1,r=!0,o=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(r=!1,n=s+1),46===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){i=s+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===i+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return e<0&&(e=t.length+e),t.substr(e,i)}}).call(this,i("4362"))},dff1:function(t,e,i){},e07b:function(t,e,i){var n=i("5a76"),r=i("b5ca"),o=i("69f2"),s=i("8707").Buffer,a=i("7d2a"),l=i("9f9d"),h=i("8be6"),c=s.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){var n=f(t),r="sha512"===t||"sha384"===t?128:64;e.length>r?e=n(e):e.length<r&&(e=s.concat([e,c],r));for(var o=s.allocUnsafe(r+u[t]),a=s.allocUnsafe(r+u[t]),l=0;l<r;l++)o[l]=54^e[l],a[l]=92^e[l];var h=s.allocUnsafe(r+i+4);o.copy(h,0,0,r),this.ipad1=h,this.ipad2=o,this.opad=a,this.alg=t,this.blocksize=r,this.hash=n,this.size=u[t]}function f(t){function e(e){return o(t).update(e).digest()}function i(t){return(new r).update(t).digest()}return"rmd160"===t||"ripemd160"===t?i:"md5"===t?n:e}function p(t,e,i,n,r){a(i,n),t=h(t,l,"Password"),e=h(e,l,"Salt"),r=r||"sha1";var o=new d(r,t,e.length),c=s.allocUnsafe(n),f=s.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var p=0,g=u[r],m=Math.ceil(n/g),v=1;v<=m;v++){f.writeUInt32BE(v,e.length);for(var b=o.run(f,o.ipad1),y=b,w=1;w<i;w++){y=o.run(y,o.ipad2);for(var C=0;C<g;C++)b[C]^=y[C]}b.copy(c,p),p+=g}return c}d.prototype.run=function(t,e){t.copy(e,this.blocksize);var i=this.hash(e);return i.copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=p},e1d3:function(t,e,i){(function(e){var n=i("3337"),r=i("37e6");t.exports=function(t){return new s(t)};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(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(t,i,n){Array.isArray(t)||(t=t.toArray());var r=new e(t);if(n&&r.length<n){var o=new e(n-r.length);o.fill(0),r=e.concat([o,r])}return i?r.toString(i):r}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(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},s.prototype.computeSecret=function(t,i,n){i=i||"utf8",e.isBuffer(t)||(t=new e(t,i));var r=this.curve.keyFromPublic(t).getPublic(),o=r.mul(this.keys.getPrivate()).getX();return a(o,n,this.curveType.byteLength)},s.prototype.getPublicKey=function(t,e){var i=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(i[i.length-1]%2?i[0]=7:i[0]=6),a(i,t)},s.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},s.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},s.prototype.setPrivateKey=function(t,i){i=i||"utf8",e.isBuffer(t)||(t=new e(t,i));var n=new r(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,i("b639").Buffer)},e24b:function(t,e,i){var n=i("49f4"),r=i("1efc"),o=i("bbc0"),s=i("7a48"),a=i("2524");function l(t){var e=-1,i=null==t?0:t.length;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},e372:function(t,e,i){e=t.exports=i("ad71"),e.Stream=e,e.Readable=e,e.Writable=i("dc14"),e.Duplex=i("b19a"),e.Transform=i("27bf"),e.PassThrough=i("780f")},e37d:function(t,e,i){"use strict";(function(t){var n=i("7037"),r=i.n(n),o=i("9523"),s=i.n(o),a=i("970b"),l=i.n(a),h=i("5bc3"),c=i.n(h),u=i("f0bd"),d=i("63ea"),f=i.n(d),p=i("252c"),g=i("42454"),m=i.n(g),v=function(){};function b(t){return"string"===typeof t&&(t=t.split(" ")),t}function y(t,e){var i,n=b(e);i=t.className instanceof v?b(t.className.baseVal):b(t.className),n.forEach((function(t){-1===i.indexOf(t)&&i.push(t)})),t instanceof SVGElement?t.setAttribute("class",i.join(" ")):t.className=i.join(" ")}function w(t,e){var i,n=b(e);i=t.className instanceof v?b(t.className.baseVal):b(t.className),n.forEach((function(t){var e=i.indexOf(t);-1!==e&&i.splice(e,1)})),t instanceof SVGElement?t.setAttribute("class",i.join(" ")):t.className=i.join(" ")}"undefined"!==typeof window&&(v=window.SVGAnimatedString);var C=!1;if("undefined"!==typeof window){C=!1;try{var I=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,I)}catch(vt){}}function A(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function M(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?A(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var x={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},_=[],S=function(){function t(e,i){var n=this;l()(this,t),s()(this,"_events",[]),s()(this,"_setTooltipNodeEvent",(function(t,e,i,r){var o=t.relatedreference||t.toElement||t.relatedTarget,s=function i(o){var s=o.relatedreference||o.toElement||o.relatedTarget;n._tooltipNode.removeEventListener(t.type,i),e.contains(s)||n._scheduleHide(e,r.delay,r,o)};return!!n._tooltipNode.contains(o)&&(n._tooltipNode.addEventListener(t.type,s),!0)})),i=M(M({},x),i),e.jquery&&(e=e[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=e,this.options=i,this._isOpen=!1,this._init()}return c()(t,[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(t){this._classes=t}},{key:"setContent",value:function(t){this.options.title=t,this._tooltipNode&&this._setContent(t,this.options)}},{key:"setOptions",value:function(t){var e=!1,i=t&&t.classes||P.options.defaultClass;f()(this._classes,i)||(this.setClasses(i),e=!0),t=j(t);var n=!1,r=!1;for(var o in this.options.offset===t.offset&&this.options.placement===t.placement||(n=!0),(this.options.template!==t.template||this.options.trigger!==t.trigger||this.options.container!==t.container||e)&&(r=!0),t)this.options[o]=t[o];if(this._tooltipNode)if(r){var s=this._isOpen;this.dispose(),this._init(),s&&this.show()}else n&&this.popperInstance.update()}},{key:"_init",value:function(){var t="string"===typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===t.indexOf("manual"),t=t.filter((function(t){return-1!==["click","hover","focus"].indexOf(t)})),this._setEventListeners(this.reference,t,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(t,e){var i=this,n=window.document.createElement("div");n.innerHTML=e.trim();var r=n.childNodes[0];return r.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",(function(e){return i._scheduleHide(t,i.options.delay,i.options,e)})),r.addEventListener("click",(function(e){return i._scheduleHide(t,i.options.delay,i.options,e)}))),r}},{key:"_setContent",value:function(t,e){var i=this;this.asyncContent=!1,this._applyContent(t,e).then((function(){i.popperInstance&&i.popperInstance.update()}))}},{key:"_applyContent",value:function(t,e){var i=this;return new Promise((function(n,r){var o=e.html,s=i._tooltipNode;if(s){var a=s.querySelector(i.options.innerSelector);if(1===t.nodeType){if(o){while(a.firstChild)a.removeChild(a.firstChild);a.appendChild(t)}}else{if("function"===typeof t){var l=t();return void(l&&"function"===typeof l.then?(i.asyncContent=!0,e.loadingClass&&y(s,e.loadingClass),e.loadingContent&&i._applyContent(e.loadingContent,e),l.then((function(t){return e.loadingClass&&w(s,e.loadingClass),i._applyContent(t,e)})).then(n).catch(r)):i._applyContent(l,e).then(n).catch(r))}o?a.innerHTML=t:a.innerText=t}n()}}))}},{key:"_show",value:function(t,e){if(e&&"string"===typeof e.container){var i=document.querySelector(e.container);if(!i)return}clearTimeout(this._disposeTimer),e=Object.assign({},e),delete e.offset;var n=!0;this._tooltipNode&&(y(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(t,e);return n&&this._tooltipNode&&y(this._tooltipNode,this._classes),y(t,["v-tooltip-open"]),r}},{key:"_ensureShown",value:function(t,e){var i=this;if(this._isOpen)return this;if(this._isOpen=!0,_.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(e.title,e),this;var n=t.getAttribute("title")||e.title;if(!n)return this;var r=this._create(t,e.template);this._tooltipNode=r,t.setAttribute("aria-describedby",r.id);var o=this._findContainer(e.container,t);this._append(r,o);var s=M(M({},e.popperOptions),{},{placement:e.placement});return s.modifiers=M(M({},s.modifiers),{},{arrow:{element:this.options.arrowSelector}}),e.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new u["a"](t,r,s),this._setContent(n,e),requestAnimationFrame((function(){!i._isDisposed&&i.popperInstance?(i.popperInstance.update(),requestAnimationFrame((function(){i._isDisposed?i.dispose():i._isOpen&&r.setAttribute("aria-hidden","false")}))):i.dispose()})),this}},{key:"_noLongerOpen",value:function(){var t=_.indexOf(this);-1!==t&&_.splice(t,1)}},{key:"_hide",value:function(){var t=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var e=P.options.disposeTimeout;return null!==e&&(this._disposeTimer=setTimeout((function(){t._tooltipNode&&(t._tooltipNode.removeEventListener("mouseenter",t.hide),t._tooltipNode.removeEventListener("click",t.hide),t._removeTooltipNode())}),e)),w(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var t=this._tooltipNode.parentNode;t&&(t.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var t=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(e){var i=e.func,n=e.event;t.reference.removeEventListener(n,i)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(t,e){return"string"===typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,i){var n=this,r=[],o=[];e.forEach((function(t){switch(t){case"hover":r.push("mouseenter"),o.push("mouseleave"),n.options.hideOnTargetClick&&o.push("click");break;case"focus":r.push("focus"),o.push("blur"),n.options.hideOnTargetClick&&o.push("click");break;case"click":r.push("click"),o.push("click");break}})),r.forEach((function(e){var r=function(e){!0!==n._isOpen&&(e.usedByTooltip=!0,n._scheduleShow(t,i.delay,i,e))};n._events.push({event:e,func:r}),t.addEventListener(e,r)})),o.forEach((function(e){var r=function(e){!0!==e.usedByTooltip&&n._scheduleHide(t,i.delay,i,e)};n._events.push({event:e,func:r}),t.addEventListener(e,r)}))}},{key:"_onDocumentTouch",value:function(t){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,t)}},{key:"_scheduleShow",value:function(t,e,i){var n=this,r=e&&e.show||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return n._show(t,i)}),r)}},{key:"_scheduleHide",value:function(t,e,i,n){var r=this,o=e&&e.hide||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==r._isOpen&&r._tooltipNode.ownerDocument.body.contains(r._tooltipNode)){if("mouseleave"===n.type){var o=r._setTooltipNodeEvent(n,t,e,i);if(o)return}r._hide(t,i)}}),o)}}]),t}();function k(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function E(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?k(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}"undefined"!==typeof document&&document.addEventListener("touchstart",(function(t){for(var e=0;e<_.length;e++)_[e]._onDocumentTouch(t)}),!C||{passive:!0,capture:!0});var T={enabled:!0},R=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],O={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function j(t){var e={placement:"undefined"!==typeof t.placement?t.placement:P.options.defaultPlacement,delay:"undefined"!==typeof t.delay?t.delay:P.options.defaultDelay,html:"undefined"!==typeof t.html?t.html:P.options.defaultHtml,template:"undefined"!==typeof t.template?t.template:P.options.defaultTemplate,arrowSelector:"undefined"!==typeof t.arrowSelector?t.arrowSelector:P.options.defaultArrowSelector,innerSelector:"undefined"!==typeof t.innerSelector?t.innerSelector:P.options.defaultInnerSelector,trigger:"undefined"!==typeof t.trigger?t.trigger:P.options.defaultTrigger,offset:"undefined"!==typeof t.offset?t.offset:P.options.defaultOffset,container:"undefined"!==typeof t.container?t.container:P.options.defaultContainer,boundariesElement:"undefined"!==typeof t.boundariesElement?t.boundariesElement:P.options.defaultBoundariesElement,autoHide:"undefined"!==typeof t.autoHide?t.autoHide:P.options.autoHide,hideOnTargetClick:"undefined"!==typeof t.hideOnTargetClick?t.hideOnTargetClick:P.options.defaultHideOnTargetClick,loadingClass:"undefined"!==typeof t.loadingClass?t.loadingClass:P.options.defaultLoadingClass,loadingContent:"undefined"!==typeof t.loadingContent?t.loadingContent:P.options.defaultLoadingContent,popperOptions:E({},"undefined"!==typeof t.popperOptions?t.popperOptions:P.options.defaultPopperOptions)};if(e.offset){var i=r()(e.offset),n=e.offset;("number"===i||"string"===i&&-1===n.indexOf(","))&&(n="0, ".concat(n)),e.popperOptions.modifiers||(e.popperOptions.modifiers={}),e.popperOptions.modifiers.offset={offset:n}}return e.trigger&&-1!==e.trigger.indexOf("click")&&(e.hideOnTargetClick=!1),e}function N(t,e){for(var i=t.placement,n=0;n<R.length;n++){var r=R[n];e[r]&&(i=r)}return i}function L(t){var e=r()(t);return"string"===e?t:!(!t||"object"!==e)&&t.content}function B(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=L(e),o="undefined"!==typeof e.classes?e.classes:P.options.defaultClass,s=E({title:n},j(E(E({},"object"===r()(e)?e:{}),{},{placement:N(e,i)}))),a=t._tooltip=new S(t,s);a.setClasses(o),a._vueEl=t;var l="undefined"!==typeof e.targetClasses?e.targetClasses:P.options.defaultTargetClass;return t._tooltipTargetClasses=l,y(t,l),a}function D(t){t._tooltip&&(t._tooltip.dispose(),delete t._tooltip,delete t._tooltipOldShow),t._tooltipTargetClasses&&(w(t,t._tooltipTargetClasses),delete t._tooltipTargetClasses)}function Z(t,e){var i=e.value;e.oldValue;var n,r=e.modifiers,o=L(i);o&&T.enabled?(t._tooltip?(n=t._tooltip,n.setContent(o),n.setOptions(E(E({},i),{},{placement:N(i,r)}))):n=B(t,i,r),"undefined"!==typeof i.show&&i.show!==t._tooltipOldShow&&(t._tooltipOldShow=i.show,i.show?n.show():n.hide())):D(t)}var P={options:O,bind:Z,update:Z,unbind:function(t){D(t)}};function W(t){t.addEventListener("click",H),t.addEventListener("touchstart",z,!!C&&{passive:!0})}function $(t){t.removeEventListener("click",H),t.removeEventListener("touchstart",z),t.removeEventListener("touchend",G),t.removeEventListener("touchcancel",F)}function H(t){var e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function z(t){if(1===t.changedTouches.length){var e=t.currentTarget;e.$_vclosepopover_touch=!0;var i=t.changedTouches[0];e.$_vclosepopover_touchPoint=i,e.addEventListener("touchend",G),e.addEventListener("touchcancel",F)}}function G(t){var e=t.currentTarget;if(e.$_vclosepopover_touch=!1,1===t.changedTouches.length){var i=t.changedTouches[0],n=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(i.screenY-n.screenY)<20&&Math.abs(i.screenX-n.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function F(t){var e=t.currentTarget;e.$_vclosepopover_touch=!1}var V={bind:function(t,e){var i=e.value,n=e.modifiers;t.$_closePopoverModifiers=n,("undefined"===typeof i||i)&&W(t)},update:function(t,e){var i=e.value,n=e.oldValue,r=e.modifiers;t.$_closePopoverModifiers=r,i!==n&&("undefined"===typeof i||i?W(t):$(t))},unbind:function(t){$(t)}};function K(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?K(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function U(t){var e=P.options.popover[t];return"undefined"===typeof e?P.options[t]:e}var X=!1;"undefined"!==typeof window&&"undefined"!==typeof navigator&&(X=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var J=[],Q=function(){};"undefined"!==typeof window&&(Q=window.Element);var q={name:"VPopover",components:{ResizeObserver:p["a"]},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return U("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return U("defaultDelay")}},offset:{type:[String,Number],default:function(){return U("defaultOffset")}},trigger:{type:String,default:function(){return U("defaultTrigger")}},container:{type:[String,Object,Q,Boolean],default:function(){return U("defaultContainer")}},boundariesElement:{type:[String,Q],default:function(){return U("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return U("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return U("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return P.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return P.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return P.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return P.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return P.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return P.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return P.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return s()({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(t){t?this.show():this.hide()},disabled:function(t,e){t!==e&&(t?this.hide():this.open&&this.show())},container:function(t){if(this.isOpen&&this.popperInstance){var e=this.$refs.popover,i=this.$refs.trigger,n=this.$_findContainer(this.container,i);if(!n)return void console.warn("No container for popover",this);n.appendChild(e),this.popperInstance.scheduleUpdate()}},trigger:function(t){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(t){var e=this;this.$_updatePopper((function(){e.popperInstance.options.placement=t}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.event;e.skipDelay;var n=e.force,r=void 0!==n&&n;!r&&this.disabled||(this.$_scheduleShow(i),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){t.$_beingShowed=!1}))},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.event;t.skipDelay,this.$_scheduleHide(e),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var t=this,e=this.$refs.trigger,i=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var n=this.$_findContainer(this.container,e);if(!n)return void console.warn("No container for popover",this);n.appendChild(i),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){t.hidden||(t.isOpen=!0)}))}if(!this.popperInstance){var r=Y(Y({},this.popperOptions),{},{placement:this.placement});if(r.modifiers=Y(Y({},r.modifiers),{},{arrow:Y(Y({},r.modifiers&&r.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var o=this.$_getOffset();r.modifiers.offset=Y(Y({},r.modifiers&&r.modifiers.offset),{},{offset:o})}this.boundariesElement&&(r.modifiers.preventOverflow=Y(Y({},r.modifiers&&r.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new u["a"](e,i,r),requestAnimationFrame((function(){if(t.hidden)return t.hidden=!1,void t.$_hide();!t.$_isDisposed&&t.popperInstance?(t.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(t.hidden)return t.hidden=!1,void t.$_hide();t.$_isDisposed?t.dispose():t.isOpen=!0}))):t.dispose()}))}var s=this.openGroup;if(s)for(var a,l=0;l<J.length;l++)a=J[l],a.openGroup!==s&&(a.hide(),a.$emit("close-group"));J.push(this),this.$emit("apply-show")}},$_hide:function(){var t=this;if(this.isOpen){var e=J.indexOf(this);-1!==e&&J.splice(e,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var i=P.options.popover.disposeTimeout||P.options.disposeTimeout;null!==i&&(this.$_disposeTimer=setTimeout((function(){var e=t.$refs.popover;e&&(e.parentNode&&e.parentNode.removeChild(e),t.$_mounted=!1)}),i)),this.$emit("apply-hide")}},$_findContainer:function(t,e){return"string"===typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t},$_getOffset:function(){var t=r()(this.offset),e=this.offset;return("number"===t||"string"===t&&-1===e.indexOf(","))&&(e="0, ".concat(e)),e},$_addEventListeners:function(){var t=this,e=this.$refs.trigger,i=[],n=[],r="string"===typeof this.trigger?this.trigger.split(" ").filter((function(t){return-1!==["click","hover","focus"].indexOf(t)})):[];r.forEach((function(t){switch(t){case"hover":i.push("mouseenter"),n.push("mouseleave");break;case"focus":i.push("focus"),n.push("blur");break;case"click":i.push("click"),n.push("click");break}})),i.forEach((function(i){var n=function(e){t.isOpen||(e.usedByTooltip=!0,!t.$_preventOpen&&t.show({event:e}),t.hidden=!1)};t.$_events.push({event:i,func:n}),e.addEventListener(i,n)})),n.forEach((function(i){var n=function(e){e.usedByTooltip||(t.hide({event:e}),t.hidden=!0)};t.$_events.push({event:i,func:n}),e.addEventListener(i,n)}))},$_scheduleShow:function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),t)this.$_show();else{var e=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),e)}},$_scheduleHide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),i)this.$_hide();else{var n=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(t.isOpen){if(e&&"mouseleave"===e.type){var i=t.$_setTooltipNodeEvent(e);if(i)return}t.$_hide()}}),n)}},$_setTooltipNodeEvent:function(t){var e=this,i=this.$refs.trigger,n=this.$refs.popover,r=t.relatedreference||t.toElement||t.relatedTarget,o=function r(o){var s=o.relatedreference||o.toElement||o.relatedTarget;n.removeEventListener(t.type,r),i.contains(s)||e.hide({event:o})};return!!n.contains(r)&&(n.addEventListener(t.type,o),!0)},$_removeEventListeners:function(){var t=this.$refs.trigger;this.$_events.forEach((function(e){var i=e.func,n=e.event;t.removeEventListener(n,i)})),this.$_events=[]},$_updatePopper:function(t){this.popperInstance&&(t(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var t=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),t&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),i&&(this.$_preventOpen=!0,setTimeout((function(){e.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function tt(t){it(t)}function et(t){it(t,!0)}function it(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=function(i){var n=J[i];if(n.$refs.popover){var r=n.$refs.popover.contains(t.target);requestAnimationFrame((function(){(t.closeAllPopover||t.closePopover&&r||n.autoHide&&!r)&&n.$_handleGlobalClose(t,e)}))}},n=0;n<J.length;n++)i(n)}function nt(t,e,i,n,r,o,s,a,l,h){"boolean"!==typeof s&&(l=a,a=s,s=!1);const c="function"===typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),n&&(c._scopeId=n),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=s?function(t){e.call(this,h(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}"undefined"!==typeof document&&"undefined"!==typeof window&&(X?document.addEventListener("touchend",et,!C||{passive:!0,capture:!0}):window.addEventListener("click",tt,!0));var rt=q,ot=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-popover",class:t.cssClass},[i("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":t.isOpen?t.popoverId:void 0,tabindex:-1!==t.trigger.indexOf("focus")?0:void 0}},[t._t("default")],2),t._v(" "),i("div",{ref:"popover",class:[t.popoverBaseClass,t.popoverClass,t.cssClass],style:{visibility:t.isOpen?"visible":"hidden"},attrs:{id:t.popoverId,"aria-hidden":t.isOpen?"false":"true",tabindex:t.autoHide?0:void 0},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;t.autoHide&&t.hide()}}},[i("div",{class:t.popoverWrapperClass},[i("div",{ref:"inner",class:t.popoverInnerClass,staticStyle:{position:"relative"}},[i("div",[t._t("popover",null,{isOpen:t.isOpen})],2),t._v(" "),t.handleResize?i("ResizeObserver",{on:{notify:t.$_handleResize}}):t._e()],1),t._v(" "),i("div",{ref:"arrow",class:t.popoverArrowClass})])])])},st=[];ot._withStripped=!0;var at=void 0,lt=void 0,ht=void 0,ct=!1,ut=nt({render:ot,staticRenderFns:st},at,rt,lt,ct,ht,!1,void 0,void 0,void 0);function dt(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!==typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}var ft=".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}";function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!pt.installed){pt.installed=!0;var i={};m()(i,O,e),gt.options=i,P.options=i,t.directive("tooltip",P),t.directive("close-popover",V),t.component("VPopover",ut)}}dt(ft);var gt={install:pt,get enabled(){return T.enabled},set enabled(t){T.enabled=t}},mt=null;"undefined"!==typeof window?mt=window.Vue:"undefined"!==typeof t&&(mt=t.Vue),mt&&mt.use(gt),e["a"]=gt}).call(this,i("c8ba"))},e3db:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},e538:function(t,e,i){(function(t){var n=i("2b3e"),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===r,a=s?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;function h(t,e){if(e)return t.slice();var i=t.length,n=l?l(i):new t.constructor(i);return t.copy(n),n}t.exports=h}).call(this,i("62e4")(t))},e57a:function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return w}));var n=i("2b0e");function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r.apply(this,arguments)}var o=13,s=9,a=8,l=89,h=90,c=77,u=57,d=219,f=222,p=192,g=27,m=100,v=3e3,b="navigator"in t&&/Win/i.test(navigator.platform),y="navigator"in t&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),w=n["a"].extend({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},value:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{value:{immediate:!0,handler:function(t){this.codeData=t||""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick((function(){t.setLineNumbersHeight()}))}},lineNumbers:function(){var t=this;this.$nextTick((function(){t.styleLineNumbers(),t.setLineNumbersHeight()}))}},computed:{isEmpty:function(){return 0===this.codeData.length},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var t=this.$refs.pre,e=this.$el.querySelector(".prism-editor__line-numbers"),i=window.getComputedStyle(t);this.$nextTick((function(){var n="border-top-left-radius",r="border-bottom-left-radius";if(e){e.style[n]=i[n],e.style[r]=i[r],t.style[n]="0",t.style[r]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach((function(t){e.style[t]=i[t]})),e.style["margin-bottom"]="-"+i["padding-top"]}}))}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var e=t.value,i=t.selectionStart,n=t.selectionEnd;this._recordChange({value:e,selectionStart:i,selectionEnd:n})}},_getLines:function(t,e){return t.substring(0,e).split("\n")},_applyEdits:function(t){var e=this.$refs.textarea,i=this.history.stack[this.history.offset];i&&e&&(this.history.stack[this.history.offset]=r({},i,{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,e){void 0===e&&(e=!1);var i=this.history,n=i.stack,o=i.offset;if(n.length&&o>-1){this.history.stack=n.slice(0,o+1);var s=this.history.stack.length;if(s>m){var a=s-m;this.history.stack=n.slice(a,s),this.history.offset=Math.max(this.history.offset-a,0)}}var l=Date.now();if(e){var h=this.history.stack[this.history.offset];if(h&&l-h.timestamp<v){var c,u,d=/[^a-z0-9]([a-z0-9]+)$/i,f=null===(c=this._getLines(h.value,h.selectionStart).pop())||void 0===c?void 0:c.match(d),p=null===(u=this._getLines(t.value,t.selectionStart).pop())||void 0===u?void 0:u.match(d);if(f&&p&&p[1].startsWith(f[1]))return void(this.history.stack[this.history.offset]=r({},t,{timestamp:l}))}}this.history.stack.push(r({},t,{timestamp:l})),this.history.offset++},_updateInput:function(t){var e=this.$refs.textarea;e&&(e.value=t.value,e.selectionStart=t.selectionStart,e.selectionEnd=t.selectionEnd,this.$emit("input",t.value))},handleChange:function(t){var e=t.target,i=e.value,n=e.selectionStart,r=e.selectionEnd;this._recordChange({value:i,selectionStart:n,selectionEnd:r},!0),this.$emit("input",i)},_undoEdit:function(){var t=this.history,e=t.stack,i=t.offset,n=e[i-1];n&&(this._updateInput(n),this.history.offset=Math.max(i-1,0))},_redoEdit:function(){var t=this.history,e=t.stack,i=t.offset,n=e[i+1];n&&(this._updateInput(n),this.history.offset=Math.min(i+1,e.length-1))},handleKeyDown:function(t){var e=this.tabSize,i=this.insertSpaces,n=this.ignoreTabKey;if(!this.$listeners.keydown||(this.$emit("keydown",t),!t.defaultPrevented)){t.keyCode===g&&(t.target.blur(),this.$emit("blur",t));var r=t.target,m=r.value,v=r.selectionStart,w=r.selectionEnd,C=(i?" ":"\t").repeat(e);if(t.keyCode===s&&!n&&this.capture)if(t.preventDefault(),t.shiftKey){var I=this._getLines(m,v),A=I.length-1,M=this._getLines(m,w).length-1,x=m.split("\n").map((function(t,e){return e>=A&&e<=M&&t.startsWith(C)?t.substring(C.length):t})).join("\n");if(m!==x){var _=I[A];this._applyEdits({value:x,selectionStart:_.startsWith(C)?v-C.length:v,selectionEnd:w-(m.length-x.length)})}}else if(v!==w){var S=this._getLines(m,v),k=S.length-1,E=this._getLines(m,w).length-1,T=S[k];this._applyEdits({value:m.split("\n").map((function(t,e){return e>=k&&e<=E?C+t:t})).join("\n"),selectionStart:/\S/.test(T)?v+C.length:v,selectionEnd:w+C.length*(E-k+1)})}else{var R=v+C.length;this._applyEdits({value:m.substring(0,v)+C+m.substring(w),selectionStart:R,selectionEnd:R})}else if(t.keyCode===a){var O=v!==w,j=m.substring(0,v);if(j.endsWith(C)&&!O){t.preventDefault();var N=v-C.length;this._applyEdits({value:m.substring(0,v-C.length)+m.substring(w),selectionStart:N,selectionEnd:N})}}else if(t.keyCode===o){if(v===w){var L=this._getLines(m,v).pop(),B=null===L||void 0===L?void 0:L.match(/^\s+/);if(B&&B[0]){t.preventDefault();var D="\n"+B[0],Z=v+D.length;this._applyEdits({value:m.substring(0,v)+D+m.substring(w),selectionStart:Z,selectionEnd:Z})}}}else if(t.keyCode===u||t.keyCode===d||t.keyCode===f||t.keyCode===p){var P;t.keyCode===u&&t.shiftKey?P=["(",")"]:t.keyCode===d?P=t.shiftKey?["{","}"]:["[","]"]:t.keyCode===f?P=t.shiftKey?['"','"']:["'","'"]:t.keyCode!==p||t.shiftKey||(P=["`","`"]),v!==w&&P&&(t.preventDefault(),this._applyEdits({value:m.substring(0,v)+P[0]+m.substring(v,w)+P[1]+m.substring(w),selectionStart:v,selectionEnd:w+2}))}else!(y?t.metaKey&&t.keyCode===h:t.ctrlKey&&t.keyCode===h)||t.shiftKey||t.altKey?(y?t.metaKey&&t.keyCode===h&&t.shiftKey:b?t.ctrlKey&&t.keyCode===l:t.ctrlKey&&t.keyCode===h&&t.shiftKey)&&!t.altKey?(t.preventDefault(),this._redoEdit()):t.keyCode!==c||!t.ctrlKey||y&&!t.shiftKey||(t.preventDefault(),this.capture=!this.capture):(t.preventDefault(),this._undoEdit())}}},render:function(t){var e=this,i=t("div",{attrs:{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"}},"999"),n=t("div",{staticClass:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},attrs:{"aria-hidden":"true"}},[i,Array.from(Array(this.lineNumbersCount).keys()).map((function(e,i){return t("div",{attrs:{class:"prism-editor__line-number token comment"}},""+ ++i)}))]),r=t("textarea",{ref:"textarea",on:{input:this.handleChange,keydown:this.handleKeyDown,click:function(t){e.$emit("click",t)},keyup:function(t){e.$emit("keyup",t)},focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)}},staticClass:"prism-editor__textarea",class:{"prism-editor__textarea--empty":this.isEmpty},attrs:{spellCheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off","data-gramm":"false",placeholder:this.placeholder,"data-testid":"textarea",readonly:this.readonly},domProps:{value:this.codeData}}),o=t("pre",{ref:"pre",staticClass:"prism-editor__editor",attrs:{"data-testid":"preview"},domProps:{innerHTML:this.content}}),s=t("div",{staticClass:"prism-editor__container"},[r,o]);return t("div",{staticClass:"prism-editor-wrapper"},[this.lineNumbers&&n,s])}})}).call(this,i("c8ba"))},e666:function(t,e,i){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=h;var r=i("4250"),o=i("19ea");i("3fb5")(h,r);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];h.prototype[l]||(h.prototype[l]=o.prototype[l])}function h(t){if(!(this instanceof h))return new h(t);r.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i("4362"))},e683:function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e85f:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},ea53:function(t,e,i){"use strict";var n=i("80af"),r=i("f3a3"),o=r.getNAF,s=r.getJSF,a=r.assert;function l(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(t,e){a(t.precomputed);var i=t._getDoubles(),n=o(e,1,this._bitLength),r=(1<<i.step+1)-(i.step%2===0?2:1);r/=3;var s,l,h=[];for(s=0;s<n.length;s+=i.step){l=0;for(var c=s+i.step-1;c>=s;c--)l=(l<<1)+n[c];h.push(l)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=r;f>0;f--){for(s=0;s<h.length;s++)l=h[s],l===f?d=d.mixedAdd(i.points[s]):l===-f&&(d=d.mixedAdd(i.points[s].neg()));u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(t,e){var i=4,n=t._getNAFPoints(i);i=n.wnd;for(var r=n.points,s=o(e,i,this._bitLength),l=this.jpoint(null,null,null),h=s.length-1;h>=0;h--){for(var c=0;h>=0&&0===s[h];h--)c++;if(h>=0&&c++,l=l.dblp(c),h<0)break;var u=s[h];a(0!==u),l="affine"===t.type?u>0?l.mixedAdd(r[u-1>>1]):l.mixedAdd(r[-u-1>>1].neg()):u>0?l.add(r[u-1>>1]):l.add(r[-u-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,i,n,r){var a,l,h,c=this._wnafT1,u=this._wnafT2,d=this._wnafT3,f=0;for(a=0;a<n;a++){h=e[a];var p=h._getNAFPoints(t);c[a]=p.wnd,u[a]=p.points}for(a=n-1;a>=1;a-=2){var g=a-1,m=a;if(1===c[g]&&1===c[m]){var v=[e[g],null,null,e[m]];0===e[g].y.cmp(e[m].y)?(v[1]=e[g].add(e[m]),v[2]=e[g].toJ().mixedAdd(e[m].neg())):0===e[g].y.cmp(e[m].y.redNeg())?(v[1]=e[g].toJ().mixedAdd(e[m]),v[2]=e[g].add(e[m].neg())):(v[1]=e[g].toJ().mixedAdd(e[m]),v[2]=e[g].toJ().mixedAdd(e[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=s(i[g],i[m]);for(f=Math.max(y[0].length,f),d[g]=new Array(f),d[m]=new Array(f),l=0;l<f;l++){var w=0|y[0][l],C=0|y[1][l];d[g][l]=b[3*(w+1)+(C+1)],d[m][l]=0,u[g]=v}}else d[g]=o(i[g],c[g],this._bitLength),d[m]=o(i[m],c[m],this._bitLength),f=Math.max(d[g].length,f),f=Math.max(d[m].length,f)}var I=this.jpoint(null,null,null),A=this._wnafT4;for(a=f;a>=0;a--){var M=0;while(a>=0){var x=!0;for(l=0;l<n;l++)A[l]=0|d[l][a],0!==A[l]&&(x=!1);if(!x)break;M++,a--}if(a>=0&&M++,I=I.dblp(M),a<0)break;for(l=0;l<n;l++){var _=A[l];0!==_&&(_>0?h=u[l][_-1>>1]:_<0&&(h=u[l][-_-1>>1].neg()),I="affine"===h.type?I.mixedAdd(h):I.add(h))}}for(a=0;a<n;a++)u[a]=null;return r?I:I.toP()},l.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(t,e){t=r.toArray(t,e);var i=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*i){6===t[0]?a(t[t.length-1]%2===0):7===t[0]&&a(t[t.length-1]%2===1);var n=this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));return n}if((2===t[0]||3===t[0])&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),3===t[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},h.prototype.encode=function(t,e){return r.encode(this._encode(e),t)},h.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},h.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r<e;r+=t){for(var o=0;o<t;o++)n=n.dbl();i.push(n)}return{step:t,points:i}},h.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,n=1===i?null:this.dbl(),r=1;r<i;r++)e[r]=e[r-1].add(n);return{wnd:t,points:e}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},eac5:function(t,e){var i=Object.prototype;function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||i;return t===n}t.exports=n},ec69:function(t,e,i){var n=i("6fcd"),r=i("03dd"),o=i("30c9");function s(t){return o(t)?n(t):r(t)}t.exports=s},ec8c:function(t,e){function i(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}t.exports=i},edc9:function(t,e,i){"use strict";var n=i("c3c0"),r=i("da3e");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}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var i=t.length%this._delta8;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-i,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),r(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e,n=new Array(i+this.padLength);n[0]=128;for(var r=1;r<i;r++)n[r]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=t>>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,o=8;o<this.padLength;o++)n[r++]=0;return n}},edfa:function(t,e){function i(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}t.exports=i},ee93:function(t,e,i){"use strict";var n=i("9d8a").codes.ERR_STREAM_PREMATURE_CLOSE;function r(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t.apply(this,n)}}}function o(){}function s(t){return t.setHeader&&"function"===typeof t.abort}function a(t,e,i){if("function"===typeof e)return a(t,null,e);e||(e={}),i=r(i||o);var l=e.readable||!1!==e.readable&&t.readable,h=e.writable||!1!==e.writable&&t.writable,c=function(){t.writable||d()},u=t._writableState&&t._writableState.finished,d=function(){h=!1,u=!0,l||i.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,f=!0,h||i.call(t)},g=function(e){i.call(t,e)},m=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):h&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return s(t)?(t.on("complete",d),t.on("abort",m),t.req?v():t.on("request",v)):h&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",d),!1!==e.error&&t.on("error",g),t.on("close",m),function(){t.removeListener("complete",d),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",m)}}t.exports=a},ef3a:function(t,e,i){"use strict";const n=i("343e"),r=i("20f6"),o=i("3fb5"),s=e;function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}s.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){const e=this.name;function i(t){this._initNamed(t,e)}return o(i,t),i.prototype._initNamed=function(e,i){t.call(this,e,i)},new i(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},a.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},a.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},efb6:function(t,e,i){var n=i("5e2e");function r(){this.__data__=new n,this.size=0}t.exports=r},f0bd:function(t,e,i){"use strict";(function(t){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var i="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,n=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function r(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}function o(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),n))}}var s=i&&window.Promise,a=s?r:o;function l(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function h(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView,n=i.getComputedStyle(t,null);return e?n[e]:n}function c(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=h(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(i+r+n)?t:u(c(t))}function d(t){return t&&t.referenceNode?t.referenceNode:t}var f=i&&!(!window.MSInputMethodContext||!document.documentMode),p=i&&/MSIE 10/.test(navigator.userAgent);function g(t){return 11===t?f:10===t?p:f||p}function m(t){if(!t)return document.documentElement;var e=g(10)?document.body:null,i=t.offsetParent||null;while(i===e&&t.nextElementSibling)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===h(i,"position")?m(i):i:t?t.ownerDocument.documentElement:document.documentElement}function v(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||m(t.firstElementChild)===t)}function b(t){return null!==t.parentNode?b(t.parentNode):t}function y(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,r=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||n.contains(r))return v(s)?s:m(s);var a=b(t);return a.host?y(a.host,e):y(t,b(e).host)}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[i]}return t[i]}function C(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=w(e,"top"),r=w(e,"left"),o=i?-1:1;return t.top+=n*o,t.bottom+=n*o,t.left+=r*o,t.right+=r*o,t}function I(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function A(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],g(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function M(t){var e=t.body,i=t.documentElement,n=g(10)&&getComputedStyle(i);return{height:A("Height",e,i,n),width:A("Width",e,i,n)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),S=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function E(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};try{if(g(10)){e=t.getBoundingClientRect();var i=w(t,"top"),n=w(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?M(t.ownerDocument):{},s=o.width||t.clientWidth||r.width,a=o.height||t.clientHeight||r.height,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var u=h(t);l-=I(u,"x"),c-=I(u,"y"),r.width-=l,r.height-=c}return E(r)}function R(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=g(10),r="HTML"===e.nodeName,o=T(t),s=T(e),a=u(t),l=h(e),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);i&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=E({top:o.top-s.top-c,left:o.left-s.left-d,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!n&&r){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);f.top-=c-p,f.bottom-=c-p,f.left-=d-m,f.right-=d-m,f.marginTop=p,f.marginLeft=m}return(n&&!i?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(f=C(f,e)),f}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=R(t,i),r=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),s=e?0:w(i),a=e?0:w(i,"left"),l={top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:r,height:o};return E(l)}function j(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===h(t,"position"))return!0;var i=c(t);return!!i&&j(i)}function N(t){if(!t||!t.parentElement||g())return document.documentElement;var e=t.parentElement;while(e&&"none"===h(e,"transform"))e=e.parentElement;return e||document.documentElement}function L(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=r?N(t):y(t,d(e));if("viewport"===n)o=O(s,r);else{var a=void 0;"scrollParent"===n?(a=u(c(e)),"BODY"===a.nodeName&&(a=t.ownerDocument.documentElement)):a="window"===n?t.ownerDocument.documentElement:n;var l=R(a,s,r);if("HTML"!==a.nodeName||j(s))o=l;else{var h=M(t.ownerDocument),f=h.height,p=h.width;o.top+=l.top-l.marginTop,o.bottom=f+l.top,o.left+=l.left-l.marginLeft,o.right=p+l.left}}i=i||0;var g="number"===typeof i;return o.left+=g?i:i.left||0,o.top+=g?i:i.top||0,o.right-=g?i:i.right||0,o.bottom-=g?i:i.bottom||0,o}function B(t){var e=t.width,i=t.height;return e*i}function D(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=L(i,n,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return k({key:t},a[t],{area:B(a[t])})})).sort((function(t,e){return e.area-t.area})),h=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),c=h.length>0?h[0].key:l[0].key,u=t.split("-")[1];return c+(u?"-"+u:"")}function Z(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=n?N(e):y(e,d(i));return R(i,r,n)}function P(t){var e=t.ownerDocument.defaultView,i=e.getComputedStyle(t),n=parseFloat(i.marginTop||0)+parseFloat(i.marginBottom||0),r=parseFloat(i.marginLeft||0)+parseFloat(i.marginRight||0),o={width:t.offsetWidth+r,height:t.offsetHeight+n};return o}function W(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function $(t,e,i){i=i.split("-")[0];var n=P(t),r={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",h=o?"width":"height";return r[s]=e[s]+e[l]/2-n[l]/2,r[a]=i===a?e[a]-n[h]:e[W(a)],r}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function z(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=H(t,(function(t){return t[e]===i}));return t.indexOf(n)}function G(t,e,i){var n=void 0===i?t:t.slice(0,z(t,"name",i));return n.forEach((function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t["function"]||t.fn;t.enabled&&l(i)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=i(e,t))})),e}function F(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Z(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=D(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=$(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=G(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function V(t,e){return t.some((function(t){var i=t.name,n=t.enabled;return n&&i===e}))}function K(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var r=e[n],o=r?""+r+i:t;if("undefined"!==typeof document.body.style[o])return o}return null}function Y(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[K("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(t){var e=t.ownerDocument;return e?e.defaultView:window}function X(t,e,i,n){var r="BODY"===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,i,{passive:!0}),r||X(u(o.parentNode),e,i,n),n.push(o)}function J(t,e,i,n){i.updateBound=n,U(t).addEventListener("resize",i.updateBound,{passive:!0});var r=u(t);return X(r,"scroll",i.updateBound,i.scrollParents),i.scrollElement=r,i.eventsEnabled=!0,i}function Q(){this.state.eventsEnabled||(this.state=J(this.reference,this.options,this.state,this.scheduleUpdate))}function q(t,e){return U(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function tt(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=q(this.reference,this.state))}function et(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function it(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&et(e[i])&&(n="px"),t.style[i]=e[i]+n}))}function nt(t,e){Object.keys(e).forEach((function(i){var n=e[i];!1!==n?t.setAttribute(i,e[i]):t.removeAttribute(i)}))}function rt(t){return it(t.instance.popper,t.styles),nt(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&it(t.arrowElement,t.arrowStyles),t}function ot(t,e,i,n,r){var o=Z(r,e,t,i.positionFixed),s=D(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",s),it(e,{position:i.positionFixed?"fixed":"absolute"}),i}function st(t,e){var i=t.offsets,n=i.popper,r=i.reference,o=Math.round,s=Math.floor,a=function(t){return t},l=o(r.width),h=o(n.width),c=-1!==["left","right"].indexOf(t.placement),u=-1!==t.placement.indexOf("-"),d=l%2===h%2,f=l%2===1&&h%2===1,p=e?c||u||d?o:s:a,g=e?o:a;return{left:p(f&&!u&&e?n.left-1:n.left),top:g(n.top),bottom:g(n.bottom),right:p(n.right)}}var at=i&&/Firefox/i.test(navigator.userAgent);function lt(t,e){var i=e.x,n=e.y,r=t.offsets.popper,o=H(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=m(t.instance.popper),l=T(a),h={position:r.position},c=st(t,window.devicePixelRatio<2||!at),u="bottom"===i?"top":"bottom",d="right"===n?"left":"right",f=K("transform"),p=void 0,g=void 0;if(g="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===d?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,s&&f)h[f]="translate3d("+p+"px, "+g+"px, 0)",h[u]=0,h[d]=0,h.willChange="transform";else{var v="bottom"===u?-1:1,b="right"===d?-1:1;h[u]=g*v,h[d]=p*b,h.willChange=u+", "+d}var y={"x-placement":t.placement};return t.attributes=k({},y,t.attributes),t.styles=k({},h,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t}function ht(t,e,i){var n=H(t,(function(t){var i=t.name;return i===e})),r=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!r){var o="`"+e+"`",s="`"+i+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function ct(t,e){var i;if(!ht(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"===typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",g=P(n)[c];a[p]-g<s[d]&&(t.offsets.popper[d]-=s[d]-(a[p]-g)),a[d]+g>s[p]&&(t.offsets.popper[d]+=a[d]+g-s[p]),t.offsets.popper=E(t.offsets.popper);var m=a[d]+a[c]/2-g/2,v=h(t.instance.popper),b=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),w=m-t.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[c]-g,w),0),t.arrowElement=n,t.offsets.arrow=(i={},S(i,d,Math.round(w)),S(i,f,""),i),t}function ut(t){return"end"===t?"start":"start"===t?"end":t}var dt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ft=dt.slice(3);function pt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ft.indexOf(t),n=ft.slice(i+1).concat(ft.slice(0,i));return e?n.reverse():n}var gt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mt(t,e){if(V(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=L(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],r=W(n),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case gt.FLIP:s=[n,r];break;case gt.CLOCKWISE:s=pt(n);break;case gt.COUNTERCLOCKWISE:s=pt(n,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(n!==a||s.length===l+1)return t;n=t.placement.split("-")[0],r=W(n);var h=t.offsets.popper,c=t.offsets.reference,u=Math.floor,d="left"===n&&u(h.right)>u(c.left)||"right"===n&&u(h.left)<u(c.right)||"top"===n&&u(h.bottom)>u(c.top)||"bottom"===n&&u(h.top)<u(c.bottom),f=u(h.left)<u(i.left),p=u(h.right)>u(i.right),g=u(h.top)<u(i.top),m=u(h.bottom)>u(i.bottom),v="left"===n&&f||"right"===n&&p||"top"===n&&g||"bottom"===n&&m,b=-1!==["top","bottom"].indexOf(n),y=!!e.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&p||!b&&"start"===o&&g||!b&&"end"===o&&m),w=!!e.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&f||!b&&"start"===o&&m||!b&&"end"===o&&g),C=y||w;(d||v||C)&&(t.flipped=!0,(d||v)&&(n=s[l+1]),C&&(o=ut(o)),t.placement=n+(o?"-"+o:""),t.offsets.popper=k({},t.offsets.popper,$(t.instance.popper,t.offsets.reference,t.placement)),t=G(t.instance.modifiers,t,"flip"))})),t}function vt(t){var e=t.offsets,i=e.popper,n=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",h=s?"width":"height";return i[a]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[h]),i[l]>o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}function bt(t,e,i,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=i;break;case"%":case"%r":default:a=n}var l=E(a);return l[e]/100*o}if("vh"===s||"vw"===s){var h=void 0;return h="vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),h/100*o}return o}function yt(t,e,i,n){var r=[0,0],o=-1!==["right","left"].indexOf(n),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(H(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,h=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return h=h.map((function(t,n){var r=(1===n?!o:o)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return bt(t,r,e,i)}))})),h.forEach((function(t,e){t.forEach((function(i,n){et(i)&&(r[e]+=i*("-"===t[n-1]?-1:1))}))})),r}function wt(t,e){var i=e.offset,n=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=n.split("-")[0],l=void 0;return l=et(+i)?[+i,0]:yt(i,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function Ct(t,e){var i=e.boundariesElement||m(t.instance.popper);t.instance.reference===i&&(i=m(i));var n=K("transform"),r=t.instance.popper.style,o=r.top,s=r.left,a=r[n];r.top="",r.left="",r[n]="";var l=L(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);r.top=o,r.left=s,r[n]=a,e.boundaries=l;var h=e.priority,c=t.offsets.popper,u={primary:function(t){var i=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(c[t],l[t])),S({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=c[i];return c[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(c[i],l[t]-("right"===t?c.width:c.height))),S({},i,n)}};return h.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=k({},c,u[e](t))})),t.offsets.popper=c,t}function It(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",h=a?"width":"height",c={start:S({},l,o[l]),end:S({},l,o[l]+o[h]-s[h])};t.offsets.popper=k({},s,c[n])}return t}function At(t){if(!ht(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=H(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function Mt(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,r=n.popper,o=n.reference,s=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return r[s?"left":"top"]=o[i]-(a?r[s?"width":"height"]:0),t.placement=W(e),t.offsets.popper=E(r),t}var xt={shift:{order:100,enabled:!0,fn:It},offset:{order:200,enabled:!0,fn:wt,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ct,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:vt},arrow:{order:500,enabled:!0,fn:ct,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Mt},hide:{order:800,enabled:!0,fn:At},computeStyle:{order:850,enabled:!0,fn:lt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:rt,onLoad:ot,gpuAcceleration:void 0}},_t={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:xt},St=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=a(this.update.bind(this)),this.options=k({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){n.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return k({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&l(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return _(t,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return Q.call(this)}},{key:"disableEventListeners",value:function(){return tt.call(this)}}]),t}();St.Utils=("undefined"!==typeof window?window:t).PopperUtils,St.placements=dt,St.Defaults=_t,e["a"]=St}).call(this,i("c8ba"))},f12a:function(t,e,i){t.exports=i("faa1").EventEmitter},f1c8:function(t,e,i){"use strict";t.exports=c;var n=i("d113").codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=i("5e7d");function h(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new o);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),n(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",u)}function u(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,i){d(t,e,i)}))}function d(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}i("3fb5")(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,i){i(new r("_transform()"))},c.prototype._write=function(t,e,i){var n=this._transformState;if(n.writecb=i,n.writechunk=t,n.writeencoding=e,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},f3a3:function(t,e,i){"use strict";var n=e,r=i("80af"),o=i("da3e"),s=i("7658");function a(t,e,i){var n=new Array(Math.max(t.bitLength(),i)+1);n.fill(0);for(var r=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,l=o.andln(r-1);o.isOdd()?(a=l>(r>>1)-1?(r>>1)-l:l,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function l(t,e){var i=[[],[]];t=t.clone(),e=e.clone();var n,r=0,o=0;while(t.cmpn(-r)>0||e.cmpn(-o)>0){var s,a,l=t.andln(3)+r&3,h=e.andln(3)+o&3;3===l&&(l=-1),3===h&&(h=-1),0===(1&l)?s=0:(n=t.andln(7)+r&7,s=3!==n&&5!==n||2!==h?l:-l),i[0].push(s),0===(1&h)?a=0:(n=e.andln(7)+o&7,a=3!==n&&5!==n||2!==l?h:-h),i[1].push(a),2*r===s+1&&(r=1-r),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return i}function h(t,e,i){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}}function c(t){return"string"===typeof t?n.toArray(t,"hex"):t}function u(t){return new r(t,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=a,n.getJSF=l,n.cachedProperty=h,n.parseBytes=c,n.intFromLE=u},f3c1:function(t,e){var i=800,n=16,r=Date.now;function o(t){var e=0,o=0;return function(){var s=r(),a=n-(s-o);if(o=s,a>0){if(++e>=i)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},f460:function(t,e,i){var n=i("98e6"),r=i("8707").Buffer;function o(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){var i,s=r.alloc(0),a=0;while(s.length<e)i=o(a++),s=r.concat([s,n("sha1").update(t).update(i).digest()]);return s.slice(0,e)}},f576:function(t,e,i){"use strict";var n=i("3fb5"),r=i("93e6"),o=i("8707").Buffer,s=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<<e|t>>>32-e}function h(t,e,i,n,r,o,s){return l(t+(e&i|~e&n)+r+o|0,s)+e|0}function c(t,e,i,n,r,o,s){return l(t+(e&n|i&~n)+r+o|0,s)+e|0}function u(t,e,i,n,r,o,s){return l(t+(e^i^n)+r+o|0,s)+e|0}function d(t,e,i,n,r,o,s){return l(t+(i^(e|~n))+r+o|0,s)+e|0}n(a,r),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,n=this._b,r=this._c,o=this._d;i=h(i,n,r,o,t[0],3614090360,7),o=h(o,i,n,r,t[1],3905402710,12),r=h(r,o,i,n,t[2],606105819,17),n=h(n,r,o,i,t[3],3250441966,22),i=h(i,n,r,o,t[4],4118548399,7),o=h(o,i,n,r,t[5],1200080426,12),r=h(r,o,i,n,t[6],2821735955,17),n=h(n,r,o,i,t[7],4249261313,22),i=h(i,n,r,o,t[8],1770035416,7),o=h(o,i,n,r,t[9],2336552879,12),r=h(r,o,i,n,t[10],4294925233,17),n=h(n,r,o,i,t[11],2304563134,22),i=h(i,n,r,o,t[12],1804603682,7),o=h(o,i,n,r,t[13],4254626195,12),r=h(r,o,i,n,t[14],2792965006,17),n=h(n,r,o,i,t[15],1236535329,22),i=c(i,n,r,o,t[1],4129170786,5),o=c(o,i,n,r,t[6],3225465664,9),r=c(r,o,i,n,t[11],643717713,14),n=c(n,r,o,i,t[0],3921069994,20),i=c(i,n,r,o,t[5],3593408605,5),o=c(o,i,n,r,t[10],38016083,9),r=c(r,o,i,n,t[15],3634488961,14),n=c(n,r,o,i,t[4],3889429448,20),i=c(i,n,r,o,t[9],568446438,5),o=c(o,i,n,r,t[14],3275163606,9),r=c(r,o,i,n,t[3],4107603335,14),n=c(n,r,o,i,t[8],1163531501,20),i=c(i,n,r,o,t[13],2850285829,5),o=c(o,i,n,r,t[2],4243563512,9),r=c(r,o,i,n,t[7],1735328473,14),n=c(n,r,o,i,t[12],2368359562,20),i=u(i,n,r,o,t[5],4294588738,4),o=u(o,i,n,r,t[8],2272392833,11),r=u(r,o,i,n,t[11],1839030562,16),n=u(n,r,o,i,t[14],4259657740,23),i=u(i,n,r,o,t[1],2763975236,4),o=u(o,i,n,r,t[4],1272893353,11),r=u(r,o,i,n,t[7],4139469664,16),n=u(n,r,o,i,t[10],3200236656,23),i=u(i,n,r,o,t[13],681279174,4),o=u(o,i,n,r,t[0],3936430074,11),r=u(r,o,i,n,t[3],3572445317,16),n=u(n,r,o,i,t[6],76029189,23),i=u(i,n,r,o,t[9],3654602809,4),o=u(o,i,n,r,t[12],3873151461,11),r=u(r,o,i,n,t[15],530742520,16),n=u(n,r,o,i,t[2],3299628645,23),i=d(i,n,r,o,t[0],4096336452,6),o=d(o,i,n,r,t[7],1126891415,10),r=d(r,o,i,n,t[14],2878612391,15),n=d(n,r,o,i,t[5],4237533241,21),i=d(i,n,r,o,t[12],1700485571,6),o=d(o,i,n,r,t[3],2399980690,10),r=d(r,o,i,n,t[10],4293915773,15),n=d(n,r,o,i,t[1],2240044497,21),i=d(i,n,r,o,t[8],1873313359,6),o=d(o,i,n,r,t[15],4264355552,10),r=d(r,o,i,n,t[6],2734768916,15),n=d(n,r,o,i,t[13],1309151649,21),i=d(i,n,r,o,t[4],4149444226,6),o=d(o,i,n,r,t[11],3174756917,10),r=d(r,o,i,n,t[2],718787259,15),n=d(n,r,o,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|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 t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},f6b4:function(t,e,i){"use strict";var n=i("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f83c:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},f8af:function(t,e,i){var n=i("2474");function r(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}t.exports=r},f8d5:function(t,e,i){(function(e,n){t.exports=n(i("21bf"))})(0,(function(t){return t.enc.Utf8}))},f909:function(t,e,i){var n=i("7e64"),r=i("b760"),o=i("72af"),s=i("4f50"),a=i("1a8c"),l=i("9934"),h=i("8adb");function c(t,e,i,u,d){t!==e&&o(e,(function(o,l){if(d||(d=new n),a(o))s(t,e,l,i,c,u,d);else{var f=u?u(h(t,l),o,l+"",t,e,d):void 0;void 0===f&&(f=o),r(t,l,f)}}),l)}t.exports=c},fa21:function(t,e,i){var n=i("7530"),r=i("2dcb"),o=i("eac5");function s(t){return"function"!=typeof t.constructor||o(t)?{}:n(r(t))}t.exports=s},faa1:function(t,e,i){"use strict";var n,r="object"===typeof Reflect?Reflect:null,o=r&&"function"===typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};function s(t){console&&console.warn&&console.warn(t)}n=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function l(){l.init.call(this)}t.exports=l,t.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var h=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function d(t,e,i,n){var r,o,a;if(c(i),o=t._events,void 0===o?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"===typeof a?a=o[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),r=u(t),r>0&&a.length>r&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,s(l)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=f.bind(n);return r.listener=i,n.wrapFn=r,r}function g(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"===typeof r?i?[r.listener||r]:[r]:i?y(r):v(r,r.length)}function m(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"===typeof i)return 1;if(void 0!==i)return i.length}return 0}function v(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function b(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function y(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}function w(t,e){return new Promise((function(i,n){function r(i){t.removeListener(e,o),n(i)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}I(t,e,o,{once:!0}),"error"!==e&&C(t,r,{once:!0})}))}function C(t,e,i){"function"===typeof t.on&&I(t,"error",e,i)}function I(t,e,i,n){if("function"===typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){n.once&&t.removeEventListener(e,r),i(o)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");h=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=r[t];if(void 0===l)return!1;if("function"===typeof l)o(l,this,e);else{var h=l.length,c=v(l,h);for(i=0;i<h;++i)o(c[i],this,e)}return!0},l.prototype.addListener=function(t,e){return d(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return d(this,t,e,!0)},l.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},l.prototype.removeListener=function(t,e){var i,n,r,o,s;if(c(e),n=this._events,void 0===n)return this;if(i=n[t],void 0===i)return this;if(i===e||i.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!==typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){s=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():b(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,i,n;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)r=o[n],"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=i[t],"function"===typeof e)this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fba5:function(t,e,i){var n=i("cb5a");function r(t){return n(this.__data__,t)>-1}t.exports=r},fbd5:function(t,e,i){"use strict";var n;function r(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=i("9d8a").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function h(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,s){s=r(s);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=i("ee93")),n(t,{readable:e,writable:o},(function(t){if(t)return s(t);l=!0,s()}));var c=!1;return function(e){if(!l&&!c)return c=!0,h(t)?t.abort():"function"===typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function u(t){t()}function d(t,e){return t.pipe(e)}function f(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n,r=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,i){var s=i<e.length-1,a=i>0;return c(t,s,a,(function(t){n||(n=t),t&&o.forEach(u),s||(o.forEach(u),r(n))}))}));return e.reduce(d)}t.exports=p},fda6:function(t,e,i){var n=i("8947"),r=i("4228"),o=i("e85f");function s(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=s},fdac:function(t,e,i){var n;function r(t){this.rand=t}if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(7);if("function"!==typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(s){}}}]);
//# sourceMappingURL=chunk-vendors.db7a0c0b.js.map