/*! * loquat-form-design v1.2.4 * (c) 2021-2022 entfrm开发团队-王翔 * Released under the MIT License */ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["LoquatFormDesign"]=e():t["LoquatFormDesign"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){function e(e){for(var i,r,o=e[0],s=e[1],a=0,u=[];a=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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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;n0;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 */ 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)}},"06c5":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("fb6a"),i("d3b7"),i("b0c0"),i("a630e"),i("3ca3");var n=i("6b75");function r(t,e){if(t){if("string"===typeof t)return Object(n["a"])(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n["a"])(t,e):void 0}}},"06cf":function(t,e,i){var n=i("83ab"),r=i("d1e7"),o=i("5c6c"),s=i("fc6a"),a=i("c04e"),l=i("5135"),u=i("0cfb"),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(t,e){if(t=s(t),e=a(e,!0),u)try{return c(t,e)}catch(i){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"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")}},"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 u(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function h(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=u(i)+h(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 u(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]*>)/g,a=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,l,u,c){var h=i+t.length,d=l.length,f=a;return void 0!==u&&(u=n(u),f=s),o.call(c,f,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(h);case"<":s=u[o.slice(1,-1)];break;default:var a=+o;if(0===a)return n;if(a>d){var c=r(a/10);return 0===c?n:c<=d?void 0===l[c-1]?o.charAt(1):l[c-1]+o.charAt(1):n}s=l[a-1]}return void 0===s?"":s}))}},"0cbb":function(t,e,i){"use strict";var n,r=e,o=i("7d92"),s=i("4136"),a=i("f3a3"),l=a.assert;function u(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 u(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=u,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(h){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]})},"0cfb":function(t,e,i){var n=i("83ab"),r=i("d039"),o=i("cc12");t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,i){var n=i("d039"),r=i("b622"),o=i("c430"),s=r("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),i+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},"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=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(++rf||new s(e).cmp(l.modulus)>=0)throw new Error("decryption error");o=i?u(new s(e),l):a(e,l);var p=c.alloc(f-o.length);if(o=c.concat([p,o],f),4===r)return h(l,o);if(1===r)return d(l,o,i);if(3===r)return o;throw new Error("unknown padding")}},1:function(t,e){},10:function(t,e){},"107c":function(t,e,i){var n=i("d039");t.exports=n((function(){var t=RegExp("(?b)","string".charAt(5));return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},11:function(t,e){},1115:function(t,e,i){"use strict";i("0b22")},1148:function(t,e,i){"use strict";var n=i("a691"),r=i("1d80");t.exports=function(t){var e=String(r(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},"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 u(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;s1||"".split(/.?/).length?function(t,i){var n=String(s(this)),o=void 0===i?v:i>>>0;if(0===o)return[];if(void 0===t)return[n];if(!r(t))return e.call(n,t,o);var a,l,u,c=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,d+"g");while(a=h.call(p,n)){if(l=p.lastIndex,l>f&&(c.push(n.slice(f,a.index)),a.length>1&&a.index=o))break;p.lastIndex===a.index&&p.lastIndex++}return f===n.length?!u&&p.test("")||c.push(""):c.push(n.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var r=s(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,r,i):n.call(String(r),e,i)},function(t,r){var s=i(n,this,t,r,n!==e);if(s.done)return s.value;var h=o(this),d=String(t),f=a(h,RegExp),m=h.unicode,_=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(p?"g":"y"),b=new f(p?"^(?:"+h.source+")":h,_),y=void 0===r?v:r>>>0;if(0===y)return[];if(0===d.length)return null===c(b,d)?[d]:[];var w=0,M=0,x=[];while(Mo)a[o]=e[o++];return a}},"145e":function(t,e,i){"use strict";var n=i("7b0b"),r=i("23cb"),o=i("50c4"),s=Math.min;t.exports=[].copyWithin||function(t,e){var i=n(this),a=o(i.length),l=r(t,a),u=r(e,a),c=arguments.length>2?arguments[2]:void 0,h=s((void 0===c?a:r(c,a))-u,a-l),d=1;u0)u in i?i[l]=i[u]:delete i[l],l+=d,u+=d;return i}},"14c3":function(t,e,i){var n=i("c6b6"),r=i("9263");t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var o=i.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},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")},"159b":function(t,e,i){var n=i("da84"),r=i("fdbc"),o=i("17c2"),s=i("9112");for(var a in r){var l=n[a],u=l&&l.prototype;if(u&&u.forEach!==o)try{s(u,"forEach",o)}catch(c){u.forEach=o}}},"162b":function(t,e,i){"use strict";i.d(e,"b",(function(){return s}));var n=i("b85c"),r=i("3835"),o=(i("4de4"),i("caad"),i("159b"),i("498a"),i("4d63"),i("ac1f"),i("25f0"),i("e74d"));function s(t,e){e=RegExp("^w*$").test(e)?[e]:Object(o["o"])(e);var i=0,n=e.length-1;while(null!=t&&i1?arguments[1]:void 0)}},"182d":function(t,e,i){var n=i("f8cd");t.exports=function(t,e){var i=n(t);if(i%e)throw RangeError("Wrong offset");return i}},"19aa":function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},"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(){K(e,t)}}var o;t.exports=A,A.WritableState=E;var s={deprecate:i("b7d1")},a=i("5bbb"),l=i("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var d,f=i("493f"),p=i("b9b5"),m=p.getHighWaterMark,g=i("9d8a").codes,v=g.ERR_INVALID_ARG_TYPE,_=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,y=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,x=g.ERR_STREAM_WRITE_AFTER_END,S=g.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function C(){}function E(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=m(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){D(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 A(t){o=o||i("e666");var e=this instanceof o;if(!e&&!d.call(A,this))return new A(t);this._writableState=new E(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 O(t,e){var i=new x;k(t,i),n.nextTick(e,i)}function R(t,e,i,r){var o;return null===i?o=new M:"string"===typeof i||e.objectMode||(o=new v("chunk",["string","Buffer"],i)),!o||(k(t,o),n.nextTick(r,o),!1)}function T(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,i)),e}function L(t,e,i,n,r,o){if(!i){var s=T(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-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,i){i(new _("_write()"))},A.prototype._writev=null,A.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||U(this,n,i),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.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"),u=i("69f2"),c=s.alloc(128);function h(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:u(t);e=n.update(e).digest()}else e.length0&&this.childForm.paging}},watch:{page:{handler:function(){this.pageInit()},deep:!0}},created:function(){this.pageInit()},methods:{pageInit:function(){this.defaultPage=Object.assign(this.defaultPage,this.page,{total:Number(this.page.total||this.defaultPage.total),pagerCount:Number(this.page.pagerCount||this.defaultPage.pagerCount),currentPage:Number(this.page.currentPage||this.defaultPage.currentPage),pageSize:Number(this.page.pageSize||this.defaultPage.pageSize)}),this.rePaging()},updateValue:function(){this.childForm.$emit("update:page",this.defaultPage)},sizeChange:function(t){this.defaultPage.currentPage=1,this.defaultPage.pageSize=t,this.rePaging()},localPaging:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=(e-1)*i,r=n>t.length?t.slice(0,t.length):t.slice(n,n+i);return r},lastPage:function(){var t=this.childForm.list;this.defaultPage.currentPage=t.length%this.defaultPage.pageSize==0?t.length/this.defaultPage.pageSize:Math.ceil(t.length/this.defaultPage.pageSize),this.rePaging()},autoPrevPage:function(){var t=this.childForm.list;t.length===(this.defaultPage.currentPage-1)*this.defaultPage.pageSize&&0!=t.length&&(this.defaultPage.currentPage=this.defaultPage.currentPage-1,this.rePaging())},rePaging:function(){var t=this.childForm.list,e=this.localPaging(t,this.defaultPage.currentPage,this.defaultPage.pageSize);this.childForm.pagingList=e,this.defaultPage.total=t.length,this.updateValue()},homePage:function(){this.defaultPage.currentPage=1,this.rePaging()},currentChange:function(){this.rePaging()}}}),c=u,h=i("2877"),d=Object(h["a"])(c,a,l,!1,null,null,null),f=d.exports,p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("header"),t._l(t.list,(function(e,n){return[i("column-slot",{key:n,attrs:{column:e},scopedSlots:t._u([{key:e.prop,fn:function(i){return[t._t(e.prop,null,null,i)]}}],null,!0)})]})),t._t("footer")],2)},m=[],g=i("2909"),v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.column.hide?t._e():i("el-table-column",{attrs:{prop:t.column.prop,label:t.column.label,"class-name":t.validate?"required":"","show-overflow-tooltip":t.column.overHidden,"render-header":t.column.renderHeader,align:t.column.align||t.widgetChildForm.align,"header-align":t.column.headerAlign||t.widgetChildForm.headerAlign,width:0==t.column.width?void 0:t.column.width,"min-width":t.column.minWidth,fixed:t.column.fixed||void 0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row,r=e.$index;return[t.childForm.$scopedSlots[t.column.prop]?t._t(t.column.prop,null,{row:n,index:r,column:t.column,dic:t.childForm.DIC[t.column.prop],readonly:t.childForm.readonly||t.column.readonly,disabled:t.childForm.disabled||t.column.disabled,size:t.widgetChildForm.size||t.childFormDefaultConfig.size}):t.column.detailModel||t.childForm.detailModel?i("span",{domProps:{innerHTML:t._s(n[t.column.prop])}}):i("el-form-item",{class:t.column.customClass,attrs:{prop:"list."+r+"."+t.column.prop,rules:t.column.rules}},[i("widget",{attrs:{dic:t.childForm.DIC[t.column.prop],column:t.column,props:t.widgetChildForm.props,readonly:t.childForm.readonly,disabled:t.childForm.disabled,size:t.widgetChildForm.size||t.childFormDefaultConfig.size,enter:t.widgetChildForm.enter},on:{enter:t.childForm.submit,change:function(e){return t.childForm.handleWidgetChange(t.column)}},model:{value:n[t.column.prop],callback:function(e){t.$set(n,t.column.prop,e)},expression:"row[column.prop]"}})],1)]}}],null,!0)})},_=[],b=i("e74d"),y=i("c44e"),w={name:"ColumnSlot",inject:["childFormProvide"],components:{widget:y["a"]},props:{column:Object},computed:{plugin:function(){return this.column.plugin||{}},validate:function(){return!Object(b["s"])(this.column.rules)},childForm:function(){return this.childFormProvide||{}},widgetChildForm:function(){return this.childForm.widgetChildForm||{}},childFormDefaultConfig:function(){return this.childForm.childFormDefaultConfig||{}}}},M=w,x=Object(h["a"])(M,v,_,!1,null,null,null),S=x.exports,k={name:"Column",components:{columnSlot:S},props:{columns:{type:Array}},computed:{list:function(){var t=Object(g["a"])(this.columns);return t}}},C=k,E=Object(h["a"])(C,p,m,!1,null,null,null),A=E.exports,O=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-table-column",{attrs:{width:"1px"}}),t.widgetChildForm.indexExecute?t._e():i("el-table-column",{attrs:{label:t.widgetChildForm.indexExecuteLabel||t.childFormDefaultConfig.indexExecuteLabel,fixed:t.widgetChildForm.indexExecuteFixed||void 0,width:t.widgetChildForm.indexExecuteWidth||t.childFormDefaultConfig.indexExecuteWidth,align:"center","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return i("div",{staticStyle:{"min-height":"52px"}},[t.childForm.readonly&&t.childForm.disabled||!t.childForm.hoverMark[e.row.$index]?i("div",[t._v(t._s(e.row.$index+1))]):i("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(i){return t.childForm.rowCellDel(e.row.$index)}}})],1)}}],null,!1,1375645348)}),0==t.columns.length?i("el-table-column"):t._e()],1)},R=[],T={name:"ColumnDefault",inject:["childFormProvide"],computed:{childForm:function(){return this.childFormProvide||{}},columns:function(){return this.childForm.columns||[]},widgetChildForm:function(){return this.childForm.widgetChildForm||{}},childFormDefaultConfig:function(){return this.childForm.childFormDefaultConfig||{}}}},L=T,$=Object(h["a"])(L,O,R,!1,null,null,null),P=$.exports,I=i("41f7"),D=i("422f"),B=i("313a"),j={name:"ChildForm",provide:function(){return{childFormProvide:this}},components:{tablePage:f,column:A,columnDefault:P},props:{value:{},option:{type:Object,default:function(){return{}}},page:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},detailModel:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},paging:{type:Boolean,default:!0},rowCellAddFun:Function,rowCellDelFun:Function},data:function(){return{text:[],pagingList:[],hoverMark:{},first:!1,configOption:{},childFormDefaultConfig:D["e"],formId:"",DIC:{}}},computed:{widgetChildForm:function(){return Object(B["b"])(this)||{}},columns:function(){return this.widgetChildForm.column||[]},childForm:function(){var t=this.paging?this.pagingList:this.list;return{list:t}},columnSlot:function(){var t=this,e=[];return this.columns.forEach((function(i){t.$scopedSlots[i.prop]&&e.push(i.prop)})),e},list:function(){return"array"===Object(b["i"])(this.text)?(this.text.forEach((function(t,e){return Object.assign(t,{$index:e})})),this.text):[]}},watch:{text:{handler:function(t){this.first||!Object(b["s"])(t)?(this.first=!0,this.handleChange(t)):this.first=!0},deep:!0},value:{handler:function(){this.initVal()},deep:!0},option:{handler:function(){this.initOption()},deep:!0}},created:function(){var t=this;this.initVal(),this.initOption(),this.$nextTick((function(){t.paging&&t.$refs.page.homePage(),t.clearValidate()}))},beforeDestroy:function(){Object(I["b"])([],this.formId)},methods:{setPx:b["q"],initVal:function(){this.text=this.value},initOption:function(){this.configOption=this.option,Object(I["b"])([],this.formId),this.formId=D["i"].concat(Object(b["p"])()),Object(I["b"])(Object(I["c"])(this.widgetChildForm.styleSheets),this.formId)},handleWidgetChange:function(t){this.$refs.childForm&&this.$refs.childForm.validateField(t.prop)},rowCellAdd:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=function(){var i=t.list.length,n=Object(B["d"])(t.columns);e=Object(b["d"])(Object.assign({$index:i},n,e)),t.list.push(e)};"function"===typeof this.rowCellAddFun?this.rowCellAddFun(i):i(),this.paging&&this.$refs.page.lastPage(),this.$emit("row-add",e)},rowCellDel:function(t){var e=this,i=function(){e.list.splice(t,1)};"function"===typeof this.rowCellDelFun?this.rowCellDelFun(this.list[t],i):i(),this.paging&&(this.$refs.page.rePaging(),this.$refs.page.autoPrevPage()),this.$emit("row-del")},cellMouseEnter:function(t,e,i,n){var r=t.$index;this.readonly&&this.disabled||(this.hoverMark=Object(s["a"])({},r,!0)),this.$emit("cell-mouse-enter",t,e,i,n)},cellMouseLeave:function(t,e,i,n){this.readonly&&this.disabled||(this.hoverMark={}),this.$emit("cell-mouse-leave",t,e,i,n)},clearValidate:function(t){this.$refs.childForm.clearValidate(t)},validate:function(){var t=this;return new Promise((function(e){t.$refs.childForm.validate((function(t,i){e(i)}))}))},validateRowCellField:function(t){var e,i=!0,n=Object(o["a"])(this.$refs.childForm.fields);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.prop.split(".")[1]==t&&this.$refs.childForm.validateField(r.prop,(function(t){t&&(i=!1)})),!i)break}}catch(s){n.e(s)}finally{n.f()}return i},submit:function(){var t=this;this.validate().then((function(e){Object(b["s"])(e)?t.$emit("submit",t.list):t.$emit("error",e)}))},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},N=j,F=Object(h["a"])(N,n,r,!1,null,null,null);e["a"]=F.exports},"1dde":function(t,e,i){var n=i("d039"),r=i("b622"),o=i("2d00"),s=r("species");t.exports=function(t){return o>=51||!n((function(){var e=[],i=e.constructor={};return i[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"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())}},"1ef5":function(module,__webpack_exports__,__webpack_require__){"use strict";var E_loquat_form_design_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ade3"),E_loquat_form_design_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("2909"),E_loquat_form_design_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("3835"),E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("5530"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("e260"),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("3ca3"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("2b3d"),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("4fad"),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_17__),_mixins_history__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("2790"),vuedraggable__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("b76a"),vuedraggable__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_19__),_components_WidgetForm__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("ae8e"),_components_FormConfig__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("bd63"),_components_WidgetConfig__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("e726"),v_ace_editor__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("cf72"),v_ace_editor__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(v_ace_editor__WEBPACK_IMPORTED_MODULE_23__),_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("a630"),_utils_clipboard__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("8434"),js_beautify__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("e552"),js_beautify__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(js_beautify__WEBPACK_IMPORTED_MODULE_26__),_utils_request__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("7265"),_utils_packages__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("d0c1"),_plugins_form__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("fa9e"),_plugins_child_form__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("1d81"),_utils_dom__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("41f7"),_global_config__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("5175"),_utils__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("e74d"),_global_variable__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("422f"),_components_Helper_SvgIcon__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("138d");__webpack_exports__["a"]={name:"FormDesign",provide:function(){return{designProvide:this}},components:{Draggable:vuedraggable__WEBPACK_IMPORTED_MODULE_19___default.a,WidgetForm:_components_WidgetForm__WEBPACK_IMPORTED_MODULE_20__["a"],FormConfig:_components_FormConfig__WEBPACK_IMPORTED_MODULE_21__["a"],WidgetConfig:_components_WidgetConfig__WEBPACK_IMPORTED_MODULE_22__["a"],AceEditor:v_ace_editor__WEBPACK_IMPORTED_MODULE_23___default.a,pluginForm:_plugins_form__WEBPACK_IMPORTED_MODULE_29__["a"],SvgIcon:_components_Helper_SvgIcon__WEBPACK_IMPORTED_MODULE_35__["a"],pluginChildForm:_plugins_child_form__WEBPACK_IMPORTED_MODULE_30__["a"]},mixins:[_mixins_history__WEBPACK_IMPORTED_MODULE_18__["a"]],props:{options:{type:[Object,String],default:function(){return{column:[]}}},storage:{type:Boolean,default:!1},asideLeftWidth:{type:[String,Number],default:"250px"},asideRightWidth:{type:[String,Number],default:"300px"},toolbar:{type:Array,default:function(){return["import","clear","preview","generate"]}},undoRedo:{type:Boolean,default:!0},includeFields:{type:Array,default:function(){var t=[];return _global_config__WEBPACK_IMPORTED_MODULE_32__["a"].fields.forEach((function(e){e.list.forEach((function(e){t.push(e.type)}))})),t}},customFields:{type:Array,default:function(){return[]}}},data:function(){return{formId:"",adapter:"pc",fields:_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].fields,formCallbackHooks:_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].formExecuteCallbackHooks,widgetForm:Object(_utils__WEBPACK_IMPORTED_MODULE_33__["j"])(),configTab:"widget",widgetFormSelect:{},widgetFormDraggable:{},widgetFormPreview:{},previewVisible:!1,importJsonVisible:!1,generateJsonVisible:!1,styleSheetsVisible:!1,actionSettingsVisible:!1,widgetModels:{},importJson:"",generateJson:"",history:{index:0,maxStep:20,steps:[]},jsonOption:Object(_utils__WEBPACK_IMPORTED_MODULE_33__["h"])(),styleSheetsArray:[],actionForm:{},actionMenuActive:"",actionMenuItemDisabled:!1,actionMainContainerVisible:!1,eventSelect:"",dataSourceSettingsVisible:!1,dataSourceMenuActive:"",dataSourceForm:{},dataSourceMenuItemDisabled:!1,dataSourceMainContainerVisible:!1,styleSheets:"",previewDisableSwitch:!1,cascadeOptionVisible:!1,cascadeOption:"",childFormModelVisible:!1}},computed:{plugin:function(){return this.widgetFormSelect.plugin||{}},leftWidth:function(){return"string"===typeof this.asideLeftWidth?this.asideLeftWidth:"".concat(this.asideLeftWidth,"px")},rightWidth:function(){return"string"===typeof this.asideRightWidth?this.asideRightWidth:"".concat(this.asideRightWidth,"px")},getCustomFields:function(){var t=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.customFields);return t.forEach((function(t){"array"===Object(_utils__WEBPACK_IMPORTED_MODULE_33__["i"])(t.list)&&t.list.forEach((function(t){!Object(_utils__WEBPACK_IMPORTED_MODULE_33__["s"])(t.params)&&(t.params=js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(t.params),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf)),!Object(_utils__WEBPACK_IMPORTED_MODULE_33__["s"])(t.events)&&(t.events=js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(t.events),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf))}))})),t}},watch:{options:{handler:function(t){this.setWidgetFormJson(t)},deep:!0}},mounted:function(){this.handleLoadStorage(),this.handleStyleSheetsCore()},beforeDestroy:function(){Object(_utils_dom__WEBPACK_IMPORTED_MODULE_31__["b"])([],this.formId)},methods:{validateNull:_utils__WEBPACK_IMPORTED_MODULE_33__["s"],handleLoadStorage:function handleLoadStorage(){var _this=this,options=this.options;if("string"===typeof options)try{options=eval("("+options+")")}catch(e){console.error("非法配置"),options={column:[]}}var initData=this.initHistory({index:0,maxStep:20,steps:[Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])({widgetForm:Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},this.widgetForm),options),widgetFormSelect:this.widgetFormSelect})],storage:this.storage});this.widgetForm=initData.widgetForm,this.undoRedo&&window.addEventListener("keydown",(function(t){(t.metaKey&&!t.shiftKey&&90==t.keyCode||t.ctrlKey&&!t.shiftKey&&90==t.keyCode)&&_this.handleWidgetFormUndo(),(t.metaKey&&t.shiftKey&&90==t.keyCode||t.ctrlKey&&t.shiftKey&&90==t.keyCode||t.ctrlKey&&89==t.keyCode)&&_this.handleWidgetFormRedo()}),!1)},handleFieldClick:function(t){var e=this,i=this.widgetForm.column.findIndex((function(t){return t.prop==e.widgetFormSelect.prop}))+1,n=0;-1==i?(this.widgetForm.column.push(t),n=this.widgetForm.column.length-1):(this.widgetForm.column.splice(i,0,t),n=i),this.$refs.widgetForm.handleWidgetAdd({newIndex:n})},handlePreview:function(){this.widgetForm.column&&0!=this.widgetForm.column.length?(this.widgetFormPreview=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm),this.previewVisible=!0):this.$message.error("没有需要展示的内容")},handlePreviewGetData:function(){var t=this;this.jsonOption=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["h"])(),this.$refs.previewForm.validate((function(e){if(e){var i=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(t.widgetModels);t.generateJson=js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(i),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf),t.generateJsonVisible=!0}}))},handleClear:function(){this.widgetForm&&this.widgetForm.column&&this.widgetForm.column.length>0?(this.$set(this.widgetForm,"column",[]),this.widgetModels={},this.widgetFormSelect={},this.handleHistoryChange({widgetForm:this.widgetForm,widgetFormSelect:{}})):this.$message.error("没有需要清空的内容")},handleImportJson:function(){var t=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["j"])();this.importJson=js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(t),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf),this.importJsonVisible=!0},handleImportJsonSubmit:function handleImportJsonSubmit(){try{var data=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["j"])(),options=eval("("+this.importJson+")");this.widgetForm=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},data),options)),this.importJsonVisible=!1,this.handleHistoryChange({widgetForm:this.widgetForm,widgetFormSelect:{}})}catch(e){this.$message.error(e.message)}},handleGenerateJson:function(){this.jsonOption=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["h"])(),this.generateJson=this.getWidgetFormJson(),this.generateJsonVisible=!0},handleCopy:function handleCopy(){var _this4=this,data=eval("("+this.generateJson+")");Object(_utils_clipboard__WEBPACK_IMPORTED_MODULE_25__["a"])({text:Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(data,Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},this.jsonOption))}).then((function(){_this4.$message.success("复制成功")})).catch((function(){_this4.$message.error("复制失败")}))},handleExport:function(){var t=encodeURIComponent(this.generateJson),e=Date.now()+".json",i="data:application/json;charset=UTF-8,"+t,n=document.createElement("a");n.download=e,n.href=i,n.click(),URL.revokeObjectURL(n.href)},handleStyleSheetsSubmit:function(){this.widgetForm.styleSheets=this.styleSheets,this.styleSheetsVisible=!1,this.handleStyleSheetsCore()},handleStyleSheetsCore:function(){this.formId=_global_variable__WEBPACK_IMPORTED_MODULE_34__["i"].concat(Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])());var t=Object(_utils_dom__WEBPACK_IMPORTED_MODULE_31__["c"])(this.widgetForm.styleSheets);Object(_utils_dom__WEBPACK_IMPORTED_MODULE_31__["b"])(t,this.formId),this.styleSheetsArray=Object(_utils_dom__WEBPACK_IMPORTED_MODULE_31__["a"])(t)},handleActionAdd:function(){if(this.actionMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");var t=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])();this.actionForm={key:t,name:"fun_".concat(t),func:""},this.actionMenuItemDisabled=!0,this.actionMainContainerVisible=!0,this.actionMenuActive=t},handleActionSelect:function(t){if(this.actionForm.key!==t){if(this.actionMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");this.actionForm=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm.eventScript.find((function(e){return e.key===t}))),this.actionMainContainerVisible=!0}},handleActionSave:function(){var t=this;this.$refs.actionForm.validate((function(e,i){if(e){!t.widgetForm.eventScript&&(t.widgetForm.eventScript=[]);var n=t.widgetForm.eventScript.findIndex((function(e){return e.key===t.actionForm.key}));-1===n?t.widgetForm.eventScript.push(Object(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},t.actionForm))):t.widgetForm.eventScript.splice(n,1,Object(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},t.actionForm))),t.actionMenuItemDisabled=!1,t.$message.success("保存成功")}}))},handleActionClone:function(t){if(this.actionMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");this.actionForm=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},t),this.actionForm.key=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])(),this.actionForm.name+="_copy",this.actionMenuItemDisabled=!0,this.actionMainContainerVisible=!0,this.actionMenuActive=this.actionForm.key},handleActionDelete:function(t){var e=this;this.$confirm("确定要删除该方法 [".concat(t.name,"] ?"),"警告",{type:"warning"}).then((function(){!e.widgetForm.eventScript&&(e.widgetForm.eventScript=[]),e.actionForm.key===t.key&&(e.actionMainContainerVisible=!1);var i=e.widgetForm.eventScript.findIndex((function(e){return e.key===t.key}));-1===i?(e.actionForm={},e.actionMenuItemDisabled=!1):e.widgetForm.eventScript.splice(i,1)})).catch((function(){}))},handleActionCancel:function(){this.actionForm={},this.actionMenuActive=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])(),this.actionMenuItemDisabled=!1,this.actionMainContainerVisible=!1},handleActionConfirm:function(){var t=this;this.$refs.actionForm.validate((function(e,i){if(e){!t.widgetForm.eventScript&&(t.widgetForm.eventScript=[]);var n=t.widgetForm.eventScript.findIndex((function(e){return e.key===t.actionForm.key}));-1===n?t.widgetForm.eventScript.push(Object(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},t.actionForm))):t.widgetForm.eventScript.splice(n,1,Object(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},t.actionForm))),t.$set(t.widgetFormSelect.events,t.eventSelect,t.actionForm.name),t.eventSelect="",t.handleActionCancel(),t.actionSettingsVisible=!1}}))},handleActionSettingsSetData:function(t){var e=t.eventName,i=t.funcName;if(this.eventSelect=e,this.actionSettingsVisible=!0,i&&"string"===Object(_utils__WEBPACK_IMPORTED_MODULE_33__["i"])(i)){var n=this.widgetForm.eventScript.find((function(e){return e.name===t.funcName}));if(!n)return;this.actionForm=n,this.actionMenuActive=this.actionForm.key,this.actionMainContainerVisible=!0}},handleActionFormNameValidate:function(t,e,i){var n=this;!this.widgetForm.eventScript&&(this.widgetForm.eventScript=[]);var r=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm.eventScript);r.find((function(t){return t.key!==n.actionForm.key&&t.name===e}))?i(new Error("方法名称不能重复")):i()},handleDataSourceAdd:function(){if(this.dataSourceMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");var t=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])();this.dataSourceForm={key:t,name:"DataSource_".concat(t),url:"",method:"GET",auto:!0,thirdPartyAxios:!1,headers:[],params:[],requestFunc:"return config;",responseFunc:"return res;",errorFunc:""},this.dataSourceMenuItemDisabled=!0,this.dataSourceMainContainerVisible=!0,this.dataSourceMenuActive=t},handleDataSourceSelect:function(t){if(this.dataSourceForm.key!==t){if(this.dataSourceMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");var e=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm.dataSource.find((function(e){return e.key===t})));e.headers=Object.entries(e.headers).map((function(t){var e=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["a"])(t,2),i=e[0],n=e[1];return{key:i,value:n}})),e.params=Object.entries(e.params).map((function(t){var e=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["a"])(t,2),i=e[0],n=e[1];return{key:i,value:n}})),!e.requestFunc&&(e.requestFunc="return config;"),!e.responseFunc&&(e.responseFunc="return res;"),this.dataSourceForm=e,this.dataSourceMainContainerVisible=!0}},handleDataSourceSave:function(){var t=this;this.$refs.dataSourceForm.validate((function(e,i){if(e){var n=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(t.dataSourceForm);n.headers=Object.apply(void 0,Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["a"])(n.headers.map((function(t){var e=t.key,i=t.value;return Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["a"])({},e,i)})))),n.params=Object.apply(void 0,Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["a"])(n.params.map((function(t){var e=t.key,i=t.value;return Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["a"])({},e,i)}))));var r=t.widgetForm.dataSource.findIndex((function(e){return e.key===t.dataSourceForm.key}));-1===r?t.widgetForm.dataSource.push(Object(n)):t.widgetForm.dataSource.splice(r,1,Object(n)),t.dataSourceMenuItemDisabled=!1,t.$message.success("保存成功")}}))},handleDataSourceClone:function(t){if(this.dataSourceMenuItemDisabled)return this.$message.warning("存在未保存的数据,请先保存");this.dataSourceForm=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(t),this.dataSourceForm.key=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])(),this.dataSourceForm.name+="_copy",this.dataSourceForm.headers=Object.entries(this.dataSourceForm.headers).map((function(t){var e=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["a"])(t,2),i=e[0],n=e[1];return{key:i,value:n}})),this.dataSourceForm.params=Object.entries(this.dataSourceForm.params).map((function(t){var e=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["a"])(t,2),i=e[0],n=e[1];return{key:i,value:n}})),!this.dataSourceForm.requestFunc&&(this.dataSourceForm.requestFunc="return config;"),!this.dataSourceForm.responseFunc&&(this.dataSourceForm.responseFunc="return res;"),this.dataSourceMenuItemDisabled=!0,this.dataSourceMainContainerVisible=!0,this.dataSourceMenuActive=this.dataSourceForm.key},handleDataSourceDelete:function(t){var e=this;this.$confirm("确定要删除该方法 [".concat(t.name,"] ?"),"警告",{type:"warning"}).then((function(){var i;(null===(i=e.dataSourceForm)||void 0===i?void 0:i.key)===t.key&&(e.dataSourceMainContainerVisible=!1);var n=e.widgetForm.dataSource.findIndex((function(e){return e.key===t.key}));-1===n?(e.dataSourceForm={},e.dataSourceMenuItemDisabled=!1):e.widgetForm.dataSource.splice(n,1)})).catch((function(){}))},handleDataSourceCancel:function(){this.dataSourceForm={},this.dataSourceMenuActive=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["p"])(),this.dataSourceMenuItemDisabled=!1,this.dataSourceMainContainerVisible=!1},handleDataSourceFormNameValidate:function(t,e,i){var n=this,r=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm.dataSource);r.find((function(t){return t.key!==n.dataSourceForm.key&&t.name===e}))?i(new Error("数据源名称不能重复")):i()},handleDataSourceRequestTest:function(){var t=this;this.$refs.dataSourceForm.validate((function(e,i){if(e){var n=function(t){var e=t.url,i=t.method,n=t.headers,r=t.params,o={url:e,method:i,headers:n,params:r};return o.headers=Object.apply(void 0,Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["a"])(o.headers.map((function(t){var e=t.key,i=t.value;return Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["a"])({},e,i)})))),o.params=Object.apply(void 0,Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["a"])(o.params.map((function(t){var e=t.key,i=t.value;return Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["a"])({},e,i)})))),o}(t.dataSourceForm);t.dataSourceForm.thirdPartyAxios?Object(_utils__WEBPACK_IMPORTED_MODULE_33__["s"])(_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].axiosInstance)?_utils_packages__WEBPACK_IMPORTED_MODULE_28__["default"].logs("thirdPartyAxios"):_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].axiosInstance(n).then((function(e){try{var i=new Function("res",t.dataSourceForm.responseFunc)(e);t.$alert(JSON.stringify(i),{confirmButtonText:"确定"})}catch(n){t.$alert(n,{confirmButtonText:"确定"})}})).catch((function(e){try{var i=new Function("error",t.dataSourceForm.errorFunc)(e);t.$alert(JSON.stringify(i),{confirmButtonText:"确定"})}catch(n){t.$alert(n,{confirmButtonText:"确定"})}})):(_utils_request__WEBPACK_IMPORTED_MODULE_27__["a"].interceptors.request.empty(),"GET"!==t.dataSourceForm.method&&_utils_request__WEBPACK_IMPORTED_MODULE_27__["a"].interceptors.request.use((function(e){return new Function("config",t.dataSourceForm.requestFunc)(e)}),void 0),Object(_utils_request__WEBPACK_IMPORTED_MODULE_27__["a"])(n).then((function(e){try{var i=new Function("res",t.dataSourceForm.responseFunc)(e);t.$alert(JSON.stringify(i),{confirmButtonText:"确定"})}catch(n){t.$alert(n,{confirmButtonText:"确定"})}})).catch((function(e){try{var i=new Function("error",t.dataSourceForm.errorFunc)(e);t.$alert(i,{confirmButtonText:"确定"})}catch(n){t.$alert(n,{confirmButtonText:"确定"})}})))}}))},handlePreviewFormReset:function(){this.$refs.previewForm.resetForm()},handleCascadeOptionSubmit:function handleCascadeOptionSubmit(){try{var plugin=this.widgetFormSelect.plugin||{},cascadeOptionData=eval("("+this.cascadeOption+")");this.$set(this.widgetFormSelect,"dicData",cascadeOptionData),this.$set(plugin,"value",[]),this.cascadeOptionVisible=!1}catch(e){this.$message.error(e.message)}},handleCascadeOptionSetData:function(t){var e=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(t);this.cascadeOption=js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(e),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf),this.cascadeOptionVisible=!0},handleWidgetFormUndo:function(){var t=this.handleUndo();this.widgetForm=t.widgetForm,this.widgetFormSelect=t.widgetFormSelect},handleWidgetFormRedo:function(){var t=this.handleRedo();this.widgetForm=t.widgetForm,this.widgetFormSelect=t.widgetFormSelect},handleDraggableWidget:function(t,e){this.$refs.widgetForm.handleDraggableWidget(t,e)},getWidgetFormJson:function(){var t=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(this.widgetForm);return js_beautify__WEBPACK_IMPORTED_MODULE_26___default.a.js(Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_24__["a"])(t),_global_config__WEBPACK_IMPORTED_MODULE_32__["a"].beautifierDefaultsConf)},setWidgetFormJson:function setWidgetFormJson(data){var options=data;if("string"===typeof options)try{options=eval("("+options+")")}catch(e){console.error("非法配置"),options={column:[]}}var defaultWidgetForm=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["j"])();this.widgetForm=Object(_utils__WEBPACK_IMPORTED_MODULE_33__["d"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["a"])({},defaultWidgetForm),options))}}}},"1fb5":function(t,e,i){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=m;for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)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=u(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function h(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=u(t),s=n[0],a=n[1],l=new o(h(t,s,a)),c=0,d=a>0?s-4:s;for(i=0;i>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;ol?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},"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},2:function(t,e){},"206d":function(t,e,i){(function(e){var n,r,o=i("8707").Buffer,s=i("7d2a"),a=i("9f9d"),l=i("e07b"),u=i("8be6"),c=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];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=m(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 m(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 g(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=h[o.toLowerCase()];if(d&&"function"===typeof e.Promise){if(s(n,r),t=u(t,a,"Password"),i=u(i,a,"Salt"),"function"!==typeof c)throw new Error("No callback provided to pbkdf2");g(f(d).then((function(e){return e?m(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;e0&&1/i<0?1:-1:e>i}};p("sort",(function(t){var e=this;if(void 0!==t&&s(t),_)return g.call(e,t);f(e);var i,n=a(e.length),r=Array(n);for(i=0;i>>0,1)},emit:function(e,i){(t[e]||[]).map((function(t){t(i)})),(t["*"]||[]).map((function(t){t(e,i)}))}}}var r=t((function(t,e){var i={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=i,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var i=t[e].toString().replace(/"/g,""");return e+'="'+i+'"'})).join(" ")},s=r.svg,a=r.xlink,l={};l[s.name]=s.uri,l[a.name]=a.uri;var u,c=function(t,e){void 0===t&&(t="");var n=i(l,e||{}),r=o(n);return""+t+""},h=r.svg,d=r.xlink,f={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[h.name]=h.uri,u[d.name]=d.uri,u)},p=function(t){this.config=i(f,t||{}),this.symbols=[]};p.prototype.add=function(t){var e=this,i=e.symbols,n=this.find(t.id);return n?(i[i.indexOf(n)]=t,!1):(i.push(t),!0)},p.prototype.remove=function(t){var e=this,i=e.symbols,n=this.find(t);return!!n&&(i.splice(i.indexOf(n),1),n.destroy(),!0)},p.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},p.prototype.has=function(t){return null!==this.find(t)},p.prototype.stringify=function(){var t=this.config,e=t.attrs,i=this.symbols.map((function(t){return t.stringify()})).join("");return c(i,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var m=function(t){var e=t.id,i=t.viewBox,n=t.content;this.id=e,this.viewBox=i,this.content=n};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var g=function(t){var e=!!document.importNode,i=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(i,!0):i},v=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,i=this.render();return this.node=i,e.appendChild(i),i},e.prototype.render=function(){var t=this.stringify();return g(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,i),e}(m),_={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(t){return Array.prototype.slice.call(t,0)},y={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(t,e){var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!1,!1,e),window.dispatchEvent(i)},M=function(t){var e=[];return b(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},x=function(t){return(t||window.location.href).split("#")[0]},S=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,i,n){w(t,{oldUrl:n,newUrl:i})}))}])},k="linearGradient, radialGradient, pattern, mask, clipPath",C=function(t,e){return void 0===e&&(e=k),b(t.querySelectorAll("symbol")).forEach((function(t){b(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function E(t,e){var i=b(t).reduce((function(t,i){if(!i.attributes)return t;var n=b(i.attributes),r=e?n.filter(e):n;return t.concat(r)}),[]);return i}var A=r.xlink.uri,O="xlink:href",R=/[{}|\\\^\[\]`"<>]/g;function T(t){return t.replace(R,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function L(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $(t,e,i){return b(t).forEach((function(t){var n=t.getAttribute(O);if(n&&0===n.indexOf(e)){var r=n.replace(e,i);t.setAttributeNS(A,O,r)}})),t}var P,I=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],D=I.map((function(t){return"["+t+"]"})).join(","),B=function(t,e,i,n){var r=T(i),o=T(n),s=t.querySelectorAll(D),a=E(s,(function(t){var e=t.localName,i=t.value;return-1!==I.indexOf(e)&&-1!==i.indexOf("url("+r)}));a.forEach((function(t){return t.value=t.value.replace(new RegExp(L(r),"g"),o)})),$(e,r,o)},j={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},N=function(t){function e(e){var r=this;void 0===e&&(e={}),t.call(this,i(_,e));var o=n();this._emitter=o,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(e),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(j.MOUNT,(function(){return r.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,u),a.locationChangeAngularEmitter&&S(a.locationChangeEvent),o.on(j.MOUNT,(function(t){a.moveGradientsOutsideSymbol&&C(t)})),o.on(j.SYMBOL_MOUNT,(function(t){a.moveGradientsOutsideSymbol&&C(t.parentNode),(y.isIE()||y.isEdge())&&M(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,i=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(i.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(i.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof t.moveGradientsOutsideSymbol&&(i.moveGradientsOutsideSymbol=y.isFirefox())},e.prototype._handleLocationChange=function(t){var e=t.detail,i=e.oldUrl,n=e.newUrl;this.updateUrls(i,n)},e.prototype.add=function(e){var i=this,n=t.prototype.add.call(this,e);return this.isMounted&&n&&(e.mount(i.node),this._emitter.emit(j.SYMBOL_MOUNT,e.node)),n},e.prototype.attach=function(t){var e=this,i=this;if(i.isMounted)return i.node;var n="string"===typeof t?document.querySelector(t):t;return i.node=n,this.symbols.forEach((function(t){t.mount(i.node),e._emitter.emit(j.SYMBOL_MOUNT,t.node)})),b(n.querySelectorAll("symbol")).forEach((function(t){var e=v.createFromExistingNode(t);e.node=t,i.add(e)})),this._emitter.emit(j.MOUNT,n),n},e.prototype.destroy=function(){var t=this,e=t.config,i=t.symbols,n=t._emitter;i.forEach((function(t){return t.destroy()})),n.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var i=this;if(i.isMounted)return i.node;var n="string"===typeof t?document.querySelector(t):t,r=i.render();return this.node=r,e&&n.childNodes[0]?n.insertBefore(r,n.childNodes[0]):n.appendChild(r),this._emitter.emit(j.MOUNT,r),r},e.prototype.render=function(){return g(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var i=document.querySelectorAll(this.config.usagesToUpdate);return B(this.node,i,x(t)+"#",x(e)+"#"),!0},Object.defineProperties(e.prototype,r),e}(p),F=t((function(t){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(e,i){t.exports=i()}(0,(function(){var t,e=[],i=document,n=i.documentElement.doScroll,r="DOMContentLoaded",o=(n?/^loaded|^c/:/^loaded|^i|^c/).test(i.readyState);return o||i.addEventListener(r,t=function(){i.removeEventListener(r,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),q="__SVG_SPRITE_NODE__",W="__SVG_SPRITE__",z=!!window[W];z?P=window[W]:(P=new N({attrs:{id:q,"aria-hidden":"true"}}),window[W]=P);var U=function(){var t=document.getElementById(q);t?P.attach(t):P.mount(document.body,!0)};document.body?U():F(U);var K=P;return K}))}).call(this,i("c8ba"))},2266:function(t,e,i){var n=i("825a"),r=i("e95a"),o=i("50c4"),s=i("0366"),a=i("35a1"),l=i("2a62"),u=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,i){var c,h,d,f,p,m,g,v=i&&i.that,_=!(!i||!i.AS_ENTRIES),b=!(!i||!i.IS_ITERATOR),y=!(!i||!i.INTERRUPTED),w=s(e,v,1+_+y),M=function(t){return c&&l(c),new u(!0,t)},x=function(t){return _?(n(t),y?w(t[0],t[1],M):w(t[0],t[1])):y?w(t,M):w(t)};if(b)c=t;else{if(h=a(t),"function"!=typeof h)throw TypeError("Target is not iterable");if(r(h)){for(d=0,f=o(t.length);f>d;d++)if(p=x(t[d]),p&&p instanceof u)return p;return new u(!1)}c=h.call(t)}m=c.next;while(!(g=m.call(c)).done){try{p=x(g.value)}catch(S){throw l(c),S}if("object"==typeof p&&p&&p instanceof u)return p}return new u(!1)}},"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;e0?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 tr.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}()},"23cb":function(t,e,i){var n=i("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},"23e7":function(t,e,i){var n=i("da84"),r=i("06cf").f,o=i("9112"),s=i("6eeb"),a=i("ce4e"),l=i("e893"),u=i("94ca");t.exports=function(t,e){var i,c,h,d,f,p,m=t.target,g=t.global,v=t.stat;if(c=g?n:v?n[m]||a(m,{}):(n[m]||{}).prototype,c)for(h in e){if(f=e[h],t.noTargetGet?(p=r(c,h),d=p&&p.value):d=c[h],i=u(g?h:m+(v?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof f===typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),s(c,h,f,t)}}},"241c":function(t,e,i){var n=i("ca84"),r=i("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2532:function(t,e,i){"use strict";var n=i("23e7"),r=i("5a34"),o=i("1d80"),s=i("ab13");n({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~String(o(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(t,e,i){"use strict";var n=i("ebb5"),r=i("d58f").right,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduceRight",(function(t){return r(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(t,e,i){"use strict";var n=i("6eeb"),r=i("825a"),o=i("d039"),s=i("ad6d"),a="toString",l=RegExp.prototype,u=l[a],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=a;(c||h)&&n(RegExp.prototype,a,(function(){var t=r(this),e=String(t.source),i=t.flags,n=String(void 0===i&&t instanceof RegExp&&!("flags"in l)?s.call(t):i);return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,i){"use strict";var n=i("d066"),r=i("9bf2"),o=i("b622"),s=i("83ab"),a=o("species");t.exports=function(t){var e=n(t),i=r.f;s&&e&&!e[a]&&i(e,a,{configurable:!0,get:function(){return this}})}},2790:function(module,__webpack_exports__,__webpack_require__){"use strict";var E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5530"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("fb6a"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__),_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("a630"),_global_variable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("422f"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("e74d");__webpack_exports__["a"]={data:function(){return{historySteps:{index:0,maxStep:20,steps:[],storage:!1}}},watch:{historySteps:{handler:function(t){t.storage?localStorage.setItem(_global_variable__WEBPACK_IMPORTED_MODULE_4__["i"].concat("form-history"),Object(_utils_jsonBeautifier__WEBPACK_IMPORTED_MODULE_3__["a"])(t)):localStorage.removeItem(_global_variable__WEBPACK_IMPORTED_MODULE_4__["i"].concat("form-history"))},deep:!0}},methods:{initHistory:function initHistory(data){if(data.storage){var history=localStorage.getItem(_global_variable__WEBPACK_IMPORTED_MODULE_4__["i"].concat("form-history"));if(history){this.historySteps=eval("("+history+")");var _this$historySteps=this.historySteps,_index=_this$historySteps.index,_steps=_this$historySteps.steps;return Object(_utils__WEBPACK_IMPORTED_MODULE_5__["d"])(_steps[_index])}}this.historySteps=Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(E_loquat_form_design_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["a"])({},this.historySteps),data);var _this$historySteps2=this.historySteps,index=_this$historySteps2.index,steps=_this$historySteps2.steps;return Object(_utils__WEBPACK_IMPORTED_MODULE_5__["d"])(steps[index])},handleHistoryChange:function(t){this.historySteps.index==this.historySteps.maxStep-1?this.historySteps.steps.shift():this.historySteps.index++,this.historySteps.steps[this.historySteps.index]=Object(_utils__WEBPACK_IMPORTED_MODULE_5__["d"])(t),this.historySteps.indexo)c[o]=i[o++];return c}),c)},"2a62":function(t,e,i){var n=i("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return n(e.call(t)).value}},"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 u(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,u=s.data;switch(a){case"CERTIFICATE":r=n.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=n.PublicKey.decode(u,"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":u=n.EncryptedPrivateKey.decode(u,"der"),u=c(u,e);case"PRIVATE KEY":switch(r=n.PrivateKey.decode(u,"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(u,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return u=n.ECPrivateKey.decode(u,"der"),{curve:u.parameters.value,privateKey:u.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(".")],u=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=a.pbkdf2Sync(e,i,n,h,"sha1"),f=s.createDecipheriv(o,d,u),p=[];return p.push(f.update(c)),p.push(f.final()),l.concat(p)}t.exports=u,u.signature=n.signature},"2b3d":function(t,e,i){"use strict";i("3ca3");var n,r=i("23e7"),o=i("83ab"),s=i("0d3b"),a=i("da84"),l=i("37e8"),u=i("6eeb"),c=i("19aa"),h=i("5135"),d=i("60da"),f=i("4df4"),p=i("6547").codeAt,m=i("5fb2"),g=i("d44e"),v=i("9861"),_=i("69f3"),b=a.URL,y=v.URLSearchParams,w=v.getState,M=_.set,x=_.getterFor("URL"),S=Math.floor,k=Math.pow,C="Invalid authority",E="Invalid scheme",A="Invalid host",O="Invalid port",R=/[A-Za-z]/,T=/[\d+-.A-Za-z]/,L=/\d/,$=/^0x/i,P=/^[0-7]+$/,I=/^\d+$/,D=/^[\dA-Fa-f]+$/,B=/[\0\t\n\r #%/:<>?@[\\\]^|]/,j=/[\0\t\n\r #/:<>?@[\\\]^|]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\t\n\r]/g,q=function(t,e){var i,n,r;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return A;if(i=z(e.slice(1,-1)),!i)return A;t.host=i}else if(Q(t)){if(e=m(e),B.test(e))return A;if(i=W(e),null===i)return A;t.host=i}else{if(j.test(e))return A;for(i="",n=f(e),r=0;r4)return t;for(i=[],n=0;n1&&"0"==r.charAt(0)&&(o=$.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)s=0;else{if(!(10==o?I:8==o?P:D).test(r))return t;s=parseInt(r,o)}i.push(s)}for(n=0;n=k(256,5-e))return null}else if(s>255)return null;for(a=i.pop(),n=0;n6)return;n=0;while(d()){if(r=null,n>0){if(!("."==d()&&n<4))return;h++}if(!L.test(d()))return;while(L.test(d())){if(o=parseInt(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,n++,2!=n&&4!=n||u++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=e}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){s=u-c,u=7;while(0!=u&&s>0)a=l[u],l[u--]=l[c+s-1],l[c+--s]=a}else if(8!=u)return;return l},U=function(t){for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(r>i&&(e=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i&&(e=n,i=r),e},K=function(t){var e,i,n,r;if("number"==typeof t){for(e=[],i=0;i<4;i++)e.unshift(t%256),t=S(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=U(t),i=0;i<8;i++)r&&0===t[i]||(r&&(r=!1),n===i?(e+=i?":":"::",r=!0):(e+=t[i].toString(16),i<7&&(e+=":")));return"["+e+"]"}return t},H={},V=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),G=d({},V,{"#":1,"?":1,"{":1,"}":1}),Y=d({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(t,e){var i=p(t,0);return i>32&&i<127&&!h(e,t)?t:encodeURIComponent(t)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(t){return h(X,t.scheme)},J=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var i;return 2==t.length&&R.test(t.charAt(0))&&(":"==(i=t.charAt(1))||!e&&"|"==i)},it=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},nt=function(t){var e=t.path,i=e.length;!i||"file"==t.scheme&&1==i&&et(e[0],!0)||e.pop()},rt=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},st={},at={},lt={},ut={},ct={},ht={},dt={},ft={},pt={},mt={},gt={},vt={},_t={},bt={},yt={},wt={},Mt={},xt={},St={},kt={},Ct={},Et=function(t,e,i,r){var o,s,a,l,u=i||st,c=0,d="",p=!1,m=!1,g=!1;i||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(N,"")),e=e.replace(F,""),o=f(e);while(c<=o.length){switch(s=o[c],u){case st:if(!s||!R.test(s)){if(i)return E;u=lt;continue}d+=s.toLowerCase(),u=at;break;case at:if(s&&(T.test(s)||"+"==s||"-"==s||"."==s))d+=s.toLowerCase();else{if(":"!=s){if(i)return E;d="",u=lt,c=0;continue}if(i&&(Q(t)!=h(X,d)||"file"==d&&(J(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,i)return void(Q(t)&&X[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?u=bt:Q(t)&&r&&r.scheme==t.scheme?u=ut:Q(t)?u=ft:"/"==o[c+1]?(u=ct,c++):(t.cannotBeABaseURL=!0,t.path.push(""),u=St)}break;case lt:if(!r||r.cannotBeABaseURL&&"#"!=s)return E;if(r.cannotBeABaseURL&&"#"==s){t.scheme=r.scheme,t.path=r.path.slice(),t.query=r.query,t.fragment="",t.cannotBeABaseURL=!0,u=Ct;break}u="file"==r.scheme?bt:ht;continue;case ut:if("/"!=s||"/"!=o[c+1]){u=ht;continue}u=pt,c++;break;case ct:if("/"==s){u=mt;break}u=xt;continue;case ht:if(t.scheme=r.scheme,s==n)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query;else if("/"==s||"\\"==s&&Q(t))u=dt;else if("?"==s)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query="",u=kt;else{if("#"!=s){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.path.pop(),u=xt;continue}t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query,t.fragment="",u=Ct}break;case dt:if(!Q(t)||"/"!=s&&"\\"!=s){if("/"!=s){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,u=xt;continue}u=mt}else u=pt;break;case ft:if(u=pt,"/"!=s||"/"!=d.charAt(c+1))continue;c++;break;case pt:if("/"!=s&&"\\"!=s){u=mt;continue}break;case mt:if("@"==s){p&&(d="%40"+d),p=!0,a=f(d);for(var v=0;v65535)return O;t.port=Q(t)&&y===X[t.scheme]?null:y,d=""}if(i)return;u=Mt;continue}return O}d+=s;break;case bt:if(t.scheme="file","/"==s||"\\"==s)u=yt;else{if(!r||"file"!=r.scheme){u=xt;continue}if(s==n)t.host=r.host,t.path=r.path.slice(),t.query=r.query;else if("?"==s)t.host=r.host,t.path=r.path.slice(),t.query="",u=kt;else{if("#"!=s){it(o.slice(c).join(""))||(t.host=r.host,t.path=r.path.slice(),nt(t)),u=xt;continue}t.host=r.host,t.path=r.path.slice(),t.query=r.query,t.fragment="",u=Ct}}break;case yt:if("/"==s||"\\"==s){u=wt;break}r&&"file"==r.scheme&&!it(o.slice(c).join(""))&&(et(r.path[0],!0)?t.path.push(r.path[0]):t.host=r.host),u=xt;continue;case wt:if(s==n||"/"==s||"\\"==s||"?"==s||"#"==s){if(!i&&et(d))u=xt;else if(""==d){if(t.host="",i)return;u=Mt}else{if(l=q(t,d),l)return l;if("localhost"==t.host&&(t.host=""),i)return;d="",u=Mt}continue}d+=s;break;case Mt:if(Q(t)){if(u=xt,"/"!=s&&"\\"!=s)continue}else if(i||"?"!=s)if(i||"#"!=s){if(s!=n&&(u=xt,"/"!=s))continue}else t.fragment="",u=Ct;else t.query="",u=kt;break;case xt:if(s==n||"/"==s||"\\"==s&&Q(t)||!i&&("?"==s||"#"==s)){if(ot(d)?(nt(t),"/"==s||"\\"==s&&Q(t)||t.path.push("")):rt(d)?"/"==s||"\\"==s&&Q(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(s==n||"?"==s||"#"==s))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==s?(t.query="",u=kt):"#"==s&&(t.fragment="",u=Ct)}else d+=Z(s,G);break;case St:"?"==s?(t.query="",u=kt):"#"==s?(t.fragment="",u=Ct):s!=n&&(t.path[0]+=Z(s,H));break;case kt:i||"#"!=s?s!=n&&("'"==s&&Q(t)?t.query+="%27":t.query+="#"==s?"%23":Z(s,H)):(t.fragment="",u=Ct);break;case Ct:s!=n&&(t.fragment+=Z(s,V));break}c++}},At=function(t){var e,i,n=c(this,At,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(t),a=M(n,{type:"URL"});if(void 0!==r)if(r instanceof At)e=x(r);else if(i=Et(e={},String(r)),i)throw TypeError(i);if(i=Et(a,s,null,e),i)throw TypeError(i);var l=a.searchParams=new y,u=w(l);u.updateSearchParams(a.query),u.updateURL=function(){a.query=String(l)||null},o||(n.href=Rt.call(n),n.origin=Tt.call(n),n.protocol=Lt.call(n),n.username=$t.call(n),n.password=Pt.call(n),n.host=It.call(n),n.hostname=Dt.call(n),n.port=Bt.call(n),n.pathname=jt.call(n),n.search=Nt.call(n),n.searchParams=Ft.call(n),n.hash=qt.call(n))},Ot=At.prototype,Rt=function(){var t=x(this),e=t.scheme,i=t.username,n=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,u=e+":";return null!==r?(u+="//",J(t)&&(u+=i+(n?":"+n:"")+"@"),u+=K(r),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(u+="?"+a),null!==l&&(u+="#"+l),u},Tt=function(){var t=x(this),e=t.scheme,i=t.port;if("blob"==e)try{return new At(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&Q(t)?e+"://"+K(t.host)+(null!==i?":"+i:""):"null"},Lt=function(){return x(this).scheme+":"},$t=function(){return x(this).username},Pt=function(){return x(this).password},It=function(){var t=x(this),e=t.host,i=t.port;return null===e?"":null===i?K(e):K(e)+":"+i},Dt=function(){var t=x(this).host;return null===t?"":K(t)},Bt=function(){var t=x(this).port;return null===t?"":String(t)},jt=function(){var t=x(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Nt=function(){var t=x(this).query;return t?"?"+t:""},Ft=function(){return x(this).searchParams},qt=function(){var t=x(this).fragment;return t?"#"+t:""},Wt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(Ot,{href:Wt(Rt,(function(t){var e=x(this),i=String(t),n=Et(e,i);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)})),origin:Wt(Tt),protocol:Wt(Lt,(function(t){var e=x(this);Et(e,String(t)+":",st)})),username:Wt($t,(function(t){var e=x(this),i=f(String(t));if(!tt(e)){e.username="";for(var n=0;ni)e.push(arguments[i++]);return y[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},m=function(t){delete y[t]},d?n=function(t){g.nextTick(x(t))}:_&&_.now?n=function(t){_.now(x(t))}:v&&!h?(r=new v,o=r.port2,r.port1.onmessage=S,n=l(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&f&&"file:"!==f.protocol&&!a(k)?(n=k,s.addEventListener("message",S,!1)):n=w in c("script")?function(t){u.appendChild(c("script"))[w]=function(){u.removeChild(this),M(t)}}:function(t){setTimeout(x(t),0)}),t.exports={set:p,clear:m}},"2d00":function(t,e,i){var n,r,o=i("da84"),s=i("342f"),a=o.process,l=a&&a.versions,u=l&&l.v8;u?(n=u.split("."),r=n[0]<4?1:n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=n[1]))),t.exports=r&&+r},"2e21":function(t,e,i){"use strict";i("4e82")},3:function(t,e){},"313a":function(t,e,i){"use strict";i.d(e,"h",(function(){return g})),i.d(e,"g",(function(){return v})),i.d(e,"d",(function(){return _})),i.d(e,"c",(function(){return b})),i.d(e,"e",(function(){return y})),i.d(e,"f",(function(){return w})),i.d(e,"b",(function(){return M})),i.d(e,"a",(function(){return S})),i.d(e,"i",(function(){return k})),i.d(e,"j",(function(){return C}));var n=i("ade3"),r=i("2909"),o=i("5530"),s=i("b85c"),a=i("3835"),l=(i("caad"),i("2532"),i("159b"),i("4fad"),i("b64b"),i("99af"),i("4de4"),i("7db0"),i("a15b"),i("d81d"),i("cca6"),i("b0c0"),i("422f")),u=i("5175"),c=i("c282"),h=i("e74d"),d=i("7265"),f=i("d0c1"),p=i("162b"),m=i("768e");function g(t){var e=t.label;return l["n"].includes(t.type)?"请选择 ".concat(e):"请输入 ".concat(e)}function v(t,e,i){var n;return Object(h["s"])(t.labelWidth)?Object(h["s"])(e.labelWidth)||(n=e.labelWidth):n=t.labelWidth,Object(h["q"])(n,i)}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e={};return t.forEach((function(t){var i=t.plugin||{};switch(t.type){case"coralLayout":t.cols.forEach((function(t){for(var i=_(t.list),n=0,r=Object.entries(i);n1&&void 0!==arguments[1]?arguments[1]:[];return t?(Object.keys(t).forEach((function(i){if(!Object(h["s"])(t[i])&&!e.includes(i))switch(Object(h["i"])(t[i])){case"array":t[i]=[];break;case"object":t[i]={};break;case"number":t[i]=0;break;case"boolean":t[i]=!1;break;default:t[i]=""}})),t):{}}function y(t,e){var i=t||"input";return Object(h["s"])(e)?(["textarea","password"].includes(t)&&(i="input"),l["i"].concat(Object(h["l"])(i))):e}function w(t,e){var i=t||"input";return Object(h["s"])(e)?["textarea","password"].includes(t)&&(i="input"):i="custom",l["h"].concat(Object(h["l"])(i))}function M(t){if(!Object(h["s"])(t.configOption)){var e=Object(h["d"])(t.configOption),i=e.eventScript||[],n=e.dataSource&&e.dataSource.filter((function(t){return t.auto})),r={},o={},a=[];x(t,e.column,{config:e,widgets:a,eventScript:i,autoDataSource:n,pluginImplantPaths:o});var l,c=Object(s["a"])(u["a"].formExecuteCallbackHooks);try{var d=function(){var t=l.value,e=i.find((function(e){return e.key===t}));r[t]=e&&new Function(e.func)};for(c.s();!(l=c.n()).done;)d()}catch(f){c.e(f)}finally{c.f()}return e._callbackHooks=r,e._pluginImplantPaths=o,e._widgets=a,delete e.dataSource,delete e.eventScript,e}}function x(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={config:i.config||{},widgets:i.widgets||[],eventScript:i.eventScript||[],autoDataSource:i.autoDataSource||[],remoteOption:Object(o["a"])(Object(o["a"])({},u["a"].defaultRemoteOption),c["c"].store),remoteFunc:Object(o["a"])(Object(o["a"])({},u["a"].defaultRemoteFunc),c["b"].store),axiosInstance:u["a"].axiosInstance,pluginImplantPaths:i.pluginImplantPaths||{},parentPluginImplantPath:i.parentPluginImplantPath||"_this"},a=function(i){var o=e[i];s.widgets.push(o);var a=o.plugin||{},u=o.validateConfig||{};switch(o.type){case"coralLayout":for(var c=0;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),u=o.mul(n.b),c=t.sub(s).sub(a),h=l.add(u).neg();return{k1:c,k2:h}},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":""},u.prototype.isInfinity=function(){return this.inf},u.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)},u.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)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.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)},u.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)},u.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)},u.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))},u.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},u.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 u=a.redSqr(),c=u.redMul(a),h=n.redMul(u),d=l.redSqr().redIAdd(c).redISub(h).redISub(h),f=l.redMul(h.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(),u=l.redMul(s),c=i.redMul(l),h=a.redSqr().redIAdd(u).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(r.redMul(u)),f=this.z.redMul(s);return this.curve.jpoint(h,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=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},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")},"342f":function(t,e,i){var n=i("d066");t.exports=n("navigator","userAgent")||""},"343e":function(t,e,i){"use strict";const n=e;n.der=i("3768"),n.pem=i("85b3")},"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}},"35a1":function(t,e,i){var n=i("f5df"),r=i("3f8c"),o=i("b622"),s=o("iterator");t.exports=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||r[n(t)]}},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 u(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=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=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=[u(n.getUTCFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(n.getUTCFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(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=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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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))},"37e8":function(t,e,i){var n=i("83ab"),r=i("9bf2"),o=i("825a"),s=i("df75");t.exports=n?Object.defineProperties:function(t,e){o(t);var i,n=s(e),a=n.length,l=0;while(a>l)r.f(t,i=n[l++],e[i]);return 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},3835:function(t,e,i){"use strict";function n(t){if(Array.isArray(t))return t}i.d(e,"a",(function(){return a}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("e260"),i("3ca3"),i("ddb0");function r(t,e){var i=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done);s=!0)if(o.push(n.value),e&&o.length===e)break}catch(l){a=!0,r=l}finally{try{s||null==i["return"]||i["return"]()}finally{if(a)throw r}}return o}}var o=i("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){return n(t)||r(t,e)||Object(o["a"])(t,e)||s()}},"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(9).Buffer}catch(R){}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 u(t,e,i,r){for(var o=0,s=0,a=Math.min(t.length,i),l=e;l=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s0?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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(R){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}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>>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 u=f[t],c=p[t];i="";var h=this.clone();h.negative=0;while(!h.isZero()){var m=h.modrn(c).toString(t);h=h.idivn(c),i=h.isZero()?m+i:d[u-m.length]+m+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 m=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function g(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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=m(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>8&255),i>16&255),6===o?(i>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function b(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 y(t,e,i){return b(t,e,i)}function w(t,e){this.x=t,this.y=e}Math.imul||(_=v),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?_(this,t,e):n<63?v(this,t,e):n<1024?b(this,t,e):y(this,t,e),i},w.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},w.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=g(t);if(0===e.length)return new o(1);for(var i=this,n=0;n=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 A(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 M={k256:null,p224:null,p192:null,p25519:null};function x(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 S(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(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 O(t){A.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)}x.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},x.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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},x.prototype.split=function(t,e){t.iushrn(this.n,0,e)},x.prototype.imulK=function(t){return t.imul(this.k)},r(S,x),S.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},S.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>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new S;else if("p224"===t)e=new k;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return M[t]=e,e},A.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},A.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")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.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)},A.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},A.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)},A.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=26}return s},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},r(O,A),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.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)},O.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)},O.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 */ 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>>24]^c[p>>>16&255]^h[m>>>8&255]^d[255&g]^e[v++],s=u[p>>>24]^c[m>>>16&255]^h[g>>>8&255]^d[255&f]^e[v++],a=u[m>>>24]^c[g>>>16&255]^h[f>>>8&255]^d[255&p]^e[v++],l=u[g>>>24]^c[f>>>16&255]^h[p>>>8&255]^d[255&m]^e[v++],f=o,p=s,m=a,g=l;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[v++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^e[v++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^e[v++],l=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^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 u=a^a<<1^a<<2^a<<3^a<<4;u=u>>>8^255&u^99,i[s]=u,n[u]=s;var c=t[s],h=t[c],d=t[h],f=257*t[u]^16843008*u;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*h^257*c^16843008*s,o[0][u]=f<<24|f>>>8,o[1][u]=f<<16|f>>>16,o[2][u]=f<<8|f>>>24,o[3][u]=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 u(t){this._key=r(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,n=4*(i+1),r=[],o=0;o>>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 u=[],c=0;c>>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=u},u.prototype.encryptBlockRaw=function(t){return t=r(t),s(t,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},u.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},u.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},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},"3a7b":function(t,e,i){"use strict";var n=i("ebb5"),r=i("b727").findIndex,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3a7c":function(t,e,i){(function(t){function i(t){return Array.isArray?Array.isArray(t):"[object Array]"===g(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 u(t){return void 0===t}function c(t){return"[object RegExp]"===g(t)}function h(t){return"object"===typeof t&&null!==t}function d(t){return"[object Date]"===g(t)}function f(t){return"[object Error]"===g(t)||t instanceof Error}function p(t){return"function"===typeof t}function m(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function g(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=u,e.isRegExp=c,e.isObject=h,e.isDate=d,e.isError=f,e.isFunction=p,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(this,i("b639").Buffer)},"3bbe":function(t,e,i){var n=i("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c5d":function(t,e,i){"use strict";var n=i("ebb5"),r=i("50c4"),o=i("182d"),s=i("7b0b"),a=i("d039"),l=n.aTypedArray,u=n.exportTypedArrayMethod,c=a((function(){new Int8Array(1).set({})}));u("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=s(t),a=r(n.length),u=0;if(a+e>i)throw RangeError("Wrong length");while(u=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},"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 u(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(u,s.BasePoint),l.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},l.prototype.point=function(t,e,i,n){return new u(this,t,e,i,n)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.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),u=o.redMul(a),c=r.redMul(a),h=s.redMul(o);return this.curve.point(l,u,h,c)},u.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 u=n.redAdd(l);this.zOne?(t=s.redSub(a).redSub(l).redMul(u.redSub(this.curve.two)),e=u.redMul(n.redSub(l)),i=u.redSqr().redSub(u).redSub(u)):(r=this.z.redSqr(),o=u.redSub(r).redISub(r),t=s.redSub(a).redISub(l).redMul(o),e=u.redMul(n.redSub(l)),i=u.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)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),u=o.redMul(s),c=a.redMul(l),h=o.redMul(l),d=s.redMul(a);return this.curve.point(u,c,d,h)},u.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),u=r.redAdd(a),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=n.redMul(l).redMul(c);return this.curve.twisted?(e=n.redMul(u).redMul(s.redSub(this.curve._mulA(o))),i=l.redMul(u)):(e=n.redMul(u).redMul(s.redSub(o)),i=this.curve._mulC(l).redMul(u)),this.curve.point(h,e,i)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.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}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.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(++e0;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},"3f8c":function(t,e){t.exports={}},"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}}},"3fcc":function(t,e,i){"use strict";var n=i("ebb5"),r=i("b727").map,o=i("4840"),s=n.aTypedArray,a=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("map",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(o(t,t.constructor)))(e)}))}))},4:function(t,e){},"408a":function(t,e,i){var n=i("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+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 u=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=u;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 h=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=h;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"),u=Symbol("ended"),c=Symbol("lastPromise"),h=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 m(t){e.nextTick(p,t)}function g(t,e){return function(i,n){t.then((function(){e[u]?i(f(void 0,!0)):e[h](i,n)}),n)}}var v=Object.getPrototypeOf((function(){})),_=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[u])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(g(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[h])}return this[c]=n,n}},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),b=function(t){var e,i=Object.create(_,(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,u,{value:t._readableState.endEmitted,writable:!0}),r(e,h,{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[u]=!0})),t.on("readable",m.bind(null,i)),i};t.exports=b}).call(this,i("4362"))},"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")},"41f7":function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o}));i("d81d"),i("4de4"),i("ac1f"),i("1276"),i("498a"),i("99af");function n(t){return t?t.split(/}\s+./).filter((function(t){return t})).map((function(t){return"."!==(t=t.trim())[0]&&(t="."+t),"}"!==t[t.length-1]&&(t+="}"),t})):[]}function r(t,e){for(var i=document.styleSheets[0],n=0;n0&&e16)throw new Error("unable to decrypt data");var i=-1;while(++i16)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=m,e.createDecipheriv=p},"422f":function(t,e,i){"use strict";i.d(e,"i",(function(){return n})),i.d(e,"h",(function(){return r})),i.d(e,"j",(function(){return o})),i.d(e,"l",(function(){return s})),i.d(e,"a",(function(){return a})),i.d(e,"k",(function(){return l})),i.d(e,"c",(function(){return u})),i.d(e,"n",(function(){return c})),i.d(e,"m",(function(){return h})),i.d(e,"d",(function(){return d})),i.d(e,"o",(function(){return f})),i.d(e,"f",(function(){return p})),i.d(e,"e",(function(){return m})),i.d(e,"p",(function(){return g})),i.d(e,"g",(function(){return v})),i.d(e,"b",(function(){return _}));var n="loquat-",r=n.concat("config-"),o=["cascader","select"],s=["slider","time"],a=["upload","checkbox","cascader","monthrange","daterange","datetimerange","dates","childForm"],l=["inputNumber","rate","slider"],u=["switch"],c=["date","select","checkbox","radio","cascader","inputColor","time"],h=["upload","select","radio","checkbox","cascader"],d=["coralLayout","childForm"],f={img:/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/},p={size:"small",labelPosition:"left",labelWidth:90,labelSuffix:":"},m={size:"small",indexExecuteWidth:50,indexExecuteLabel:"#"},g={home:"",res:"",name:"name",url:"url",resUrl:"data",fileName:"file"},v={label:"label",value:"value",desc:"desc",groups:"groups",children:"children",disabled:"disabled"},_={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}},4250:function(t,e,i){"use strict";(function(e,n){var r;t.exports=O,O.ReadableState=A;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 u(t){return a.from(t)}function c(t){return a.isBuffer(t)||t instanceof l}var h,d=i(0);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,m,g=i("96a5"),v=i("493f"),_=i("b9b5"),b=_.getHighWaterMark,y=i("9d8a").codes,w=y.ERR_INVALID_ARG_TYPE,M=y.ERR_STREAM_PUSH_AFTER_EOF,x=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i("3fb5")(O,s);var k=v.errorOrDestroy,C=["error","close","destroy","pause","resume"];function E(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 A(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=b(this,t,"readableHighWaterMark",n),this.buffer=new g,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 O(t){if(r=r||i("e666"),!(this instanceof O))return new O(t);var e=this instanceof r;this._readableState=new A(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 R(t,e,i,n,r){h("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,D(t,s);else if(r||(o=L(s,e)),o)k(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=u(e)),n)s.endEmitted?k(t,new S):T(t,s,e,!0);else if(s.ended)k(t,new M);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?T(t,s,e,!1):N(t,s)):T(t,s,e,!1)}else n||(s.reading=!1,N(t,s));return!s.ended&&(s.length=$?t=$:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function I(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=P(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t,e){if(h("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?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}}function B(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(j,t))}function j(t){var e=t._readableState;h("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,H(t)}function N(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){h("readable nexttick read 0"),t.read(0)}function U(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(K,t,e))}function K(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),H(t),e.flowing&&!e.reading&&t.read(0)}function H(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function V(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 G(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(Y,e,t))}function Y(t,e){if(h("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 Z(t,e){for(var i=0,n=t.length;i=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):B(this),null;if(t=I(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var n,r=e.needReadable;return h("need readable",r),(0===e.length||e.length-t0?V(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&&G(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){k(this,new x("_read()"))},O.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,h("pipe count=%d opts=%j",r.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?u:_;function l(t,e){h("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function u(){h("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",l);var c=q(i);t.on("drain",c);var d=!1;function f(){h("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",c),t.removeListener("error",m),t.removeListener("unpipe",l),i.removeListener("end",u),i.removeListener("end",_),i.removeListener("data",p),d=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var n=t.write(e);h("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==Z(r.pipes,t))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function m(e){h("onerror",e),_(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",v),_()}function v(){h("onfinish"),t.removeListener("close",g),_()}function _(){h("unpipe"),i.unpipe(t)}return i.on("data",p),E(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",i),r.flowing||(h("pipe resume"),i.resume()),t},O.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;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?B(this):r.reading||n.nextTick(z,this))),i},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var i=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(W,this),i},O.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(W,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,U(this,t)),t.paused=!1,this},O.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(h("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(h("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=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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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))},4930:function(t,e,i){var n=i("2d00"),r=i("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"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"))},"498a":function(t,e,i){"use strict";var n=i("23e7"),r=i("58a8").trim,o=i("c8d2");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"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(){K(e,t)}}var o;t.exports=A,A.WritableState=E;var s={deprecate:i("b7d1")},a=i("f12a"),l=i("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var d,f=i("9019"),p=i("05f0"),m=p.getHighWaterMark,g=i("d113").codes,v=g.ERR_INVALID_ARG_TYPE,_=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,y=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,x=g.ERR_STREAM_WRITE_AFTER_END,S=g.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function C(){}function E(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=m(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){D(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 A(t){o=o||i("5e7d");var e=this instanceof o;if(!e&&!d.call(A,this))return new A(t);this._writableState=new E(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 O(t,e){var i=new x;k(t,i),n.nextTick(e,i)}function R(t,e,i,r){var o;return null===i?o=new M:"string"===typeof i||e.objectMode||(o=new v("chunk",["string","Buffer"],i)),!o||(k(t,o),n.nextTick(r,o),!1)}function T(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,i)),e}function L(t,e,i,n,r,o){if(!i){var s=T(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-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,i){i(new _("_write()"))},A.prototype._writev=null,A.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||U(this,n,i),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this,i("c8ba"),i("4362"))},"4d63":function(t,e,i){var n=i("83ab"),r=i("da84"),o=i("94ca"),s=i("7156"),a=i("9112"),l=i("9bf2").f,u=i("241c").f,c=i("44e7"),h=i("ad6d"),d=i("9f7f"),f=i("6eeb"),p=i("d039"),m=i("5135"),g=i("69f3").enforce,v=i("2626"),_=i("b622"),b=i("fce3"),y=i("107c"),w=_("match"),M=r.RegExp,x=M.prototype,S=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,C=/a/g,E=new M(k)!==k,A=d.UNSUPPORTED_Y,O=n&&(!E||A||b||y||p((function(){return C[w]=!1,M(k)!=k||M(C)==C||"/a/i"!=M(k,"i")}))),R=function(t){for(var e,i=t.length,n=0,r="",o=!1;n<=i;n++)e=t.charAt(n),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+t.charAt(++n);return r},T=function(t){for(var e,i=t.length,n=0,r="",o=[],s={},a=!1,l=!1,u=0,c="";n<=i;n++){if(e=t.charAt(n),"\\"===e)e+=t.charAt(++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:S.test(t.slice(n+1))&&(n+=2,l=!0),r+=e,u++;continue;case">"===e&&l:if(""===c||m(s,c))throw new SyntaxError("Invalid capture group name");s[c]=!0,o.push([c,u]),l=!1,c="";continue}l?c+=e:r+=e}return[r,o]};if(o("RegExp",O)){for(var L=function(t,e){var i,n,r,o,l,u,d=this instanceof L,f=c(t),p=void 0===e,m=[],v=t;if(!d&&f&&p&&t.constructor===L)return t;if((f||t instanceof L)&&(t=t.source,p&&(e="flags"in v?v.flags:h.call(v))),t=void 0===t?"":String(t),e=void 0===e?"":String(e),v=t,b&&"dotAll"in k&&(n=!!e&&e.indexOf("s")>-1,n&&(e=e.replace(/s/g,""))),i=e,A&&"sticky"in k&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,""))),y&&(o=T(t),t=o[0],m=o[1]),l=s(M(t,e),d?this:x,L),(n||r||m.length)&&(u=g(l),n&&(u.dotAll=!0,u.raw=L(R(t),i)),r&&(u.sticky=!0),m.length&&(u.groups=m)),t!==v)try{a(l,"source",""===v?"(?:)":v)}catch(_){}return l},$=function(t){t in L||l(L,t,{configurable:!0,get:function(){return M[t]},set:function(e){M[t]=e}})},P=u(M),I=0;P.length>I;)$(P[I++]);x.constructor=L,L.prototype=x,f(r,"RegExp",L)}v("RegExp")},"4d64":function(t,e,i){var n=i("fc6a"),r=i("50c4"),o=i("23cb"),s=function(t){return function(e,i,s){var a,l=n(e),u=r(l.length),c=o(s,u);if(t&&i!=i){while(u>c)if(a=l[c++],a!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"4d7c":function(t,e,i){var n,r;(function(){var i;(function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function n(t,n){this.__indent_cache=new i(t,n),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e,i},i.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e],i},i.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},n.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,i){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==i){this.__lines.splice(n+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=n},,,,function(t){function e(t,e){this.raw_options=i(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function i(t,e){var i,r={};for(i in t=n(t),t)i!==e&&(r[i]=t[i]);if(e&&t[e])for(i in t[e])r[i]=t[e][i];return r}function n(t){var e,i={};for(e in t){var n=e.replace(/-/g,"_");i[n]=t[e]}return i}e.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"===typeof i?null!==i&&"function"===typeof i.concat&&(n=i.concat()):"string"===typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},e.prototype._get_boolean=function(t,e){var i=this.raw_options[t],n=void 0===i?!!e:!!i;return n},e.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"===typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},e.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},e.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=n,t.exports.mergeOpts=i},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},,,,,function(t){function e(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var i=this.__directive_pattern.exec(t);while(i)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,i){var n=i(16).Beautifier,r=i(17).Options;function o(t,e){var i=new n(t,e);return i.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new r}},function(t,e,i){var n=i(17).Options,r=i(2).Output,o=i(8).InputScanner,s=i(13).Directives,a=new s(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,f=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(t,e){this._source_text=t||"",this._options=new n(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}p.prototype.eatString=function(t){var e="";this._ch=this._input.next();while(this._ch){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},p.prototype.eatWhitespace=function(t){var e=c.test(this._input.peek()),i=0;while(c.test(this._input.peek()))this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&l.test(t||"")&&(e=t.match(l)[0])),t=t.replace(u,"\n");var i=t.match(/^[\t ]*/)[0];this._output=new r(this._options,i),this._input=new o(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var n,s,p,m=0,g=!1,v=!1,_=!1,b=!1,y=!1,w=this._ch;while(1){if(n=this._input.read(h),s=""!==n,p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var M=this._input.read(d),x=a.get_directives(M);x&&"start"===x.ignore&&(M+=a.readIgnored(this._input)),this.print_string(M),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(f)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(s),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s$/,""),this.print_string(S),this._output.space_before_token=!0),S=S.replace(/\s$/,""),"extend"===S?b=!0:"import"===S&&(y=!0),S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(_=!0)):g||0!==m||-1===S.indexOf(":")||(v=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(s),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(v&&(v=!1,this.outdent()),_?(_=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),y=!1,b=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!g&&!_||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(s),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===m?(v&&(this.outdent(),v=!1),b=!1,y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()))):(this.preserveSingleSpace(s),this.print_string(this._ch),this.eatWhitespace(),m++,this.indent()):")"===this._ch?(m&&(m--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v||0!==m||y||b?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==m?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(s),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(s),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""))}var k=this._output.get_code(e);return k},t.exports.Beautifier=p},function(t,e,i){var n=i(6).Options;function r(t){n.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r1?arguments[1]:void 0)}})},"4df4":function(t,e,i){"use strict";var n=i("0366"),r=i("7b0b"),o=i("9bdd"),s=i("e95a"),a=i("50c4"),l=i("8418"),u=i("35a1");t.exports=function(t){var e,i,c,h,d,f,p=r(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,_=void 0!==v,b=u(p),y=0;if(_&&(v=n(v,g>2?arguments[2]:void 0,2)),void 0==b||m==Array&&s(b))for(e=a(p.length),i=new m(e);e>y;y++)f=_?v(p[y],y):p[y],l(i,y,f);else for(h=b.call(p),d=h.next,i=new m;!(c=d.call(h)).done;y++)f=_?o(h,v,[c.value,y],!0):c.value,l(i,y,f);return i.length=y,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 u=[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>>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>>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 u=t.keys[l],c=t.keys[l+1];o.expand(s,t.tmp,0),u^=t.tmp[0],c^=t.tmp[1];var h=o.substitute(u,c),d=o.permute(h),f=s;s=(a^d)>>>0,a=f}o.rip(s,a,n,r)}},"4e82":function(t,e,i){},"4fad":function(t,e,i){var n=i("23e7"),r=i("6f53").entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},"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 u(t,e,i){return i^t&(e^i)}function c(t,e,i){return t&e|i&(t|e)}function h(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 m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0>>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,_=0|this._gh,b=0|this._hh,y=0|this._al,w=0|this._bl,M=0|this._cl,x=0|this._dl,S=0|this._el,k=0|this._fl,C=0|this._gl,E=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var O=e[A-30],R=e[A-30+1],T=f(O,R),L=p(R,O);O=e[A-4],R=e[A-4+1];var $=m(O,R),P=g(R,O),I=e[A-14],D=e[A-14+1],B=e[A-32],j=e[A-32+1],N=L+D|0,F=T+I+v(N,L)|0;N=N+P|0,F=F+$+v(N,P)|0,N=N+j|0,F=F+B+v(N,j)|0,e[A]=F,e[A+1]=N}for(var q=0;q<160;q+=2){F=e[q],N=e[q+1];var W=c(i,n,r),z=c(y,w,M),U=h(i,y),K=h(y,i),H=d(a,S),V=d(S,a),G=s[q],Y=s[q+1],Z=u(a,l,_),X=u(S,k,C),Q=E+V|0,J=b+H+v(Q,E)|0;Q=Q+X|0,J=J+Z+v(Q,X)|0,Q=Q+Y|0,J=J+G+v(Q,Y)|0,Q=Q+N|0,J=J+F+v(Q,N)|0;var tt=K+z|0,et=U+W+v(tt,K)|0;b=_,E=C,_=l,C=k,l=a,k=S,S=x+Q|0,a=o+J+v(S,x)|0,o=r,x=M,r=n,M=w,n=i,w=y,y=Q+tt|0,i=J+et+v(y,Q)|0}this._al=this._al+y|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+k|0,this._gl=this._gl+C|0,this._hl=this._hl+E|0,this._ah=this._ah+i+v(this._al,y)|0,this._bh=this._bh+n+v(this._bl,w)|0,this._ch=this._ch+r+v(this._cl,M)|0,this._dh=this._dh+o+v(this._dl,x)|0,this._eh=this._eh+a+v(this._el,S)|0,this._fh=this._fh+l+v(this._fl,k)|0,this._gh=this._gh+_+v(this._gl,C)|0,this._hh=this._hh+b+v(this._hl,E)|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},5:function(t,e){},"50c4":function(t,e,i){var n=i("a691"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},"512c":function(t,e,i){var n=i("342f"),r=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5135:function(t,e,i){var n=i("7b0b"),r={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return r.call(n(t),e)}},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>a%8,t._prev=o(t._prev,i?r:s);return u}function o(t,e){var i=t.length,r=-1,o=n.allocUnsafe(t.length);t=n.concat([t,n.from([e])]);while(++r>7;return o}e.encrypt=function(t,e,i){var o=e.length,s=n.allocUnsafe(o),a=-1;while(++a")}));n("replace",(function(t,e,i){var n=_?"$":"$0";return[function(t,i){var n=l(this),r=void 0==t?void 0:t[f];return void 0!==r?r.call(t,n,i):e.call(String(n),t,i)},function(t,r){if("string"===typeof r&&-1===r.indexOf(n)&&-1===r.indexOf("$<")){var l=i(e,this,t,r);if(l.done)return l.value}var d=o(this),f=String(t),v="function"===typeof r;v||(r=String(r));var _=d.global;if(_){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var w=h(d,f);if(null===w)break;if(y.push(w),!_)break;var M=String(w[0]);""===M&&(d.lastIndex=u(f,s(d.lastIndex),b))}for(var x="",S=0,k=0;k=S&&(x+=f.slice(S,E)+L,S=E+C.length)}return x+f.slice(S)}]}),!b||!v||_)},5324:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["coralLayout"==t.column.type?[i("widget-coral-layout",{attrs:{column:t.column,index:t.index,widgets:t.widgets}})]:"childForm"==t.column.type?[i("widget-child-form")]:[i("div",{on:{click:function(e){return e.stopPropagation(),t.emitInvoke("select")}}},[i("div",{class:["widget-view",{active:t.selectWidget.prop==t.column.prop,readonly:t.plugin.readonly,hide:t.column.hide}]},[i("el-form-item",{staticClass:"widget-form-item",class:[{required:t.validateConfig.required}].concat(t.column.customClass||[]),attrs:{prop:t.column.prop,label:t.column.hideLabel?"":t.column.label,"label-width":t.column.hideLabel?"0":t.getLabelWidth(t.column,t.data,t.formDefaultConfig.labelWidth),"label-position":t.column.labelPosition||t.data.labelPosition||t.formDefaultConfig.labelPosition}},[i("widget",{attrs:{column:t.column,dic:t.column.dicData,props:t.data.props,size:t.data.size||t.formDefaultConfig.size,preview:!1},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),t.selectWidget.prop==t.column.prop?i("div",{class:["widget-view-action",{"widget-layout-action":"childForm"==t.column.type}]},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.emitInvoke("clone")}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.emitInvoke("delete")}}})]):t._e(),t.selectWidget.prop==t.column.prop?i("div",{class:["widget-view-drag",{"widget-layout-drag":"childForm"==t.column.type}]},[i("i",{staticClass:"iconfont icon-drag"})]):t._e(),i("div",{staticClass:"widget-view-model"},[i("span",{domProps:{textContent:t._s(t.column.prop)}})])],1)])]],2)},r=[],o=(i("e260"),i("d3b7"),i("e6cf"),i("3ca3"),i("ddb0"),i("a9e3"),i("313a")),s=i("c44e"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{on:{click:function(e){return e.stopPropagation(),t.formItem.emitInvoke("select")}}},[i("div",{class:["widget-view","widget-child-form",{active:t.selectWidget.prop==t.column.prop,readonly:t.plugin.readonly,hide:t.column.hide}]},[i("el-form-item",{staticClass:"widget-form-item",class:[{required:t.validateConfig.required}].concat(t.column.customClass||[]),attrs:{prop:t.column.prop,label:t.column.hideLabel?"":t.column.label,"label-width":t.column.hideLabel?"0":t.formItem.getLabelWidth(t.column,t.data,t.formDefaultConfig.labelWidth),"label-position":t.column.labelPosition||t.data.labelPosition||t.formDefaultConfig.labelPosition}},[i("div",{staticClass:"widget-child-form-wrapper"},[i("el-table",{staticClass:"widget-child-form-left",attrs:{data:[{}],"row-class-name":"widget-child-form-row"}},[t.configOption.indexExecute?t._e():i("el-table-column",{attrs:{label:t.configOption.indexExecuteLabel,width:50}},[t._v("1")])],1),i("div",{staticClass:"widget-child-form-content"},[0==t.childFormColumns.length?i("div",{staticClass:"child-form-empty"},[t._v("将字段拖拽到此处")]):t._e(),i("draggable",{staticClass:"widget-child-form-col",style:{width:"calc("+t.columnCalcWidth+"px)"},attrs:{list:t.childFormColumns,group:{name:"form",put:t.handleExcludeDraggable},"ghost-class":"ghost",animation:300,handle:".widget-view-drag"},on:{start:function(e){return t.form.handleDraggableWidget(t.childFormColumns,e)},add:t.handleWidgetColAdd,end:function(e){return t.form.$emit("change")}}},[t._l(t.childFormColumns,(function(t,e){return[i("widget-child-form-item",{key:e,attrs:{column:t,index:e}})]}))],2)],1)],1)]),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-action widget-layout-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.formItem.emitInvoke("clone")}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.formItem.emitInvoke("delete")}}})]):t._e(),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-drag widget-layout-drag"},[i("i",{staticClass:"iconfont icon-drag"})]):t._e(),i("div",{staticClass:"widget-view-model"},[i("span",{domProps:{textContent:t._s(t.column.prop)}})])],1)])},l=[],u=(i("caad"),i("2532"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:["widget-child-form-view",{active:t.selectWidget.prop==t.column.prop}],staticStyle:{width:"200px"},on:{click:function(e){return e.stopPropagation(),t.form.handleDataSelectWidget(t.column)}}},[i("el-table",{attrs:{data:[{}],"cell-class-name":t.tableBackgroundClass,"header-cell-class-name":t.tableBackgroundClass}},[i("el-table-column",{attrs:{label:t.column.label,"class-name":t.validateConfig.required?"required":"",width:198}},[i("widget",{attrs:{column:t.column,dic:t.column.dicData,props:t.data.props,size:t.data.size||t.formDefaultConfig.size,preview:!1},model:{value:t.column.value,callback:function(e){t.$set(t.column,"value",e)},expression:"column.value"}})],1)],1),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.handleWidgetClone(t.index)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.handleWidgetDelete(t.index)}}})]):t._e(),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-drag"},[i("i",{staticClass:"iconfont icon-drag"})]):t._e(),i("div",{staticClass:"widget-view-model"},[i("span",{domProps:{textContent:t._s(t.column.prop)}})])],1)}),c=[],h=(i("a434"),{name:"WidgetChildFormItem",inject:["childFormProvide"],components:{widget:s["a"]},props:{column:{type:Object},index:{type:Number}},computed:{childForm:function(){return this.childFormProvide||{}},plugin:function(){return this.column.plugin||{}},validateConfig:function(){return this.column.validateConfig||{}},tableBackgroundClass:function(){var t={hide:this.column.hide,readonly:this.plugin.readonly},e="";for(var i in t)if(t[i]){e=i;break}return e},form:function(){return this.childForm.form||{}},data:function(){return this.childForm.data||{}},formDefaultConfig:function(){return this.childForm.formDefaultConfig||{}},selectWidget:function(){return this.childForm.selectWidget||{}},childFormColumns:function(){return this.childForm.childFormColumns||[]}},methods:{handleWidgetClone:function(t){var e=this;this.childFormColumns.splice(t,0,Object(o["j"])(this.childFormColumns[t])),this.$nextTick((function(){e.form.handleDataSelectWidget(e.childFormColumns[t+1]),e.from.$emit("change")}))},handleWidgetDelete:function(t){var e=this;this.childFormColumns.length-1===t?0===t?this.form.handleDataSelectWidget({}):this.form.handleDataSelectWidget(this.childFormColumns[t-1]):this.form.handleDataSelectWidget(this.childFormColumns[t+1]),this.$nextTick((function(){e.childFormColumns.splice(t,1),e.from.$emit("change")}))}}}),d=h,f=i("2877"),p=Object(f["a"])(d,u,c,!1,null,null,null),m=p.exports,g=i("422f"),v=i("b76a"),_=i.n(v),b={name:"WidgetChildForm",components:{Draggable:_.a,widgetChildFormItem:m},inject:["formItemProvide"],provide:function(){return{childFormProvide:this}},computed:{formItem:function(){return this.formItemProvide||{}},column:function(){return this.formItem.column||{}},plugin:function(){return this.formItem.plugin||{}},validateConfig:function(){return this.formItem.validateConfig||{}},configOption:function(){return this.plugin.option||{}},childFormColumns:function(){return this.configOption.column||[]},columnCalcWidth:function(){return 200*this.childFormColumns.length+200},form:function(){return this.formItem.form||{}},data:function(){return this.form.data||{}},formDefaultConfig:function(){return this.form.formDefaultConfig||{}},selectWidget:function(){return this.form.widgetFormSelect||{}},draggableWidget:function(){return this.form.widgetFormDraggable||{}}},methods:{handleExcludeDraggable:function(){return!g["d"].includes(this.draggableWidget.type)},handleWidgetColAdd:function(t){var e=this,i=t.newIndex;this.$set(this.childFormColumns,i,Object(o["i"])(this.childFormColumns[i])),this.form.handleDataSelectWidget(this.childFormColumns[i]),this.$nextTick((function(){e.form.$emit("change")}))}}},y=b,w=Object(f["a"])(y,a,l,!1,null,null,null),M=w.exports,x={components:{widget:s["a"],widgetChildForm:M,widgetCoralLayout:function(){return Promise.resolve().then(i.bind(null,"babf"))}},inject:["formProvide"],provide:function(){return{formItemProvide:this}},props:{column:{type:Object},index:{type:Number},widgets:{required:!0,type:Array},layoutType:{type:String,default:"widgets"}},computed:{form:function(){return this.formProvide||{}},data:function(){return this.form.data||{}},plugin:function(){return this.column.plugin||{}},validateConfig:function(){return this.column.validateConfig||{}},formDefaultConfig:function(){return this.form.formDefaultConfig||{}},selectWidget:function(){return this.form.widgetFormSelect||{}}},methods:{getLabelWidth:o["g"],emitInvoke:function(t){switch(this.layoutType){case"widgets":"select"===t&&this.$emit("select",this.index),"clone"===t&&this.$emit("clone",this.index),"delete"===t&&this.$emit("delete",this.index);break;case"coralLayout":"select"===t&&this.$emit("select",this.widgets[this.index]),"clone"===t&&this.$emit("clone",this.widgets,this.index),"delete"===t&&this.$emit("delete",this.widgets,this.index);break}}}},S=x,k=Object(f["a"])(S,n,r,!1,null,null,null);e["a"]=k.exports},"53ca":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("e260"),i("3ca3"),i("ddb0");function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}},5530:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));i("b64b"),i("a4d3"),i("4de4"),i("e439"),i("159b"),i("dbb4");var n=i("ade3");function r(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 o(t){for(var e=1;et)i.ishrn(1);if(i.isEven()&&i.iadd(l),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(c))while(i.mod(h).cmp(d))i.iadd(p)}else while(i.mod(o).cmp(f))i.iadd(p);if(s=i.shrn(1),v(s)&&v(i)&&_(s)&&_(i)&&a.test(s)&&a.test(i))return i}}},"58a8":function(t,e,i){var n=i("1d80"),r=i("5899"),o="["+r+"]",s=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),l=function(t){return function(e){var i=String(n(e));return 1&t&&(i=i.replace(s,"")),2&t&&(i=i.replace(a,"")),i}};t.exports={start:l(1),end:l(2),trim:l(3)}},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")},"5a34":function(t,e,i){var n=i("44e7");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},"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},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cc6":function(t,e,i){var n=i("74e8");n("Uint8",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"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(3);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})},"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=u;var r=i("cf35"),o=i("49ce");i("3fb5")(u,r);for(var s=n(o.prototype),a=0;a>>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<>>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>>n[l]&1;for(l=a;l>>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[i]&1;return e>>>0},e.padSplit=function(t,e,i){var n=t.toString(2);while(n.length=55296&&r<=56319&&i>1,t+=g(t/e);t>m*s>>1;n+=r)t=g(t/m);return g(n+(m+1)*t/(t+a))},w=function(t){var e=[];t=_(t);var i,a,l=t.length,d=c,f=0,m=u;for(i=0;i=d&&ag((n-f)/S))throw RangeError(p);for(f+=(x-d)*S,d=x,i=0;in)throw RangeError(p);if(a==d){for(var k=f,C=r;;C+=r){var E=C<=m?o:C>=m+s?s:C-m;if(kc){var f,p=u(arguments[c++]),m=h?o(p).concat(h(p)):o(p),g=m.length,v=0;while(g>v)f=m[v++],n&&!d.call(p,f)||(i[f]=p[f])}return i}:c},"621a":function(t,e,i){"use strict";var n=i("da84"),r=i("83ab"),o=i("a981"),s=i("9112"),a=i("e2cc"),l=i("d039"),u=i("19aa"),c=i("a691"),h=i("50c4"),d=i("0b25"),f=i("77a7"),p=i("e163"),m=i("d2bb"),g=i("241c").f,v=i("9bf2").f,_=i("81d5"),b=i("d44e"),y=i("69f3"),w=y.get,M=y.set,x="ArrayBuffer",S="DataView",k="prototype",C="Wrong length",E="Wrong index",A=n[x],O=A,R=n[S],T=R&&R[k],L=Object.prototype,$=n.RangeError,P=f.pack,I=f.unpack,D=function(t){return[255&t]},B=function(t){return[255&t,t>>8&255]},j=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},N=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},F=function(t){return P(t,23,4)},q=function(t){return P(t,52,8)},W=function(t,e){v(t[k],e,{get:function(){return w(this)[e]}})},z=function(t,e,i,n){var r=d(i),o=w(t);if(r+e>o.byteLength)throw $(E);var s=w(o.buffer).bytes,a=r+o.byteOffset,l=s.slice(a,a+e);return n?l:l.reverse()},U=function(t,e,i,n,r,o){var s=d(i),a=w(t);if(s+e>a.byteLength)throw $(E);for(var l=w(a.buffer).bytes,u=s+a.byteOffset,c=n(+r),h=0;hG;)(K=V[G++])in O||s(O,K,A[K]);H.constructor=O}m&&p(T)!==L&&m(T,L);var Y=new R(new O(2)),Z=T.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||a(T,{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},{unsafe:!0})}else O=function(t){u(this,O,x);var e=d(t);M(this,{bytes:_.call(new Array(e),0),byteLength:e}),r||(this.byteLength=e)},R=function(t,e,i){u(this,R,S),u(t,O,S);var n=w(t).byteLength,o=c(e);if(o<0||o>n)throw $("Wrong offset");if(i=void 0===i?n-o:h(i),o+i>n)throw $(C);M(this,{buffer:t,byteLength:i,byteOffset:o}),r||(this.buffer=t,this.byteLength=i,this.byteOffset=o)},r&&(W(O,"byteLength"),W(R,"buffer"),W(R,"byteLength"),W(R,"byteOffset")),a(R[k],{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return N(z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return N(z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return I(z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return I(z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){U(this,1,t,D,e)},setUint8:function(t,e){U(this,1,t,D,e)},setInt16:function(t,e){U(this,2,t,B,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){U(this,2,t,B,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){U(this,4,t,j,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){U(this,4,t,j,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){U(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){U(this,8,t,q,e,arguments.length>2?arguments[2]:void 0)}});b(O,x),b(R,S),t.exports={ArrayBuffer:O,DataView:R}},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(++a1?arguments[1]:void 0)}))},6547:function(t,e,i){var n=i("a691"),r=i("1d80"),o=function(t){return function(e,i){var o,s,a=String(r(e)),l=n(i),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,i){var n=i("861d"),r=i("e8b5"),o=i("b622"),s=o("species");t.exports=function(t,e){var i;return r(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!r(i.prototype)?n(i)&&(i=i[s],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},"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()?"":""},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()),u=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(l,u)},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()}},"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")},"69f3":function(t,e,i){var n,r,o,s=i("7f9a"),a=i("da84"),l=i("861d"),u=i("9112"),c=i("5135"),h=i("c6cd"),d=i("f772"),f=i("d012"),p="Object already initialized",m=a.WeakMap,g=function(t){return o(t)?r(t):n(t,{})},v=function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(s||h.state){var _=h.state||(h.state=new m),b=_.get,y=_.has,w=_.set;n=function(t,e){if(y.call(_,t))throw new TypeError(p);return e.facade=t,w.call(_,t,e),e},r=function(t){return b.call(_,t)||{}},o=function(t){return y.call(_,t)}}else{var M=d("state");f[M]=!0,n=function(t,e){if(c(t,M))throw new TypeError(p);return e.facade=t,u(t,M,e),e},r=function(t){return c(t,M)?t[M]:{}},o=function(t){return c(t,M)}}t.exports={set:n,get:r,has:o,enforce:g,getterFor:v}},"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.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.lengtht.length)&&(e=t.length);for(var i=0,n=new Array(e);ic)i=l[c++],n&&!s.call(a,i)||h.push(t?[i,a[i]]:a[i]);return h}};t.exports={entries:a(!0),values:a(!1)}},"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"),u=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 h(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 u=a.modulus.byteLength(),c=[0,1];while(t.length+c.length+10&&i.ishrn(n),i}function g(t,e){t=m(t,e),t=t.mod(e);var i=n.from(t.toArray());if(i.length=200&&t<=500};var o=r.a.create({timeout:3e4});o.interceptors.response.use((function(t){return t.data}),(function(t){return Promise.reject(new Error(t))})),e["a"]=o},"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},"72f7":function(t,e,i){"use strict";var n=i("ebb5").exportTypedArrayMethod,r=i("d039"),o=i("da84"),s=o.Uint8Array,a=s&&s.prototype||{},l=[].toString,u=[].join;r((function(){l.call({})}))&&(l=function(){return u.call(this)});var c=a.toString!=l;n("toString",l,c)},"735e":function(t,e,i){"use strict";var n=i("ebb5"),r=i("81d5"),o=n.aTypedArray,s=n.exportTypedArrayMethod;s("fill",(function(t){return r.apply(o(this),arguments)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"741c":function(t,e,i){"use strict";i.r(e);var n=i("e017"),r=i.n(n),o=i("21a1"),s=i.n(o),a=new r.a({id:"icon-homeIcon",use:"icon-homeIcon-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e["default"]=a},"746f":function(t,e,i){var n=i("428f"),r=i("5135"),o=i("e538"),s=i("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||s(e,t,{value:o.f(t)})}},"74e8":function(t,e,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("83ab"),s=i("8aa7"),a=i("ebb5"),l=i("621a"),u=i("19aa"),c=i("5c6c"),h=i("9112"),d=i("50c4"),f=i("0b25"),p=i("182d"),m=i("c04e"),g=i("5135"),v=i("f5df"),_=i("861d"),b=i("7c73"),y=i("d2bb"),w=i("241c").f,M=i("a078"),x=i("b727").forEach,S=i("2626"),k=i("9bf2"),C=i("06cf"),E=i("69f3"),A=i("7156"),O=E.get,R=E.set,T=k.f,L=C.f,$=Math.round,P=r.RangeError,I=l.ArrayBuffer,D=l.DataView,B=a.NATIVE_ARRAY_BUFFER_VIEWS,j=a.TYPED_ARRAY_TAG,N=a.TypedArray,F=a.TypedArrayPrototype,q=a.aTypedArrayConstructor,W=a.isTypedArray,z="BYTES_PER_ELEMENT",U="Wrong length",K=function(t,e){var i=0,n=e.length,r=new(q(t))(n);while(n>i)r[i]=e[i++];return r},H=function(t,e){T(t,e,{get:function(){return O(this)[e]}})},V=function(t){var e;return t instanceof I||"ArrayBuffer"==(e=v(t))||"SharedArrayBuffer"==e},G=function(t,e){return W(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Y=function(t,e){return G(t,e=m(e,!0))?c(2,t[e]):L(t,e)},Z=function(t,e,i){return!(G(t,e=m(e,!0))&&_(i)&&g(i,"value"))||g(i,"get")||g(i,"set")||i.configurable||g(i,"writable")&&!i.writable||g(i,"enumerable")&&!i.enumerable?T(t,e,i):(t[e]=i.value,t)};o?(B||(C.f=Y,k.f=Z,H(F,"buffer"),H(F,"byteOffset"),H(F,"byteLength"),H(F,"length")),n({target:"Object",stat:!0,forced:!B},{getOwnPropertyDescriptor:Y,defineProperty:Z}),t.exports=function(t,e,i){var o=t.match(/\d+$/)[0]/8,a=t+(i?"Clamped":"")+"Array",l="get"+t,c="set"+t,m=r[a],g=m,v=g&&g.prototype,k={},C=function(t,e){var i=O(t);return i.view[l](e*o+i.byteOffset,!0)},E=function(t,e,n){var r=O(t);i&&(n=(n=$(n))<0?0:n>255?255:255&n),r.view[c](e*o+r.byteOffset,n,!0)},L=function(t,e){T(t,e,{get:function(){return C(this,e)},set:function(t){return E(this,e,t)},enumerable:!0})};B?s&&(g=e((function(t,e,i,n){return u(t,g,a),A(function(){return _(e)?V(e)?void 0!==n?new m(e,p(i,o),n):void 0!==i?new m(e,p(i,o)):new m(e):W(e)?K(g,e):M.call(g,e):new m(f(e))}(),t,g)})),y&&y(g,N),x(w(m),(function(t){t in g||h(g,t,m[t])})),g.prototype=v):(g=e((function(t,e,i,n){u(t,g,a);var r,s,l,c=0,h=0;if(_(e)){if(!V(e))return W(e)?K(g,e):M.call(g,e);r=e,h=p(i,o);var m=e.byteLength;if(void 0===n){if(m%o)throw P(U);if(s=m-h,s<0)throw P(U)}else if(s=d(n)*o,s+h>m)throw P(U);l=s/o}else l=f(e),s=l*o,r=new I(s);R(t,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new D(r)});while(cc||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 h(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 u.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 m(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 h(i,e.length),void 0===n&&(n=e.length-i),d(n,i,e.length),p(e,i,n)}u&&u.getRandomValues||!n.browser?(e.randomFill=f,e.randomFillSync=m):(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>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>1,m=23===e?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,v=0;for(t=i(t),t!=t||t===1/0?(u=t!=t?1:0,l=f):(l=r(o(t)/s),t*(c=n(2,-l))<1&&(l--,c*=2),t+=l+p>=1?m/c:m*n(2,1-p),t*c>=2&&(l++,c/=2),l+p>=f?(u=0,l=f):l+p>=1?(u=(t*c-1)*n(2,e),l+=p):(u=t*n(2,p-1)*n(2,e),l=0));e>=8;h[v++]=255&u,u/=256,e-=8);for(l=l<0;h[v++]=255&l,l/=256,d-=8);return h[--v]|=128*g,h},l=function(t,e){var i,r=t.length,o=8*r-e-1,s=(1<>1,l=o-7,u=r-1,c=t[u--],h=127&c;for(c>>=7;l>0;h=256*h+t[u],u--,l-=8);for(i=h&(1<<-l)-1,h>>=-l,l+=e;l>0;i=256*i+t[u],u--,l-=8);if(0===h)h=1-a;else{if(h===s)return i?NaN:c?-1/0:1/0;i+=n(2,e),h-=a}return(c?-1:1)*i*n(2,h-e)};t.exports={pack:a,unpack:l}},"77c6":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.column.hide?t._e():i("el-row",{class:t.column.customClass,attrs:{type:t.column.flex?"flex":void 0,gutter:t.column.gutter,justify:t.column.justify,align:t.column.align}},t._l(t.column.cols,(function(e,n){return i("el-col",{key:n,class:e.customClass,attrs:{md:e.md,offset:e.offset,push:e.push,pull:e.pull}},[t._l(e.list,(function(t,e){return[i("item",{key:e,ref:t.prop,refInFor:!0,attrs:{column:t}})]}))],2)})),1)},r=[],o=i("c822"),s={name:"CoralLayout",components:{item:o["a"]},props:{column:{type:Object}}},a=s,l=i("2877"),u=Object(l["a"])(a,n,r,!1,null,null,null);e["default"]=u.exports},"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)}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"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 u=t.shrn(l),c=a.toRed(o),h=!0;e>0;e--){var d=this._randrange(new n(2),a);i&&i(d);var f=d.toRed(o).redPow(u);if(0!==f.cmp(s)&&0!==f.cmp(c)){for(var p=1;p0;e--){var c=this._randrange(new n(2),s),h=t.gcd(c);if(0!==h.cmpn(1))return h;var d=c.toRed(r).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var f=1;f",d="<",f="prototype",p="script",m=c("IE_PROTO"),g=function(){},v=function(t){return d+p+h+t+d+"/"+p+h},_=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),i="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},y=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}y=n?_(n):b();var t=s.length;while(t--)delete y[f][s[t]];return y()};a[m]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[f]=r(t),i=new g,g[f]=null,i[m]=t):i=y(),void 0===e?i:o(i,e)}},"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=m,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=g,this.end=v,e=3;break;default:return this.write=_,void(this.end=b)}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 u(t,e,i){var n=e.length-1;if(n=0?(r>0&&(t.lastNeed=r-1),r):--n=0?(r>0&&(t.lastNeed=r-2),r):--n=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,"�";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"�"}}function h(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=u(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+"�":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 m(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 g(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 _(t){return t.toString(this.encoding)}function b(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 i1?arguments[1]:void 0)}}),o(s)},"7dd0":function(t,e,i){"use strict";var n=i("23e7"),r=i("9ed3"),o=i("e163"),s=i("d2bb"),a=i("d44e"),l=i("9112"),u=i("6eeb"),c=i("b622"),h=i("c430"),d=i("3f8c"),f=i("ae93"),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",_="values",b="entries",y=function(){return this};t.exports=function(t,e,i,c,f,w,M){r(i,e,c);var x,S,k,C=function(t){if(t===f&&T)return T;if(!m&&t in O)return O[t];switch(t){case v:return function(){return new i(this,t)};case _:return function(){return new i(this,t)};case b:return function(){return new i(this,t)}}return function(){return new i(this)}},E=e+" Iterator",A=!1,O=t.prototype,R=O[g]||O["@@iterator"]||f&&O[f],T=!m&&R||C(f),L="Array"==e&&O.entries||R;if(L&&(x=o(L.call(new t)),p!==Object.prototype&&x.next&&(h||o(x)===p||(s?s(x,p):"function"!=typeof x[g]&&l(x,g,y)),a(x,E,!0,!0),h&&(d[E]=y))),f==_&&R&&R.name!==_&&(A=!0,T=function(){return R.call(this)}),h&&!M||O[g]===T||l(O,g,T),d[e]=T,f)if(S={values:C(_),keys:w?T:C(v),entries:C(b)},M)for(k in S)(m||A||!(k in O))&&u(O,k,S[k]);else n({target:e,proto:!0,forced:m||A},S);return S}},"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 u(t){return t<<1|t>>>31}function c(t){return t<<5|t>>>27}function h(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]=u(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var f=0;f<80;++f){var p=~~(f/20),m=c(i)+d(p,n,r,o)+a+e[f]+s[p]|0;a=o,o=r,r=h(n),n=i,i=m}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},"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")},"7f9a":function(t,e,i){var n=i("da84"),r=i("8925"),o=n.WeakMap;t.exports="function"===typeof o&&/native code/.test(r(o))},8:function(t,e){},"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(10).Buffer}catch(E){}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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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))},"81d5":function(t,e,i){"use strict";var n=i("7b0b"),r=i("23cb"),o=i("50c4");t.exports=function(t){var e=n(this),i=o(e.length),s=arguments.length,a=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,u=void 0===l?i:r(l,i);while(u>a)e[a++]=t;return e}},"825a":function(t,e,i){var n=i("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return 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"),u=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;r1?arguments[1]:void 0)}))},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),u=["_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 h=["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={};h.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})))},u.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)}},"83ab":function(t,e,i){var n=i("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83d5":function(t,e){t.exports=function(t,e){var i=t.length,n=-1;while(++n([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=i.replace(n,"$1").trim());for(var d=0;d15){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 */ e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<>1,c=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,l,u=8*o-r-1,c=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=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+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(s=s<0;t[i+f]=255&s,f+=p,s/=256,u-=8);t[i+f-p]|=128*m}},"919c":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},9263:function(t,e,i){"use strict";var n=i("ad6d"),r=i("9f7f"),o=i("5692"),s=i("7c73"),a=i("69f3").get,l=i("fce3"),u=i("107c"),c=RegExp.prototype.exec,h=o("native-string-replace",String.prototype.replace),d=c,f=function(){var t=/a/,e=/b*/g;return c.call(t,"a"),c.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),p=r.UNSUPPORTED_Y||r.BROKEN_CARET,m=void 0!==/()??/.exec("")[1],g=f||m||p||l||u;g&&(d=function(t){var e,i,r,o,l,u,g,v=this,_=a(v),b=_.raw;if(b)return b.lastIndex=v.lastIndex,e=d.call(b,t),v.lastIndex=b.lastIndex,e;var y=_.groups,w=p&&v.sticky,M=n.call(v),x=v.source,S=0,k=t;if(w&&(M=M.replace("y",""),-1===M.indexOf("g")&&(M+="g"),k=String(t).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==t[v.lastIndex-1])&&(x="(?: "+x+")",k=" "+k,S++),i=new RegExp("^(?:"+x+")",M)),m&&(i=new RegExp("^"+x+"$(?!\\s)",M)),f&&(r=v.lastIndex),o=c.call(w?i:v,k),w?o?(o.input=o.input.slice(S),o[0]=o[0].slice(S),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:f&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),m&&o&&o.length>1&&h.call(o[0],i,(function(){for(l=1;l=this._blockSize){for(var o=this._blockOffset;o0;++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},"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"),u=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;e0?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 tr.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}()},"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 u(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 h=l.modulus.byteLength(),d=[1],f=0;while(e.length+d.length+2=e)throw new Error("invalid sig")}t.exports=l},9845:function(t,e,i){var n={"./homeIcon.svg":"741c"};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id="9845"},9861:function(t,e,i){"use strict";i("e260");var n=i("23e7"),r=i("d066"),o=i("0d3b"),s=i("6eeb"),a=i("e2cc"),l=i("d44e"),u=i("9ed3"),c=i("69f3"),h=i("19aa"),d=i("5135"),f=i("0366"),p=i("f5df"),m=i("825a"),g=i("861d"),v=i("7c73"),_=i("5c6c"),b=i("9a1f"),y=i("35a1"),w=i("b622"),M=r("fetch"),x=r("Headers"),S=w("iterator"),k="URLSearchParams",C=k+"Iterator",E=c.set,A=c.getterFor(k),O=c.getterFor(C),R=/\+/g,T=Array(4),L=function(t){return T[t-1]||(T[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},$=function(t){try{return decodeURIComponent(t)}catch(e){return t}},P=function(t){var e=t.replace(R," "),i=4;try{return decodeURIComponent(e)}catch(n){while(i)e=e.replace(L(i--),$);return e}},I=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},B=function(t){return D[t]},j=function(t){return encodeURIComponent(t).replace(I,B)},N=function(t,e){if(e){var i,n,r=e.split("&"),o=0;while(o0?arguments[0]:void 0,c=this,f=[];if(E(c,{type:k,entries:f,updateURL:function(){},updateSearchParams:F}),void 0!==u)if(g(u))if(t=y(u),"function"===typeof t){e=t.call(u),i=e.next;while(!(n=i.call(e)).done){if(r=b(m(n.value)),o=r.next,(s=o.call(r)).done||(a=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");f.push({key:s.value+"",value:a.value+""})}}else for(l in u)d(u,l)&&f.push({key:l,value:u[l]+""});else N(f,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},U=z.prototype;a(U,{append:function(t,e){q(arguments.length,2);var i=A(this);i.entries.push({key:t+"",value:e+""}),i.updateURL()},delete:function(t){q(arguments.length,1);var e=A(this),i=e.entries,n=t+"",r=0;while(rt.key){r.splice(e,0,t);break}e===i&&r.push(t)}n.updateURL()},forEach:function(t){var e,i=A(this).entries,n=f(t,arguments.length>1?arguments[1]:void 0,3),r=0;while(r1&&(e=arguments[1],g(e)&&(i=e.body,p(i)===k&&(n=e.headers?new x(e.headers):new x,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:_(0,String(i)),headers:_(0,n)}))),r.push(e)),M.apply(this,r)}}),t.exports={URLSearchParams:z,getState:A}},"98b6":function(t,e,i){"use strict";i.r(e),i.d(e,"getToken",(function(){return n}));i("d3b7"),i("25f0"),i("ac1f"),i("5319");function n(t,e,i){var n=JSON.stringify(i),o=s(r(n)),l=window.CryptoJS.HmacSHA1(o,e),u=l.toString(window.CryptoJS.enc.Base64),c=t+":"+a(u)+":"+o;return c}function r(t){var e,i,n;e="";var r=t.length;for(i=0;i=1&&n<=127?e+=t.charAt(i):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e}e["default"]=n;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function s(t){var e,i,n,r,s,a=t.length;i=0,e="";while(i>2),e+=o.charAt((3&n)<<4),e+="==";break}if(r=t.charCodeAt(i++),i==a){e+=o.charAt(n>>2),e+=o.charAt((3&n)<<4|(240&r)>>4),e+=o.charAt((15&r)<<2),e+="=";break}s=t.charCodeAt(i++),e+=o.charAt(n>>2),e+=o.charAt((3&n)<<4|(240&r)>>4),e+=o.charAt((15&r)<<2|(192&s)>>6),e+=o.charAt(63&s)}return e}var a=function(t){return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t}},"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))}},"99af":function(t,e,i){"use strict";var n=i("23e7"),r=i("d039"),o=i("e8b5"),s=i("861d"),a=i("7b0b"),l=i("50c4"),u=i("8418"),c=i("65f0"),h=i("1dde"),d=i("b622"),f=i("2d00"),p=d("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),_=h("concat"),b=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},y=!v||!_;n({target:"Array",proto:!0,forced:y},{concat:function(t){var e,i,n,r,o,s=a(this),h=c(s,0),d=0;for(e=-1,n=arguments.length;em)throw TypeError(g);for(i=0;i=m)throw TypeError(g);u(h,d++,o)}return h.length=d,h}})},"9a1f":function(t,e,i){var n=i("825a"),r=i("35a1");t.exports=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},"9a8c":function(t,e,i){"use strict";var n=i("ebb5"),r=i("145e"),o=n.aTypedArray,s=n.exportTypedArrayMethod;s("copyWithin",(function(t,e){return r.call(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"9b74":function(t,e,i){i("d81d"),i("e260"),i("d3b7"),i("ddb0");var n=i("9845"),r=function(t){return t.keys().map(t)};r(n)},"9bdd":function(t,e,i){var n=i("825a"),r=i("2a62");t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(s){throw r(t),s}}},"9bf2":function(t,e,i){var n=i("83ab"),r=i("0cfb"),o=i("825a"),s=i("c04e"),a=Object.defineProperty;e.f=n?a:function(t,e,i){if(o(t),e=s(e,!0),o(i),r)try{return a(t,e,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},"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 u(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=u(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},"9ed3":function(t,e,i){"use strict";var n=i("ae93").IteratorPrototype,r=i("7c73"),o=i("5c6c"),s=i("d44e"),a=i("3f8c"),l=function(){return this};t.exports=function(t,e,i){var u=e+" Iterator";return t.prototype=r(n,{next:o(1,i)}),s(t,u,!1,!0),a[u]=l,t}},"9f7f":function(t,e,i){var n=i("d039"),r=function(t,e){return RegExp(t,e)};e.UNSUPPORTED_Y=n((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"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"))},a078:function(t,e,i){var n=i("7b0b"),r=i("50c4"),o=i("35a1"),s=i("e95a"),a=i("0366"),l=i("ebb5").aTypedArrayConstructor;t.exports=function(t){var e,i,u,c,h,d,f=n(t),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=o(f);if(void 0!=v&&!s(v)){h=v.call(f),d=h.next,f=[];while(!(c=d.call(h)).done)f.push(c.value)}for(g&&p>2&&(m=a(m,arguments[2],2)),i=r(f.length),u=new(l(this))(i),e=0;i>e;e++)u[e]=g?m(f[e],e):f[e];return u}},a099:function(t,e,i){e.pbkdf2=i("206d"),e.pbkdf2Sync=i("e07b")},a15b:function(t,e,i){"use strict";var n=i("23e7"),r=i("44ad"),o=i("fc6a"),s=i("a640"),a=[].join,l=r!=Object,u=s("join",",");n({target:"Array",proto:!0,forced:l||!u},{join:function(t){return a.call(o(this),void 0===t?",":t)}})},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 u(t,e,i){return i^t&(e^i)}function c(t,e,i){return t&e|i&(t|e)}function h(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,m=0|this._g,g=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 _=0;_<64;++_){var b=g+d(a)+u(a,l,m)+s[_]+e[_]|0,y=h(i)+c(i,n,r)|0;g=m,m=l,l=a,a=o+b|0,o=r,r=n,n=i,i=b+y|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=m+this._g|0,this._h=g+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},a434:function(t,e,i){"use strict";var n=i("23e7"),r=i("23cb"),o=i("a691"),s=i("50c4"),a=i("7b0b"),l=i("65f0"),u=i("8418"),c=i("1dde"),h=c("splice"),d=Math.max,f=Math.min,p=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!h},{splice:function(t,e){var i,n,c,h,g,v,_=a(this),b=s(_.length),y=r(t,b),w=arguments.length;if(0===w?i=n=0:1===w?(i=0,n=b-y):(i=w-2,n=f(d(o(e),0),b-y)),b+i-n>p)throw TypeError(m);for(c=l(_,n),h=0;hb-n+i;h--)delete _[h-1]}else if(i>n)for(h=b-n;h>y;h--)g=h+n-1,v=h+i-1,g in _?_[v]=_[g]:delete _[v];for(h=0;ho)r.push(arguments[o++]);if(n=e,(f(e)||void 0!==t)&&!at(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),r[1]=e,V.apply(null,r)}})}H[q][W]||E(H[q],W,H[q].valueOf),D(H,F),T[N]=!0},a630:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n,r,o,s=i("53ca"),a=(i("b64b"),i("159b"),i("ac1f"),i("1276"),i("466d"),i("498a"),i("a15b"),i("a434"),i("bf19"),i("d3b7"),i("5319"),i("fb6a"),i("25f0"),/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g),l=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"'":"\\'","\\":"\\\\"};function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.space||2,n=e.dropQuotesOnKeys||!1,r=e.dropQuotesOnNumbers||!1,o=e.inlineShortArrays||!1,s=e.inlineShortArraysDepth||1,a=e.quoteType||"double",l=e.minify||!1;r&&h(t);var u=p(t,null,l?void 0:i,n,a);if(o&&!l){var c=f(u);if(s>1)for(var d=1;d0?n:i)(t)}},a6c1:function(t,e,i){var n,r;(function(){var o;(function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function n(t,n){this.__indent_cache=new i(t,n),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e,i},i.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e],i},i.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},n.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,i){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==i){this.__lines.splice(n+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=n},function(t){function e(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=e},,,function(t){function e(t,e){this.raw_options=i(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function i(t,e){var i,r={};for(i in t=n(t),t)i!==e&&(r[i]=t[i]);if(e&&t[e])for(i in t[e])r[i]=t[e][i];return r}function n(t){var e,i={};for(e in t){var n=e.replace(/-/g,"_");i[n]=t[e]}return i}e.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"===typeof i?null!==i&&"function"===typeof i.concat&&(n=i.concat()):"string"===typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},e.prototype._get_boolean=function(t,e){var i=this.raw_options[t],n=void 0===i?!!e:!!i;return n},e.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"===typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},e.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},e.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=n,t.exports.mergeOpts=i},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,i){var n=i(8).InputScanner,r=i(3).Token,o=i(10).TokenStream,s=i(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new n(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new r(a.START,""),i=null,n=[],s=new o;while(e.type!==a.EOF){t=this._get_next_token(e,i);while(this._is_comment(t))s.add(t),t=this._get_next_token(e,i);s.isEmpty()||(t.comments_before=s,s=new o),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(a.RAW,i):this._create_token(a.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){var i=new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=a},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new n,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var i in r)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=t||this.__patterns.smarty_comment.read(),t=t||this.__patterns.smarty_literal.read(),t=t||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=o},,,,function(t,e,i){var n=i(19).Beautifier,r=i(20).Options;function o(t,e,i,r){var o=new n(t,e,i,r);return o.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new r}},function(t,e,i){var n=i(20).Options,r=i(2).Output,o=i(21).Tokenizer,s=i(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new r(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==s.TEXT&&t.previous.type!==s.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var c=function(t){var e=null,i=t.next;while(i.type!==s.EOF&&t.closed!==i){if(i.type===s.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===s.EQUALS&&i.next.next&&i.next.next.type===s.VALUE&&(e=i.next.next.text);break}i=i.next}return e},h=function(t,e){var i=null,n=null;return e.closed?("script"===t?i="text/javascript":"style"===t&&(i="text/css"),i=c(e)||i,i.search("text/css")>-1?n="css":i.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?n="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?n="html":i.search(/test\/null/)>-1&&(n="null"),n):null};function d(t,e){return-1!==e.indexOf(t)}function f(t,e,i){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=i||0,this.parser_token=e||null}function p(t){this._printer=t,this._current_frame=null}function m(t,e,i,r){this._source_text=t||"",e=e||{},this._js_beautify=i,this._css_beautify=r,this._tag_stack=null;var o=new n(e,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}p.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},p.prototype.record_tag=function(t){var e=new f(this._current_frame,t,this._printer.indent_level);this._current_frame=e},p.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},p.prototype._get_frame=function(t,e){var i=this._current_frame;while(i){if(-1!==t.indexOf(i.tag))break;if(e&&-1!==e.indexOf(i.tag)){i=null;break}i=i.parent}return i},p.prototype.try_pop=function(t,e){var i=this._get_frame([t],e);return this._try_pop_frame(i)},p.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&a.test(t)&&(e=t.match(a)[0])),t=t.replace(l,"\n");var i=t.match(/^[\t ]*/)[0],n={text:"",type:""},r=new g,c=new u(this._options,i),h=new o(t,this._options).tokenize();this._tag_stack=new p(c);var d=null,f=h.next();while(f.type!==s.EOF)f.type===s.TAG_OPEN||f.type===s.COMMENT?(d=this._handle_tag_open(c,f,r,n),r=d):f.type===s.ATTRIBUTE||f.type===s.EQUALS||f.type===s.VALUE||f.type===s.TEXT&&!r.tag_complete?d=this._handle_inside_tag(c,f,r,h):f.type===s.TAG_CLOSE?d=this._handle_tag_close(c,f,r):f.type===s.TEXT?d=this._handle_text(c,f,r):c.add_raw_token(f),n=d,f=h.next();var m=c._output.get_code(e);return m},m.prototype._handle_tag_close=function(t,e,i){var n={text:e.text,type:e.type};return t.alignment_size=0,i.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted?t.add_raw_token(e):("<"===i.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(t.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||t.set_wrap_point(),n},m.prototype._handle_inside_tag=function(t,e,i,n){var r=i.has_wrapped_attrs,o={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted)t.add_raw_token(e);else if("{"===i.tag_start_char&&e.type===s.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===s.ATTRIBUTE?(t.set_space_before_token(!0),i.attr_count+=1):(e.type===s.EQUALS||e.type===s.VALUE&&e.previous.type===s.EQUALS)&&t.set_space_before_token(!1),e.type===s.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force)){var a=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var l,u=!0,c=0;do{if(l=n.peek(c),l.type===s.ATTRIBUTE){u=!1;break}c+=1}while(c<4&&l.type!==s.EOF&&l.type!==s.TAG_CLOSE);a=!u}a&&(t.print_newline(!1),r=!0)}t.print_token(e),r=r||t.previous_token_wrapped(),i.has_wrapped_attrs=r}return o},m.prototype._handle_text=function(t,e,i){var n={text:e.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(t,e,i):i.is_unformatted||i.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),n},m.prototype._print_custom_beatifier_text=function(t,e,i){var n=this;if(""!==e.text){var r,o=e.text,s=1,a="",l="";"javascript"===i.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===i.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===i.custom_beautifier_name&&(r=function(t,e){var i=new m(t,e,n._js_beautify,n._css_beautify);return i.beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-t.indent_level);var u=t.get_full_indent(s);if(o=o.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===o[0]&&o.match(/^(|]]>)$/.exec(o);if(!c)return void t.add_raw_token(e);a=u+c[1]+"\n",o=c[4],c[5]&&(l=u+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/),c&&(e.whitespace_before=c[0]))}if(o)if(r){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var d=new h;o=r(u+o,d)}else{var f=e.whitespace_before;f&&(o=o.replace(new RegExp("\n("+f+")?","g"),"\n")),o=u+o.replace(/\n/g,"\n"+u)}a&&(o=o?a+o+"\n"+l:a+l),t.print_newline(!1),o&&(e.text=o,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},m.prototype._handle_tag_open=function(t,e,i,n){var r=this._get_tag_open_token(e);return!i.is_unformatted&&!i.is_content_unformatted||i.is_empty_element||e.type!==s.TAG_OPEN||0!==e.text.indexOf("]*)/),this.tag_check=i?i[1]:""):(i=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};m.prototype._get_tag_open_token=function(t){var e=new g(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||d(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&d(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&d(e.tag_check,this._options.content_unformatted),e.is_inline_element=d(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},m.prototype._set_tag_position=function(t,e,i,n,r){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=h(i.tag_check,e)))),d(i.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0;var o=t.current_line_has_match(/{{#if/);o||t.print_newline(!1)}"!--"===i.tag_name&&r.type===s.TAG_CLOSE&&n.is_end_tag&&-1===i.text.indexOf("\n")||(i.is_inline_element||i.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i))}else if(i.is_end_tag){var a=!1;a=i.start_tag_token&&i.start_tag_token.multiline_content,a=a||!i.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(r.type===s.TAG_CLOSE&&i.start_tag_token===n)&&"TK_CONTENT"!==r.type,(i.is_content_unformatted||i.is_unformatted)&&(a=!1),a&&t.print_newline(!1)}else i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||i.is_unformatted||"TK_CONTENT"===r.type&&!i.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i)},m.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];m.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==v.indexOf(t.tag_name)){var i=t.parent.parent;i&&-1!==_.indexOf(i.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=m},function(t,e,i){var n=i(6).Options;function r(t){n.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new n,t.exports.Options=r},function(t,e,i){var n=i(9).Tokenizer,r=i(9).TOKEN,o=i(13).Directives,s=i(14).TemplatablePattern,a=i(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},u=new o(/<\!--/,/-->/),c=function(t,e){n.call(this,t,e),this._current_tag_name="";var i=new s(this._input).read_options(this._options),r=new a(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =>]|\/>/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};c.prototype=new n,c.prototype._is_comment=function(t){return!1},c.prototype._is_opening=function(t){return t.type===l.TAG_OPEN},c.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(l.EOF,""):(i=i||this._read_open_handlebars(n,e),i=i||this._read_attribute(n,t,e),i=i||this._read_close(n,e),i=i||this._read_raw_content(n,t,e),i=i||this._read_content_word(n),i=i||this._read_comment_or_cdata(n),i=i||this._read_processing(n),i=i||this._read_open(n,e),i=i||this._create_token(l.UNKNOWN,this._input.next()),i)},c.prototype._read_comment_or_cdata=function(t){var e=null,i=null,n=null;if("<"===t){var r=this._input.peek(1);"!"===r&&(i=this.__patterns.comment.read(),i?(n=u.get_directives(i),n&&"start"===n.ignore&&(i+=u.readIgnored(this._input))):i=this.__patterns.cdata.read()),i&&(e=this._create_token(l.COMMENT,i),e.directives=n)}return e},c.prototype._read_processing=function(t){var e=null,i=null,n=null;if("<"===t){var r=this._input.peek(1);"!"!==r&&"?"!==r||(i=this.__patterns.conditional_comment.read(),i=i||this.__patterns.processing.read()),i&&(e=this._create_token(l.COMMENT,i),e.directives=n)}return e},c.prototype._read_open=function(t,e){var i=null,n=null;return e||"<"===t&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),n=this._create_token(l.TAG_OPEN,i)),n},c.prototype._read_open_handlebars=function(t,e){var i=null,n=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars.read(),n=this._create_token(l.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),n=this._create_token(l.TAG_OPEN,i))),n},c.prototype._read_close=function(t,e){var i=null,n=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(i=this._input.next(),"/"===t&&(i+=this._input.next()),n=this._create_token(l.TAG_CLOSE,i)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(l.TAG_CLOSE,"}}"))),n},c.prototype._read_attribute=function(t,e,i){var n=null,r="";if(i&&"<"===i.text[0])if("="===t)n=this._create_token(l.EQUALS,this._input.next());else if('"'===t||"'"===t){var o=this._input.next();o+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),n=this._create_token(l.VALUE,o)}else r=this.__patterns.attribute.read(),r&&(n=e.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return n},c.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},c.prototype._read_raw_content=function(t,e,i){var n="";if(i&&"{"===i.text[0])n=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var r=e.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var o=this._read_comment_or_cdata(t);if(o)return o.type=l.TEXT,o;n=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(r)&&(n=this._input.readUntil(new RegExp("","ig")))}return n?this._create_token(l.TEXT,n):null},c.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(l.TEXT,e)},t.exports.Tokenizer=c,t.exports.TOKEN=l}],e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}var n=i(18);o=n})();var s=o;n=[i,i("e943"),i("4d7c")],r=function(t){var e=i("e943"),n=i("4d7c");return{html_beautify:function(t,i){return s(t,i,e.js_beautify,n.css_beautify)}}}.apply(e,n),void 0===r||(t.exports=r)})()},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)),u=a.toRed(n.mont(i.prime2)),c=i.coefficient,h=i.prime1,d=i.prime2,f=l.redPow(i.exponent1).fromRed(),p=u.redPow(i.exponent2).fromRed(),m=f.isub(p).imul(c).umod(h).imul(d);return p.iadd(m).imul(r.unblinder).umod(i.modulus).toArrayLike(e,"be",s)}a.getr=s,t.exports=a}).call(this,i("b639").Buffer)},a975:function(t,e,i){"use strict";var n=i("ebb5"),r=i("b727").every,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},a981:function(t,e){t.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(t,e,i){"use strict";var n=i("83ab"),r=i("da84"),o=i("94ca"),s=i("6eeb"),a=i("5135"),l=i("c6b6"),u=i("7156"),c=i("c04e"),h=i("d039"),d=i("7c73"),f=i("241c").f,p=i("06cf").f,m=i("9bf2").f,g=i("58a8").trim,v="Number",_=r[v],b=_.prototype,y=l(d(b))==v,w=function(t){var e,i,n,r,o,s,a,l,u=c(t,!1);if("string"==typeof u&&u.length>2)if(u=g(u),e=u.charCodeAt(0),43===e||45===e){if(i=u.charCodeAt(2),88===i||120===i)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(o=u.slice(2),s=o.length,a=0;ar)return NaN;return parseInt(o,n)}return+u};if(o(v,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var M,x=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof x&&(y?h((function(){b.valueOf.call(i)})):l(i)!=v)?u(new _(w(e)),i,x):w(e)},S=n?f(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),k=0;S.length>k;k++)a(_,M=S[k])&&!a(x,M)&&m(x,M,p(_,M));x.prototype=b,b.constructor=x,s(r,v,x)}},aa47:function(t,e,i){"use strict"; /**! * Sortable 1.10.2 * @author RubaXa * @author owenm * @license MIT */ function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(){return o=Object.assign||function(t){for(var e=1;e=0||(r[i]=t[i]);return r}function l(t,e){if(null==t)return{};var i,n,r=a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function u(t){return c(t)||h(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(i){return!1}return!1}}function k(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function C(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&S(t,e):S(t,e))||n&&t===i)return t;if(t===i)break}while(t=k(t))}return null}var E,A=/\s+/g;function O(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(A," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(A," ")}}function R(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"===typeof i?"":"px")}}function T(t,e){var i="";if("string"===typeof t)i=t;else do{var n=R(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function L(t,e,i){if(t){var n=t.getElementsByTagName(e),r=0,o=n.length;if(i)for(;r=o:r<=o,!s)return n;if(n===$())break;n=q(n,!1)}return!1}function D(t,e,i){var n=0,r=0,o=t.children;while(r2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,r=l(i,["evt"]);it.pluginEvent.bind(Qt)(t,e,s({dragEl:st,parentEl:at,ghostEl:lt,rootEl:ut,nextEl:ct,lastDownEl:ht,cloneEl:dt,cloneHidden:ft,dragStarted:Ct,putSortable:bt,activeSortable:Qt.active,originalEvent:n,oldIndex:pt,oldDraggableIndex:gt,newIndex:mt,newDraggableIndex:vt,hideGhostForTarget:Gt,unhideGhostForTarget:Yt,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(t){ot({sortable:e,name:t,originalEvent:n})}},r))};function ot(t){nt(s({putSortable:bt,cloneEl:dt,targetEl:st,rootEl:ut,oldIndex:pt,oldDraggableIndex:gt,newIndex:mt,newDraggableIndex:vt},t))}var st,at,lt,ut,ct,ht,dt,ft,pt,mt,gt,vt,_t,bt,yt,wt,Mt,xt,St,kt,Ct,Et,At,Ot,Rt,Tt=!1,Lt=!1,$t=[],Pt=!1,It=!1,Dt=[],Bt=!1,jt=[],Nt="undefined"!==typeof document,Ft=b,qt=g||m?"cssFloat":"float",Wt=Nt&&!y&&!b&&"draggable"in document.createElement("div"),zt=function(){if(Nt){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ut=function(t,e){var i=R(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=D(t,0,e),o=D(t,1,e),s=r&&R(r),a=o&&R(o),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(r).width,u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(o).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s["float"]&&"none"!==s["float"]){var c="left"===s["float"]?"left":"right";return!o||"both"!==a.clear&&a.clear!==c?"horizontal":"vertical"}return r&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=n&&"none"===i[qt]||o&&"none"===i[qt]&&l+u>n)?"vertical":"horizontal"},Kt=function(t,e,i){var n=i?t.left:t.top,r=i?t.right:t.bottom,o=i?t.width:t.height,s=i?e.left:e.top,a=i?e.right:e.bottom,l=i?e.width:e.height;return n===s||r===a||n+o/2===s+l/2},Ht=function(t,e){var i;return $t.some((function(n){if(!B(n)){var r=P(n),o=n[Z].options.emptyInsertThreshold,s=t>=r.left-o&&t<=r.right+o,a=e>=r.top-o&&e<=r.bottom+o;return o&&s&&a?i=n:void 0}})),i},Vt=function(t){function e(t,i){return function(n,r,o,s){var a=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"===typeof t)return e(t(n,r,o,s),i)(n,r,o,s);var l=(i?n:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var i={},r=t.group;r&&"object"==n(r)||(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Gt=function(){!zt&<&&R(lt,"display","none")},Yt=function(){!zt&<&&R(lt,"display","")};Nt&&document.addEventListener("click",(function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1}),!0);var Zt=function(t){if(st){t=t.touches?t.touches[0]:t;var e=Ht(t.clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Z]._onDragOver(i)}}},Xt=function(t){st&&st.parentNode[Z]._isOutsideThisEl(t.target)};function Qt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[Z]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ut(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Qt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in it.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var r in Vt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Wt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?M(t,"pointerdown",this._onTapStart):(M(t,"mousedown",this._onTapStart),M(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(M(t,"dragover",this),M(t,"dragenter",this)),$t.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,X())}function Jt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,i,n,r,o,s,a){var l,u,c=t[Z],h=c.options.onMove;return!window.CustomEvent||m||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=r||e,l.relatedRect=o||P(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),h&&(u=h.call(c,l,s)),u}function ee(t){t.draggable=!1}function ie(){Bt=!1}function ne(t,e,i){var n=P(B(i.el,i.options.draggable)),r=10;return e?t.clientX>n.right+r||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+r}function re(t,e,i,n,r,o,s,a){var l=n?t.clientY:t.clientX,u=n?i.height:i.width,c=n?i.top:i.left,h=n?i.bottom:i.right,d=!1;if(!s)if(a&&Otc+u*o/2:lh-Ot)return-At}else if(l>c+u*(1-r)/2&&lh-u*o/2)?l>c+u/2?1:-1:0}function oe(t){return j(st)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){st&&ee(st),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;x(t,"mouseup",this._disableDelayedDrag),x(t,"touchend",this._disableDelayedDrag),x(t,"touchcancel",this._disableDelayedDrag),x(t,"mousemove",this._delayedDragTouchMoveHandler),x(t,"touchmove",this._delayedDragTouchMoveHandler),x(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?M(document,"pointermove",this._onTouchMove):M(document,e?"touchmove":"mousemove",this._onTouchMove):(M(st,"dragend",this),M(ut,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,e){if(Tt=!1,ut&&st){rt("dragStarted",this,{evt:e}),this.nativeDraggable&&M(document,"dragover",Xt);var i=this.options;!t&&O(st,i.dragClass,!1),O(st,i.ghostClass,!0),Qt.active=this,t&&this._appendGhost(),ot({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,Gt();var t=document.elementFromPoint(wt.clientX,wt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),t===e)break;e=t}if(st.parentNode[Z]._isOutsideThisEl(t),e)do{if(e[Z]){var i=void 0;if(i=e[Z]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Yt()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=lt&&T(lt,!0),s=lt&&o&&o.a,a=lt&&o&&o.d,l=Ft&&Rt&&N(Rt),u=(r.clientX-yt.clientX+n.x)/(s||1)+(l?l[0]-Dt[0]:0)/(s||1),c=(r.clientY-yt.clientY+n.y)/(a||1)+(l?l[1]-Dt[1]:0)/(a||1);if(!Qt.active&&!Tt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(ot({rootEl:at,name:"add",toEl:at,fromEl:ut,originalEvent:t}),ot({sortable:this,name:"remove",toEl:at,originalEvent:t}),ot({rootEl:at,name:"sort",toEl:at,fromEl:ut,originalEvent:t}),ot({sortable:this,name:"sort",toEl:at,originalEvent:t})),bt&&bt.save()):mt!==pt&&mt>=0&&(ot({sortable:this,name:"update",toEl:at,originalEvent:t}),ot({sortable:this,name:"sort",toEl:at,originalEvent:t})),Qt.active&&(null!=mt&&-1!==mt||(mt=pt,vt=gt),ot({sortable:this,name:"end",toEl:at,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){rt("nulling",this),ut=st=at=lt=ct=dt=ht=ft=yt=wt=Ct=mt=vt=pt=gt=Et=At=bt=_t=Qt.dragged=Qt.ghost=Qt.clone=Qt.active=null,jt.forEach((function(t){t.checked=!0})),jt.length=Mt=xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":st&&(this._onDragOver(t),Jt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,r=i.length,o=this.options;n1&&($e.forEach((function(t){n.addAnimationState({target:t,rect:De?P(t):r}),Y(t),t.fromRect=r,e.removeAnimationState(t)})),De=!1,Ne(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.insertion,r=t.activeSortable,o=t.parentEl,s=t.putSortable,a=this.options;if(n){if(i&&r._hideClone(),Ie=!1,a.animation&&$e.length>1&&(De||!i&&!r.options.sort&&!s)){var l=P(Re,!1,!0,!0);$e.forEach((function(t){t!==Re&&(G(t,l),o.appendChild(t))})),De=!0}if(!i)if(De||qe(),$e.length>1){var u=Le;r._showClone(e),r.options.animation&&!Le&&u&&Pe.forEach((function(t){r.addAnimationState({target:t,rect:Te}),t.fromRect=Te,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if($e.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){Te=o({},e);var r=T(Re,!0);Te.top-=r.f,Te.left-=r.e}},dragOverAnimationComplete:function(){De&&(De=!1,qe())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,s=t.oldIndex,a=t.putSortable,l=a||this.sortable;if(e){var u=this.options,c=n.children;if(!Be)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),O(Re,u.selectedClass,!~$e.indexOf(Re)),~$e.indexOf(Re))$e.splice($e.indexOf(Re),1),Ae=null,nt({sortable:r,rootEl:i,name:"deselect",targetEl:Re,originalEvt:e});else{if($e.push(Re),nt({sortable:r,rootEl:i,name:"select",targetEl:Re,originalEvt:e}),e.shiftKey&&Ae&&r.el.contains(Ae)){var h,d,f=j(Ae),p=j(Re);if(~f&&~p&&f!==p)for(p>f?(d=f,h=p):(d=p,h=f+1);d1){var m=P(Re),g=j(Re,":not(."+this.options.selectedClass+")");if(!Ie&&u.animation&&(Re.thisAnimationDuration=null),l.captureAnimationState(),!Ie&&(u.animation&&(Re.fromRect=m,$e.forEach((function(t){if(t.thisAnimationDuration=null,t!==Re){var e=De?P(t):m;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),qe(),$e.forEach((function(t){c[g]?n.insertBefore(t,c[g]):n.appendChild(t),g++})),s===j(Re))){var v=!1;$e.forEach((function(t){t.sortableIndex===j(t)||(v=!0)})),v&&o("update")}$e.forEach((function(t){Y(t)})),l.animateAll()}Oe=l}(i===n||a&&"clone"!==a.lastPutMode)&&Pe.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Be=!1,Pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),x(document,"pointerup",this._deselectMultiDrag),x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Be||!Be)&&Oe===this.sortable&&(!t||!C(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while($e.length){var e=$e[0];O(e,this.options.selectedClass,!1),$e.shift(),nt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Z];e&&e.options.multiDrag&&!~$e.indexOf(t)&&(Oe&&Oe!==e&&(Oe.multiDrag._deselectMultiDrag(),Oe=e),O(t,e.options.selectedClass,!0),$e.push(t))},deselect:function(t){var e=t.parentNode[Z],i=$e.indexOf(t);e&&e.options.multiDrag&&~i&&(O(t,e.options.selectedClass,!1),$e.splice(i,1))}},eventProperties:function(){var t=this,e=[],i=[];return $e.forEach((function(n){var r;e.push({multiDragElement:n,index:n.sortableIndex}),r=De&&n!==Re?-1:De?j(n,":not(."+t.options.selectedClass+")"):j(n),i.push({multiDragElement:n,index:r})})),{items:u($e),clones:[].concat(Pe),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Ne(t,e){$e.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function Fe(t,e){Pe.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function qe(){$e.forEach((function(t){t!==Re&&t.parentNode&&t.parentNode.removeChild(t)}))}Qt.mount(new _e),Qt.mount(ke,Se),e["default"]=Qt},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 u(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 h(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=u,e.s1_256=c,e.g0_256=h,e.g1_256=d},ab13:function(t,e,i){var n=i("b622"),r=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[r]=!1,"/./"[t](e)}catch(n){}}return!1}},ac1f:function(t,e,i){"use strict";var n=i("23e7"),r=i("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},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 u(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,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function h(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;i0;return c(t,s,a,(function(t){n||(n=t),t&&o.forEach(h),s||(o.forEach(h),r(n))}))}));return e.reduce(d)}t.exports=p},ace4:function(t,e,i){"use strict";var n=i("23e7"),r=i("d039"),o=i("621a"),s=i("825a"),a=i("23cb"),l=i("50c4"),u=i("4840"),c=o.ArrayBuffer,h=o.DataView,d=c.prototype.slice,f=r((function(){return!new c(2).slice(1,void 0).byteLength}));n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(s(this),t);var i=s(this).byteLength,n=a(t,i),r=a(void 0===e?i:e,i),o=new(u(this,c))(l(r-n)),f=new h(this),p=new h(o),m=0;while(ni-d-2)throw new Error("message too long");var f=h.alloc(i-n-d-2),p=i-c-1,m=r(c),g=a(h.concat([u,f,h.alloc(1,1),e],p),s(m,p)),v=a(m,s(g,c));return new l(h.concat([h.alloc(1),v,g],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?h.alloc(o-r-3,255):p(o-r-3),new l(h.concat([h.from([0,i?1:2]),n,h.alloc(1),e],o))}function p(t){var e,i=h.allocUnsafe(t),n=0,o=r(2*t),s=0;while(n=0)throw new Error("data too long for modulus")}return i?c(o,s):u(o,s)}},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ad71:function(t,e,i){"use strict";(function(e,n){var r=i("966d");t.exports=M;var o,s=i("e3db");M.ReadableState=w;i("faa1").EventEmitter;var a=function(t,e){return t.listeners(e).length},l=i("429b"),u=i("8707").Buffer,c=e.Uint8Array||function(){};function h(t){return u.from(t)}function d(t){return u.isBuffer(t)||t instanceof c}var f=Object.create(i("3a7c"));f.inherits=i("3fb5");var p=i(2),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=i("5e1a"),_=i("4681");f.inherits(M,l);var b=["error","close","destroy","pause","resume"];function y(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 w(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&&(g||(g=i("7d72").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function M(t){if(o=o||i("b19a"),!(this instanceof M))return new M(t);this._readableState=new w(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 x(t,e,i,n,r){var o,s=t._readableState;null===e?(s.reading=!1,R(t,s)):(r||(o=k(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=h(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):S(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?S(t,s,e,!1):$(t,s)):S(t,s,e,!1))):n||(s.reading=!1));return C(s)}function S(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&&T(t)),$(t,e)}function k(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 C(t){return!t.ended&&(t.needReadable||t.length=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function O(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=A(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(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,T(t)}}function T(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(L,t):L(t))}function L(t){m("emit readable"),t.emit("readable"),N(t)}function $(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(P,t,e))}function P(t,e){var i=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length=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=q(t,e.buffer,e.decoder),i);var i}function q(t,e,i){var n;return to.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=u.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 U(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(K,e,t))}function K(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function H(t,e){for(var i=0,n=t.length;i=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):T(this),null;if(t=O(t,e),0===t&&e.ended)return 0===e.length&&U(this),null;var n,r=e.needReadable;return m("need readable",r),(0===e.length||e.length-t0?F(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&&U(this)),null!==n&&this.emit("data",n),n},M.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},M.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,m("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,l=s?c:w;function u(t,e){m("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function c(){m("onend"),t.end()}o.endEmitted?r.nextTick(l):i.once("end",l),t.on("unpipe",u);var h=I(i);t.on("drain",h);var d=!1;function f(){m("cleanup"),t.removeListener("close",_),t.removeListener("finish",b),t.removeListener("drain",h),t.removeListener("error",v),t.removeListener("unpipe",u),i.removeListener("end",c),i.removeListener("end",w),i.removeListener("data",g),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h()}var p=!1;function g(e){m("ondata"),p=!1;var n=t.write(e);!1!==n||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==H(o.pipes,t))&&!d&&(m("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,p=!0),i.pause())}function v(e){m("onerror",e),w(),t.removeListener("error",v),0===a(t,"error")&&t.emit("error",e)}function _(){t.removeListener("finish",b),w()}function b(){m("onfinish"),t.removeListener("close",_),w()}function w(){m("unpipe"),i.unpipe(t)}return i.on("data",g),y(t,"error",v),t.once("close",_),t.once("finish",b),t.emit("pipe",i),o.flowing||(m("pipe resume"),i.resume()),t},M.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;o0)t[n]=t[--n];n!==o++&&(t[n]=i)}return t},o=function(t,e,i){var n=t.length,r=e.length,o=0,s=0,a=[];while(o0||o>0){var c=new r;c.update(u),c.update(t),e&&c.update(e),u=c.digest();var h=0;if(s>0){var d=a.length-s;h=Math.min(s,u.length),u.copy(a,d,0,h),s-=h}if(h0){var f=l.length-o,p=Math.min(o,u.length-h);u.copy(l,f,h,h+p),o-=p}}return u.fill(0),{key:a,iv:l}}t.exports=o},ae8e:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:["widget-form-container",t.adapter],on:{contextmenu:function(t){t.preventDefault()}}},[i("el-form",{ref:"widgetForm",class:t.data.customClass,style:t.defaultBackground,attrs:{"label-position":t.data.labelPosition||t.formDefaultConfig.labelPosition,"label-width":t.setPx(t.data.labelWidth,t.formDefaultConfig.labelWidth),"label-suffix":t.data.labelSuffix||t.formDefaultConfig.labelSuffix,size:t.data.size||t.formDefaultConfig.size}},[i("draggable",{staticClass:"widget-form-list",attrs:{list:t.columns,group:{name:"form"},"ghost-class":"ghost",animation:300,handle:".widget-view-drag"},on:{start:function(e){return t.handleDraggableWidget(t.columns,e)},add:t.handleWidgetAdd,end:function(e){return t.$emit("change")}}},[t._l(t.columns,(function(e,n){return[i("widget-form-item",{key:n,attrs:{data:t.data,widgets:t.columns,index:n,column:e},on:{select:t.handleIndexSelectWidget,clone:t.handleWidgetClone,delete:t.handleWidgetDelete}})]}))],2)],1)],1)},r=[],o=(i("a434"),i("8d2f")),s=i.n(o),a=i("313a"),l=i("b76a"),u=i.n(l),c=i("e74d"),h=i("422f"),d=i("5324"),f={name:"WidgetForm",inject:["designProvide"],provide:function(){return{formProvide:this}},components:{Draggable:u.a,widgetFormItem:d["a"]},props:{adapter:{type:String,default:"pc"}},data:function(){return{widgetEmpty:s.a,formDefaultConfig:h["f"]}},computed:{defaultBackground:function(){return{background:0===this.columns.length?"url(".concat(s.a,") no-repeat 50%"):""}},design:function(){return this.designProvide||{}},data:function(){return this.design.widgetForm||{}},columns:function(){return this.data.column||[]},widgetFormSelect:function(){return this.design.widgetFormSelect||{}},widgetFormDraggable:function(){return this.design.widgetFormDraggable||{}}},methods:{setPx:c["q"],handleDraggableWidget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,i=e.oldIndex;this.$set(this.design,"widgetFormDraggable",t[i])},handleDataSelectWidget:function(t){this.$set(this.design,"widgetFormSelect",t)},handleIndexSelectWidget:function(t){this.$set(this.design,"widgetFormSelect",this.columns[t])},handleWidgetAdd:function(t){var e=this,i=t.newIndex;this.$set(this.columns,i,Object(a["i"])(this.columns[i])),this.handleIndexSelectWidget(i),this.$nextTick((function(){e.$emit("change")}))},handleWidgetDelete:function(t){var e=this;this.columns.length-1===t?0===t?this.handleDataSelectWidget({}):this.handleIndexSelectWidget(t-1):this.handleIndexSelectWidget(t+1),this.$nextTick((function(){e.columns.splice(t,1),e.$emit("change")}))},handleWidgetClone:function(t){var e=this;this.columns.splice(t,0,Object(a["j"])(this.columns[t])),this.$nextTick((function(){e.handleIndexSelectWidget(t+1),e.$emit("change")}))}}},p=f,m=i("2877"),g=Object(m["a"])(p,n,r,!1,null,null,null);e["a"]=g.exports},ae93:function(t,e,i){"use strict";var n,r,o,s=i("d039"),a=i("e163"),l=i("9112"),u=i("5135"),c=i("b622"),h=i("c430"),d=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(n=r)):f=!0);var m=void 0==n||s((function(){var t={};return n[d].call(t)!==t}));m&&(n={}),h&&!m||u(n,d)||l(n,d,p),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},b041:function(t,e,i){"use strict";var n=i("00ee"),r=i("f5df");t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(t,e,i){var n=i("83ab"),r=i("9bf2").f,o=Function.prototype,s=o.toString,a=/^\s*function ([^ (]*)/,l="name";n&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(t){return""}}})},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=h;var o=Object.create(i("3a7c"));o.inherits=i("3fb5");var s=i("ad71"),a=i("dc14");o.inherits(h,s);for(var l=r(a.prototype),u=0;u>>32-e}function m(t,e,i,n,r,o,s,a){return p(t+(e^i^n)+o+s|0,a)+r|0}function g(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 _(t,e,i,n,r,o,s,a){return p(t+(e&n|i&~n)+o+s|0,a)+r|0}function b(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,y=0|this._a,w=0|this._b,M=0|this._c,x=0|this._d,S=0|this._e,k=0;k<80;k+=1){var C,E;k<16?(C=m(i,n,r,o,f,t[a[k]],h[0],u[k]),E=b(y,w,M,x,S,t[l[k]],d[0],c[k])):k<32?(C=g(i,n,r,o,f,t[a[k]],h[1],u[k]),E=_(y,w,M,x,S,t[l[k]],d[1],c[k])):k<48?(C=v(i,n,r,o,f,t[a[k]],h[2],u[k]),E=v(y,w,M,x,S,t[l[k]],d[2],c[k])):k<64?(C=_(i,n,r,o,f,t[a[k]],h[3],u[k]),E=g(y,w,M,x,S,t[l[k]],d[3],c[k])):(C=b(i,n,r,o,f,t[a[k]],h[4],u[k]),E=m(y,w,M,x,S,t[l[k]],d[4],c[k])),i=f,f=o,o=p(r,10),r=n,n=C,y=S,S=x,x=p(M,10),M=w,w=E}var A=this._b+r+x|0;this._b=this._c+o+S|0,this._c=this._d+f+y|0,this._d=this._e+i+w|0,this._e=this._a+n+M|0,this._a=A},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},b622:function(t,e,i){var n=i("da84"),r=i("5692"),o=i("5135"),s=i("90e3"),a=i("4930"),l=i("fdbf"),u=r("wks"),c=n.Symbol,h=l?c:c&&c.withoutSetter||s;t.exports=function(t){return o(u,t)&&(a||"string"==typeof u[t])||(a&&o(c,t)?u[t]=c[t]:u[t]=h("Symbol."+t)),u[t]}},b639:function(t,e,i){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function y(t,e){if(u.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 Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase(),n=!0}}function w(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 B(this,e,i);case"utf8":case"utf-8":return L(this,e,i);case"ascii":return I(this,e,i);case"latin1":case"binary":return D(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function M(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function x(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:S(t,e,i,n,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):S(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function S(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 u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var c=-1;for(o=i;oa&&(i=a-l),o=i;o>=0;o--){for(var h=!0,d=0;dr&&(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;s239?4:u>223?3:u>191?2:1;if(r+h<=i)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&u)<<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&u)<<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&u)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=h}return P(n)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,i){return c(null,t,e,i)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,i){return d(null,t,e,i)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.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);r0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},u.prototype.compare=function(t,e,i,n,r){if(!u.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),h=0;hr)&&(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 k(this,t,e,i);case"utf8":case"utf-8":return C(this,t,e,i);case"ascii":return E(this,t,e,i);case"latin1":case"binary":return A(this,t,e,i);case"base64":return O(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function P(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);var i="",n=0;while(nn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,i,n,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function q(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function W(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>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 U(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 K(t,e,i,n,o){return o||z(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}u.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),e0&&(r*=256))n+=this[t+--e]*r;return n},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||N(t,e,this.length);var n=this[t],r=1,o=0;while(++o=r&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||N(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},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;F(this,t,e,i,r,0)}var o=1,s=0;this[e]=255&t;while(++s=0&&(s*=256))this[e+o]=t/s&255;return e+i},u.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):W(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):W(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);F(this,t,e,i,r-1,-r)}var o=0,s=1,a=0;this[e]=255&t;while(++o>0)-a&255;return e+i},u.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);F(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},u.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):W(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):W(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,i){return U(this,t,e,!0,i)},u.prototype.writeFloatBE=function(t,e,i){return U(this,t,e,!1,i)},u.prototype.writeDoubleLE=function(t,e,i){return K(this,t,e,!0,i)},u.prototype.writeDoubleBE=function(t,e,i){return K(this,t,e,!1,i)},u.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=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=0;--r)t[r+e]=this[r+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&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 X(t){for(var e=[],i=0;i>8,r=i%256,o.push(r),o.push(n)}return o}function J(t){return n.toByteArray(V(t))}function tt(t,e,i,n){for(var r=0;r=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("c8ba"))},b64b:function(t,e,i){var n=i("23e7"),r=i("7b0b"),o=i("df75"),s=i("d039"),a=s((function(){o(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(t){return o(r(t))}})},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=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},b680:function(t,e,i){"use strict";var n=i("23e7"),r=i("a691"),o=i("408a"),s=i("1148"),a=i("d039"),l=1..toFixed,u=Math.floor,c=function(t,e,i){return 0===e?i:e%2===1?c(t,e-1,i*t):c(t*t,e/2,i)},h=function(t){var e=0,i=t;while(i>=4096)e+=12,i/=4096;while(i>=2)e+=1,i/=2;return e},d=function(t,e,i){var n=-1,r=i;while(++n<6)r+=e*t[n],t[n]=r%1e7,r=u(r/1e7)},f=function(t,e){var i=6,n=0;while(--i>=0)n+=t[i],t[i]=u(n/e),n=n%e*1e7},p=function(t){var e=6,i="";while(--e>=0)if(""!==i||0===e||0!==t[e]){var n=String(t[e]);i=""===i?n:i+s.call("0",7-n.length)+n}return i},m=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){l.call({})}));n({target:"Number",proto:!0,forced:m},{toFixed:function(t){var e,i,n,a,l=o(this),u=r(t),m=[0,0,0,0,0,0],g="",v="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(e=h(l*c(2,69,1))-69,i=e<0?l*c(2,-e,1):l/c(2,e,1),i*=4503599627370496,e=52-e,e>0){d(m,0,i),n=u;while(n>=7)d(m,1e7,0),n-=7;d(m,c(10,n,1),0),n=e-1;while(n>=23)f(m,1<<23),n-=23;f(m,1<0?(a=v.length,v=g+(a<=u?"0."+s.call("0",u-a)+v:v.slice(0,a-u)+"."+v.slice(a-u))):v=g+v,v}})},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"),u=i("b4e8");function c(t){o.Writable.call(this);var e=u[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 h(t){o.Writable.call(this);var e=u[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 h(t)}Object.keys(u).forEach((function(t){u[t].id=n.from(u[t].id,"hex"),u[t.toLowerCase()]=u[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(h,o.Writable),h.prototype._write=function(t,e,i){this._hash.update(t),i()},h.prototype.update=function(t,e){return"string"===typeof t&&(t=n.from(t,e)),this._hash.update(t),this},h.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}},b727:function(t,e,i){var n=i("0366"),r=i("44ad"),o=i("7b0b"),s=i("50c4"),a=i("65f0"),l=[].push,u=function(t){var e=1==t,i=2==t,u=3==t,c=4==t,h=6==t,d=7==t,f=5==t||h;return function(p,m,g,v){for(var _,b,y=o(p),w=r(y),M=n(m,g,3),x=s(w.length),S=0,k=v||a,C=e?k(p,x):i||d?k(p,0):void 0;x>S;S++)if((f||S in w)&&(_=w[S],b=M(_,S,y),t))if(e)C[S]=b;else if(b)switch(t){case 3:return!0;case 5:return _;case 6:return S;case 2:l.call(C,_)}else switch(t){case 4:return!1;case 7:l.call(C,_)}return h?-1:u||c?c:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},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>>=0;return!(r<=127)&&(e.place=s,r)}function u(t){var e=0,i=t.length-1;while(!t[e]&&!(128&t[e+1])&&e>>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 u=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 h=t.slice(i.place,c+i.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(u),this.s=new n(h),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=u(e),i=u(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)}},b76a:function(t,e,i){(function(e,n){t.exports=n(i("aa47"))})("undefined"!==typeof self&&self,(function(t){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="fb15")}({"01f9":function(t,e,i){"use strict";var n=i("2d00"),r=i("5ca1"),o=i("2aba"),s=i("32e9"),a=i("84f2"),l=i("41a0"),u=i("7f20"),c=i("38fd"),h=i("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};t.exports=function(t,e,i,v,_,b,y){l(i,e,v);var w,M,x,S=function(t){if(!d&&t in A)return A[t];switch(t){case p:return function(){return new i(this,t)};case m:return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",C=_==m,E=!1,A=t.prototype,O=A[h]||A[f]||_&&A[_],R=O||S(_),T=_?C?S("entries"):R:void 0,L="Array"==e&&A.entries||O;if(L&&(x=c(L.call(new t)),x!==Object.prototype&&x.next&&(u(x,k,!0),n||"function"==typeof x[h]||s(x,h,g))),C&&O&&O.name!==m&&(E=!0,R=function(){return O.call(this)}),n&&!y||!d&&!E&&A[h]||s(A,h,R),a[e]=R,a[k]=g,_)if(w={values:C?R:S(m),keys:b?R:S(p),entries:T},y)for(M in w)M in A||o(A,M,w[M]);else r(r.P+r.F*(d||E),e,w);return w}},"02f4":function(t,e,i){var n=i("4588"),r=i("be13");t.exports=function(t){return function(e,i){var o,s,a=String(r(e)),l=n(i),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,i){"use strict";var n=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"0bfb":function(t,e,i){"use strict";var n=i("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,i){var n=i("ce10"),r=i("e11e");t.exports=Object.keys||function(t){return n(t,r)}},1495:function(t,e,i){var n=i("86cc"),r=i("cb7c"),o=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(t,e){r(t);var i,s=o(e),a=s.length,l=0;while(a>l)n.f(t,i=s[l++],e[i]);return t}},"214f":function(t,e,i){"use strict";i("b0c5");var n=i("2aba"),r=i("32e9"),o=i("79e5"),s=i("be13"),a=i("2b4c"),l=i("520a"),u=a("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[u]=function(){return i}),i[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!c||"split"===t&&!h){var m=/./[d],g=i(s,d,""[t],(function(t,e,i,n,r){return e.exec===l?f&&!r?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=g[0],_=g[1];n(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"230e":function(t,e,i){var n=i("d3f4"),r=i("7726").document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,i){var n=i("2d95"),r=i("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=s(e=Object(t),r))?i:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,i){var n=i("7726"),r=i("32e9"),o=i("69a8"),s=i("ca5a")("src"),a=i("fa5b"),l="toString",u=(""+a).split(l);i("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var l="function"==typeof i;l&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(l&&(o(i,s)||r(i,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(t,e,i){var n=i("cb7c"),r=i("1495"),o=i("e11e"),s=i("613b")("IE_PROTO"),a=function(){},l="prototype",u=function(){var t,e=i("230e")("iframe"),n=o.length,r="<",s=">";e.style.display="none",i("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),u=t.F;while(n--)delete u[l][o[n]];return u()};t.exports=Object.create||function(t,e){var i;return null!==t?(a[l]=n(t),i=new a,a[l]=null,i[s]=t):i=u(),void 0===e?i:r(i,e)}},"2b4c":function(t,e,i){var n=i("5537")("wks"),r=i("ca5a"),o=i("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"2fdb":function(t,e,i){"use strict";var n=i("5ca1"),r=i("d2c8"),o="includes";n(n.P+n.F*i("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,i){var n=i("86cc"),r=i("4630");t.exports=i("9e1e")?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},"38fd":function(t,e,i){var n=i("69a8"),r=i("4bf8"),o=i("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,i){"use strict";var n=i("2aeb"),r=i("4630"),o=i("7f20"),s={};i("32e9")(s,i("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(s,{next:r(1,i)}),o(t,e+" Iterator")}},"456d":function(t,e,i){var n=i("4bf8"),r=i("0d58");i("5eda")("keys",(function(){return function(t){return r(n(t))}}))},4588:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,i){var n=i("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,i){var n=i("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(r){}}return!0}},"520a":function(t,e,i){"use strict";var n=i("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[a]||0!==e[a]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(s=function(t){var e,i,s,c,h=this;return u&&(i=new RegExp("^"+h.source+"$(?!\\s)",n.call(h))),l&&(e=h[a]),s=r.call(h,t),l&&s&&(h[a]=h.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],i,(function(){for(c=1;c1?arguments[1]:void 0)}}),i("9c6c")("includes")},6821:function(t,e,i){var n=i("626a"),r=i("be13");t.exports=function(t){return n(r(t))}},"69a8":function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"6a99":function(t,e,i){var n=i("d3f4");t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,i){"use strict";var n=i("0d58"),r=i("2621"),o=i("52a7"),s=i("4bf8"),a=i("626a"),l=Object.assign;t.exports=!l||i("79e5")((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[i]||Object.keys(l({},e)).join("")!=n}))?function(t,e){var i=s(t),l=arguments.length,u=1,c=r.f,h=o.f;while(l>u){var d,f=a(arguments[u++]),p=c?n(f).concat(c(f)):n(f),m=p.length,g=0;while(m>g)h.call(f,d=p[g++])&&(i[d]=f[d])}return i}:l},7726:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"77f1":function(t,e,i){var n=i("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,i){var n=i("86cc").f,r=i("69a8"),o=i("2b4c")("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},8378:function(t,e){var i=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=i)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,i){var n=i("cb7c"),r=i("c69a"),o=i("6a99"),s=Object.defineProperty;e.f=i("9e1e")?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return s(t,e,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},"9b43":function(t,e,i){var n=i("d8e8");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,i){var n=i("2b4c")("unscopables"),r=Array.prototype;void 0==r[n]&&i("32e9")(r,n,{}),t.exports=function(t){r[n][t]=!0}},"9def":function(t,e,i){var n=i("4588"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,i){e.exports=t},a481:function(t,e,i){"use strict";var n=i("cb7c"),r=i("4bf8"),o=i("9def"),s=i("4588"),a=i("0390"),l=i("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};i("214f")("replace",2,(function(t,e,i,m){return[function(n,r){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var r=m(i,t,this,e);if(r.done)return r.value;var h=n(t),d=String(this),f="function"===typeof e;f||(e=String(e));var v=h.global;if(v){var _=h.unicode;h.lastIndex=0}var b=[];while(1){var y=l(h,d);if(null===y)break;if(b.push(y),!v)break;var w=String(y[0]);""===w&&(h.lastIndex=a(d,o(h.lastIndex),_))}for(var M="",x=0,S=0;S=x&&(M+=d.slice(x,C)+T,x=C+k.length)}return M+d.slice(x)}];function g(t,e,n,o,s,a){var l=n+t.length,u=o.length,c=f;return void 0!==s&&(s=r(s),c=d),i.call(a,c,(function(i,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=s[r.slice(1,-1)];break;default:var c=+r;if(0===c)return i;if(c>u){var d=h(c/10);return 0===d?i:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):i}a=o[c-1]}return void 0===a?"":a}))}}))},aae3:function(t,e,i){var n=i("d3f4"),r=i("2d95"),o=i("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,i){for(var n=i("cadf"),r=i("0d58"),o=i("2aba"),s=i("7726"),a=i("32e9"),l=i("84f2"),u=i("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),m=0;mc)if(a=l[c++],a!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},c649:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return l}));i("a481");function n(){return"undefined"!==typeof window?window.console:t.console}var r=n();function o(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var s=/-(\w)/g,a=o((function(t){return t.replace(s,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function u(t,e,i){var n=0===i?t.children[0]:t.children[i-1].nextSibling;t.insertBefore(e,n)}}).call(this,i("c8ba"))},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},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},ca5a:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},cadf:function(t,e,i){"use strict";var n=i("9c6c"),r=i("d53b"),o=i("84f2"),s=i("6821");t.exports=i("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,i){var n=i("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,i){var n=i("69a8"),r=i("6821"),o=i("c366")(!1),s=i("613b")("IE_PROTO");t.exports=function(t,e){var i,a=r(t),l=0,u=[];for(i in a)i!=s&&n(a,i)&&u.push(i);while(e.length>l)n(a,i=e[l++])&&(~o(u,i)||u.push(i));return u}},d2c8:function(t,e,i){var n=i("aae3"),r=i("be13");t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,i){"use strict";var n=i("5ca1"),r=i("9def"),o=i("d2c8"),s="startsWith",a=""[s];n(n.P+n.F*i("5147")(s),"String",{startsWith:function(t){var e=o(this,t,s),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,i):e.slice(i,i+n.length)===n}})},f6fd:function(t,e){(function(t){var e="currentScript",i=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in i)if(i[t].src==e||"interactive"==i[t].readyState)return i[t];return null}}})})(document)},f751:function(t,e,i){var n=i("5ca1");n(n.S+n.F,"Object",{assign:i("7333")})},fa5b:function(t,e,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,i){var n=i("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,i){"use strict";var n;(i.r(e),"undefined"!==typeof window)&&(i("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=n[1]));i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function r(t){if(Array.isArray(t))return t}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(i.push(s.value),e&&i.length===e)break}catch(l){r=!0,o=l}finally{try{n||null==a["return"]||a["return"]()}finally{if(r)throw o}}return i}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=o?r.length:r.indexOf(t)}));return i?s.filter((function(t){return-1!==t})):s}function y(t,e){var i=this;this.$nextTick((function(){return i.$emit(t.toLowerCase(),e)}))}function w(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),y.call(e,t,i)}}function M(t){return["transition-group","TransitionGroup"].includes(t)}function x(t){if(!t||1!==t.length)return!1;var e=u(t,1),i=e[0].componentOptions;return!!i&&M(i.tag)}function S(t,e,i){return t[i]||(e[i]?e[i]():void 0)}function k(t,e,i){var n=0,r=0,o=S(e,i,"header");o&&(n=o.length,t=t?[].concat(f(o),f(t)):f(o));var s=S(e,i,"footer");return s&&(r=s.length,t=t?[].concat(f(t),f(s)):f(s)),{children:t,headerOffset:n,footerOffset:r}}function C(t,e){var i=null,n=function(t,e){i=v(i,t,e)},r=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,i){return e[i]=t[i],e}),{});if(n("attrs",r),!e)return i;var o=e.on,s=e.props,a=e.attrs;return n("on",o),n("props",s),Object.assign(i.attrs,a),i}var E=["Start","Add","Remove","Update","End"],A=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"].concat(E,A).map((function(t){return"on"+t})),R=null,T={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},L={name:"draggable",inheritAttrs:!1,props:T,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=x(e);var i=k(e,this.$slots,this.$scopedSlots),n=i.children,r=i.headerOffset,o=i.footerOffset;this.headerOffset=r,this.footerOffset=o;var s=C(this.$attrs,this.componentData);return t(this.getTag(),s,n)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};E.forEach((function(i){e["on"+i]=w.call(t,i)})),A.forEach((function(i){e["on"+i]=y.bind(t,i)}));var i=Object.keys(this.$attrs).reduce((function(e,i){return e[Object(g["a"])(i)]=t.$attrs[i],e}),{}),n=Object.assign({},this.options,i,e,{onMove:function(e,i){return t.onDragMove(e,i)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new m.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var i=Object(g["a"])(e);-1===O.indexOf(i)&&this._sortable.option(i,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=b(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=_(this.getChildrenNodes()||[],t);if(-1===e)return null;var i=this.realList[e];return{index:e,element:i}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&M(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=f(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,f(t))};this.alterList(e)},updatePosition:function(t,e){var i=function(i){return i.splice(e,0,i.splice(t,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var r=n.realList,o={list:r,component:n};if(e!==i&&r&&n.getUnderlyingVm){var s=n.getUnderlyingVm(i);if(s)return Object.assign(s,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return t>i-1?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var i=this.getComponent();i.children=[],i.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),R=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(g["d"])(t.item);var i=this.getVmIndex(t.newIndex);this.spliceList(i,0,e),this.computeIndexes();var n={element:e,newIndex:i};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(g["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var i={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:i})}else Object(g["d"])(t.clone)},onDragUpdate:function(t){Object(g["d"])(t.item),Object(g["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,i=this.getVmIndex(t.newIndex);this.updatePosition(e,i);var n={element:this.context.element,oldIndex:e,newIndex:i};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var i=f(e.to.children).filter((function(t){return"none"!==t.style["display"]})),n=i.indexOf(e.related),r=t.component.getVmIndex(n),o=-1!==i.indexOf(R);return o||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var i=this.move;if(!i||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),r=this.context,o=this.computeFutureIndex(n,t);Object.assign(r,{futureIndex:o});var s=Object.assign({},t,{relatedContext:n,draggedContext:r});return i(s,e)},onDragEnd:function(){this.computeIndexes(),R=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",L);var $=L;e["default"]=$}})["default"]}))},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},b85c:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("e260"),i("3ca3"),i("ddb0");var n=i("06c5");function r(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=Object(n["a"])(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==i["return"]||i["return"]()}finally{if(l)throw s}}}}},b938:function(t,e,i){"use strict";i("8b07")},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,u=i("bb34"),c=i("b73f");function h(t){if(!(this instanceof h))return new h(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=h,h.prototype.keyPair=function(t){return new u(this,t)},h.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},h.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)}},h.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},h.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),u=new r({hash:this.hash,entropy:a,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;;d++){var f=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(f=this._truncateToN(f,!0),!(f.cmpn(1)<=0||f.cmp(h)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=f.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(v=v.umod(this.n),0!==v.cmpn(0)){var _=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),_^=1),new c({r:g,s:v,recoveryParam:_})}}}}}},h.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),u=l.mul(t).umod(this.n),h=l.mul(o).umod(this.n);return this.curve._maxwellTrick?(a=this.g.jmulAdd(u,i.getPublic(),h),!a.isInfinity()&&a.eqXToP(o)):(a=this.g.mulAdd(u,i.getPublic(),h),!a.isInfinity()&&0===a.getX().umod(this.n).cmp(o))},h.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,u=e.s,h=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),h):this.curve.pointFromX(a,h);var f=e.r.invm(o),p=o.sub(s).mul(f).umod(o),m=u.mul(f).umod(o);return this.g.mulAdd(p,a,m)},h.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}},babf:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"widget-view widget-coral-layout",class:{active:t.selectWidget.prop==t.column.prop,hide:t.column.hide},on:{click:function(e){return e.stopPropagation(),t.form.handleDataSelectWidget(t.widgets[t.index])}}},[i("el-row",{class:t.column.customClass,attrs:{type:t.column.flex?"flex":void 0,gutter:t.column.gutter,justify:t.column.justify,align:t.column.align}},t._l(t.coralLayoutColumns,(function(e,n){return i("el-col",{key:n,staticClass:"widget-coral-layout-col",class:[{active:t.selectWidget.prop==e.prop}].concat(e.customClass||[]),attrs:{md:e.md,offset:e.offset,push:e.push,pull:e.pull},nativeOn:{click:function(i){return i.stopPropagation(),t.form.handleDataSelectWidget(e)}}},[i("draggable",{staticClass:"widget-col-list",attrs:{list:e.list,group:{name:"form"},"ghost-class":"ghost",animation:300,handle:".widget-view-drag"},on:{start:function(i){return t.form.handleDraggableWidget(e.list,i)},add:function(i){return t.handleWidgetColAdd(e.list,i)},end:function(e){return t.form.$emit("change")}}},[t._l(e.list,(function(n,r){return[i("widget-form-item",{key:r,attrs:{widgets:e.list,index:r,column:n,"layout-type":"coralLayout"},on:{select:t.form.handleDataSelectWidget,clone:t.handleWidgetClone,delete:t.handleWidgetDelete,change:function(e){return t.form.$emit("change")}}})]}))],2),t.selectWidget.prop==e.prop?i("div",{staticClass:"widget-view-action widget-layout-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.handleColumnClone(n)}}}),t.coralLayoutColumns.length>1?i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.handleColumnDelete(n)}}}):t._e()]):t._e()],1)})),1),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-action widget-layout-action"},[i("i",{staticClass:"iconfont icon-add",attrs:{title:"添加列"},on:{click:function(e){return e.stopPropagation(),t.handleColumnAdd.apply(null,arguments)}}}),i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.handleRowClone.apply(null,arguments)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.handleRowDelete.apply(null,arguments)}}})]):t._e(),t.selectWidget.prop==t.column.prop?i("div",{staticClass:"widget-view-drag widget-layout-drag"},[i("i",{staticClass:"iconfont icon-drag"})]):t._e()],1)},r=[],o=(i("a9e3"),i("a434"),i("b76a")),s=i.n(o),a=i("313a"),l=i("768e"),u=i("5324"),c={name:"WidgetCoralLayout",components:{Draggable:s.a,widgetFormItem:u["a"]},inject:["formItemProvide"],props:{column:{type:Object},index:{type:Number},widgets:{required:!0,type:Array}},data:function(){return{colPreset:{type:"coralLayoutCol",offset:0,push:0,pull:0,md:24,list:[],customClass:[]}}},computed:{formItem:function(){return this.formItemProvide||{}},coralLayoutColumns:function(){return this.column.cols||[]},form:function(){return this.formItem.form||{}},selectWidget:function(){return this.form.widgetFormSelect||{}}},methods:{handleRowClone:function(){var t=this;this.widgets.splice(this.index,0,Object(l["b"])(this.column)),this.$nextTick((function(){t.form.handleIndexSelectWidget(t.index+1),t.form.$emit("change")}))},handleRowDelete:function(){var t=this;this.widgets.length-1===this.index?0===this.index?this.form.handleDataSelectWidget({}):this.form.handleIndexSelectWidget(this.index-1):this.form.handleIndexSelectWidget(this.index+1),this.$nextTick((function(){t.widgets.splice(t.index,1),t.form.$emit("change")}))},handleColumnAdd:function(){var t=this;this.coralLayoutColumns.push(Object(a["i"])(this.colPreset)),this.$nextTick((function(){t.form.$emit("change")}))},handleColumnClone:function(t){var e=this;this.coralLayoutColumns.splice(t,0,Object(l["a"])(this.coralLayoutColumns[t])),this.$nextTick((function(){e.form.handleDataSelectWidget(e.coralLayoutColumns[t+1]),e.form.$emit("change")}))},handleColumnDelete:function(t){var e=this;this.coralLayoutColumns.length-1===t?0===t?this.form.handleDataSelectWidget({}):this.form.handleDataSelectWidget(this.coralLayoutColumns[t-1]):this.form.handleDataSelectWidget(this.coralLayoutColumns[t+1]),this.$nextTick((function(){e.coralLayoutColumns.splice(t,1),e.form.$emit("change")}))},handleWidgetColAdd:function(t,e){var i=this,n=e.newIndex;this.$set(t,n,Object(a["i"])(t[n])),this.form.handleDataSelectWidget(t[n]),this.$nextTick((function(){i.form.$emit("change")}))},handleWidgetClone:function(t,e){var i=this;t.splice(e,0,Object(a["j"])(t[e])),this.$nextTick((function(){i.form.handleDataSelectWidget(t[e+1]),i.form.$emit("change")}))},handleWidgetDelete:function(t,e){var i=this;t.length-1===e?0===e?this.form.handleDataSelectWidget({}):this.form.handleDataSelectWidget(t[e-1]):this.form.handleDataSelectWidget(t[e+1]),this.$nextTick((function(){t.splice(e,1),i.form.$emit("change")}))}}},h=c,d=i("2877"),f=Object(d["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},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""}},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,u=r.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(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,u),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],u=this.h[3],c=this.h[4],_=i,b=n,y=r,w=u,M=c,x=0;x<80;x++){var S=s(o(l(i,h(x,n,r,u),t[p[x]+e],d(x)),g[x]),c);i=c,c=u,u=o(r,10),r=n,n=S,S=s(o(l(_,h(79-x,b,y,w),t[m[x]+e],f(x)),v[x]),M),_=M,M=w,w=o(y,10),y=b,b=S}S=a(this.h[1],r,w),this.h[1]=a(this.h[2],u,M),this.h[2]=a(this.h[3],c,_),this.h[3]=a(this.h[4],i,b),this.h[4]=a(this.h[0],n,y),this.h[0]=S},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],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],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]},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(11).Buffer}catch(E){}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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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))},bd63:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"widget-config"},[i("el-form",{attrs:{"label-position":"top",size:"small"}},[i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"labelPosition"],expression:"[widgetForm, 'labelPosition']"}],attrs:{label:"标签对齐方式"}},[i("el-radio-group",{model:{value:t.widgetForm.labelPosition,callback:function(e){t.$set(t.widgetForm,"labelPosition",e)},expression:"widgetForm.labelPosition"}},[i("el-radio-button",{attrs:{label:"left"}},[t._v("左对齐")]),i("el-radio-button",{attrs:{label:"right"}},[t._v("右对齐")]),i("el-radio-button",{attrs:{label:"top"}},[t._v("顶部对齐")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"labelWidth"],expression:"[widgetForm, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input-number",{staticStyle:{width:"130px"},attrs:{min:80,max:200,step:10},model:{value:t.widgetForm.labelWidth,callback:function(e){t.$set(t.widgetForm,"labelWidth",e)},expression:"widgetForm.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"size"],expression:"[widgetForm, 'size']"}],attrs:{label:"组件尺寸"}},[i("el-radio-group",{model:{value:t.widgetForm.size,callback:function(e){t.$set(t.widgetForm,"size",e)},expression:"widgetForm.size"}},[i("el-radio-button",{attrs:{label:"medium"}},[t._v("medium")]),i("el-radio-button",{attrs:{label:"small"}},[t._v("small")]),i("el-radio-button",{attrs:{label:"mini"}},[t._v("mini")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"styleSheets"],expression:"[widgetForm, 'styleSheets']"}],attrs:{label:"表单样式表"}},[i("el-button",{staticStyle:{width:"100%"},on:{click:function(e){t.design.styleSheetsVisible=!0}}},[t._v("设置")])],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"customClass"],expression:"[widgetForm, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.widgetForm.customClass,callback:function(e){t.$set(t.widgetForm,"customClass",e)},expression:"widgetForm.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"dataSource"],expression:"[widgetForm, 'dataSource']"}],attrs:{label:"数据源"}},[i("el-button",{staticStyle:{width:"100%"},on:{click:function(e){t.design.dataSourceSettingsVisible=!0}}},[t._v("设置")])],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.widgetForm,"eventScript"],expression:"[widgetForm, 'eventScript']"}],attrs:{label:"动作面板"}},[i("el-button",{staticStyle:{width:"100%"},on:{click:function(e){return t.design.handleActionSettingsSetData({eventName:""})}}},[t._v("设置")])],1)],1)],1)},r=[],o={name:"FormConfig",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{first:!1}},computed:{widgetForm:function(){return this.first?this.data:{}},design:function(){return this.designProvide||{}}},mounted:function(){this.first=!0}},s=o,a=i("2877"),l=Object(a["a"])(s,n,r,!1,null,null,null);e["a"]=l.exports},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},bee2:function(t,e,i){"use strict";function n(t,e){for(var i=0;i1?arguments[1]:void 0);return o(this,e)}))},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"}}')},c282:function(t,e,i){"use strict";i.d(e,"a",(function(){return d})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return u})),i.d(e,"d",(function(){return h}));var n=i("d4ec"),r=i("bee2"),o=(i("cca6"),i("e74d")),s=function(){function t(){Object(n["a"])(this,t),this.store={}}return Object(r["a"])(t,[{key:"mixin",value:function(t){return Object.assign(this.store,t),this}},{key:"has",value:function(t){return!!this.get(t)}},{key:"get",value:function(t){return this.store[t]}},{key:"add",value:function(t,e){return this.store[t]=e,this}},{key:"delete",value:function(t){delete this.store[t]}},{key:"forEach",value:function(t){Object(o["m"])(this.store,t)}}]),t}(),a=s,l=new a,u=new a,c=i("5175"),h=function(t){return Object(o["a"])(c["a"],t)},d={remoteFunc:l,remoteOption:u,setup:h}},c2ae:function(t,e,i){t.exports=i("e372").PassThrough},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>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>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}function u(t,e){for(var i="",n=0;n>>0}return s}function f(t,e){for(var i=new Array(4*t.length),n=0,r=0;n>>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 m(t,e){return t<>>32-e}function g(t,e){return t+e>>>0}function v(t,e,i){return t+e+i>>>0}function _(t,e,i,n){return t+e+i+n>>>0}function b(t,e,i,n,r){return t+e+i+n+r>>>0}function y(t,e,i,n){var r=t[e],o=t[e+1],s=n+o>>>0,a=(s>>0,t[e+1]=s}function w(t,e,i,n){var r=e+n>>>0,o=(r>>0}function M(t,e,i,n){var r=e+n;return r>>>0}function x(t,e,i,n,r,o,s,a){var l=0,u=e;u=u+n>>>0,l+=u>>0,l+=u>>0,l+=u>>0}function S(t,e,i,n,r,o,s,a){var l=e+n+o+a;return l>>>0}function k(t,e,i,n,r,o,s,a,l,u){var c=0,h=e;h=h+n>>>0,c+=h>>0,c+=h>>0,c+=h>>0,c+=h>>0}function C(t,e,i,n,r,o,s,a,l,u){var c=e+n+o+a+u;return c>>>0}function E(t,e,i){var n=e<<32-i|t>>>i;return n>>>0}function A(t,e,i){var n=t<<32-i|e>>>i;return n>>>0}function O(t,e,i){return t>>>i}function R(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=u,e.zero2=c,e.zero8=h,e.join32=d,e.split32=f,e.rotr32=p,e.rotl32=m,e.sum32=g,e.sum32_3=v,e.sum32_4=_,e.sum32_5=b,e.sum64=y,e.sum64_hi=w,e.sum64_lo=M,e.sum64_4_hi=x,e.sum64_4_lo=S,e.sum64_5_hi=k,e.sum64_5_lo=C,e.rotr64_hi=E,e.rotr64_lo=A,e.shr64_hi=O,e.shr64_lo=R},c430:function(t,e){t.exports=!1},c44e:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(t.getComponent(t.getColumn.type,t.getColumn.component),t._g(t._b({ref:"plugin",tag:"component",attrs:{dic:t.dic,column:t.getColumn,props:t.plugin.props||t.props,disabled:t.disabled||t.plugin.disabled,readonly:t.readonly||t.plugin.readonly,placeholder:t.plugin.placeholder||t.getPlaceholder(t.getColumn),size:t.plugin.size||t.size,type:t.type||t.plugin.type},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterChange.apply(null,arguments)}},scopedSlots:t._u([t._l(t.$scopedSlots[t.getColumn.prop+"Type"]?[t.getColumn]:[],(function(e){return{key:"default",fn:function(i){return[t._t(e.prop+"Type",null,null,i)]}}}))],null,!0),model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},"component",t.plugin,!1),t.events),[t.params.html?i("span",{domProps:{innerHTML:t._s(t.params.html)}}):t._e()])},r=[],o=(i("cca6"),i("313a")),s=i("e74d"),a={name:"Widget",props:{value:{},dic:{},props:{type:Object},enter:{type:Boolean,default:!1},type:{type:String},size:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},column:{type:Object,default:function(){return{}}},preview:{type:Boolean,default:!0}},data:function(){return{first:!1,text:void 0}},computed:{getColumn:function(){var t=Object(s["d"])(this.column);return this.preview||Object(o["a"])(t),t},params:function(){var t=this.getColumn.params||{};if("string"===Object(s["i"])(t))try{var e=eval,i=e("("+t+")");t="object"===Object(s["i"])(i)?i:{}}catch(n){t={}}return t},events:function(){return this.getColumn.events||{}},plugin:function(){var t=this.getColumn.plugin||{};return Object.assign(t,this.params)}},watch:{text:{handler:function(t){this.first||!Object(s["s"])(t)?(this.first=!0,this.handleChange(t)):this.first=!0}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},getComponent:o["e"],getPlaceholder:o["h"],enterChange:function(){this.enter&&this.$emit("enter")},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},l=a,u=i("2877"),c=Object(u["a"])(l,n,r,!1,null,null,null);e["a"]=c.exports},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"))},c6b6:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},c6cd:function(t,e,i){var n=i("da84"),r=i("ce4e"),o="__core-js_shared__",s=n[o]||r(o,{});t.exports=s},c740:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").findIndex,o=i("44d2"),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},c822:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["coralLayout"==t.column.type?[i("coral-layout",{ref:"coralLayout",attrs:{column:t.column}})]:[t.isShow?i("el-form-item",{class:["loquat-form__item--"+(t.column.labelPosition||t.widgetForm.labelPosition||t.formDefaultConfig.labelPosition)].concat(t.column.customClass||[]),attrs:{prop:t.column.prop,rules:t.column.rules,label:t.column.hideLabel?"":t.column.label,"label-position":t.column.labelPosition||t.widgetForm.labelPosition||t.formDefaultConfig.labelPosition,"label-width":t.column.hideLabel?"0":t.getLabelWidth(t.column,t.widgetForm,t.formDefaultConfig.labelWidth)},scopedSlots:t._u([{key:"error",fn:function(e){return t.$scopedSlots[t.column.prop+"Error"]?[t._t(t.column.prop+"Error",null,null,Object.assign(e,{column:t.column,value:t.form.form[t.column.prop],readonly:t.form.readonly||t.column.readonly,disabled:t.form.disabled||t.column.disabled,size:t.widgetForm.size||t.column.size||t.formDefaultConfig.size,dic:t.form.DIC[t.column.prop]}))]:void 0}}],null,!0)},[t.$scopedSlots[t.column.prop+"Label"]?i("template",{slot:"label"},[t._t(t.column.prop+"Label",null,{column:t.column,value:t.form.form[t.column.prop],readonly:t.form.readonly||t.column.readonly,disabled:t.form.disableIds.includes(t.column.prop)||t.form.disabled||t.column.disabled,size:t.widgetForm.size||t.column.size||t.formDefaultConfig.size,dic:t.form.DIC[t.column.prop]})],2):t._e(),t.$scopedSlots[t.column.prop]?t._t(t.column.prop,null,{column:t.column,value:t.form.form[t.column.prop],readonly:t.form.readonly||t.column.readonly,disabled:t.form.disableIds.includes(t.column.prop)||t.form.disabled||t.form.disabled||t.column.disabled,size:t.widgetForm.size||t.column.size||t.formDefaultConfig.size,dic:t.form.DIC[t.column.prop]}):i("widget",{ref:"widget",attrs:{dic:t.form.DIC[t.column.prop],column:t.column,props:t.widgetForm.props,readonly:t.form.readonly,disabled:t.form.disableIds.includes(t.column.prop)||t.form.disabled,size:t.widgetForm.size||t.formDefaultConfig.size,enter:t.widgetForm.enter},on:{enter:t.form.submit,change:function(e){return t.form.handleWidgetChange(t.column)}},scopedSlots:t._u([t._l(t.$scopedSlots[t.column.prop+"Type"]?[t.column]:[],(function(e){return{key:t.column.prop+"Type",fn:function(i){return[t._t(e.prop+"Type",null,null,i)]}}}))],null,!0),model:{value:t.form.form[t.column.prop],callback:function(e){t.$set(t.form.form,t.column.prop,e)},expression:"form.form[column.prop]"}})],2):t._e()]],2)},r=[],o=(i("e260"),i("d3b7"),i("e6cf"),i("3ca3"),i("ddb0"),i("caad"),i("2532"),i("313a")),s=i("c44e"),a={name:"Item",inject:["formProvide"],components:{widget:s["a"],coralLayout:function(){return Promise.resolve().then(i.bind(null,"77c6"))}},props:{column:{type:Object}},computed:{form:function(){return this.formProvide||{}},widgetForm:function(){return this.form.widgetForm||{}},formDefaultConfig:function(){return this.form.formDefaultConfig||{}},isShow:function(){var t=this.column,e=t.prop,i=t.hide;return 0!==this.form.showIds.length?this.form.showIds.includes(e):!i}},methods:{getLabelWidth:o["g"]}},l=a,u=i("2877"),c=Object(u["a"])(l,n,r,!1,null,null,null);e["a"]=c.exports},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},c8d2:function(t,e,i){var n=i("d039"),r=i("5899"),o="​…᠎";t.exports=function(t){return n((function(){return!!r[t]()||o[t]()!=o||r[t].name!==t}))}},ca84:function(t,e,i){var n=i("5135"),r=i("fc6a"),o=i("4d64").indexOf,s=i("d012");t.exports=function(t,e){var i,a=r(t),l=0,u=[];for(i in a)!n(s,i)&&n(a,i)&&u.push(i);while(e.length>l)n(a,i=e[l++])&&(~o(u,i)||u.push(i));return u}},ca91:function(t,e,i){"use strict";var n=i("ebb5"),r=i("d58f").left,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduce",(function(t){return r(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(t,e,i){"use strict";var n=i("23e7"),r=i("4d64").includes,o=i("44d2");n({target:"Array",proto:!0},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cbf3:function(t,e,i){(function(e){!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]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){t.exports=i(1)},function(t,e,i){"use strict";function n(t){var e=new s(t),i=o(s.prototype.request,e);return r.extend(i,s.prototype,e),r.extend(i,e),i}var r=i(2),o=i(3),s=i(4),a=i(22),l=i(10),u=n(l);u.Axios=s,u.create=function(t){return n(a(u.defaults,t))},u.Cancel=i(23),u.CancelToken=i(24),u.isCancel=i(9),u.all=function(t){return Promise.all(t)},u.spread=i(25),u.isAxiosError=i(26),t.exports=u,t.exports.default=u},function(t,e,i){"use strict";function n(t){return"[object Array]"===C.call(t)}function r(t){return"undefined"==typeof t}function o(t){return null!==t&&!r(t)&&null!==t.constructor&&!r(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function s(t){return"[object ArrayBuffer]"===C.call(t)}function a(t){return"undefined"!=typeof FormData&&t instanceof FormData}function l(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function c(t){return"number"==typeof t}function h(t){return null!==t&&"object"==typeof t}function d(t){if("[object Object]"!==C.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Date]"===C.call(t)}function p(t){return"[object File]"===C.call(t)}function m(t){return"[object Blob]"===C.call(t)}function g(t){return"[object Function]"===C.call(t)}function v(t){return h(t)&&g(t.pipe)}function _(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function w(t,e){if(null!==t&&"undefined"!=typeof t)if("object"!=typeof t&&(t=[t]),n(t))for(var i=0,r=t.length;i=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),s.forEach(["post","put","patch"],(function(t){u.headers[t]=s.merge(l)})),t.exports=u},function(t,e,i){"use strict";var n=i(2);t.exports=function(t,e){n.forEach(t,(function(i,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[n])}))}},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(16),s=i(5),a=i(17),l=i(20),u=i(21),c=i(14);t.exports=function(t){return new Promise((function(e,i){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+m)}var g=a(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),s(g,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||u(g))&&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 h&&"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(e){if("json"!==t.responseType)throw e}"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)})),h||(h=null),f.send(h)}))}},function(t,e,i){"use strict";var n=i(14);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)}},function(t,e,i){"use strict";var n=i(15);t.exports=function(t,e,i,r,o){var s=new Error(t);return n(s,e,i,r,o)}},function(t,e){"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}},function(t,e,i){"use strict";var n=i(2);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(){}}}()},function(t,e,i){"use strict";var n=i(18),r=i(19);t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,i){"use strict";var n=i(2),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}},function(t,e,i){"use strict";var n=i(2);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return i&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var e,i=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return e=t(window.location.href),function(i){var r=n.isString(i)?t(i):i;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},function(t,e,i){"use strict";var n=i(2);t.exports=function(t,e){function i(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 r(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(o[r]=i(void 0,t[r])):o[r]=i(t[r],e[r])}e=e||{};var o={},s=["url","method","data"],a=["headers","auth","proxy","params"],l=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];n.forEach(s,(function(t){n.isUndefined(e[t])||(o[t]=i(void 0,e[t]))})),n.forEach(a,r),n.forEach(l,(function(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(o[r]=i(void 0,t[r])):o[r]=i(void 0,e[r])})),n.forEach(u,(function(n){n in e?o[n]=i(t[n],e[n]):n in t&&(o[n]=i(void 0,t[n]))}));var c=s.concat(a).concat(l).concat(u),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return n.forEach(h,r),o}},function(t,e){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,i){"use strict";function n(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 r(t),e(i.reason))}))}var r=i(23);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t,e=new n((function(e){t=e}));return{token:e,cancel:t}},t.exports=n},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}}])}))}).call(this,i("4362"))},cc12:function(t,e,i){var n=i("da84"),r=i("861d"),o=n.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cca6:function(t,e,i){var n=i("23e7"),r=i("60da");n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cd26:function(t,e,i){"use strict";var n=i("ebb5"),r=n.aTypedArray,o=n.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){var t,e=this,i=r(e).length,n=s(i/2),o=0;while(o0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=u(e)),n)s.endEmitted?k(t,new S):T(t,s,e,!0);else if(s.ended)k(t,new M);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?T(t,s,e,!1):N(t,s)):T(t,s,e,!1)}else n||(s.reading=!1,N(t,s));return!s.ended&&(s.length=$?t=$:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function I(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=P(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t,e){if(h("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?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}}function B(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(j,t))}function j(t){var e=t._readableState;h("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,H(t)}function N(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){h("readable nexttick read 0"),t.read(0)}function U(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(K,t,e))}function K(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),H(t),e.flowing&&!e.reading&&t.read(0)}function H(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function V(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 G(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(Y,e,t))}function Y(t,e){if(h("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 Z(t,e){for(var i=0,n=t.length;i=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):B(this),null;if(t=I(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var n,r=e.needReadable;return h("need readable",r),(0===e.length||e.length-t0?V(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&&G(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){k(this,new x("_read()"))},O.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,h("pipe count=%d opts=%j",r.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,a=s?u:_;function l(t,e){h("onunpipe"),t===i&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function u(){h("onend"),t.end()}r.endEmitted?n.nextTick(a):i.once("end",a),t.on("unpipe",l);var c=q(i);t.on("drain",c);var d=!1;function f(){h("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",c),t.removeListener("error",m),t.removeListener("unpipe",l),i.removeListener("end",u),i.removeListener("end",_),i.removeListener("data",p),d=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var n=t.write(e);h("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==Z(r.pipes,t))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function m(e){h("onerror",e),_(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",v),_()}function v(){h("onfinish"),t.removeListener("close",g),_()}function _(){h("unpipe"),i.unpipe(t)}return i.on("data",p),E(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",i),r.flowing||(h("pipe resume"),i.resume()),t},O.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;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?B(this):r.reading||n.nextTick(z,this))),i},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var i=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(W,this),i},O.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(W,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,U(this,t)),t.paused=!1,this},O.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;for(var r in t.on("end",(function(){if(h("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(h("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{var t={239:(t,e,i)=>{t=i.nmd(t),function(){var t=function(){return this}();t||"undefined"==typeof window||(t=window);var e=function(t,i,n){"string"==typeof t?(2==arguments.length&&(n=i),e.modules[t]||(e.payloads[t]=n,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};e.modules={},e.payloads={};var i,n,r=function(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=0?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=o.indexOf("AdobeAIR")>=0,e.isAndroid=o.indexOf("Android")>=0,e.isChromeOS=o.indexOf(" CrOS ")>=0,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=t("./useragent");if(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=1.5,"undefined"!=typeof document){var r=document.createElement("div");e.HI_DPI&&void 0!==r.style.transform&&(e.HAS_CSS_TRANSFORMS=!0),n.isEdge||void 0===r.style.animationName||(e.HAS_CSS_ANIMATION=!0),r=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";var n,r=t("./keys"),o=t("./useragent"),s=null,a=0;function l(){return null==n&&function(){n=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){n={passive:!1}}})}catch(t){}}(),n}function u(t,e,i){this.elem=t,this.type=e,this.callback=i}u.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=e.addListener=function(t,e,i,n){t.addEventListener(e,i,l()),n&&n.$toDestroy.push(new u(t,e,i))},h=e.removeListener=function(t,e,i){t.removeEventListener(e,i,l())};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||o.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey?2:t.button},e.capture=function(t,e,i){var n=t&&t.ownerDocument||document;function r(t){e&&e(t),i&&i(t),h(n,"mousemove",e),h(n,"mouseup",r),h(n,"dragstart",r)}return c(n,"mousemove",e),c(n,"mouseup",r),c(n,"dragstart",r),r},e.addMouseWheelListener=function(t,e,i){"onmousewheel"in t?c(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?c(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):c(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,s){var a,l,u,h=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(t){if(0!==e.getButton(t)?h=0:t.detail>1?++h>4&&(h=1):h=1,o.isIE){var s=Math.abs(t.clientX-a)>5||Math.abs(t.clientY-l)>5;u&&!s||(h=1),u&&clearTimeout(u),u=setTimeout((function(){u=null}),i[h-1]||600),1==h&&(a=t.clientX,l=t.clientY)}if(t._clicks=h,n[r]("mousedown",t),h>4)h=0;else if(h>1)return n[r](d[h],t)}Array.isArray(t)||(t=[t]),t.forEach((function(t){c(t,"mousedown",f,s)}))};var d=function(t){return 0|(t.ctrlKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.metaKey?8:0)};function f(t,e,i){var n=d(e);if(!o.isMac&&s){if(e.getModifierState&&(e.getModifierState("OS")||e.getModifierState("Win"))&&(n|=8),s.altGr){if(3==(3&n))return;s.altGr=0}if(18===i||17===i){var l="location"in e?e.location:e.keyLocation;17===i&&1===l?1==s[i]&&(a=e.timeStamp):18===i&&3===n&&2===l&&e.timeStamp-a<50&&(s.altGr=!0)}}if(i in r.MODIFIER_KEYS&&(i=-1),n||13!==i||3!==(l="location"in e?e.location:e.keyLocation)||(t(e,n,-i),!e.defaultPrevented)){if(o.isChromeOS&&8&n){if(t(e,n,i),e.defaultPrevented)return;n&=-9}return!!(n||i in r.FUNCTION_KEYS||i in r.PRINTABLE_KEYS)&&t(e,n,i)}}function p(){s=Object.create(null)}if(e.getModifierString=function(t){return r.KEY_MODS[d(t)]},e.addCommandKeyListener=function(t,i,n){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var r=null;c(t,"keydown",(function(t){r=t.keyCode}),n),c(t,"keypress",(function(t){return f(i,t,r)}),n)}else{var a=null;c(t,"keydown",(function(t){s[t.keyCode]=(s[t.keyCode]||0)+1;var e=f(i,t,t.keyCode);return a=t.defaultPrevented,e}),n),c(t,"keypress",(function(t){a&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)&&(e.stopEvent(t),a=null)}),n),c(t,"keyup",(function(t){s[t.keyCode]=null}),n),s||(p(),c(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var m=1;e.nextTick=function(t,i){i=i||window;var n="zero-timeout-message-"+m++,r=function(o){o.data==n&&(e.stopPropagation(o),h(i,"message",r),t())};c(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";var n=function(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,i=t.end,n=t.start;return 1==(e=this.compare(i.row,i.column))?1==(e=this.compare(n.row,n.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(n.row,n.column))?-1:1==e?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?tthis.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:ethis.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){if(this.end.row>e)var i={row:e+1,column:0};else this.end.rowe)var r={row:e+1,column:0};else this.start.row0;)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={};for(var i in t)e[i]=t[i];return e},e.copyArray=function(t){for(var e=[],i=0,n=t.length;iDate.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,u=r.isIE,c=r.isChrome>63,h=400,d=t("../lib/keys"),f=d.KEY_MODS,p=r.isIOS,m=p?/\s/:/\n/,g=r.isMobile;e.TextInput=function(t,e){var i=o.createElement("textarea");i.className="ace_text-input",i.setAttribute("wrap","off"),i.setAttribute("autocorrect","off"),i.setAttribute("autocapitalize","off"),i.setAttribute("spellcheck",!1),i.style.opacity="0",t.insertBefore(i,t.firstChild);var v=!1,_=!1,b=!1,y=!1,w="";g||(i.style.fontSize="1px");var M=!1,x=!1,S="",k=0,C=0,E=0;try{var A=document.activeElement===i}catch(t){}n.addListener(i,"blur",(function(t){x||(e.onBlur(t),A=!1)}),e),n.addListener(i,"focus",(function(t){if(!x){if(A=!0,r.isEdge)try{if(!document.hasFocus())return}catch(t){}e.onFocus(t),r.isEdge?setTimeout(O):O()}}),e),this.$focusScroll=!1,this.focus=function(){if(w||c||"browser"==this.$focusScroll)return i.focus({preventScroll:!0});var t=i.style.top;i.style.position="fixed",i.style.top="0px";try{var e=0!=i.getBoundingClientRect().top}catch(t){return}var n=[];if(e)for(var r=i.parentElement;r&&1==r.nodeType;)n.push(r),r.setAttribute("ace_nocontext",!0),r=!r.parentElement&&r.getRootNode?r.getRootNode().host:r.parentElement;i.focus({preventScroll:!0}),e&&n.forEach((function(t){t.removeAttribute("ace_nocontext")})),setTimeout((function(){i.style.position="","0px"==i.style.top&&(i.style.top=t)}),0)},this.blur=function(){i.blur()},this.isFocused=function(){return A},e.on("beforeEndOperation",(function(){var t=e.curOp,n=t&&t.command&&t.command.name;if("insertstring"!=n){var r=n&&(t.docChanged||t.selectionChanged);b&&r&&(S=i.value="",F()),O()}}));var O=p?function(t){if(A&&(!v||t)&&!y){t||(t="");var n="\n ab"+t+"cde fg\n";n!=i.value&&(i.value=S=n);var r=4+(t.length||(e.selection.isEmpty()?0:1));4==k&&C==r||i.setSelectionRange(4,r),k=4,C=r}}:function(){if(!b&&!y&&(A||T)){b=!0;var t=0,n=0,r="";if(e.session){var o=e.selection,s=o.getRange(),a=o.cursor.row;if(t=s.start.column,n=s.end.column,r=e.session.getLine(a),s.start.row!=a){var l=e.session.getLine(a-1);t=s.start.rowa+1?u.length:n,n+=r.length+1,r=r+"\n"+u}else g&&a>0&&(r="\n"+r,n+=1,t+=1);r.length>h&&(t0&&S[d]==t[d];)d++,a--;for(u=u.slice(d),d=1;l>0&&S.length-d>k-1&&S[S.length-d]==t[t.length-d];)d++,l--;c-=d-1,h-=d-1;var f=u.length-d+1;if(f<0&&(a=-f,f=0),u=u.slice(0,f),!(n||u||c||a||l||h))return"";y=!0;var p=!1;return r.isAndroid&&". "==u&&(u=" ",p=!0),u&&!a&&!l&&!c&&!h||M?e.onTextInput(u):e.onTextInput(u,{extendLeft:a,extendRight:l,restoreStart:c,restoreEnd:h}),y=!1,S=t,k=o,C=s,E=h,p?"\n":u},$=function(t){if(b)return N();if(t&&t.inputType){if("historyUndo"==t.inputType)return e.execCommand("undo");if("historyRedo"==t.inputType)return e.execCommand("redo")}var n=i.value,r=L(n,!0);(n.length>500||m.test(r)||g&&k<1&&k==C)&&O()},P=function(t,e,i){var n=t.clipboardData||window.clipboardData;if(n&&!l){var r=u||i?"Text":"text/plain";try{return e?!1!==n.setData(r,e):n.getData(r)}catch(t){if(!i)return P(t,e,!0)}}},I=function(t,r){var o=e.getCopyText();if(!o)return n.preventDefault(t);P(t,o)?(p&&(O(o),v=o,setTimeout((function(){v=!1}),10)),r?e.onCut():e.onCopy(),n.preventDefault(t)):(v=!0,i.value=o,i.select(),setTimeout((function(){v=!1,O(),r?e.onCut():e.onCopy()})))},D=function(t){I(t,!0)},B=function(t){I(t,!1)},j=function(t){var o=P(t);a.pasteCancelled()||("string"==typeof o?(o&&e.onPaste(o,t),r.isIE&&setTimeout(O),n.preventDefault(t)):(i.value="",_=!0))};n.addCommandKeyListener(i,e.onCommandKey.bind(e),e),n.addListener(i,"select",(function(t){b||(v?v=!1:function(t){return 0===t.selectionStart&&t.selectionEnd>=S.length&&t.value===S&&S&&t.selectionEnd!==C}(i)?(e.selectAll(),O()):g&&i.selectionStart!=k&&O())}),e),n.addListener(i,"input",$,e),n.addListener(i,"cut",D,e),n.addListener(i,"copy",B,e),n.addListener(i,"paste",j,e),"oncut"in i&&"oncopy"in i&&"onpaste"in i||n.addListener(t,"keydown",(function(t){if((!r.isMac||t.metaKey)&&t.ctrlKey)switch(t.keyCode){case 67:B(t);break;case 86:j(t);break;case 88:D(t)}}),e);var N=function(){if(b&&e.onCompositionUpdate&&!e.$readOnly){if(M)return q();if(b.useTextareaForIME)e.onCompositionUpdate(i.value);else{var t=i.value;L(t),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+C-b.selectionStart+E)}}},F=function(t){e.onCompositionEnd&&!e.$readOnly&&(b=!1,e.onCompositionEnd(),e.off("mousedown",q),t&&$())};function q(){x=!0,i.blur(),i.focus(),x=!1}var W,z=s.delayedCall(N,50).schedule.bind(null,null);function U(){clearTimeout(W),W=setTimeout((function(){w&&(i.style.cssText=w,w=""),e.renderer.$isMousePressed=!1,e.renderer.$keepTextAreaAtCursor&&e.renderer.$moveTextAreaToCursor()}),0)}n.addListener(i,"compositionstart",(function(t){if(!b&&e.onCompositionStart&&!e.$readOnly&&(b={},!M)){t.data&&(b.useTextareaForIME=!1),setTimeout(N,0),e._signal("compositionStart"),e.on("mousedown",q);var n=e.getSelectionRange();n.end.row=n.start.row,n.end.column=n.start.column,b.markerRange=n,b.selectionStart=k,e.onCompositionStart(b),b.useTextareaForIME?(S=i.value="",k=0,C=0):(i.msGetInputContext&&(b.context=i.msGetInputContext()),i.getInputContext&&(b.context=i.getInputContext()))}}),e),n.addListener(i,"compositionupdate",N,e),n.addListener(i,"keyup",(function(t){27==t.keyCode&&i.value.lengthC&&"\n"==S[o]?s=d.end:nC&&S.slice(0,o).split("\n").length>2?s=d.down:o>C&&" "==S[o-1]?(s=d.right,a=f.option):(o>C||o==C&&C!=k&&n==o)&&(s=d.right),n!==o&&(a|=f.shift),s){if(!e.onCommandKey({},a,s)&&e.commands){s=d.keyCodeToString(s);var l=e.commands.findKeyCommand(a,s);l&&e.execCommand(l)}k=n,C=o,O("")}}};document.addEventListener("selectionchange",o),e.on("destroy",(function(){document.removeEventListener("selectionchange",o)}))}(0,e,i)},e.$setUserAgentForTests=function(t,e){g=t,p=e}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(t,e,i){"use strict";var n=t("../lib/useragent");function r(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 o(t,e){if(t.start.row==t.end.row)var i=2*e.column-t.start.column-t.end.column;else if(t.start.row!=t.end.row-1||t.start.column||t.end.column)i=2*e.row-t.start.row-t.end.row;else i=e.column-4;return i<0?{cursor:t.start,anchor:t.end}:{cursor:t.end,anchor:t.start}}(function(){this.onMouseDown=function(t){var e=t.inSelection(),i=t.getDocumentPosition();this.mousedownEvent=t;var r=this.editor,o=t.getButton();return 0!==o?((r.getSelectionRange().isEmpty()||1==o)&&r.selection.moveToPosition(i),void(2==o&&(r.textInput.onContextMenu(t.domEvent),n.isMozilla||t.preventDefault()))):(this.mousedownEvent.time=Date.now(),!e||r.isFocused()||(r.focus(),!this.$focusTimeout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(t),this.startSelect(i,t.domEvent._clicks>1),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=this.editor,i=e.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)t=this.$clickSelection.end;else if(1==n)t=this.$clickSelection.start;else{var r=o(this.$clickSelection,i);i=r.cursor,t=r.anchor}e.selection.setSelectionAnchor(t.row,t.column)}e.selection.selectToPosition(i),e.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(t){var e,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),r=i.selection[t](n.row,n.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==s&&a<=0)e=this.$clickSelection.end,r.end.row==n.row&&r.end.column==n.column||(n=r.start);else if(1==a&&s>=0)e=this.$clickSelection.start,r.start.row==n.row&&r.start.column==n.column||(n=r.end);else if(-1==s&&1==a)n=r.end,e=r.start;else{var l=o(this.$clickSelection,n);n=l.cursor,e=l.anchor}i.selection.setSelectionAnchor(e.row,e.column)}i.selection.selectToPosition(n),i.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();(r>0||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 a>=1&&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(r.prototype),e.DefaultHandlers=r})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(t,e,i){"use strict";t("./lib/oop");var n=t("./lib/dom");function r(t){this.isOpen=!1,this.$element=null,this.$parentNode=t}(function(){this.$init=function(){return this.$element=n.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){n.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(r.prototype),e.Tooltip=r})),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";var n=t("../lib/dom"),r=t("../lib/oop"),o=t("../lib/event"),s=t("../tooltip").Tooltip;function a(t){s.call(this,t)}r.inherits(a,s),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();(t+=15)+r>i&&(t-=t+r-i),(e+=15)+o>n&&(e-=20+o),s.prototype.setPosition.call(this,t,e)}}.call(a.prototype),e.GutterHandler=function(t){var e,i,r,s=t.editor,l=s.renderer.$gutterLayer,u=new a(s.container);function c(){e&&(e=clearTimeout(e)),r&&(u.hide(),r=null,s._signal("hideGutterTooltip",u),s.off("mousewheel",c))}function h(t){u.setPosition(t.x,t.y)}t.editor.setDefaultHandler("guttermousedown",(function(e){if(s.isFocused()&&0==e.getButton()&&"foldWidgets"!=l.getRegion(e)){var i=e.getDocumentPosition().row,n=s.session.selection;if(e.getShiftKey())n.selectTo(i,0);else{if(2==e.domEvent.detail)return s.selectAll(),e.preventDefault();t.$clickSelection=s.selection.getLineRange(i)}return t.setState("selectByLines"),t.captureMouse(e),e.preventDefault()}})),t.editor.setDefaultHandler("guttermousemove",(function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(n.hasCssClass(a,"ace_fold-widget"))return c();r&&t.$tooltipFollowsMouse&&h(o),i=o,e||(e=setTimeout((function(){e=null,i&&!t.isMousePressed?function(){var e=i.getDocumentPosition().row,n=l.$annotations[e];if(!n)return c();if(e==s.session.getLength()){var o=s.renderer.pixelToScreenCoordinates(0,i.y).row,a=i.$pos;if(o>s.session.documentToScreenRow(a.row,a.column))return c()}if(r!=n)if(r=n.text.join("
"),u.setHtml(r),u.show(),s._signal("showGutterTooltip",u),s.on("mousewheel",c),t.$tooltipFollowsMouse)h(i);else{var d=i.domEvent.target.getBoundingClientRect(),f=u.getElement().style;f.left=d.right+"px",f.top=d.bottom+"px"}}():c()}),50))})),o.addListener(s.renderer.$gutter,"mouseout",(function(t){i=null,r&&!e&&(e=setTimeout((function(){e=null,c()}),50))}),s),s.on("changeSession",c)}})),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=this.editor.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var e=this.getDocumentPosition();this.$inSelection=t.contains(e.row,e.column)}return 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";var n=t("../lib/dom"),r=t("../lib/event"),o=t("../lib/useragent");function s(t){var e=t.editor,i=n.createElement("img");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(i.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),e.on("mousedown",this.onMouseDown.bind(t));var s,l,u,c,h,d,f,p,m,g,v,_=e.container,b=0;function y(){var t=d;(function(t,i){var n=Date.now(),r=!i||t.row!=i.row,o=!i||t.column!=i.column;!g||r||o?(e.moveCursorToPosition(t),g=n,v={x:l,y:u}):a(v.x,v.y,l,u)>5?g=null:n-g>=200&&(e.renderer.scrollCursorIntoView(),g=null)})(d=e.renderer.screenToTextCoordinates(l,u),t),function(t,i){var n=Date.now(),r=e.renderer.layerConfig.lineHeight,o=e.renderer.layerConfig.characterWidth,s=e.renderer.scroller.getBoundingClientRect(),a={x:{left:l-s.left,right:s.right-l},y:{top:u-s.top,bottom:s.bottom-u}},c=Math.min(a.x.left,a.x.right),h=Math.min(a.y.top,a.y.bottom),d={row:t.row,column:t.column};c/o<=2&&(d.column+=a.x.left=200&&e.renderer.scrollCursorIntoView(d):m=n:m=null}(d,t)}function w(){h=e.selection.toOrientedRange(),s=e.session.addMarker(h,"ace_selection",e.getSelectionStyle()),e.clearSelection(),e.isFocused()&&e.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),y(),c=setInterval(y,20),b=0,r.addListener(document,"mousemove",S)}function M(){clearInterval(c),e.session.removeMarker(s),s=null,e.selection.fromOrientedRange(h),e.isFocused()&&!p&&e.$resetCursorStyle(),h=null,d=null,b=0,m=null,g=null,r.removeListener(document,"mousemove",S)}this.onDragStart=function(t){if(this.cancelDrag||!_.draggable){var n=this;return setTimeout((function(){n.startSelect(),n.captureMouse(t)}),0),t.preventDefault()}h=e.getSelectionRange();var r=t.dataTransfer;r.effectAllowed=e.getReadOnly()?"copy":"copyMove",o.isOpera&&(e.container.appendChild(i),i.scrollTop=0),r.setDragImage&&r.setDragImage(i,0,0),o.isOpera&&e.container.removeChild(i),r.clearData(),r.setData("Text",e.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(t){if(_.draggable=!1,p=!1,this.setState(null),!e.getReadOnly()){var i=t.dataTransfer.dropEffect;f||"move"!=i||e.session.remove(e.getSelectionRange()),e.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(t){if(!e.getReadOnly()&&k(t.dataTransfer))return l=t.clientX,u=t.clientY,s||w(),b++,t.dataTransfer.dropEffect=f=C(t),r.preventDefault(t)},this.onDragOver=function(t){if(!e.getReadOnly()&&k(t.dataTransfer))return l=t.clientX,u=t.clientY,s||(w(),b++),null!==x&&(x=null),t.dataTransfer.dropEffect=f=C(t),r.preventDefault(t)},this.onDragLeave=function(t){if(--b<=0&&s)return M(),f=null,r.preventDefault(t)},this.onDrop=function(t){if(d){var i=t.dataTransfer;if(p)switch(f){case"move":h=h.contains(d.row,d.column)?{start:d,end:d}:e.moveText(h,d);break;case"copy":h=e.moveText(h,d,!0)}else{var n=i.getData("Text");h={start:d,end:e.session.insert(d,n)},e.focus(),f=null}return M(),r.preventDefault(t)}},r.addListener(_,"dragstart",this.onDragStart.bind(t),e),r.addListener(_,"dragend",this.onDragEnd.bind(t),e),r.addListener(_,"dragenter",this.onDragEnter.bind(t),e),r.addListener(_,"dragover",this.onDragOver.bind(t),e),r.addListener(_,"dragleave",this.onDragLeave.bind(t),e),r.addListener(_,"drop",this.onDrop.bind(t),e);var x=null;function S(){null==x&&(x=setTimeout((function(){null!=x&&s&&M()}),20))}function k(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=o.isMac?t.altKey:t.ctrlKey,n="uninitialized";try{n=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var r="none";return i&&e.indexOf(n)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(n)>=0?r="move":e.indexOf(n)>=0&&(r="copy"),r}}function a(t,e,i,n){return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2))}(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=o.isWin?"default":"move";t.renderer.setCursorStyle(e),this.setState("dragReady")},this.onMouseDrag=function(t){var e=this.editor.container;o.isIE&&"dragReady"==this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&e.dragDrop(),"dragWait"===this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(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()?(o.isWebKit&&(this.cancelDrag=!0,e.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(s.prototype),e.DragdropHandler=s})),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){var i,s,a,l,u,c,h,d,f,p="scroll",m=0,g=0,v=0,_=0;function b(){var t=window.navigator&&window.navigator.clipboard,i=!1,n=function(n){var r,s,a=n.target.getAttribute("action");if("more"==a||!i)return i=!i,r=e.getCopyText(),s=e.session.getUndoManager().hasUndo(),void f.replaceChild(o.buildDom(i?["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"],t&&["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"]),f.firstChild);"paste"==a?t.readText().then((function(t){e.execCommand(a,t)})):a&&("cut"!=a&&"copy"!=a||(t?t.writeText(e.getCopyText()):document.execCommand("copy")),e.execCommand(a)),f.firstChild.style.display="none",i=!1,"openCommandPallete"!=a&&e.focus()};f=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(t){p="menu",t.stopPropagation(),t.preventDefault(),e.textInput.focus()},ontouchend:function(t){t.stopPropagation(),t.preventDefault(),n(t)},onclick:n},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],e.container)}function y(){f||b();var t=e.selection.cursor,i=e.renderer.textToScreenCoordinates(t.row,t.column),n=e.renderer.textToScreenCoordinates(0,0).pageX,r=e.renderer.scrollLeft,o=e.container.getBoundingClientRect();f.style.top=i.pageY-o.top-3+"px",i.pageX-o.left1)return clearTimeout(u),u=null,a=-1,void(p="zoom");d=e.$mouseHandler.isMousePressed=!0;var o=e.renderer.layerConfig.lineHeight,c=e.renderer.layerConfig.lineHeight,f=t.timeStamp;l=f;var b=r[0],y=b.clientX,w=b.clientY;Math.abs(i-y)+Math.abs(s-w)>o&&(a=-1),i=t.clientX=y,s=t.clientY=w,v=_=0;var x=new n(t,e);if(h=x.getDocumentPosition(),f-a<500&&1==r.length&&!m)g++,t.preventDefault(),t.button=0,function(){u=null,clearTimeout(u),e.selection.moveToPosition(h);var t=g>=2?e.selection.getLineRange(h.row):e.session.getBracketRange(h);t&&!t.isEmpty()?e.selection.setRange(t):e.selection.selectWord(),p="wait"}();else{g=0;var S=e.selection.cursor,k=e.selection.isEmpty()?S:e.selection.anchor,C=e.renderer.$cursorLayer.getPixelPosition(S,!0),E=e.renderer.$cursorLayer.getPixelPosition(k,!0),A=e.renderer.scroller.getBoundingClientRect(),O=e.renderer.layerConfig.offset,R=e.renderer.scrollLeft,T=function(t,e){return(t/=c)*t+(e=e/o-.75)*e};if(t.clientX$?"cursor":"anchor"),p=$<3.5?"anchor":L<3.5?"cursor":"scroll",u=setTimeout(M,450)}a=f}),e),r.addListener(t,"touchend",(function(t){d=e.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==p?(p="",m=0):u?(e.selection.moveToPosition(h),m=0,y()):"scroll"==p?(m+=60,c=setInterval((function(){m--<=0&&(clearInterval(c),c=null),Math.abs(v)<.01&&(v=0),Math.abs(_)<.01&&(_=0),m<20&&(v*=.9),m<20&&(_*=.9);var t=e.session.getScrollTop();e.renderer.scrollBy(10*v,10*_),t==e.session.getScrollTop()&&(m=0)}),10),w()):y(),clearTimeout(u),u=null}),e),r.addListener(t,"touchmove",(function(t){u&&(clearTimeout(u),u=null);var r=t.touches;if(!(r.length>1||"zoom"==p)){var o=r[0],a=i-o.clientX,c=s-o.clientY;if("wait"==p){if(!(a*a+c*c>4))return t.preventDefault();p="cursor"}i=o.clientX,s=o.clientY,t.clientX=o.clientX,t.clientY=o.clientY;var h=t.timeStamp,d=h-l;if(l=h,"scroll"==p){var f=new n(t,e);f.speed=1,f.wheelX=a,f.wheelY=c,10*Math.abs(a)1&&(r=i[i.length-2]);var s=l[e+"Path"];return null==s?s=l.basePath:"/"==n&&(e=n=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+e+n+r+this.get("suffix")},e.setModuleUrl=function(t,e){return l.$moduleUrls[t]=e},e.$loading={},e.loadModule=function(i,n){var r,s;Array.isArray(i)&&(s=i[0],i=i[1]);try{r=t(i)}catch(t){}if(r&&!e.$loading[i])return n&&n(r);if(e.$loading[i]||(e.$loading[i]=[]),e.$loading[i].push(n),!(e.$loading[i].length>1)){var a=function(){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)}))}))};if(!e.get("packaged"))return a();o.loadScript(e.moduleUrl(i,s),a),u()}};var u=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$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"),u=function(){})};function c(r){if(a&&a.document){l.packaged=r||t.packaged||n.packaged||a.define&&i.amdD.packaged;for(var o,s={},u="",c=document.currentScript||document._currentScript,h=(c&&c.ownerDocument||document).getElementsByTagName("script"),d=0;d=t){for(o=h+1;o=t;)o++;for(a=h,l=o-1;a=e.length||2!=(l=i[r-1])&&3!=l||2!=(u=e[r+1])&&3!=u?4:(o&&(u=3),u==l?u:4);case 10:return 2==(l=r>0?i[r-1]:5)&&r+10&&2==i[r-1])return 2;if(o)return 4;for(f=r+1,d=e.length;f=1425&&m<=2303||64286==m;if(l=e[f],g&&(1==l||7==l))return 1}return r<1||5==(l=e[r-1])?4:i[r-1];case 5:return o=!1,s=!0,n;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case h:return 4}}function g(t){var e=t.charCodeAt(0),i=e>>8;return 0==i?e>191?0:d[e]:5==i?/[\u0591-\u05f4]/.test(t)?1:0:6==i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(t)?12:/[\u0660-\u0669\u066b-\u066c]/.test(t)?3:1642==e?c:/[\u06f0-\u06f9]/.test(t)?2:7:32==i&&e<=8287?f[255&e]:254==i&&e>=65136?7:4}e.L=0,e.R=1,e.EN=2,e.ON_R=3,e.AN=4,e.R_H=5,e.B=6,e.RLE=7,e.DOT="·",e.doBidiReorder=function(t,i,c){if(t.length<2)return{};var d=t.split(""),f=new Array(d.length),v=new Array(d.length),_=[];n=c?1:0,function(t,e,i,c){var h=n?u:l,d=null,f=null,p=null,v=0,_=null,b=-1,y=null,w=null,M=[];if(!c)for(y=0,c=[];y0)if(16==_){for(y=b;y-1){for(y=b;y=0&&8==c[x];x--)e[x]=n}}(d,_,d.length,i);for(var b=0;b7&&i[b]<13||4===i[b]||i[b]===h)?_[b]=e.ON_R:b>0&&"ل"===d[b-1]&&/\u0622|\u0623|\u0625|\u0627/.test(d[b])&&(_[b-1]=_[b]=e.R_H,b++);for(d[d.length-1]===e.DOT&&(_[d.length-1]=e.B),"‫"===d[0]&&(_[0]=e.RLE),b=0;b=0&&(t=this.session.$docRowCache[i])}return t},this.getSplitIndex=function(){var t=0,e=this.session.$screenRowCache;if(e.length)for(var i,n=this.session.$getRowCacheIndex(e,this.currentRow);this.currentRow-t>0&&(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=t===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(t),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[t];o&&(void 0===e&&(e=this.getSplitIndex()),e>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[n.L],this.line=ee?this.session.getOverwrite()?t:t-1:e,r=n.getVisualFromLogicalIdx(i,this.bidiMap),o=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&t<=e&&o[r]%2!=0&&r++;for(var a=0;ae&&o[r]%2==0&&(s+=this.charWidths[o[r]]),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,u=!1,c=!1,h=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,f=0;f=a&&di+o/2;){if(i+=o,n===r.length-1){o=0;break}o=this.charWidths[r[++n]]}return n>0&&r[n-1]%2!=0&&r[n]%2==0?(t0&&r[n-1]%2==0&&r[n]%2!=0?e=1+(t>i?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?e=1+this.bidiMap.logicalFromVisual[n]:(n>0&&r[n-1]%2!=0&&0!==o&&n--,e=this.bidiMap.logicalFromVisual[n]),0===e&&this.isRtlDir&&e++,e+this.wrapIndent}}).call(s.prototype),e.BidiHandler=s})),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";var n=t("./lib/oop"),r=t("./lib/lang"),o=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,a=function(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")}))};(function(){n.implement(this,o),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?s.fromPoints(e,e):this.isBackwards()?s.fromPoints(e,t):s.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){if(!this.$silent){var 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=!s.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){if(void 0===e){var i=t||this.lead;t=i.row,e=i.column}return 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,n="number"==typeof t?t:this.lead.row,r=this.session.getFoldLine(n);return r?(n=r.start.row,i=r.end.row):i=n,!0===e?new s(n,0,i,this.session.getLine(i).length):new s(n,0,i+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=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,-1))this.moveCursorTo(t.start.row,t.start.column);else if(0===e.column)e.row>0&&this.moveCursorTo(e.row-1,this.doc.getLine(e.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(e,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t,e=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,1))this.moveCursorTo(t.end.row,t.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(e.column=n)}}this.moveCursorTo(e.row,e.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(t0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(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(i>2){i--;break}for(;(e=t[i])&&n.test(e);)i++;if(i>2)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){var o=this.doc.getLength();do{t++,n=this.doc.getLine(t)}while(t0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var o=r.stringReverse(n),s=this.$shortWordEndIndex(o);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=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===e&&(0!==t&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=t&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var r=this.session.lineWidgets[this.lead.row];t<0?t-=r.rowsAbove||0:t>0&&(t+=r.rowCount-(r.rowsAbove||0))}var o=this.session.screenToDocumentPosition(n.row+t,n.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-=1: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 s.fromPoints(e,i)}catch(t){return s.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map((function(t){var e=t.clone();return e.isBackwards=t.cursor==t.start,e}));else(t=this.getRange()).isBackwards=this.isBackwards();return t},this.fromJSON=function(t){if(null==t.start){if(this.rangeList&&t.length>1){this.toSingleRange(t[0]);for(var e=t.length;e--;){var i=s.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(a.prototype),e.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(t,e,i){"use strict";var n=t("./config"),r=2e3,o=function(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;l1?this.$applyToken:u.token),h>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,(function(t,e){return"\\"+(parseInt(e,10)+r+1)})):(h=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||a.push(u)),o[r]=l,r+=h,n.push(c),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)}};(function(){this.$setMaxTokenCount=function(t){r=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;rc){var v=t.substring(c,g-m.length);d.type==f?d.value+=v:(d.type&&u.push(d),d={type:f,value:v})}for(var _=0;_r){for(h>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:e,line:t});c1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:u,state:i.length?i:n}},this.reportError=n.reportError}).call(o.prototype),e.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(t,e,i){"use strict";var n=t("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(t,e){if(e)for(var i in t){for(var n=t[i],r=0;r=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;e>0;)i+=t[e-=1].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 n(this.$row,e,this.$row,e+t.value.length)}}).call(r.prototype),e.TokenIterator=r})),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";var n,r=t("../../lib/oop"),o=t("../behaviour").Behaviour,s=t("../../token_iterator").TokenIterator,a=t("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],u=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},h={'"':'"',"'":"'"},d=function(t){var e=-1;if(t.multiSelect&&(e=t.selection.index,c.rangeCount!=t.multiSelect.rangeCount&&(c={rangeCount:t.multiSelect.rangeCount})),c[e])return n=c[e];n=c[e]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(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)]}},p=function(t){this.add("braces","insertion",(function(e,i,r,o,s){var l=r.getCursorPosition(),u=o.doc.getLine(l.row);if("{"==s){d(r);var c=r.getSelectionRange(),h=o.doc.getTextRange(c);if(""!==h&&"{"!==h&&r.getWrapBehavioursEnabled())return f(c,h,"{","}");if(p.isSaneInsertion(r,o))return/[\]\}\)]/.test(u[l.column])||r.inMultiSelectMode||t&&t.braces?(p.recordAutoInsert(r,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(r,o,"{"),{text:"{",selection:[1,1]})}else if("}"==s){if(d(r),"}"==u.substring(l.column,l.column+1)&&null!==o.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,u,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==s||"\r\n"==s){d(r);var m="";if(p.isMaybeInsertedClosing(l,u)&&(m=a.stringRepeat("}",n.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var g=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var v=this.$getIndent(o.getLine(g.row))}else{if(!m)return void p.clearMaybeInsertedClosing();v=this.$getIndent(u)}var _=v+o.getTabString();return{text:"\n"+_+"\n"+v+m,selection:[1,_.length,1,_.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(t,e,i,r,o){var s=r.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==s){if(d(i),"}"==r.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;n.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,e,i,n,r){if("("==r){d(i);var o=i.getSelectionRange(),s=n.doc.getTextRange(o);if(""!==s&&i.getWrapBehavioursEnabled())return f(o,s,"(",")");if(p.isSaneInsertion(i,n))return p.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}}else if(")"==r){d(i);var a=i.getCursorPosition(),l=n.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1)&&null!==n.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&p.isAutoInsertedClosing(a,l,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(t,e,i,n,r){var o=n.doc.getTextRange(r);if(!r.isMultiLine()&&"("==o&&(d(i),")"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(t,e,i,n,r){if("["==r){d(i);var o=i.getSelectionRange(),s=n.doc.getTextRange(o);if(""!==s&&i.getWrapBehavioursEnabled())return f(o,s,"[","]");if(p.isSaneInsertion(i,n))return p.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){d(i);var a=i.getCursorPosition(),l=n.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1)&&null!==n.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&p.isAutoInsertedClosing(a,l,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(t,e,i,n,r){var o=n.doc.getTextRange(r);if(!r.isMultiLine()&&"["==o&&(d(i),"]"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("string_dquotes","insertion",(function(t,e,i,n,r){var o=n.$mode.$quotes||h;if(1==r.length&&o[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;d(i);var s=r,a=i.getSelectionRange(),l=n.doc.getTextRange(a);if(!(""===l||1==l.length&&o[l])&&i.getWrapBehavioursEnabled())return f(a,l,s,s);if(!l){var u=i.getCursorPosition(),c=n.doc.getLine(u.row),p=c.substring(u.column-1,u.column),m=c.substring(u.column,u.column+1),g=n.getTokenAt(u.row,u.column),v=n.getTokenAt(u.row,u.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var _,b=g&&/string|escape/.test(g.type),y=!v||/string|escape/.test(v.type);if(m==s)(_=b!==y)&&/string\.end/.test(v.type)&&(_=!1);else{if(b&&!y)return null;if(b&&y)return null;var w=n.$mode.tokenRe;w.lastIndex=0;var M=w.test(p);w.lastIndex=0;var x=w.test(p);if(M||x)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var S=c[u.column-2];if(p==s&&(S==s||w.test(S)))return null;_=!0}return{text:_?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(t,e,i,n,r){var o=n.$mode.$quotes||h,s=n.doc.getTextRange(r);if(!r.isMultiLine()&&o.hasOwnProperty(s)&&(d(i),n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==s))return r.end.column++,r}))};p.isSaneInsertion=function(t,e){var i=t.getCursorPosition(),n=new s(e,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",l)){if(/[)}\]]/.test(t.session.getLine(i.row)[i.column]))return!0;var r=new s(e,i.row,i.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",l))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",u)},p.$matchTokenType=function(t,e){return e.indexOf(t.type||t)>-1},p.recordAutoInsert=function(t,e,i){var r=t.getCursorPosition(),o=e.doc.getLine(r.row);this.isAutoInsertedClosing(r,o,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=r.row,n.autoInsertedLineEnd=i+o.substr(r.column),n.autoInsertedBrackets++},p.recordMaybeInsert=function(t,e,i){var r=t.getCursorPosition(),o=e.doc.getLine(r.row);this.isMaybeInsertedClosing(r,o)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=r.row,n.maybeInsertedLineStart=o.substr(0,r.column)+i,n.maybeInsertedLineEnd=o.substr(r.column),n.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(t,e,i){return n.autoInsertedBrackets>0&&t.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd[0]&&e.substr(t.column)===n.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(t,e){return n.maybeInsertedBrackets>0&&t.row===n.maybeInsertedRow&&e.substr(t.column)===n.maybeInsertedLineEnd&&e.substr(0,t.column)==n.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},r.inherits(p,o),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;s2?n%u!=u-1:n%u==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(f)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(t,e){b(t,e)||o&&!/\S/.test(t)||(r.insertInLine({row:e,column:t.length},p),r.insertInLine({row:e,column:a},f))},_=function(t,e){var i;(i=t.match(g))&&r.removeInLine(e,t.length-i[0].length,t.length),(i=t.match(m))&&r.removeInLine(e,i[1].length,i[0].length)},b=function(t,i){if(m.test(t))return!0;for(var n=e.getTokens(i),r=0;rt.length&&(w=t.length)})),a==1/0&&(a=w,o=!1,s=!1),c&&a%u!=0&&(a=Math.floor(a/u)*u),y(s?_:v)},this.toggleBlockComment=function(t,e,i,n){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o,s,a=(m=new u(e,n.row,n.column)).getCurrentToken(),l=(e.selection,e.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var h,d;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(r.start))){var f=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;h=new c(f,p,f,p+r.start.length);break}a=m.stepBackward()}var m;for(a=(m=new u(e,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){var g;if(-1!=(g=a.value.indexOf(r.end))){f=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g,d=new c(f,p,f,p+r.end.length);break}a=m.stepForward()}d&&e.remove(d),h&&(e.remove(h),o=h.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)if(t[e]){var i=t[e],r=i.prototype.$id,o=n.$modes[r];o||(n.$modes[r]=o=new i),n.$modes[e]||(n.$modes[e]=o),this.$embeds.push(e),this.$modes[e]=o}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(e=0;ethis.row)){var 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;if(n=i?{row:t,column:e}:this.$clipPositionToDocument(t,e),this.row!=n.row||this.column!=n.column){var r={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:r,value:n})}},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";var n=t("./lib/oop"),r=t("./apply_delta").applyDelta,o=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,a=t("./anchor").Anchor,l=function(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)};(function(){n.implement(this,o),this.setValue=function(t){var e=this.getLength()-1;this.remove(new s(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 a(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;if(t.start.row===t.end.row)e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column);var i=e.length-1;t.end.row-t.start.row==i&&(e[i]=e[i].substring(0,t.end.column))}return 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:t>=i&&(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;(t=Math.min(Math.max(t,0),this.getLength()))0,n=e=0&&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 s||(t=s.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=0;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var i="insert"==t.action;(i?t.lines.length<=1&&!t.lines[0]:!s.comparePoints(t.start,t.end))||(i&&t.lines.length>2e4?this.$splitAndapplyLargeDelta(t,2e4):(r(this.$lines,t,e),this._signal("change",t)))},this.$safeApplyDelta=function(t){var e=this.$lines.length;("remove"==t.action&&t.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=e,-1==n&&(n=e),o<=n&&i.fireUpdateEvent(o,n)}}};(function(){n.implement(this,r),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=t.start.row,i=t.end.row-e;if(0===i)this.lines[e]=null;else if("remove"==t.action)this.lines.splice(e,i+1,null),this.states.splice(e,i+1,null);else{var n=Array(i+1);n.unshift(e,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(e,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(o.prototype),e.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,i){"use strict";var n=t("./lib/lang"),r=(t("./lib/oop"),t("./range").Range),o=function(t,e,i){this.setRegexp(t),this.clazz=e,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(t){this.regExp+""!=t+""&&(this.regExp=t,this.cache=[])},this.update=function(t,e,i,o){if(this.regExp)for(var s=o.firstRow,a=o.lastRow,l=s;l<=a;l++){var u=this.cache[l];null==u&&((u=n.getMatchOffsets(i.getLine(l),this.regExp)).length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map((function(t){return new r(l,t.offset,l,t.offset+t.length)})),this.cache[l]=u.length?u:"");for(var c=u.length;c--;)e.drawSingleLineMarker(t,u[c].toScreenRange(i),this.clazz,o)}}}).call(o.prototype),e.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=t("../range").Range;function r(t,e){this.foldData=t,Array.isArray(e)?this.folds=e:e=this.folds=[e];var i=e[e.length-1];this.range=new n(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)}(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.rowthis.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)})),this.range.compareEnd(t.start.row,t.start.column)>0?(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;l0)){var l=n(t,s.start);return 0===a?e&&0!==l?-o-2:o:l>0||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(e>=0)return this.ranges.splice(e,1)},this.merge=function(){for(var t,e=[],i=this.ranges,r=(i=i.sort((function(t,e){return n(t.start,e.start)})))[0],o=1;o=0},this.containsPoint=function(t){return this.pointIndex(t)>=0},this.rangeAtPoint=function(t){var e=this.pointIndex(t);if(e>=0)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=n)break;if("insert"==t.action)for(var l=r-n,u=-e.column+i.column;sn)break;if(c.start.row==n&&c.start.column>=e.column&&(c.start.column==e.column&&this.$bias<=0||(c.start.column+=u,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&&u>0&&sc.start.column&&c.end.column==o[s+1].start.column&&(c.end.column-=u),c.end.column+=u,c.end.row+=l}}else for(l=n-r,u=e.column-i.column;sr)break;c.end.rowe.column)&&(c.end.column=e.column,c.end.row=e.row):(c.end.column+=u,c.end.row+=l):c.end.row>r&&(c.end.row+=l),c.start.rowe.column)&&(c.start.column=e.column,c.start.row=e.row):(c.start.column+=u,c.start.row+=l):c.start.row>r&&(c.start.row+=l)}if(0!=l&&s=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=t)return r}return null},this.getFoldedRowCount=function(t,e){for(var i=this.$foldData,n=e-t+1,r=0;r=e){a=t?n-=e-a:n=0);break}s>=t&&(n-=a>=t?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,u=i.end.row,c=i.end.column,h=this.getFoldAt(a,l,1),d=this.getFoldAt(u,c,-1);if(h&&d==h)return h.addSubFold(i);h&&!h.range.isStart(a,l)&&this.removeFold(h),d&&!d.range.isEnd(u,c)&&this.removeFold(d);var f=this.getFoldsInRange(i.range);f.length>0&&(this.removeFolds(f),i.collapseChildren||f.forEach((function(t){i.addSubFold(t)})));for(var p=0;p0&&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(!(ec)break}while(o&&l.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return u.end.row=r.getCurrentTokenRow(),u.end.column=r.getCurrentTokenColumn()+o.value.length-2,u}},this.foldAll=function(t,e,i,n){null==i&&(i=1e5);var r=this.foldWidgets;if(r){e=e||this.getLength();for(var o=t=t||0;o=t&&(o=s.end.row,s.collapseChildren=i,this.addFold("...",s))}}},this.foldToLevel=function(t){for(this.foldAll();t-- >0;)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=0;){var o=i[r];if(null==o&&(o=i[r]=this.getFoldWidget(r)),"start"==o){var s=this.getFoldWidgetRange(r);if(n||(n=s),s&&s.end.row>=t)break}r--}return{range:-1!==r&&s,firstRange:n}},this.onFoldWidgetClick=function(t,e){var i={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};if(!this.$toggleFoldWidget(t,i)){var n=e.target||e.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.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=this.getFoldWidgetRange(t,!0);if(s&&!s.isMultiLine()&&(o=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(o.range))return this.removeFold(o),o;if(e.siblings){var a=this.getParentFoldRangeData(t);if(a.range)var l=a.range.start.row+1,u=a.range.end.row;this.foldAll(l,u,e.all?1e4:0)}else e.children?(u=s?s.end.row:this.getLength(),this.foldAll(t+1,u,e.all?1e4:0)):s&&(e.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(t){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var i=this.$toggleFoldWidget(e,{});if(!i){var n=this.getParentFoldRangeData(e,!0);if(i=n.range||n.firstRange){e=i.start.row;var r=this.getFoldAt(e,this.getLine(e).length,1);r?this.removeFold(r):this.addFold("...",i)}}},this.updateFoldWidgets=function(t){var e=t.start.row,i=t.end.row-e;if(0===i)this.foldWidgets[e]=null;else if("remove"==t.action)this.foldWidgets.splice(e,i+1,null);else{var n=Array(i+1);n.unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},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=this.getLine(t.row),n=!0,o=i.charAt(t.column-1),s=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(s||(o=i.charAt(t.column),t={row:t.row,column:t.column+1},s=o&&o.match(/([\(\[\{])|([\)\]\}])/),n=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],t)))return null;e=r.fromPoints(t,a),n||(e.end.column++,e.start.column--),e.cursor=e.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],t)))return null;e=r.fromPoints(a,t),n||(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()),a){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,u=a.value;;){for(;l>=0;){var c=u.charAt(l);if(c==r){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else c==t&&(o+=1);l-=1}do{a=s.stepBackward()}while(a&&!i.test(a.type));if(null==a)break;l=(u=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()),a){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 u=a.value,c=u.length;li&&(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(e>o)i=r+1;else{if(!(e=e);o++);return(i=n[o])?(i.index=o,i.start=r-i.value.length,i):null},this.setUndoManager=function(t){if(this.$undoManager=t,this.$informUndoManager&&this.$informUndoManager.cancel(),t){var e=this;t.addSession(this),this.$syncInformUndoManager=function(){e.$informUndoManager.cancel(),e.mergeUndoDeltas=!1},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}else 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;e0&&(n=!!i.charAt(e-1).match(this.tokenRe)),n||(n=!!i.charAt(e).match(this.tokenRe)),n)var r=this.tokenRe;else r=/^\s+$/.test(i.slice(e-1,e+1))?/\s/:this.nonTokenRe;var o=e;if(o>0){do{o--}while(o>=0&&i.charAt(o).match(r));o++}for(var s=e;st&&(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;ls){if((l=o.end.row+1)>=a)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;it.end.column&&(o.start.column+=u),o.end.row==t.end.row&&o.end.column>t.end.column&&(o.end.column+=u)),s&&o.start.row>=t.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,n),r.length){var a=t.start,l=o.start,u=(s=l.row-a.row,l.column-a.column);this.addFolds(r.map((function(t){return(t=t.clone()).start.row==a.row&&(t.start.column+=u),t.end.row==a.row&&(t.end.column+=u),t.start.row+=s,t.end.row+=s,t})))}return o},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;s0){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){if(e=Math.max(0,e),t<0)t=0,e=0;else{var i=this.doc.getLength();t>=i?(t=i-1,e=this.doc.getLine(i-1).length):e=Math.min(this.doc.getLine(t).length,e)}return{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){if(t!=this.$useWrapMode){if(this.$useWrapMode=t,this.$modified=!0,this.$resetRowCache(0),t){var 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&&n>1&&(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 u=this.$foldData;l=this.getFoldsInRange(t),this.removeFolds(l);var c=0;if(m=this.getFoldLine(r.row)){m.addRemoveChars(r.row,r.column,n.column-r.column),m.shiftRow(-a);var h=this.getFoldLine(o);h&&h!==m&&(h.merge(m),m=h),c=u.indexOf(m)+1}for(;c=r.row&&m.shiftRow(-a);s=o}else{var d=Array(a);d.unshift(o,0);var f=e?this.$wrapData:this.$rowLengthCache;if(f.splice.apply(f,d),u=this.$foldData,c=0,m=this.getFoldLine(o)){var p=m.range.compareInside(n.row,n.column);0==p?(m=m.split(n.row,n.column))&&(m.shiftRow(a),m.addRemoveChars(s,0,r.column-n.column)):-1==p&&(m.addRemoveChars(o,0,r.column-n.column),m.shiftRow(a)),c=u.indexOf(m)+1}for(;c=o&&m.shiftRow(a)}}else a=Math.abs(t.start.column-t.end.column),"remove"===i&&(l=this.getFoldsInRange(t),this.removeFolds(l),a=-a),(m=this.getFoldLine(o))&&m.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(i,n){var r,o,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,u=this.$wrapLimit,c=i;for(n=Math.min(n,s.length-1);c<=n;)(o=this.getFoldLine(c,o))?(r=[],o.walk(function(i,n,o,a){var l;if(null!=i){(l=this.$getDisplayTokens(i,r.length))[0]=t;for(var u=1;u=4352&&t<=4447||t>=4515&&t<=4519||t>=4602&&t<=4607||t>=9001&&t<=9002||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12283||t>=12288&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12589||t>=12593&&t<=12686||t>=12688&&t<=12730||t>=12736&&t<=12771||t>=12784&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=13054||t>=13056&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=55216&&t<=55238||t>=55243&&t<=55291||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510)}this.$computeWrapSplits=function(i,n,r){if(0==i.length)return[];var o=[],s=i.length,a=0,l=0,u=this.$wrapAsCode,c=this.$indentedSoftWrap,h=n<=Math.max(2*r,8)||!1===c?0:Math.floor(n/2);function d(t){for(var e=t-a,n=a;nn-f;){var p=a+n-f;if(i[p-1]>=10&&i[p]>=10)d(p);else if(i[p]!=t&&i[p]!=e){for(var m=Math.max(p-(n-(n>>2)),a-1);p>m&&i[p]m&&i[p]m&&9==i[p];)p--}else for(;p>m&&i[p]<10;)p--;p>m?d(++p):(2==i[p=a+n]&&p--,d(p-f))}else{for(;p!=a-1&&i[p]!=t;p--);if(p>a){d(p);continue}for(p=a+n;p39&&s<48||s>57&&s<64?r.push(9):s>=4352&&i(s)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(t,e,n){if(0==e)return[0,0];var r,o;for(null==e&&(e=1/0),n=n||0,o=0;o=4352&&i(r)?n+=2:n+=1,!(n>e));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]=0){a=u[c],o=this.$docRowCache[c];var d=t>u[h-1]}else d=!h;for(var f=this.getLength()-1,p=this.getNextFoldLine(o),m=p?p.start.row:1/0;a<=t&&!(a+(l=this.getRowLength(o))>t||o>=f);)a+=l,++o>m&&(o=p.end.row+1,m=(p=this.getNextFoldLine(o,p))?p.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(a));if(p&&p.start.row<=o)n=this.getFoldDisplayLine(p),o=p.start.row;else{if(a+l<=t||o>f)return{row:f,column:this.getLine(f).length};n=this.getLine(o),p=null}var g=0,v=Math.floor(t-a);if(this.$useWrapMode){var _=this.$wrapData[o];_&&(r=_[v],v>0&&_.length&&(g=_.indent,s=_[v-1]||_[_.length-1],n=n.substring(s)))}return void 0!==i&&this.$bidiHandler.isBidiRow(a+v,o,v)&&(e=this.$bidiHandler.offsetToCol(i)),s+=this.$getStringScreenWidth(n,e-g)[1],this.$useWrapMode&&s>=r&&(s=r-1),p?p.idxToPosition(s):{row:o,column:s}},this.documentToScreenPosition=function(t,e){if(void 0===e)var i=this.$clipPositionToDocument(t.row,t.column);else i=this.$clipPositionToDocument(t,e);t=i.row,e=i.column;var n,r=0,o=null;(n=this.getFoldAt(t,e,1))&&(t=n.start.row,e=n.start.column);var s,a=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,t),c=l.length;if(c&&u>=0){a=l[u],r=this.$screenRowCache[u];var h=t>l[c-1]}else h=!c;for(var d=this.getNextFoldLine(a),f=d?d.start.row:1/0;a=f){if((s=d.end.row+1)>t)break;f=(d=this.getNextFoldLine(s,d))?d.start.row:1/0}else s=a+1;r+=this.getRowLength(a),a=s,h&&(this.$docRowCache.push(a),this.$screenRowCache.push(r))}var p="";d&&a>=f?(p=this.getFoldDisplayLine(d,t,e),o=d.start.row):(p=this.getLine(t).substring(0,e),o=t);var m=0;if(this.$useWrapMode){var g=this.$wrapData[o];if(g){for(var v=0;p.length>=g[v];)r++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(r+=this.lineWidgets[a].rowsAbove),{row:r,column:m+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=(a=0,(e=this.$foldData[a++])?e.start.row:1/0);nr&&(n=e.end.row+1,r=(e=this.$foldData[a++])?e.start.row:1/0)}else{t=this.getLength();for(var s=this.$foldData,a=0;ai);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=i}.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){if(t&&"off"!=t?"free"==t?t=!0:"printMargin"==t?t=-1:"string"==typeof t&&(t=parseInt(t,10)||!1):t=!1,this.$wrap!=t)if(this.$wrap=t,t){var e="number"==typeof t?t:null;this.setWrapLimitRange(e,e),this.setUseWrapMode(!0)}else 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){(t=parseInt(t))>0&&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";var n=t("./lib/lang"),r=t("./lib/oop"),o=t("./range").Range,s=function(){this.$options={}};(function(){this.set=function(t){return r.mixin(this.$options,t),this},this.getOptions=function(){return n.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,s){return n=new o(t,i,r,s),!(i==s&&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,r=i?t.getLines(i.start.row,i.end.row):t.doc.getAllLines(),s=[],a=e.re;if(e.$isMultiLine){var l,u=a.length,c=r.length-u;t:for(var h=a.offset||0;h<=c;h++){for(var d=0;dm||(s.push(l=new o(h,m,h+u-1,g)),u>2&&(h=h+u-2))}}else for(var v=0;vw&&s[d].end.row==i.end.row;)d--;for(s=s.slice(v,d+1),v=0,d=s.length;v=a;i--)if(h(i,Number.MAX_VALUE,t))return;if(0!=e.wrap)for(i=l,a=s.row;i>=a;i--)if(h(i,Number.MAX_VALUE,t))return}};else u=function(t){var i=s.row;if(!h(i,s.column,t)){for(i+=1;i<=l;i++)if(h(i,0,t))return;if(0!=e.wrap)for(i=a,l=s.row;i<=l;i++)if(h(i,0,t))return}};if(e.$isMultiLine)var c=i.length,h=function(e,r,o){var s=n?e-c+1:e;if(!(s<0)){var a=t.getLine(s),l=a.search(i[0]);if(!(!n&&lr))return!!o(s,l,s+c-1,h)||void 0}}};else h=n?function(e,n,r){var o,s=t.getLine(e),a=[],l=0;for(i.lastIndex=0;o=i.exec(s);){var u=o[0].length;if(l=o.index,!u){if(l>=s.length)break;i.lastIndex=l+=1}if(o.index+u>n)break;a.push(o.index,u)}for(var c=a.length-1;c>=0;c-=2){var h=a[c-1];if(r(e,h,e,h+(u=a[c])))return!0}}:function(e,n,r){var o,s,a=t.getLine(e);for(i.lastIndex=n;s=i.exec(a);){var l=s[0].length;if(r(e,o=s.index,e,o+l))return!0;if(!l&&(i.lastIndex=o+=1,o>=a.length))return!1}};return{forEach:u}}}).call(s.prototype),e.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,i){"use strict";var n=t("../lib/keys"),r=t("../lib/useragent"),o=n.KEY_MODS;function s(t,e){this.platform=e||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function a(t,e){s.call(this,t,e),this.$singleCommand=!1}a.prototype=s.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,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=this.commandKeyBinding;for(var r in n){var o=n[r];if(o==t)delete n[r];else if(Array.isArray(o)){var s=o.indexOf(t);-1!=s&&(o.splice(s,1),1==o.length&&(n[r]=o[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="";if(-1!=t.indexOf(" ")){var r=t.split(/\s+/);t=r.pop(),r.forEach((function(t){var e=this.parseKeys(t),i=o[e.hashId]+e.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")}),this),n+=" "}var s=this.parseKeys(t),a=o[s.hashId]+s.key;this._addCommandToBinding(n+a,e,i)}),this)},this._addCommandToBinding=function(e,i,n){var r,o=this.commandKeyBinding;if(i)if(!o[e]||this.$singleCommand)o[e]=i;else{Array.isArray(o[e])?-1!=(r=o[e].indexOf(i))&&o[e].splice(r,1):o[e]=[o[e]],"number"!=typeof n&&(n=t(i));var s=o[e];for(r=0;rn)break;s.splice(r,0,i)}else delete o[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(),r=n[i];if(n.FUNCTION_KEYS[r])i=n.FUNCTION_KEYS[r].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 o=0,s=e.length;s--;){var a=n.KEY_MODS[e[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+e[s]+" in "+t),!1;o|=a}return{key:i,hashId:o}},this.findKeyCommand=function(t,e){var i=o[t]+e;return this.commandKeyBinding[i]},this.handleKeyboard=function(t,e,i,n){if(!(n<0)){var r=o[e]+i,s=this.commandKeyBinding[r];return t.$keyChain&&(t.$keyChain+=" "+r,s=this.commandKeyBinding[t.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(t.$keyChain&&(e&&4!=e||1!=i.length?(-1==e||n>0)&&(t.$keyChain=""):t.$keyChain=t.$keyChain.slice(0,-r.length-1)),{command:s}):(t.$keyChain=t.$keyChain||r,{command:"null"})}},this.getStatusText=function(t,e){return e.$keyChain||""}}.call(s.prototype),e.HashHandler=s,e.MultiHashHandler=a})),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";var n=t("../lib/oop"),r=t("../keyboard/hash_handler").MultiHashHandler,o=t("../lib/event_emitter").EventEmitter,s=function(t,e){r.call(this,e,t),this.byName=this.commands,this.setDefaultHandler("exec",(function(t){return t.command.exec(t.editor,t.args||{})}))};n.inherits(s,r),function(){n.implement(this,o),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(s.prototype),e.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(t,e,i){"use strict";var n=t("../lib/lang"),r=t("../config"),o=t("../range").Range;function s(t,e){return{win:t,mac:e}}e.commands=[{name:"showSettingsMenu",bindKey:s("Ctrl-,","Command-,"),exec:function(t){r.loadModule("ace/ext/settings_menu",(function(e){e.init(t),t.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:s("Alt-E","F4"),exec:function(t){r.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(t){r.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("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:s("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:s("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:s("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:s("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("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:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("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:s("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:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(t){r.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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("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:s("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:s("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:s("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:s("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:s("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("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:s("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:s("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("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:s(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("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:s(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:s("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("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:s("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("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:s("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:s(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:s("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(t){r.loadModule("ace/ext/searchbox",(function(e){e.Search(t,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("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:s("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:s("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("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:s("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:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("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(n.stringRepeat(e.text||"",e.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(t){t.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("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:s(null,null),exec:function(t){for(var e=t.selection.isBackwards(),i=e?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),r=e?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),s=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),u=i.row+1;u<=r.row+1;u++){var c=n.stringTrimLeft(n.stringTrimRight(t.session.doc.getLine(u)));0!==c.length&&(c=" "+c),l+=c}r.row+10?(t.selection.moveCursorTo(i.row,i.column),t.selection.selectTo(i.row,i.column+a)):(s=t.session.doc.getLine(i.row).length>s?s+1:s,t.selection.moveCursorTo(i.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(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 s=0;s=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){if(this.$mergeUndoDeltas){var e=this.prevOp,i=this.$mergeableCommands,n=e.command&&t.command.name==e.command.name;if("insertstring"==t.command.name){var r=t.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(e.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(t.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(t.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,e){if(t&&"string"==typeof t&&"ace"!=t){this.$keybindingId=t;var i=this;v.loadModule(["keybinding",t],(function(n){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(n&&n.handler),e&&e()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),e&&e()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(t){if(this.session!=t){this.curOp&&this.endOperation(),this.curOp={};var e=this.session;if(e){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);var i=this.session.getSelection();i.off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)}this.session=t,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(){if(!this.$highlightPending){var t=this;this.$highlightPending=!0,setTimeout((function(){t.$highlightPending=!1;var e=t.session;if(e&&e.bgTokenizer){e.$bracketHighlight&&(e.$bracketHighlight.markerIds.forEach((function(t){e.removeMarker(t)})),e.$bracketHighlight=null);var i=e.getMatchingBracketRanges(t.getCursorPosition());if(!i&&e.$mode.getMatching&&(i=e.$mode.getMatching(t.session)),i){var n="ace_bracket";Array.isArray(i)?1==i.length&&(n="ace_error_bracket"):i=[i],2==i.length&&(0==f.comparePoints(i[0].end,i[1].start)?i=[f.fromPoints(i[0].start,i[1].end)]:0==f.comparePoints(i[0].start,i[1].end)&&(i=[f.fromPoints(i[1].start,i[0].end)])),e.$bracketHighlight={ranges:i,markerIds:i.map((function(t){return e.addMarker(t,n,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var t=this;this.$highlightTagPending=!0,setTimeout((function(){t.$highlightTagPending=!1;var e=t.session;if(e&&e.bgTokenizer){var i=t.getCursorPosition(),n=new _(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)do{l=r,(r=n.stepForward())&&(-1!==r.type.indexOf("tag-name")?o===(s=r.value)&&("<"===l.value?a++:""===r.value&&a--)}while(r&&a>=0);else{do{if(r=l,l=n.stepBackward(),r)if(-1!==r.type.indexOf("tag-name"))o===r.value&&("<"===l.value?a++:""===r.value){for(var u=0,c=l;c;){if(-1!==c.type.indexOf("tag-name")&&c.value===o){a--;break}if("<"===c.value)break;c=n.stepBackward(),u++}for(var h=0;h1||(t=!1)),e.$highlightLineMarker&&!t)e.removeMarker(e.$highlightLineMarker.id),e.$highlightLineMarker=null;else if(!e.$highlightLineMarker&&t){var i=new f(t.row,t.column,t.row,1/0);i.id=e.addMarker(i,"ace_active-line","screenLine"),e.$highlightLineMarker=i}else t&&(e.$highlightLineMarker.start.row=t.row,e.$highlightLineMarker.end.row=t.row,e.$highlightLineMarker.start.column=t.column,e._signal("changeBackMarker"))},this.onSelectionChange=function(t){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();e.$selectionMarker=e.addMarker(i,"ace_selection",n)}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(!(o.length>5e3)&&/[\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;ra.search(/\S|$/)){var l=a.substr(r.column).search(/\S|$/);i.doc.removeInLine(r.row,r.column,r.column+l)}}this.clearSelection();var u=r.column,c=i.getState(r.row),h=(a=i.getLine(r.row),n.checkOutdent(c,a,t));if(i.insert(r,t),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(r.row,u+o.selection[0],r.row,u+o.selection[1])):this.selection.setSelectionRange(new f(r.row+o.selection[0],o.selection[1],r.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(i.getDocument().isNewLine(t)){var d=n.getNextLineIndent(c,a.slice(0,r.column),i.getTabString());i.insert({row:r.row+1,column:0},d)}h&&n.autoOutdent(c,i,r.row)}},this.autoIndent=function(){var t,e,i=this.session,n=i.getMode();if(this.selection.isEmpty())t=0,e=i.doc.getLength()-1;else{var r=this.getSelectionRange();t=r.start.row,e=r.end.row}for(var o,s,a,l="",u="",c="",h=i.getTabString(),d=t;d<=e;d++)d>0&&(l=i.getState(d-1),u=i.getLine(d-1),c=n.getNextLineIndent(l,u,h)),o=i.getLine(d),c!==(s=n.$getIndent(o))&&(s.length>0&&(a=new f(d,0,d,s.length),i.remove(a)),c.length>0&&i.insert({row:d,column:0},c)),n.autoOutdent(l,i,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=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(e.start.row),r=i.getMode().transformAction(n,"deletion",this,i,e);if(0===e.end.column){var o=i.getTextRange(e);if("\n"==o[o.length-1]){var s=i.getLine(e.end.row);/^\s+$/.test(s)&&(e.end.column=s.length)}}r&&(e=r)}this.session.remove(e),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(){if(this.selection.isEmpty()){var t=this.getCursorPosition(),e=t.column;if(0!==e){var i,n,r=this.session.getLine(t.row);ee.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)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(t){var e=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new f(e,i-1,e,i),r=this.session.getTextRange(n);if(!isNaN(parseFloat(r))&&isFinite(r)){var o=this.getNumberAt(e,i);if(o){var s=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-s,l=parseFloat(o.value);l*=Math.pow(10,a),s!==o.end&&i=a&&s<=l&&(i=e,u.selection.clearSelection(),u.moveCursorTo(t,a+n),u.selection.selectTo(t,l+n)),a=l}));for(var c,h=this.$toggleWordPairs,d=0;df+1)break;f=p.last}for(c--,a=this.session.$moveLines(d,f,e?0:t),e&&-1==t&&(h=c+1);h<=c;)s[h].moveBy(a,0),h++;e||(a=0),l+=a}r.fromOrientedRange(r.ranges[0]),r.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 _(this.session,i.row,i.column),r=n.getCurrentToken(),o=r||n.stepForward();if(o){var s,a,l=!1,u={},c=i.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;c=0;--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){if(t){var e,i=this,n=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var 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(){if(n&&e&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())){var t=i.renderer,o=t.$cursorLayer.$pixelPos,s=t.layerConfig,a=o.top-s.offset;null!=(n=o.top>=0&&a+e.top<0||!(o.topwindow.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(y.prototype),v.defineOptions(y.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?w.attach(this):w.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(t){this.$showLineNumbers&&t?w.attach(this):w.detach(this)}},placeholder:{set:function(t){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var t=this.session&&(this.renderer.$composition||this.getValue());if(t&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(t||this.renderer.placeholderNode)!t&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder");var e=r.createElement("div");e.className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,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 w={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=y})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(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.id0},this.canRedo=function(){return this.$redoStack.length>0},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?a(t):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(n.prototype);var r=t("./range").Range,o=r.comparePoints;function s(t){return{row:t.row,column:t.column}}function a(t){if(t=t||this,Array.isArray(t))return t.map(a).join("\n");var e="";return t.action?(e="insert"==t.action?"+":"-",e+="["+t.lines+"]"):t.value&&(e=Array.isArray(t.value)?t.value.map(l).join("\n"):l(t.value)),t.start&&(e+=l(t)),(t.id||t.rev)&&(e+="\t("+(t.id||t.rev)+")"),e}function l(t){return t.start.row+":"+t.start.column+"=>"+t.end.row+":"+t.end.column}function u(t,e){var i="insert"==t.action,n="insert"==e.action;if(i&&n)if(o(e.start,t.end)>=0)d(e,t,-1);else{if(!(o(e.start,t.start)<=0))return null;d(t,e,1)}else if(i&&!n)if(o(e.start,t.end)>=0)d(e,t,-1);else{if(!(o(e.end,t.start)<=0))return null;d(t,e,-1)}else if(!i&&n)if(o(e.start,t.start)>=0)d(e,t,1);else{if(!(o(e.start,t.start)<=0))return null;d(t,e,1)}else if(!i&&!n)if(o(e.start,t.start)>=0)d(e,t,1);else{if(!(o(e.end,t.start)<=0))return null;d(t,e,-1)}return[e,t]}function c(t,e){for(var i=t.length;i--;)for(var n=0;n=0?d(t,e,-1):(o(t.start,e.start)<=0||d(t,r.fromPoints(e.start,t.start),-1),d(e,t,1));else if(!i&&n)o(e.start,t.end)>=0?d(e,t,-1):(o(e.start,t.start)<=0||d(e,r.fromPoints(t.start,e.start),-1),d(t,e,1));else if(!i&&!n)if(o(e.start,t.end)>=0)d(e,t,-1);else{var s,a;if(!(o(e.end,t.start)<=0))return o(t.start,e.start)<0&&(s=t,t=p(t,e.start)),o(t.end,e.end)>0&&(a=p(t,e.end)),f(e.end,t.start,t.end,-1),a&&!s&&(t.lines=a.lines,t.start=a.start,t.end=a.end,a=t),[e,s,a].filter(Boolean);d(t,e,-1)}return[e,t]}function d(t,e,i){f(t.start,e.start,e.end,i),f(t.end,e.start,e.end,i)}function f(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 p(t,e){var i=t.lines,n=t.end;t.end=s(e);var r=t.end.row-t.start.row,o=i.splice(r,i.length),a=r?e.column:e.column-t.start.column;return i.push(o[0].substring(0,a)),o[0]=o[0].substr(a),{start:s(e),end:n,lines:o,action:t.action}}function m(t,e){e=function(t){return{start:s(t.start),end:s(t.end),action:t.action,lines:t.lines.slice()}}(e);for(var i=t.length;i--;){for(var n=t[i],r=0;ro&&(l=r.end.row+1,o=(r=e.getNextFoldLine(l,r))?r.start.row:1/0),l>n){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,t,this.session,u),this.$lines.push(s)),this.$renderCell(s,t,r,l),l++}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(){if(this.$highlightGutterLine){var 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=this.$cursorRow){if(n.row>this.$cursorRow){var r=this.session.getFoldLine(this.$cursorRow);if(!(i>0&&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||n0;r--)this.$lines.shift();if(n>i)for(r=this.session.getFoldedRowCount(i+1,n);r>0;r--)this.$lines.pop();t.firstRown&&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=[],r=e,o=this.session.getNextFoldLine(r),s=o?o.start.row:1/0;r>s&&(r=o.end.row+1,s=(o=this.session.getNextFoldLine(r,o))?o.start.row:1/0),!(r>i);){var a=this.$lines.createCell(r,t,this.session,u);this.$renderCell(a,t,o,r),n.push(a),r++}return n},this.$renderCell=function(t,e,i,r){var o=t.element,s=this.session,a=o.childNodes[0],l=o.childNodes[1],u=s.$firstLineNumber,c=s.$breakpoints,h=s.$decorations,d=s.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&s.foldWidgets,p=i?i.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(r==this.$cursorRow||i&&r=p&&this.$cursorRow<=i.end.row)&&(m+="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)),c[r]&&(m+=c[r]),h[r]&&(m+=h[r]),this.$annotations[r]&&(m+=this.$annotations[r].className),o.className!=m&&(o.className=m),f){var g=f[r];null==g&&(g=f[r]=s.getFoldWidget(r))}if(g){m="ace_fold-widget ace_"+g,"start"==g&&r==p&&ri.right-e.right?"foldWidgets":void 0}}).call(l.prototype),e.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../range").Range,r=t("../lib/dom"),o=function(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)};(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;for(var i in this.config=t,this.i=0,this.markers){var n=this.markers[i];if(n.range){var r=n.range.clipRows(t.firstRow,t.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),n.renderer){var o=this.$getTop(r.start.row,t),s=this.$padding+r.start.column*t.characterWidth;n.renderer(e,r,s,o,t)}else"fullLine"==n.type?this.drawFullLineMarker(e,r,n.clazz,t):"screenLine"==n.type?this.drawScreenLineMarker(e,r,n.clazz,t):r.isMultiLine()?"text"==n.type?this.drawTextMarker(e,r,n.clazz,t):this.drawMultiLineMarker(e,r,n.clazz,t):this.drawSingleLineMarker(e,r,n.clazz+" ace_start ace_br15",t)}else n.update(e,this,this.session,t)}if(-1!=this.i)for(;this.id?4:0)|(u==l?8:0)),r,u==l?0:1,o)},this.drawMultiLineMarker=function(t,e,i,n,r){var o=this.$padding,s=n.lineHeight,a=this.$getTop(e.start.row,n),l=o+e.start.column*n.characterWidth;if(r=r||"",this.session.$bidiHandler.isBidiRow(e.start.row)?((u=e.clone()).end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(t,u,i+" ace_br1 ace_start",n,null,r)):this.elt(i+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(r||"")),this.session.$bidiHandler.isBidiRow(e.end.row)){var u;(u=e.clone()).start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(t,u,i+" ace_br12",n,null,r)}else{a=this.$getTop(e.end.row,n);var c=e.end.column*n.characterWidth;this.elt(i+" ace_br12","height:"+s+"px;width:"+c+"px;top:"+a+"px;left:"+o+"px;"+(r||""))}if(!((s=(e.end.row-e.start.row-1)*n.lineHeight)<=0)){a=this.$getTop(e.start.row+1,n);var h=(e.start.column?1:0)|(e.end.column?0:8);this.elt(i+(h?" ace_br"+h:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+o+"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),u=this.$padding+e.start.column*n.characterWidth;this.elt(i,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+u+"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(o.prototype),e.Marker=o})),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";var n=t("../lib/oop"),r=t("../lib/dom"),o=t("../lib/lang"),s=t("./lines").Lines,a=t("../lib/event_emitter").EventEmitter,l=function(t){this.dom=r,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 s(this.element)};(function(){n.implement(this,a),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,t&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(t){return this.showInvisibles!=t&&(this.showInvisibles=t,"string"==typeof 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=this.$tabStrings=[0],i=1;ic&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>r);){var h=o[s++];if(h){this.dom.removeChildren(h),this.$renderLine(h,a,a==c&&l),u&&(h.style.top=this.$lines.computeLineTop(a,t,this.session)+"px");var d=t.lineHeight*this.session.getRowLength(a)+"px";h.style.height!=d&&(u=!0,h.style.height=d)}a++}if(u)for(;s0;r--)this.$lines.shift();if(e.lastRow>t.lastRow)for(r=this.session.getFoldedRowCount(t.lastRow+1,e.lastRow);r>0;r--)this.$lines.pop();t.firstRowe.lastRow&&this.$lines.push(this.$renderLinesFragment(t,e.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,e,i){for(var n=[],o=e,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;o>a&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>i);){var l=this.$lines.createCell(o,t,this.session),u=l.element;this.dom.removeChildren(u),r.setStyle(u.style,"height",this.$lines.computeLineHeight(o,t,this.session)+"px"),r.setStyle(u.style,"top",this.$lines.computeLineTop(o,t,this.session)+"px"),this.$renderLine(u,o,o==a&&s),this.$useLineGroups()?u.className="ace_line_group":u.className="ace_line",n.push(l),o++}return n},this.update=function(t){this.$lines.moveContainer(t),this.config=t;for(var e=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,s=this,a=/(\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,l=this.dom.createFragment(this.element),u=0;r=a.exec(n);){var c=r[1],h=r[2],d=r[3],f=r[4],p=r[5];if(s.showSpaces||!h){var m=u!=r.index?n.slice(u,r.index):"";if(u=r.index+r[0].length,m&&l.appendChild(this.dom.createTextNode(m,this.element)),c){var g=s.session.getScreenTabSize(e+r.index);l.appendChild(s.$tabStrings[g].cloneNode(!0)),e+=g-1}else h?s.showSpaces?((_=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",_.textContent=o.stringRepeat(s.SPACE_CHAR,h.length),l.appendChild(_)):l.appendChild(this.com.createTextNode(h,this.element)):d?((_=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",_.textContent=o.stringRepeat(s.SPACE_CHAR,d.length),l.appendChild(_)):f?(e+=1,(_=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",_.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",_.textContent=s.showSpaces?s.SPACE_CHAR:f,l.appendChild(_)):p&&(e+=1,(_=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",_.className="ace_cjk",_.textContent=p,l.appendChild(_))}}if(l.appendChild(this.dom.createTextNode(u?n.slice(u):n,this.element)),this.$textToken[i.type])t.appendChild(l);else{var v="ace_"+i.type.replace(/\./g," ace_"),_=this.dom.createElement("span");"fold"==i.type&&(_.style.width=i.value.length*this.config.characterWidth+"px"),_.className=v,_.appendChild(l),t.appendChild(_)}return e+n.length},this.renderIndentGuide=function(t,e,i){var n=e.search(this.$indentGuideRe);if(n<=0||n>=i)return e;if(" "==e[0]){for(var r=(n-=n%this.tabSize)/this.tabSize,o=0;o=s;)a=this.$renderToken(l,a,c,h.substring(0,s-n)),h=h.substring(s-n),n=s,l=this.$createLineElement(),t.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",i.indent),this.element)),a=0,s=i[++r]||Number.MAX_VALUE;0!=h.length&&(n+=h.length,a=this.$renderToken(l,a,c,h))}}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;othis.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?"":"",t.appendChild(o)},this.$renderLine=function(t,e,i){if(i||0==i||(i=this.session.getFoldLine(e)),i)var n=this.$getFoldLineTokens(e,i);else n=this.session.getTokens(e);var r=t;if(n.length){var o=this.session.getRowSplitData(e);o&&o.length?(this.$renderWrappedLine(t,n,o),r=t.lastChild):(r=t,this.$useLineGroups()&&(r=this.$createLineElement(),t.appendChild(r)),this.$renderSimpleLine(r,n))}else this.$useLineGroups()&&(r=this.$createLineElement(),t.appendChild(r));if(this.showEOL&&r){i&&(e=i.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,r.appendChild(s)}},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=0,o=0;o+t[r].value.lengthi-e&&(s=s.substring(0,i-e)),n.push({type:t[r].type,value:s}),o=e+s.length,r+=1);oi?n.push({type:t[r].type,value:s.substring(0,i-o)}):n.push(t[r]),o+=s.length,r+=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(l.prototype),e.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../lib/dom"),r=function(t){this.element=n.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(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(t){for(var e=this.cursors,i=e.length;i--;)n.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(){n.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){n.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,n.setCssClass(this.element,"ace_smooth-blinking",t),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var t=n.createElement("div");return t.className="ace_cursor",this.element.appendChild(t),this.cursors.push(t),t},this.removeCursor=function(){if(this.cursors.length>1){var t=this.cursors.pop();return t.parentNode.removeChild(t),t}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var t=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){n.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),n.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var e=function(){this.timeoutId=setTimeout((function(){t(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){t(!0),e()}),this.blinkInterval),e()}else 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 t.top>=0&&t.topt.height+t.offset||s.top<0)&&i>1)){var a=this.cursors[r++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,t,e[i],this.session):this.isCursorInView(s,t)?(n.setStyle(l,"display","block"),n.translate(a,s.left,s.top),n.setStyle(l,"width",Math.round(t.characterWidth)+"px"),n.setStyle(l,"height",t.lineHeight+"px")):n.setStyle(l,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(t){t!=this.overwrite&&(this.overwrite=t,t?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(r.prototype),e.Cursor=r})),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";var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./lib/event"),s=t("./lib/event_emitter").EventEmitter,a=32768,l=function(t){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.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,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){n.implement(this,s),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(l.prototype);var u=function(t,e){l.call(this,t),this.scrollTop=0,this.scrollHeight=0,e.$scrollbarWidth=this.width=r.scrollbarWidth(t.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(u,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var 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){this.scrollHeight=t,t>a?(this.coeff=a/t,t=a):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(u.prototype);var c=function(t,e){l.call(this,t),this.scrollLeft=0,this.height=e.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(c,l),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(c.prototype),e.ScrollBar=u,e.ScrollBarV=u,e.ScrollBarH=c,e.VScrollBar=u,e.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(t,e,i){"use strict";var n=t("./lib/event"),r=function(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&&(n.blockIdle(100),i.changes=0,i.onRender(e)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}};(function(){this.schedule=function(t){this.changes=this.changes|t,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},this.clear=function(t){var e=this.changes;return this.changes=0,e}}).call(r.prototype),e.RenderLoop=r})),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,u=256,c="function"==typeof ResizeObserver,h=200,d=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",u),this.$characterSize={width:0,height:0},c?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){if(void 0===t&&(t=this.$measureSizes()),t&&(this.$characterSize.width!==t.width||this.$characterSize.height!==t.height)){this.$measureNode.style.fontWeight="bold";var 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/u};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(t){return this.$main.textContent=o.stringRepeat(t,u),this.$main.getBoundingClientRect().width/u},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(){var t=function(t,e){return["div",{style:"position: absolute;top:"+t+"px;left:"+e+"px;"}]};this.els=r.buildDom([t(0,0),t(h,0),t(0,h),t(h,h)],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]),u=s(this.els[2]),c=s(this.els[3]),d=i(n(c,l),n(c,u),n(r(l,u),r(c,a))),f=o(1+d[0],n(l,a)),p=o(1+d[1],n(u,a));if(e){var m=e,g=d[0]*m[0]/h+d[1]*m[1]/h+1,v=r(o(m[0],f),o(m[1],p));return r(o(1/g/h,v),a)}var _=n(t,a),b=i(n(f,o(d[0],_)),n(p,o(d[1],_)),_);return o(h,b)}}).call(d.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";var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./config"),s=t("./layer/gutter").Gutter,a=t("./layer/marker").Marker,l=t("./layer/text").Text,u=t("./layer/cursor").Cursor,c=t("./scrollbar").HScrollBar,h=t("./scrollbar").VScrollBar,d=t("./renderloop").RenderLoop,f=t("./layer/font_metrics").FontMetrics,p=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;}',g=t("./lib/useragent"),v=g.isIE;r.importCssString(m,"ace_editor.css");var _=function(t,e){var i=this;this.container=t||r.createElement("div"),r.addCssClass(this.container,"ace_editor"),r.HI_DPI&&r.addCssClass(this.container,"ace_hidpi"),this.setTheme(e),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var n=this.$textLayer=new l(this.content);this.canvas=n.element,this.$markerFront=new a(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new c(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 f(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=!g.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(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,n.implement(this,p),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(),r.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,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.lastRowthis.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(!(this.resizing>2)){this.resizing>0?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 o=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(n&&(t||s.height!=n)&&(s.height=n,o|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),i&&(t||s.width!=i)){o|=this.CHANGE_SIZE,s.width=i,null==e&&(e=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=e,r.setStyle(this.scrollBarH.element.style,"left",e+"px"),r.setStyle(this.scroller.style,"left",e+this.margin.left+"px"),s.scrollerWidth=Math.max(0,i-e-this.scrollBarV.getWidth()-this.margin.h),r.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";r.setStyle(this.scrollBarH.element.style,"right",l),r.setStyle(this.scroller.style,"right",l),r.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||t)&&(o|=this.CHANGE_FULL)}return s.$dirty=!i||!n,o&&this._signal("resize",a),o},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(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var t=r.createElement("div");t.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",t.appendChild(this.$printMarginEl),this.content.insertBefore(t,this.content.firstChild)}var e=this.$printMarginEl.style;e.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(){if(!this.$isMousePressed){var t=this.textarea.style,e=this.$composition;if(this.$keepTextAreaAtCursor||e){var i=this.$cursorLayer.$pixelPos;if(i){e&&e.markerRange&&(i=this.$cursorLayer.getPixelPosition(e.markerRange.start,!0));var n=this.layerConfig,o=i.top,s=i.left;o-=n.offset;var a=e&&e.useTextareaForIME?this.lineHeight:v?0:1;if(o<0||o>n.height-a)r.translate(this.textarea,0,0);else{var l=1,u=this.$size.height-a;if(e)if(e.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;(s-=this.scrollLeft)>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,r.setStyle(t,"height",a+"px"),r.setStyle(t,"width",l+"px"),r.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(o,u))}}}else r.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=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){if(t|=this.$computeLayerConfig()|this.$loop.clear(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;n>0&&(this.scrollTop=n,t|=this.CHANGE_SCROLL,t|=this.$computeLayerConfig()|this.$loop.clear())}i=this.layerConfig,this.$updateScrollBarV(),t&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),r.translate(this.content,-this.scrollLeft,-i.offset);var o=i.width+2*this.$padding+"px",s=i.minHeight+"px";r.setStyle(this.content.style,"width",o),r.setStyle(this.content.style,"height",s)}if(t&this.CHANGE_H_SCROLL&&(r.translate(this.content,-this.scrollLeft,-i.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(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),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(i):this.$textLayer.scrollLines(i),this.$showGutter&&(t&this.CHANGE_GUTTER||t&this.CHANGE_LINES?this.$gutterLayer.update(i):this.$gutterLayer.scrollLines(i)),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);t&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i)):t&this.CHANGE_LINES?(this.$updateLines()||t&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i):t&this.CHANGE_TEXT||t&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(i):t&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(i),t&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor()),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i),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=!(i<=2*this.lineHeight)&&t>e;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var r=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,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&&this.lineHeight>1&&this.$autosize();var l=e.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(e.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=u;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 h=!i&&(this.$vScrollBarAlwaysVisible||e.scrollerHeight-n+u<0||this.scrollTop>c.top),d=a!==h;d&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var f,p,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),_=v+g,b=this.lineHeight;v=t.screenToDocumentRow(v,0);var y=t.getFoldLine(v);y&&(v=y.start.row),f=t.documentToScreenRow(v,0),p=t.getRowLength(v)*b,_=Math.min(t.screenToDocumentRow(_,0),t.getLength()-1),l=e.scrollerHeight+t.getRowLength(_)*b+p,m=this.scrollTop-f*b;var w=0;return(this.layerConfig.width!=r||s)&&(w=this.CHANGE_H_SCROLL),(s||d)&&(w|=this.$updateCachedSize(!0,this.gutterWidth,e.width,e.height),this._signal("scrollbarVisibilityChanged"),d&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:f,lastRow:_,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:n,offset:m,gutterOffset:b?Math.max(0,Math.ceil((m+e.height-e.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),w},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||ethis.$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){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(t),r=n.left,o=n.top,s=i&&i.top||0,a=i&&i.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>o?(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-ar?(r=1-this.scrollMargin.top||e>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||t<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||t>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(t,e){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([t,e]);t=n[1]-this.gutterWidth-this.margin.left,e=n[0]}else 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:o-a>0?1:-1,offsetX:r}},this.screenToTextCoordinates=function(t,e){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([t,e]);t=n[1]-this.gutterWidth-this.margin.left,e=n[0]}else 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(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(t){this.$composition=t,t.cssText||(t.cssText=this.textarea.style.cssText),null==t.useTextareaForIME&&(t.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(r.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(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),r.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var 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;l50&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(l.prototype),e.UIWorkerClient=function(t,e,i){var n=null,r=!1,a=Object.create(o),u=[],c=new l({messageBuffer:u,terminate:function(){},postMessage:function(t){u.push(t),n&&(r?setTimeout(h):h())}});c.setEmitSync=function(t){r=t};var h=function(){var t=u.shift();t.command?n[t.command].apply(n,t.args):t.event&&a._signal(t.event,t.data)};return a.postMessage=function(t){c.onMessage({data:t})},a.callback=function(t,e){this.postMessage({type:"call",id:e,data:t})},a.emit=function(t,e){this.postMessage({type:"event",name:t,data:e})},s.loadModule(["worker",e],(function(t){for(n=new t[i](a);u.length;)h()})),c},e.WorkerClient=l,e.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(t,e,i){"use strict";var n=t("./range").Range,r=t("./lib/event_emitter").EventEmitter,o=t("./lib/oop"),s=function(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)};(function(){o.implement(this,r),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 r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=i.addMarker(new n(r.row,r.column,r.row,r.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(){if(!this.othersActive){var t=this.session,e=this;this.othersActive=!0,this.others.forEach((function(i){i.markerId=t.addMarker(new n(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.pos.column&&e.start.column<=this.pos.column+this.length+1,o=e.start.column-this.pos.column;if(this.updateAnchors(t),r&&(this.length+=i),r&&!this.session.$fromUndo)if("insert"===t.action)for(var s=this.others.length-1;s>=0;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;s>=0;s--){var l;a={row:(l=this.others[s]).row,column:l.column+o},this.doc.remove(new n(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,r){e.removeMarker(i.markerId),i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),r,null,!1)};i(this.pos,this.mainClass);for(var r=this.others.length;r--;)i(this.others[r],this.othersClass)}},this.onCursorChange=function(t){if(!this.$updating&&this.session){var e=this.session.selection.getCursor();e.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;i1?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){var n=t("./range_list").RangeList,r=t("./range").Range,o=t("./selection").Selection,s=t("./mouse/multi_select_handler").onMouseDown,a=t("./lib/event"),l=t("./lib/lang"),u=t("./commands/multi_select_commands");e.commands=u.defaultCommands.concat(u.multiSelectCommands);var c=new(0,t("./search").Search),h=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.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),this.rangeCount>1&&!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){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var 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 n,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;i1){var t=this.rangeList.ranges,e=t[t.length-1],i=r.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(i,e.cursor==e.start)}else{var n=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(n,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(t,e,i){var n=[],o=t.column0;)_--;if(_>0)for(var b=0;n[b].isEmpty();)b++;for(var y=_;y>=b;y--)n[y].isEmpty()&&n.splice(y,1)}return n}}.call(o.prototype);var d=t("./editor").Editor;function f(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",s),t.commands.addCommands(u.defaultCommands),function(t){if(t.textInput){var e=t.textInput.getElement(),i=!1;a.addListener(e,"keydown",(function(e){var r=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);t.$blockSelectEnabled&&r?i||(t.renderer.setMouseCursor("crosshair"),i=!0):i&&n()}),t),a.addListener(e,"keyup",n,t),a.addListener(e,"blur",n,t)}function n(e){i&&(t.renderer.setMouseCursor(""),i=!1)}}(t))}(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){if(t.marker){this.session.removeMarker(t.marker);var e=this.session.$selectionMarkers.indexOf(t);-1!=e&&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=t[i];if(n.marker){this.session.removeMarker(n.marker);var r=e.indexOf(n);-1!=r&&e.splice(r,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(u.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(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(t){var e=t.command,i=t.editor;if(i.multiSelect){if(e.multiSelectAction)"forEach"==e.multiSelectAction?n=i.forEachSelection(e,t.args):"forEachLine"==e.multiSelectAction?n=i.forEachSelection(e,t.args,!0):"single"==e.multiSelectAction?(i.exitMultiSelectMode(),n=e.exec(i,t.args||{})):n=e.multiSelectAction(i,t.args||{});else{var n=e.exec(i,t.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(t,e,i){if(!this.inVirtualSelectionMode){var n,r=i&&i.keepOrder,s=1==i||i&&i.$byLines,a=this.session,l=this.selection,u=l.rangeList,c=(r?l:u).ranges;if(!c.length)return t.exec?t.exec(this,e||{}):t(this,e||{});var h=l._eventRegistry;l._eventRegistry={};var d=new o(a);this.inVirtualSelectionMode=!0;for(var f=c.length;f--;){if(s)for(;f>0&&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=h,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.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;ns&&(s=i.column),nc?t.insert(n,l.stringRepeat(" ",o-c)):t.remove(new r(n.row,n.column,n.row,n.column-o+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(),h=c.start.row,d=c.end.row,f=h==d;if(f){var p,m=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d0);h<0&&(h=0),d>=m&&(d=m-1)}var g=this.session.removeFullLines(h,d);g=this.$reAlignText(g,f),this.session.insert({row:h,column:0},g.join("\n")+"\n"),f||(c.start.column=0,c.end.column=g[g.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(t,e){var i,n,r,o=!0,s=!0;return t.map((function(t){var e=t.match(/(\s*)(.*?)(\s*)([=:].*)/);return e?null==i?(i=e[1].length,n=e[2].length,r=e[3].length,e):(i+n+r!=e[1].length+e[2].length+e[3].length&&(s=!1),i!=e[1].length&&(o=!1),i>e[1].length&&(i=e[1].length),ne[3].length&&(r=e[3].length),e):[t]})).map(e?u:o?s?function(t){return t[2]?a(i+n-t[2].length)+t[2]+a(r)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}:u:function(t){return t[2]?a(i)+t[2]+a(r)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]});function a(t){return l.stringRepeat(" ",t)}function u(t){return t[2]?a(i)+t[2]+a(n-t[2].length+r)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}}}).call(d.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=f,t("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(t){f(this),t?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},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(),u=e,c=e;++eu){var f=t.getLine(c).length;return new n(u,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";var n=t("./lib/dom");function r(t){this.session=t,this.session.widgetManager=this,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)}(function(){this.getRowLength=function(t){var e;return e=this.lineWidgets&&this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0,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&&(t.widgetManager=this,t.renderer.on("beforeRender",this.measureWidgets),t.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(t){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off("beforeRender",this.measureWidgets),e.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.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;ae[i].column&&i++,o.unshift(i,0),e.splice.apply(e,o),this.$updateRows()}}},this.$updateRows=function(){var t=this.session.lineWidgets;if(t){var e=!0;t.forEach((function(t,i){if(t)for(e=!1,t.row=i;t.$oldWidget;)t.$oldWidget.row=i,t=t.$oldWidget})),e&&(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,e.el&&e.el.parentNode&&(e.el.parentNode.removeChild(e.el),e._inDocument=!1)),this.session.lineWidgets[t.row]=t,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=n.createElement("div"),t.el.innerHTML=t.html),t.el&&(n.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=this.session.getFoldAt(t.row,0);if(t.$fold=i,i){var r=this.session.lineWidgets;t.row!=i.end.row||r[i.start.row]?t.hidden=!0:r[i.start.row]=t}return 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;o0&&!n[r];)r--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,e.$cursorLayer.config=i;for(var s=r;s<=o;s++){var a=n[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,e.container.appendChild(a.el));var l=e.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-i.offset+"px";var u=a.coverGutter?0:e.gutterWidth;a.fixedWidth||(u-=e.scrollLeft),a.el.style.left=u+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=i.width+2*i.padding+"px"),a.fixedWidth?a.el.style.right=e.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(r.prototype),e.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(t,e,i){"use strict";var n=t("../line_widgets").LineWidgets,r=t("../lib/dom"),o=t("../range").Range;e.showErrorMarker=function(t,e){var i=t.session;i.widgetManager||(i.widgetManager=new n(i),i.widgetManager.attach(t));var s=t.getCursorPosition(),a=s.row,l=i.widgetManager.getWidgetsAtRow(a).filter((function(t){return"errorMarker"==t.type}))[0];l?l.destroy():a-=e;var u,c=function(t,e,i){var n=t.getAnnotations().sort(o.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(s>0)n=o+1;else{if(!(s<0))return o;r=o-1}}return-(n+1)}(n,{row:e,column:-1},o.comparePoints);r<0&&(r=-r-1),r>=n.length?r=i>0?0:n.length-1:0===r&&i<0&&(r=n.length-1);var s=n[r];if(s&&i){if(s.row===e){do{s=n[r+=i]}while(s&&s.row===e);if(!s)return n.slice()}var a=[];e=s.row;do{a[i<0?"unshift":"push"](s),s=n[r+=i]}while(s&&s.row==e);return a.length&&a}}}(i,a,e);if(c){var h=c[0];s.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,s.row=h.row,u=t.renderer.$gutterLayer.$annotations[s.row]}else{if(l)return;u={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(s.row),t.selection.moveToPosition(s);var d={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},f=d.el.appendChild(r.createElement("div")),p=d.el.appendChild(r.createElement("div"));p.className="error_widget_arrow "+u.className;var m=t.renderer.$cursorLayer.getPixelPosition(s).left;p.style.left=m+t.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",f.className="error_widget "+u.className,f.innerHTML=u.text.join("
"),f.appendChild(r.createElement("div"));var g=function(t,e,i){if(0===e&&("esc"===i||"return"===i))return d.destroy(),{command:"null"}};d.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(g),i.widgetManager.removeLineWidget(d),t.off("changeSelection",d.destroy),t.off("changeSession",d.destroy),t.off("mouseup",d.destroy),t.off("change",d.destroy))},t.keyBinding.addKeyboardHandler(g),t.on("changeSelection",d.destroy),t.on("changeSession",d.destroy),t.on("mouseup",d.destroy),t.on("change",d.destroy),t.session.widgetManager.addLineWidget(d),d.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},r.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,u=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.amdD,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="";if(t&&/input|textarea/i.test(t.tagName)){var l=t;s=l.value,t=r.createElement("pre"),l.parentNode.replaceChild(t,l)}else t&&(s=t.textContent,t.innerHTML="");var u=e.createEditSession(s),h=new a(new c(t),u,i),d={document:u,editor:h,onResize:h.resize.bind(h,null)};return l&&(d.textarea=l),o.addListener(window,"resize",d.onResize),h.on("destroy",(function(){o.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),h.container.env=h.env=d,h},e.createEditSession=function(t,e){var i=new l(t,e);return i.setUndoManager(new u),i},e.Range=s,e.Editor=a,e.EditSession=l,e.UndoManager=u,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)}))},679:(t,e,i)=>{t=i.nmd(t),ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=t("./lib/lang"),s=t("./range").Range,a=t("./range_list").RangeList,l=t("./keyboard/hash_handler").HashHandler,u=t("./tokenizer").Tokenizer,c=t("./clipboard"),h={CURRENT_WORD:function(t){return t.session.getTextRange(t.session.getWordRange())},SELECTION:function(t,e,i){var n=t.session.getTextRange();return i?n.replace(/\n\r?([ \t]*\S)/g,"\n"+i+"$1"):n},CURRENT_LINE:function(t){return t.session.getLine(t.getCursorPosition().row)},PREV_LINE:function(t){return t.session.getLine(t.getCursorPosition().row-1)},LINE_INDEX:function(t){return t.getCursorPosition().row},LINE_NUMBER:function(t){return t.getCursorPosition().row+1},SOFT_TABS:function(t){return t.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(t){return t.session.getTabSize()},CLIPBOARD:function(t){return c.getText&&c.getText()},FILENAME:function(t){return/[^/\\]*$/.exec(this.FILEPATH(t))[0]},FILENAME_BASE:function(t){return/[^/\\]*$/.exec(this.FILEPATH(t))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(t){return this.FILEPATH(t).replace(/[^/\\]*$/,"")},FILEPATH:function(t){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(t){var e=t.session.$mode||{};return e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(t){var e=t.session.$mode||{};return e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(t){return(t.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:d.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:d.bind(null,{year:"2-digit"}),CURRENT_MONTH:d.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:d.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:d.bind(null,{month:"short"}),CURRENT_DATE:d.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:d.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:d.bind(null,{weekday:"short"}),CURRENT_HOUR:d.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:d.bind(null,{minute:"2-digit"}),CURRENT_SECOND:d.bind(null,{second:"2-digit"})};function d(t){var e=(new Date).toLocaleString("en-us",t);return 1==e.length?"0"+e:e}h.SELECTED_TEXT=h.SELECTION;var f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){n.implement(this,r),this.getTokenizer=function(){return f.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function t(t){return t=t.substr(1),/^\d+$/.test(t)?[{tabstopId:parseInt(t,10)}]:[{text:t}]}function e(t){return"(?:[^\\\\"+t+"]|\\\\.)"}var i={regex:"/("+e("/")+"+)/",onMatch:function(t,e,i){var n=i[0];return n.fmtString=!0,n.guard=t.slice(1,-1),n.flag="",""},next:"formatString"};return f.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(t,e,i){var n=t[1];return("}"==n&&i.length||-1!="`$\\".indexOf(n))&&(t=n),[t]}},{regex:/}/,onMatch:function(t,e,i){return[i.length?i.shift():t]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1));return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+e("\\|")+"*\\|",onMatch:function(t,e,i){var n=t.slice(1,-1).replace(/\\[,|\\]|,/g,(function(t){return 2==t.length?t[1]:"\0"})).split("\0").map((function(t){return{value:t}}));return i[0].choices=n,[n[0]]},next:"start"},i,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(t,e,i){return i.length&&i[0].expectElse?(i[0].expectElse=!1,i[0].ifEnd={elseEnd:i[0]},[i[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(t,e,i){var n=t[1];return"}"==n&&i.length||-1!="`$\\".indexOf(n)?t=n:"n"==n?t="\n":"t"==n?t="\t":-1!="ulULE".indexOf(n)&&(t={changeCase:n,local:n>"a"}),[t]}},{regex:"/\\w*}",onMatch:function(t,e,i){var n=i.shift();return n&&(n.flag=t.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||t]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(t,e,i){return[{text:t.slice(1)}]}},{regex:/\${\w+/,onMatch:function(t,e,i){var n={text:t.slice(2)};return i.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(t,e,i){var n=i.shift();return this.next=n&&n.tabstopId?"start":"",[n||t]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(t,e,i){return i[0].formatFunction=t.slice(2,-1),[i.shift()]},next:"formatString"},i,{regex:/:[\?\-+]?/,onMatch:function(t,e,i){"+"==t[1]&&(i[0].ifEnd=i[0]),"?"==t[1]&&(i[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},this.tokenizeTmSnippet=function(t,e){return this.getTokenizer().getLineTokens(t,e).tokens.map((function(t){return t.value||t}))},this.getVariableValue=function(t,e,i){if(/^\d+$/.test(e))return(this.variables.__||{})[e]||"";if(/^[A-Z]\d+$/.test(e))return(this.variables[e[0]+"__"]||{})[e.substr(1)]||"";if(e=e.replace(/^TM_/,""),!this.variables.hasOwnProperty(e))return"";var n=this.variables[e];return"function"==typeof n&&(n=this.variables[e](t,e,i)),null==n?"":n},this.variables=h,this.tmStrFormat=function(t,e,i){if(!e.fmt)return t;var n=e.flag||"",r=e.guard;r=new RegExp(r,n.replace(/[^gim]/g,""));var o="string"==typeof e.fmt?this.tokenizeTmSnippet(e.fmt,"formatString"):e.fmt,s=this,a=t.replace(r,(function(){var t=s.variables.__;s.variables.__=[].slice.call(arguments);for(var e=s.resolveVariables(o,i),n="E",r=0;r1?(_=e[e.length-1].length,v+=e.length-1):_+=t.length,b+=t}else t&&(t.start?t.end={row:v,column:_}:t.start={row:v,column:_})}));var y=t.getSelectionRange(),w=t.session.replace(y,b),M=new p(t),x=t.inVirtualSelectionMode&&t.selection.index;M.addTabstops(a,y.start,w,x)},this.insertSnippet=function(t,e){var i=this;if(t.inVirtualSelectionMode)return i.insertSnippetForSelection(t,e);t.forEachSelection((function(){i.insertSnippetForSelection(t,e)}),null,{keepOrder:!0}),t.tabstopManager&&t.tabstopManager.tabNext()},this.$getScope=function(t){var e=t.session.$mode.$id||"";if("html"===(e=e.split("/").pop())||"php"===e){"php"!==e||t.session.$mode.inlinePhp||(e="html");var i=t.getCursorPosition(),n=t.session.getState(i.row);"object"==typeof n&&(n=n[0]),n.substring&&("js-"==n.substring(0,3)?e="javascript":"css-"==n.substring(0,4)?e="css":"php-"==n.substring(0,4)&&(e="php"))}return e},this.getActiveScopes=function(t){var e=this.$getScope(t),i=[e],n=this.snippetMap;return n[e]&&n[e].includeScopes&&i.push.apply(i,n[e].includeScopes),i.push("_"),i},this.expandWithTab=function(t,e){var i=this,n=t.forEachSelection((function(){return i.expandSnippetForSelection(t,e)}),null,{keepOrder:!0});return n&&t.tabstopManager&&t.tabstopManager.tabNext(),n},this.expandSnippetForSelection=function(t,e){var i,n=t.getCursorPosition(),r=t.session.getLine(n.row),o=r.substring(0,n.column),s=r.substr(n.column),a=this.snippetMap;return this.getActiveScopes(t).some((function(t){var e=a[t];return e&&(i=this.findMatchingSnippet(e,o,s)),!!i}),this),!!i&&(e&&e.dryRun||(t.session.doc.removeInLine(n.row,n.column-i.replaceBefore.length,n.column+i.replaceAfter.length),this.variables.M__=i.matchBefore,this.variables.T__=i.matchAfter,this.insertSnippetForSelection(t,i.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(t,e,i){for(var n=t.length;n--;){var r=t[n];if((!r.startRe||r.startRe.test(e))&&(!r.endRe||r.endRe.test(i))&&(r.startRe||r.endRe))return r.matchBefore=r.startRe?r.startRe.exec(e):[""],r.matchAfter=r.endRe?r.endRe.exec(i):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(e)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(i)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(t,e){var i=this.snippetMap,n=this.snippetNameMap,r=this;function s(t){return t&&!/^\^?\(.*\)\$?$|^\\b$/.test(t)&&(t="(?:"+t+")"),t||""}function a(t,e,i){return t=s(t),e=s(e),i?(t=e+t)&&"$"!=t[t.length-1]&&(t+="$"):(t+=e)&&"^"!=t[0]&&(t="^"+t),new RegExp(t)}function l(t){t.scope||(t.scope=e||"_"),e=t.scope,i[e]||(i[e]=[],n[e]={});var s=n[e];if(t.name){var l=s[t.name];l&&r.unregister(l),s[t.name]=t}i[e].push(t),t.prefix&&(t.tabTrigger=t.prefix),!t.content&&t.body&&(t.content=Array.isArray(t.body)?t.body.join("\n"):t.body),t.tabTrigger&&!t.trigger&&(!t.guard&&/^\w/.test(t.tabTrigger)&&(t.guard="\\b"),t.trigger=o.escapeRegExp(t.tabTrigger)),(t.trigger||t.guard||t.endTrigger||t.endGuard)&&(t.startRe=a(t.trigger,t.guard,!0),t.triggerRe=new RegExp(t.trigger),t.endRe=a(t.endTrigger,t.endGuard,!0),t.endTriggerRe=new RegExp(t.endTrigger))}t||(t=[]),Array.isArray(t)?t.forEach(l):Object.keys(t).forEach((function(e){l(t[e])})),this._signal("registerSnippets",{scope:e})},this.unregister=function(t,e){var i=this.snippetMap,n=this.snippetNameMap;function r(t){var r=n[t.scope||e];if(r&&r[t.name]){delete r[t.name];var o=i[t.scope||e],s=o&&o.indexOf(t);s>=0&&o.splice(s,1)}}t.content?r(t):Array.isArray(t)&&t.forEach(r)},this.parseSnippetFile=function(t){t=t.replace(/\r/g,"");for(var e,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;e=r.exec(t);){if(e[1])try{n=JSON.parse(e[1]),i.push(n)}catch(t){}if(e[4])n.content=e[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=e[2],s=e[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=a.exec(s)[1],n.trigger=a.exec(s)[1],n.endTrigger=a.exec(s)[1],n.endGuard=a.exec(s)[1]}else"snippet"==o?(n.tabTrigger=s.match(/^\S*/)[0],n.name||(n.name=s)):o&&(n[o]=s)}}return i},this.getSnippetByName=function(t,e){var i,n=this.snippetNameMap;return this.getActiveScopes(e).some((function(e){var r=n[e];return r&&(i=r[t]),!!i}),this),i}}).call(f.prototype);var p=function(t){if(t.tabstopManager)return t.tabstopManager;t.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(t)};(function(){this.attach=function(t){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=t,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(t){for(var e="r"==t.action[0],i=this.selectedTabstop||{},n=i.parents||{},r=(this.tabstops||[]).slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},this.addTabstopMarkers=function(t){var e=this.editor.session;t.forEach((function(t){t.markerId||(t.markerId=e.addMarker(t,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(t){var e=this.editor.session;t.forEach((function(t){e.removeMarker(t.markerId),t.markerId=null}))},this.removeRange=function(t){var e=t.tabstop.indexOf(t);-1!=e&&t.tabstop.splice(e,1),-1!=(e=this.ranges.indexOf(t))&&this.ranges.splice(e,1),-1!=(e=t.tabstop.rangeList.ranges.indexOf(t))&&t.tabstop.splice(e,1),this.editor.session.removeMarker(t.markerId),t.tabstop.length||(-1!=(e=this.tabstops.indexOf(t.tabstop))&&this.tabstops.splice(e,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(t){e.snippetManager&&e.snippetManager.expandWithTab(t)||(t.tabstopManager.tabNext(1),t.renderer.scrollCursorIntoView())},"Shift-Tab":function(t){t.tabstopManager.tabNext(-1),t.renderer.scrollCursorIntoView()},Esc:function(t){t.tabstopManager.detach()}})}).call(p.prototype);var m=function(t,e){0==t.row&&(t.column+=e.column),t.row+=e.row},g=function(t,e){t.row==e.row&&(t.column-=e.column),t.row-=e.row};t("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),e.snippetManager=new f;var v=t("./editor").Editor;(function(){this.insertSnippet=function(t,i){return e.snippetManager.insertSnippet(this,t,i)},this.expandSnippet=function(t){return e.snippetManager.expandWithTab(this,t)}}).call(v.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../virtual_renderer").VirtualRenderer,r=t("../editor").Editor,o=t("../range").Range,s=t("../lib/event"),a=t("../lib/lang"),l=t("../lib/dom"),u=function(t){var e=new n(t);e.$maxLines=4;var i=new r(e);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusTimeout=0,i.$highlightTagPending=!0,i};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),e.AcePopup=function(t){var e=l.createElement("div"),i=new u(e);t&&t.appendChild(e),e.style.display="none",i.renderer.content.style.cursor="default",i.renderer.setStyle("ace_autocomplete"),i.setOption("displayIndentGuides",!1),i.setOption("dragDelay",150);var n,r=function(){};i.focus=r,i.$isFocused=!0,i.renderer.$cursorLayer.restartTimer=r,i.renderer.$cursorLayer.element.style.opacity=0,i.renderer.$maxLines=8,i.renderer.$keepTextAreaAtCursor=!1,i.setHighlightActiveLine(!1),i.session.highlight(""),i.session.$searchHighlight.clazz="ace_highlight-marker",i.on("mousedown",(function(t){var e=t.getDocumentPosition();i.selection.moveToPosition(e),h.start.row=h.end.row=e.row,t.stop()}));var c=new o(-1,0,-1,1/0),h=new o(-1,0,-1,1/0);h.id=i.session.addMarker(h,"ace_active-line","fullLine"),i.setSelectOnHover=function(t){t?c.id&&(i.session.removeMarker(c.id),c.id=null):c.id=i.session.addMarker(c,"ace_line-hover","fullLine")},i.setSelectOnHover(!1),i.on("mousemove",(function(t){if(n){if(n.x!=t.x||n.y!=t.y){(n=t).scrollTop=i.renderer.scrollTop;var e=n.getDocumentPosition().row;c.start.row!=e&&(c.id||i.setRow(e),f(e))}}else n=t})),i.renderer.on("beforeRender",(function(){if(n&&-1!=c.start.row){n.$pos=null;var t=n.getDocumentPosition().row;c.id||i.setRow(t),f(t,!0)}})),i.renderer.on("afterRender",(function(){var t=i.getRow(),e=i.renderer.$textLayer,n=e.element.childNodes[t-e.config.firstRow];n!==e.selectedNode&&e.selectedNode&&l.removeCssClass(e.selectedNode,"ace_selected"),e.selectedNode=n,n&&l.addCssClass(n,"ace_selected")}));var d=function(){f(-1)},f=function(t,e){t!==c.start.row&&(c.start.row=c.end.row=t,e||i.session._emit("changeBackMarker"),i._emit("changeHoverMarker"))};i.getHoveredRow=function(){return c.start.row},s.addListener(i.container,"mouseout",d),i.on("hide",d),i.on("changeSelection",d),i.session.doc.getLength=function(){return i.data.length},i.session.doc.getLine=function(t){var e=i.data[t];return"string"==typeof e?e:e&&e.value||""};var p=i.session.bgTokenizer;return p.$tokenizeRow=function(t){var e=i.data[t],n=[];if(!e)return n;"string"==typeof e&&(e={value:e});var r=e.caption||e.value||e.name;function o(t,i){t&&n.push({type:(e.className||"")+(i||""),value:t})}for(var s=r.toLowerCase(),a=(i.filterText||"").toLowerCase(),l=0,u=0,c=0;c<=a.length;c++)if(c!=u&&(e.matchMask&1<s/2&&!r&&c+e+u>s?(l.$maxPixelHeight=c-2*this.$borderSize,o.style.top="",o.style.bottom=s-c+"px",i.isTopdown=!1):(c+=e,l.$maxPixelHeight=s-c-.2*e,o.style.top=c+"px",o.style.bottom="",i.isTopdown=!0),o.style.display="";var h=t.left;h+o.offsetWidth>a&&(h=a-o.offsetWidth),o.style.left=h+"px",this._signal("show"),n=null,i.isOpen=!0},i.goTo=function(t){var e=this.getRow(),i=this.session.getLength()-1;switch(t){case"up":e=e<=0?i:e-1;break;case"down":e=e>=i?-1:e+1;break;case"start":e=0;break;case"end":e=i}this.setRow(e)},i.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},i.$imageSize=0,i.$borderSize=1,i},e.$singleLineEditor=u})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(t,e,i){"use strict";e.parForEach=function(t,e,i){var n=0,r=t.length;0===r&&i();for(var o=0;o=0&&i.test(t[o]);o--)r.push(t[o]);return r.reverse().join("")},e.retrieveFollowingIdentifier=function(t,e,i){i=i||n;for(var r=[],o=e;othis.filterText&&0===t.lastIndexOf(this.filterText,0))var e=this.filtered;else e=this.all;this.filterText=t,e=(e=this.filterCompletions(e,this.filterText)).sort((function(t,e){return e.exactMatch-t.exactMatch||e.$score-t.$score||(t.caption||t.value).localeCompare(e.caption||e.value)}));var i=null;e=e.filter((function(t){var e=t.snippet||t.caption||t.value;return e!==i&&(i=e,!0)})),this.filtered=e},this.filterCompletions=function(t,e){var i=[],n=e.toUpperCase(),r=e.toLowerCase();t:for(var o,s=0;o=t[s];s++){var a=o.caption||o.value||o.snippet;if(a){var l,u,c=-1,h=0,d=0;if(this.exactMatch){if(e!==a.substr(0,e.length))continue t}else{var f=a.toLowerCase().indexOf(r);if(f>-1)d=f;else for(var p=0;p=0&&(g<0||m0&&(-1===c&&(d+=10),d+=u,h|=1<",s.escapeHTML(t.caption),"","
",s.escapeHTML(t.snippet)].join(""))}},h=[c,l,u];e.setCompleters=function(t){h.length=0,t&&h.push.apply(h,t)},e.addCompleter=function(t){h.push(t)},e.textCompleter=l,e.keyWordCompleter=u,e.snippetCompleter=c;var d={name:"expandSnippet",exec:function(t){return n.expandWithTab(t)},bindKey:"Tab"},f=function(t,e){p(e.session.$mode)},p=function(t){"string"==typeof t&&(t=o.$modes[t]),t&&(n.files||(n.files={}),m(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(p))},m=function(t,e){e&&t&&!n.files[t]&&(n.files[t]={},o.loadModule(e,(function(e){e&&(n.files[t]=e,!e.snippets&&e.snippetText&&(e.snippets=n.parseSnippetFile(e.snippetText)),n.register(e.snippets||[],e.scope),e.includeScopes&&(n.snippetMap[e.scope].includeScopes=e.includeScopes,e.includeScopes.forEach((function(t){p("ace/mode/"+t)}))))})))},g=function(t){var e=t.editor,i=e.completer&&e.completer.activated;if("backspace"===t.command.name)i&&!a.getCompletionPrefix(e)&&e.completer.detach();else if("insertstring"===t.command.name&&a.getCompletionPrefix(e)&&!i){var n=r.for(e);n.autoInsert=!1,n.showPopup(e)}},v=t("../editor").Editor;t("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:h),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:h),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(d),this.on("changeMode",f),f(0,this)):(this.commands.removeCommand(d),this.off("changeMode",f))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(e){t&&(t.exports=e)}))}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var r={};return(()=>{"use strict";n.r(r),n.d(r,{default:()=>R});var t=n(239),i=n.n(t),o=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 function(){function e(){this.__entries__=[]}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__;i0},t.prototype.connect_=function(){s&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},t.prototype.disconnect_=function(){s&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;u.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new o,k=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 x(e,i,this);S.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){k.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}}));const C=void 0!==a.ResizeObserver?a.ResizeObserver:k;function E(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 A(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=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"];const R={props:{value:{},lang:{type:String,default:"text"},theme:{type:String,default:"textmate"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number,useWorker:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1}},emits:["update:value","init"].concat(O),data:function(){return{ro:null,editor:null,contentBackup:""}},watch:{value:function(t){t&&this.contentBackup!==t&&(this.setValue(t),this.contentBackup=t)},theme:function(t){this.editor.setTheme("ace/theme/"+t)},options:function(t){this.editor.setOptions(t)},readonly:function(t){this.editor.setReadOnly(t)},placeholder:function(t){this.editor.setOption("placeholder",t)},wrap:function(t){this.editor.setWrapBehavioursEnabled(t)},printMargin:function(t){this.editor.setOption("printMargin",t)},lang:function(t){this.editor.setOption("mode","ace/mode/"+t)},minLines:function(t){this.editor.setOption("minLines",t)},maxLines:function(t){this.editor.setOption("maxLines",t)}},created:function(){this.lazy||(n(679),i().config.set("basePath","https://cdn.jsdelivr.net/npm/ace-builds@"+n(239).version+"/src-noconflict/"))},mounted:function(){var t=this,e=this.editor=i().edit(this.$el,function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:1;this.editor.setValue(t,e)},getValue:function(){return this.editor.getValue()},redo:function(){this.editor.redo()},undo:function(){this.editor.undo()},toUpperCase:function(){this.editor.toUpperCase()},toLowerCase:function(){this.editor.toLowerCase()},setTheme:function(t){this.editor.setTheme(t)},getTheme:function(){return this.editor.getTheme()},setReadOnly:function(t){this.editor.setReadOnly(t)},getReadOnly:function(){return this.editor.getReadOnly()},setFontSize:function(t){this.editor.setFontSize(t)},insert:function(t){this.editor.insert(t)},gotoPageUp:function(){this.editor.gotoPageUp()},gotoPageDown:function(){this.editor.gotoPageDown()},destroy:function(){this.editor.destroy()}},render:function(t){return t("div")}}})(),r})()}))}).call(this,i("c8ba"))},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 u,this.tree._init(t.body)}function u(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 h(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;o0&&void 0!==arguments[0]?arguments[0]:"default",e="";switch(t){case"default":e="#35495E";break;case"primary":e="#3488ff";break;case"success":e="#43B883";break;case"warning":e="#e6a23c";break;case"danger":e="#f56c6c";break;default:break}return e}r.capsule=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"primary";console.log("%c ".concat(t," %c ").concat(e," %c"),"background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;","background:".concat(o(i),"; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;"),"background:transparent")},r.colorful=function(t){var e;(e=console).log.apply(e,["%c".concat(t.map((function(t){return t.text||""})).join("%c"))].concat(Object(n["a"])(t.map((function(t){return"color: ".concat(o(t.type),";")})))))},r.default=function(t){r.colorful([{text:t}])},r.primary=function(t){r.colorful([{text:t,type:"primary"}])},r.success=function(t){r.colorful([{text:t,type:"success"}])},r.warning=function(t){r.colorful([{text:t,type:"warning"}])},r.danger=function(t){r.colorful([{text:t,type:"danger"}])},window.$Log=r;var s=r,a={Sortable:{url:"https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",title:"表格拖拽,需要引sortableJs",version:"1.10.0-rc2",github:"https://github.com/SortableJS/Sortable"},thirdPartyAxios:{title:"需要引入第三方axios发送数据包",url:"https://cdn.staticfile.org/axios/0.21.1/axios.js",version:"0.21.1",github:"https://github.com/axios/axios"},CryptoJS:{url:"http://qtestbucket.qiniudn.com/demo/CryptoJS.js",title:"七牛云图片上传,需要引入CryptoJS",version:"3.1.2"},AliOSS:{url:"https://cdn.bootcdn.net/ajax/libs/ali-oss/6.2.1/aliyun-oss-sdk.min.js",title:"阿里云云图片上传,需要引入OSS的sdk",version:"6.1.0",github:"https://github.com/ali-sdk/ali-oss/"}};e["default"]=function(){return{logs:function(t){var e=a[t];s.capsule(t,e.title,"warning"),s.warning("版本:"+(e.version||"-")),s.warning("CDN:"+(e.url||"-")),s.warning("GITHUB:"+(e.github||"-"))}}}()},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(5).Buffer}catch(E){}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 u(t,e,i,n){for(var r=0,o=Math.min(t.length,i),s=e;s=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=0;r-=3)s=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===i)for(r=0,o=0;r>>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=e;n-=2)r=l(t,e,n)<=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=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;c1&&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?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),i=0;i>>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 u=1;u>>26,h=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;r=0|t.words[p],o=0|e.words[f],s=r*o+h,c+=s/67108864|0,h=67108863&s}i.words[u]=0|h,l=0|c}return 0!==l?i.words[u]=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>>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 u=h[t],f=d[t];i="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),i=p.isZero()?m+i:c[u-m.length]+m+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,u=new t(o),c=this.clone();if(l){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),u[a]=s;for(;a=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;et.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;it.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;nt.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;r0&&(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<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.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>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],v=8191&g,_=g>>>13,b=0|s[3],y=8191&b,w=b>>>13,M=0|s[4],x=8191&M,S=M>>>13,k=0|s[5],C=8191&k,E=k>>>13,A=0|s[6],O=8191&A,R=A>>>13,T=0|s[7],L=8191&T,$=T>>>13,P=0|s[8],I=8191&P,D=P>>>13,B=0|s[9],j=8191&B,N=B>>>13,F=0|a[0],q=8191&F,W=F>>>13,z=0|a[1],U=8191&z,K=z>>>13,H=0|a[2],V=8191&H,G=H>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,Q=0|a[4],J=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,ut=at>>>13,ct=0|a[8],ht=8191&ct,dt=ct>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;i.negative=t.negative^e.negative,i.length=19,n=Math.imul(h,q),r=Math.imul(h,W),r=r+Math.imul(d,q)|0,o=Math.imul(d,W);var gt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),r=Math.imul(p,W),r=r+Math.imul(m,q)|0,o=Math.imul(m,W),n=n+Math.imul(h,U)|0,r=r+Math.imul(h,K)|0,r=r+Math.imul(d,U)|0,o=o+Math.imul(d,K)|0;var vt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),r=Math.imul(v,W),r=r+Math.imul(_,q)|0,o=Math.imul(_,W),n=n+Math.imul(p,U)|0,r=r+Math.imul(p,K)|0,r=r+Math.imul(m,U)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,V)|0,r=r+Math.imul(h,G)|0,r=r+Math.imul(d,V)|0,o=o+Math.imul(d,G)|0;var _t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(y,q),r=Math.imul(y,W),r=r+Math.imul(w,q)|0,o=Math.imul(w,W),n=n+Math.imul(v,U)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(_,U)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(p,V)|0,r=r+Math.imul(p,G)|0,r=r+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(h,Z)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var bt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),r=Math.imul(x,W),r=r+Math.imul(S,q)|0,o=Math.imul(S,W),n=n+Math.imul(y,U)|0,r=r+Math.imul(y,K)|0,r=r+Math.imul(w,U)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,G)|0,r=r+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(p,Z)|0,r=r+Math.imul(p,X)|0,r=r+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,r=r+Math.imul(h,tt)|0,r=r+Math.imul(d,J)|0,o=o+Math.imul(d,tt)|0;var yt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(C,q),r=Math.imul(C,W),r=r+Math.imul(E,q)|0,o=Math.imul(E,W),n=n+Math.imul(x,U)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,U)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(y,V)|0,r=r+Math.imul(y,G)|0,r=r+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(p,J)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,it)|0,r=r+Math.imul(h,nt)|0,r=r+Math.imul(d,it)|0,o=o+Math.imul(d,nt)|0;var wt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),r=Math.imul(O,W),r=r+Math.imul(R,q)|0,o=Math.imul(R,W),n=n+Math.imul(C,U)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(E,U)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,G)|0,r=r+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(y,Z)|0,r=r+Math.imul(y,X)|0,r=r+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,J)|0,r=r+Math.imul(v,tt)|0,r=r+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,it)|0,r=r+Math.imul(p,nt)|0,r=r+Math.imul(m,it)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,r=r+Math.imul(h,st)|0,r=r+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(L,q),r=Math.imul(L,W),r=r+Math.imul($,q)|0,o=Math.imul($,W),n=n+Math.imul(O,U)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(R,U)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,G)|0,r=r+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,Z)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(y,J)|0,r=r+Math.imul(y,tt)|0,r=r+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,it)|0,r=r+Math.imul(v,nt)|0,r=r+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,r=r+Math.imul(p,st)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(h,lt)|0,r=r+Math.imul(h,ut)|0,r=r+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,q),r=Math.imul(I,W),r=r+Math.imul(D,q)|0,o=Math.imul(D,W),n=n+Math.imul(L,U)|0,r=r+Math.imul(L,K)|0,r=r+Math.imul($,U)|0,o=o+Math.imul($,K)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,G)|0,r=r+Math.imul(R,V)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(C,Z)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,J)|0,r=r+Math.imul(x,tt)|0,r=r+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,r=r+Math.imul(y,nt)|0,r=r+Math.imul(w,it)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,r=r+Math.imul(v,st)|0,r=r+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,n=n+Math.imul(p,lt)|0,r=r+Math.imul(p,ut)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,r=r+Math.imul(h,dt)|0,r=r+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var St=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),r=Math.imul(j,W),r=r+Math.imul(N,q)|0,o=Math.imul(N,W),n=n+Math.imul(I,U)|0,r=r+Math.imul(I,K)|0,r=r+Math.imul(D,U)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(L,V)|0,r=r+Math.imul(L,G)|0,r=r+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(O,Z)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(R,Z)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,J)|0,r=r+Math.imul(C,tt)|0,r=r+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,it)|0,r=r+Math.imul(x,nt)|0,r=r+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(y,ot)|0,r=r+Math.imul(y,st)|0,r=r+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,n=n+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,r=r+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(p,ht)|0,r=r+Math.imul(p,dt)|0,r=r+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,n=n+Math.imul(h,pt)|0,r=r+Math.imul(h,mt)|0,r=r+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),r=Math.imul(j,K),r=r+Math.imul(N,U)|0,o=Math.imul(N,K),n=n+Math.imul(I,V)|0,r=r+Math.imul(I,G)|0,r=r+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(L,Z)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul($,Z)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(O,J)|0,r=r+Math.imul(O,tt)|0,r=r+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(C,it)|0,r=r+Math.imul(C,nt)|0,r=r+Math.imul(E,it)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,r=r+Math.imul(x,st)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(y,lt)|0,r=r+Math.imul(y,ut)|0,r=r+Math.imul(w,lt)|0,o=o+Math.imul(w,ut)|0,n=n+Math.imul(v,ht)|0,r=r+Math.imul(v,dt)|0,r=r+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ct=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,V),r=Math.imul(j,G),r=r+Math.imul(N,V)|0,o=Math.imul(N,G),n=n+Math.imul(I,Z)|0,r=r+Math.imul(I,X)|0,r=r+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,r=r+Math.imul(L,tt)|0,r=r+Math.imul($,J)|0,o=o+Math.imul($,tt)|0,n=n+Math.imul(O,it)|0,r=r+Math.imul(O,nt)|0,r=r+Math.imul(R,it)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(C,ot)|0,r=r+Math.imul(C,st)|0,r=r+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,n=n+Math.imul(x,lt)|0,r=r+Math.imul(x,ut)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ut)|0,n=n+Math.imul(y,ht)|0,r=r+Math.imul(y,dt)|0,r=r+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,n=n+Math.imul(v,pt)|0,r=r+Math.imul(v,mt)|0,r=r+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,Z),r=Math.imul(j,X),r=r+Math.imul(N,Z)|0,o=Math.imul(N,X),n=n+Math.imul(I,J)|0,r=r+Math.imul(I,tt)|0,r=r+Math.imul(D,J)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(L,it)|0,r=r+Math.imul(L,nt)|0,r=r+Math.imul($,it)|0,o=o+Math.imul($,nt)|0,n=n+Math.imul(O,ot)|0,r=r+Math.imul(O,st)|0,r=r+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(C,lt)|0,r=r+Math.imul(C,ut)|0,r=r+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0,r=r+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0,n=n+Math.imul(y,pt)|0,r=r+Math.imul(y,mt)|0,r=r+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var At=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,J),r=Math.imul(j,tt),r=r+Math.imul(N,J)|0,o=Math.imul(N,tt),n=n+Math.imul(I,it)|0,r=r+Math.imul(I,nt)|0,r=r+Math.imul(D,it)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(L,ot)|0,r=r+Math.imul(L,st)|0,r=r+Math.imul($,ot)|0,o=o+Math.imul($,st)|0,n=n+Math.imul(O,lt)|0,r=r+Math.imul(O,ut)|0,r=r+Math.imul(R,lt)|0,o=o+Math.imul(R,ut)|0,n=n+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0,r=r+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,r=r+Math.imul(x,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Ot=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,it),r=Math.imul(j,nt),r=r+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(I,ot)|0,r=r+Math.imul(I,st)|0,r=r+Math.imul(D,ot)|0,o=o+Math.imul(D,st)|0,n=n+Math.imul(L,lt)|0,r=r+Math.imul(L,ut)|0,r=r+Math.imul($,lt)|0,o=o+Math.imul($,ut)|0,n=n+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0,r=r+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,n=n+Math.imul(C,pt)|0,r=r+Math.imul(C,mt)|0,r=r+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Rt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(j,ot),r=Math.imul(j,st),r=r+Math.imul(N,ot)|0,o=Math.imul(N,st),n=n+Math.imul(I,lt)|0,r=r+Math.imul(I,ut)|0,r=r+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0,r=r+Math.imul($,ht)|0,o=o+Math.imul($,dt)|0,n=n+Math.imul(O,pt)|0,r=r+Math.imul(O,mt)|0,r=r+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Tt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,lt),r=Math.imul(j,ut),r=r+Math.imul(N,lt)|0,o=Math.imul(N,ut),n=n+Math.imul(I,ht)|0,r=r+Math.imul(I,dt)|0,r=r+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(L,pt)|0,r=r+Math.imul(L,mt)|0,r=r+Math.imul($,pt)|0,o=o+Math.imul($,mt)|0;var Lt=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,ht),r=Math.imul(j,dt),r=r+Math.imul(N,ht)|0,o=Math.imul(N,dt),n=n+Math.imul(I,pt)|0,r=r+Math.imul(I,mt)|0,r=r+Math.imul(D,pt)|0,o=o+Math.imul(D,mt)|0;var $t=(u+n|0)+((8191&r)<<13)|0;u=(o+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,n=Math.imul(j,pt),r=Math.imul(j,mt),r=r+Math.imul(N,pt)|0,o=Math.imul(N,mt);var Pt=(u+n|0)+((8191&r)<<13)|0;return u=(o+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=gt,l[1]=vt,l[2]=_t,l[3]=bt,l[4]=yt,l[5]=wt,l[6]=Mt,l[7]=xt,l[8]=St,l[9]=kt,l[10]=Ct,l[11]=Et,l[12]=At,l[13]=Ot,l[14]=Rt,l[15]=Tt,l[16]=Lt,l[17]=$t,l[18]=Pt,0!==u&&(l[19]=u,i.length++),i};function g(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>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 _;return n.mulp(t,e,i)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var i,n=this.length+t.length;return i=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),i},_.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,i,n,r,o){for(var s=0;s>>=1)r++;return 1<>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=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=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>>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=0),r=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==c||u>=r);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&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<=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<=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>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r>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,u=n.length-r.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=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),u=0;while(e.isEven()&&i.isEven())e.iushrn(1),i.iushrn(1),++u;var c=i.clone(),h=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(h)),r.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0){i.iushrn(p);while(p-- >0)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(h)),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(u)}},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 u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0){e.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}for(var h=0,d=1;0===(i.words[0]&d)&&h<26;++h,d<<=1);if(h>0){i.iushrn(h);while(h-- >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<>>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:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(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 b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.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 C(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,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=e0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var i=4194303,n=Math.min(t.length,9),r=0;r>>22,o=s}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[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):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var 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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(l))c.redIAdd(l);var h=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 m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,l++,(l===i||0===r&&0===h)&&(s=this.mul(s,n[a]),l=0,a=0)):l=0}u=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 C(t)},r(C,k),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.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)},C.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)},C.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 u(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=u(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},d139:function(t,e,i){"use strict";var n=i("ebb5"),r=i("b727").find,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("find",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},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}},d1e7:function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},d28b:function(t,e,i){var n=i("746f");n("iterator")},d2bb:function(t,e,i){var n=i("825a"),r=i("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(i,[]),e=i instanceof Array}catch(o){}return function(i,o){return n(i),r(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},d3b7:function(t,e,i){var n=i("00ee"),r=i("6eeb"),o=i("b041");n||r(Object.prototype,"toString",o,{unsafe:!0})},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=0:h>d;d+=f)d in c&&(l=i(l,c[d],d,u));return l}};t.exports={left:a(!1),right:a(!0)}},d5d6:function(t,e,i){"use strict";var n=i("ebb5"),r=i("b727").forEach,o=n.aTypedArray,s=n.exportTypedArrayMethod;s("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},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"}')},d784:function(t,e,i){"use strict";i("ac1f");var n=i("6eeb"),r=i("9263"),o=i("d039"),s=i("b622"),a=i("9112"),l=s("species"),u=RegExp.prototype;t.exports=function(t,e,i,c){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=d&&!o((function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[l]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return e=!0,null},i[h](""),!e}));if(!d||!f||i){var p=/./[h],m=e(h,""[t],(function(t,e,i,n,o){var s=e.exec;return s===r||s===u.exec?d&&!o?{done:!0,value:p.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}));n(String.prototype,t,m[0]),n(u,h,m[1])}c&&a(u[h],"sham",!0)}},d81d:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").map,o=i("1dde"),s=o("map");n({target:"Array",proto:!0,forced:!s},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d998:function(t,e,i){var n=i("342f");t.exports=/MSIE|Trident/.test(n)},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)}},da84:function(t,e,i){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(t,e,i){var n=i("23e7"),r=i("83ab"),o=i("56ef"),s=i("fc6a"),a=i("06cf"),l=i("8418");n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,i,n=s(t),r=a.f,u=o(n),c={},h=0;while(u.length>h)i=r(n,e=u[h++]),void 0!==i&&l(c,e,i);return c}})},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(){D(e,t)}}t.exports=b;var s,a=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:r.nextTick;b.WritableState=_;var l=Object.create(i("3a7c"));l.inherits=i("3fb5");var u={deprecate:i("b7d1")},c=i("429b"),h=i("8707").Buffer,d=n.Uint8Array||function(){};function f(t){return h.from(t)}function p(t){return h.isBuffer(t)||t instanceof d}var m,g=i("4681");function v(){}function _(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 u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){E(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 b(t){if(s=s||i("b19a"),!m.call(b,this)&&!(this instanceof s))return new b(t);this._writableState=new _(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),c.call(this)}function y(t,e){var i=new Error("write after end");t.emit("error",i),r.nextTick(e,i)}function w(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 M(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=h.from(e,i)),e}function x(t,e,i,n,r,o){if(!i){var s=M(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-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},b.prototype._writev=null,b.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||I(this,n,i)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i("4362"),i("c8ba"))},ddb0:function(t,e,i){var n=i("da84"),r=i("fdbc"),o=i("e260"),s=i("9112"),a=i("b622"),l=a("iterator"),u=a("toStringTag"),c=o.values;for(var h in r){var d=n[h],f=d&&d.prototype;if(f){if(f[l]!==c)try{s(f,l,c)}catch(m){f[l]=c}if(f[u]||s(f,u,h),r[h])for(var p in o)if(f[p]!==o[p])try{s(f,p,o[p])}catch(m){f[p]=o[p]}}}},df75:function(t,e,i){var n=i("ca84"),r=i("7839");t.exports=Object.keys||function(t){return n(t,r)}},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=-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=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=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"))},dfb0:function(t,e,i){},e017:function(t,e,i){(function(e){(function(e,i){t.exports=i()})(0,(function(){"use strict";var t=function(t){var e=t.id,i=t.viewBox,n=t.content;this.id=e,this.viewBox=i,this.content=n};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var i=function(t){var e=!!document.importNode,i=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(i,!0):i};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r=n((function(t,e){(function(e,i){t.exports=i()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function i(i,n){var r=n&&!0===n.clone;return r&&t(i)?o(e(i),i,n):i}function n(e,n,r){var s=e.slice();return n.forEach((function(n,a){"undefined"===typeof s[a]?s[a]=i(n,r):t(n)?s[a]=o(e[a],n,r):-1===e.indexOf(n)&&s.push(i(n,r))})),s}function r(e,n,r){var s={};return t(e)&&Object.keys(e).forEach((function(t){s[t]=i(e[t],r)})),Object.keys(n).forEach((function(a){t(n[a])&&e[a]?s[a]=o(e[a],n[a],r):s[a]=i(n[a],r)})),s}function o(t,e,o){var s=Array.isArray(e),a=o||{arrayMerge:n},l=a.arrayMerge||n;return s?Array.isArray(t)?l(t,e,o):i(e,o):r(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,i){return o(t,i,e)}))},o}))})),o=n((function(t,e){var i={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=i,t.exports=e.default})),s=function(t){return Object.keys(t).map((function(e){var i=t[e].toString().replace(/"/g,""");return e+'="'+i+'"'})).join(" ")},a=o.svg,l=o.xlink,u={};u[a.name]=a.uri,u[l.name]=l.uri;var c=function(t,e){void 0===t&&(t="");var i=r(u,e||{}),n=s(i);return""+t+""},h=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,i=this.render();return this.node=i,e.appendChild(i),i},e.prototype.render=function(){var t=this.stringify();return i(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(t);return h}))}).call(this,i("c8ba"))},e01a:function(t,e,i){"use strict";var n=i("23e7"),r=i("83ab"),o=i("da84"),s=i("5135"),a=i("861d"),l=i("9bf2").f,u=i("e893"),c=o.Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(h[e]=!0),e};u(d,c);var f=d.prototype=c.prototype;f.constructor=d;var p=f.toString,m="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=p.call(t);if(s(h,t))return"";var i=m?e.slice(7,-1):e.replace(g,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:d})}},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"),u=i("8be6"),c=s.alloc(128),h={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=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e2cc:function(t,e,i){var n=i("6eeb");t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},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")},e3db:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},e439:function(t,e,i){var n=i("23e7"),r=i("d039"),o=i("fc6a"),s=i("06cf").f,a=i("83ab"),l=r((function(){s(1)})),u=!a||l;n({target:"Object",stat:!0,forced:u,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},e538:function(t,e,i){var n=i("b622");e.f=n},e552:function(t,e,i){"use strict";var n,r;function o(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}n=[i("e943"),i("4d7c"),i("a6c1")],r=function(t,e,i){return o(t,e,i)}.apply(e,n),void 0===r||(t.exports=r)},e58c:function(t,e,i){"use strict";var n=i("fc6a"),r=i("a691"),o=i("50c4"),s=i("a640"),a=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,c=s("lastIndexOf"),h=u||!c;t.exports=h?function(t){if(u)return l.apply(this,arguments)||0;var e=n(this),i=o(e.length),s=i-1;for(arguments.length>1&&(s=a(s,r(arguments[1]))),s<0&&(s=i+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:l},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=u;var r=i("4250"),o=i("19ea");i("3fb5")(u,r);for(var s=n(o.prototype),a=0;a=51&&/native code/.test(W))return!1;var e=new W((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))},n=e.constructor={};return n[D]=i,rt=e.then((function(){}))instanceof i,!rt||!t&&$&&!Z})),st=ot||!M((function(t){W.all(t)["catch"]((function(){}))})),at=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},lt=function(t,e){if(!t.notified){t.notified=!0;var i=t.reactions;k((function(){var n=t.value,r=t.state==tt,o=0;while(i.length>o){var s,a,l,u=i[o++],c=r?u.ok:u.fail,h=u.resolve,d=u.reject,f=u.domain;try{c?(r||(t.rejection===nt&&dt(t),t.rejection=it),!0===c?s=n:(f&&f.enter(),s=c(n),f&&(f.exit(),l=!0)),s===u.promise?d(U("Promise-chain cycle")):(a=at(s))?a.call(s,h,d):h(s)):d(n)}catch(p){f&&!l&&f.exit(),d(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ct(t)}))}},ut=function(t,e,i){var n,r;Y?(n=K.createEvent("Event"),n.promise=e,n.reason=i,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:i},!Z&&(r=u["on"+t])?r(n):t===X&&E("Unhandled promise rejection",i)},ct=function(t){S.call(u,(function(){var e,i=t.facade,n=t.value,r=ht(t);if(r&&(e=O((function(){P?H.emit("unhandledRejection",n,i):ut(X,i,n)})),t.rejection=P||ht(t)?nt:it,e.error))throw e.value}))},ht=function(t){return t.rejection!==it&&!t.parent},dt=function(t){S.call(u,(function(){var e=t.facade;P?H.emit("rejectionHandled",e):ut(Q,e,t.value)}))},ft=function(t,e,i){return function(n){t(e,n,i)}},pt=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=et,lt(t,!0))},mt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw U("Promise can't be resolved itself");var n=at(e);n?k((function(){var i={done:!1};try{n.call(e,ft(mt,i,t),ft(pt,i,t))}catch(r){pt(i,r,t)}})):(t.value=e,t.state=tt,lt(t,!1))}catch(r){pt({done:!1},r,t)}}};if(ot&&(W=function(t){b(this,W,B),_(t),n.call(this);var e=j(this);try{t(ft(mt,e),ft(pt,e))}catch(i){pt(e,i)}},z=W.prototype,n=function(t){N(this,{type:B,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},n.prototype=f(z,{then:function(t,e){var i=F(this),n=V(x(this,W));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?H.domain:void 0,i.parent=!0,i.reactions.push(n),i.state!=J&<(i,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n,e=j(t);this.promise=t,this.resolve=ft(mt,e),this.reject=ft(pt,e)},A.f=V=function(t){return t===W||t===o?new r(t):G(t)},!l&&"function"==typeof h&&q!==Object.prototype)){s=q.then,rt||(d(q,"then",(function(t,e){var i=this;return new W((function(t,e){s.call(i,t,e)})).then(t,e)}),{unsafe:!0}),d(q,"catch",z["catch"],{unsafe:!0}));try{delete q.constructor}catch(gt){}p&&p(q,z)}a({global:!0,wrap:!0,forced:ot},{Promise:W}),m(W,B,!1,!0),g(B),o=c(B),a({target:B,stat:!0,forced:ot},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),a({target:B,stat:!0,forced:l||ot},{resolve:function(t){return C(l&&this===o?W:this,t)}}),a({target:B,stat:!0,forced:st},{all:function(t){var e=this,i=V(e),n=i.resolve,r=i.reject,o=O((function(){var i=_(e.resolve),o=[],s=0,a=1;w(t,(function(t){var l=s++,u=!1;o.push(void 0),a++,i.call(e,t).then((function(t){u||(u=!0,o[l]=t,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise},race:function(t){var e=this,i=V(e),n=i.reject,r=O((function(){var r=_(e.resolve);w(t,(function(t){r.call(e,t).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},e726:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"widget-config"},[t.validateNull(t.data)?i("plugin-empty",{staticStyle:{"margin-top":"100%"},attrs:{desc:"拖拽字段进行配置"}}):i("el-form",{attrs:{"label-position":"top",size:"small"}},[i(t.getComponentConfig(t.data.type,t.data.component),{tag:"component",attrs:{data:t.data}})],1)],1)},r=[],o=i("e74d"),s=i("cfe8"),a=i("313a"),l={name:"WidgetConfig",components:{pluginEmpty:s["a"]},props:{data:{type:Object}},methods:{validateNull:o["s"],getComponentConfig:a["f"]}},u=l,c=i("2877"),h=Object(c["a"])(u,n,r,!1,null,null,null);e["a"]=h.exports},e74d:function(t,e,i){"use strict";i.d(e,"q",(function(){return tt})),i.d(e,"d",(function(){return et})),i.d(e,"i",(function(){return it})),i.d(e,"s",(function(){return nt})),i.d(e,"o",(function(){return rt})),i.d(e,"f",(function(){return ot})),i.d(e,"p",(function(){return st})),i.d(e,"e",(function(){return at})),i.d(e,"c",(function(){return lt})),i.d(e,"g",(function(){return ut})),i.d(e,"b",(function(){return ct})),i.d(e,"r",(function(){return ht})),i.d(e,"j",(function(){return dt})),i.d(e,"h",(function(){return ft})),i.d(e,"l",(function(){return pt})),i.d(e,"n",(function(){return yt})),i.d(e,"m",(function(){return wt})),i.d(e,"a",(function(){return Mt})),i.d(e,"k",(function(){return xt}));i("d3b7"),i("ac1f"),i("5319"),i("4d63"),i("25f0"),i("a9e3"),i("1276"),i("466d"),i("e260"),i("ace4"),i("5cc6"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),i("99af"),i("fb6a"),i("b64b");var n=i("422f"),r=(i("a15b"),"\\u0300-\\u036f"),o="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",h="\\u2000-\\u206f",d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f=u+c+h+d,p="\\ud800-\\udfff",m="\\u2700-\\u27bf",g="\\ufe0e\\ufe0f",v=r+o+s,_="\\d+",b="['’]",y="["+a+"]",w="["+l+"]",M="["+f+"]",x="["+m+"]",S="["+v+"]",k="[^"+p+"]",C="[^"+p+f+_+m+l+a+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",O="\\ud83c[\\udffb-\\udfff]",R="(?:"+S+"|"+O+")",T="\\u200d",L="(?:"+y+"|"+C+")",$="(?:"+w+"|"+C+")",P="(?:"+b+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+b+"(?:D|LL|M|RE|S|T|VE))?",D="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",B="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",j="["+g+"]?",N=R+"?",F="(?:"+T+"(?:"+[k,E,A].join("|")+")"+j+N+")*",q=j+N+F,W="(?:"+[x,E,A].join("|")+")"+q,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,K=RegExp("[".concat(r).concat(o).concat(s,"]"),"g"),H=RegExp(b,"g"),V=RegExp([y+"?"+w+"+"+P+"(?="+[M,y,"$"].join("|")+")",L+"+"+I+"(?="+[M,y+$,"$"].join("|")+")",y+"?"+$+"+"+P,y+"+"+I,D,B,_,W].join("|"),"g"),G=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Y=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e="0123456789",i="abcdefghijklmnopqrstuvwxyz",n=i.toUpperCase(),r=e+i+n,o=r.length,s=256-256%o,a="";while(a.length1&&void 0!==arguments[1]?arguments[1]:"";return nt(t)&&(t=e),nt(t)?"":(t+="",-1===t.indexOf("%")&&(t+="px"),t)}function et(t){var e,i=it(t);if("array"===i)e=[];else{if("object"!==i)return t;e={}}if("array"===i)for(var n=0,r=t.length;n1&&void 0!==arguments[1]?arguments[1]:"config",i=mt(t.replace("plugin"===e?n["i"]:n["h"],""));return i.charAt(0).toUpperCase()+i.slice(1)}function wt(t,e,i){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(i,t[n],n,t)}function Mt(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.prototype.toString,i=0;i<(arguments.length<=1?0:arguments.length-1);++i){var n=i+1<1||arguments.length<=i+1?void 0:arguments[i+1];if(n)for(var r=Object.keys(n),o=0,s=r.length;o1?arguments[1]:void 0)}))},e943:function(t,e,i){var n,r;(function(){var i;(function(){"use strict";var t=[function(t,e,i){var n=i(1).Beautifier,r=i(5).Options;function o(t,e){var i=new n(t,e);return i.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new r}},function(t,e,i){var n=i(2).Output,r=i(3).Token,o=i(4),s=i(5).Options,a=i(7).Tokenizer,l=i(7).line_starters,u=i(7).positionable_operators,c=i(7).TOKEN;function h(t,e){return-1!==e.indexOf(t)}function d(t){return t.replace(/^\s+/g,"")}function f(t){for(var e={},i=0;ii&&(i=t.line_indent_level));var n={mode:e,parent:t,last_token:t?t.last_token:new r(c.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:t?t.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0};return n},E.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new n(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var i=new a(t,this._options);return this._tokens=i.tokenize(),t},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,e=this._reset(this._source_text),i=this._options.eol;"auto"===this._options.eol&&(i="\n",e&&o.lineBreak.test(e||"")&&(i=e.match(o.lineBreak)[0]));var n=this._tokens.next();while(n)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return t=this._output.get_code(i),t},E.prototype.handle_token=function(t,e){t.type===c.START_EXPR?this.handle_start_expr(t):t.type===c.END_EXPR?this.handle_end_expr(t):t.type===c.START_BLOCK?this.handle_start_block(t):t.type===c.END_BLOCK?this.handle_end_block(t):t.type===c.WORD||t.type===c.RESERVED?this.handle_word(t):t.type===c.SEMICOLON?this.handle_semicolon(t):t.type===c.STRING?this.handle_string(t):t.type===c.EQUALS?this.handle_equals(t):t.type===c.OPERATOR?this.handle_operator(t):t.type===c.COMMA?this.handle_comma(t):t.type===c.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===c.COMMENT?this.handle_comment(t,e):t.type===c.DOT?this.handle_dot(t):t.type===c.EOF?this.handle_eof(t):(t.type,c.UNKNOWN,this.handle_unknown(t,e))},E.prototype.handle_whitespace_and_comments=function(t,e){var i=t.newlines,n=this._options.keep_array_indentation&&x(this._flags.mode);if(t.comments_before){var r=t.comments_before.next();while(r)this.handle_whitespace_and_comments(r,e),this.handle_token(r,e),r=t.comments_before.next()}if(n)for(var o=0;o0,e);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,e);for(var s=1;s0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y.Statement&&w(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(t){var e=!1;return e=e||m(this._flags.last_token,["var","let","const"])&&t.type===c.WORD,e=e||p(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&m(this._flags.last_token,A)&&!t.newlines,e=e||p(this._flags.last_token,"else")&&!(p(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),e=e||this._flags.last_token.type===c.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==c.WORD&&t.type!==c.RESERVED,e=e||this._flags.mode===y.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"])),!!e&&(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,m(t,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=y.Expression;if("["===t.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text)return m(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=y.ArrayLiteral,x(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=y.ForInitializer):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=y.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var n=this._tokens.peek(-4);m(i,["async","function"])||"*"===i.text&&m(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===c.START_BLOCK?this.print_newline():this._flags.last_token.type!==c.END_EXPR&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==c.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(t){while(this._flags.mode===y.Statement)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),w(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y.Conditional&&(this._previous_flags.mode=y.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(y.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y.BlockStatement):i&&(h(i.text,[":",","])&&h(e.type,[c.STRING,c.WORD,c.RESERVED])||h(e.text,["get","set","..."])&&h(i.type,[c.WORD,c.RESERVED]))?h(this._last_last_text,["class","interface"])?this.set_mode(y.BlockStatement):this.set_mode(y.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(y.BlockStatement):h(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||m(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y.ObjectLiteral):this.set_mode(y.BlockStatement);var n=!e.comments_before&&"}"===e.text,r=n&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var o=0,s=null;this._flags.inline_frame=!0;do{if(o+=1,s=this._tokens.peek(o-1),s.newlines){this._flags.inline_frame=!1;break}}while(s.type!==c.EOF&&(s.type!==c.END_BLOCK||s.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(r||this._flags.last_token.type===c.EQUALS||m(this._flags.last_token,g)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!x(this._previous_flags.mode)||this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.COMMA||((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type!==c.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(t){this.handle_whitespace_and_comments(t);while(this._flags.mode===y.Statement)this.restore_mode();var e=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},E.prototype.handle_word=function(t){if(t.type===c.RESERVED)if(h(t.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)t.type=c.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=c.WORD;else if(h(t.text,["as","from"])&&!this._flags.import_block)t.type=c.WORD;else if(this._flags.mode===y.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=c.WORD)}if(this.start_of_statement(t)?m(this._flags.last_token,["var","let","const"])&&t.type===c.WORD&&(this._flags.declaration_statement=!0):!t.newlines||S(this._flags.mode)||this._flags.last_token.type===c.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===c.EQUALS||!this._options.preserve_newlines&&m(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(p(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&p(t,"else"))this._flags.else_block=!0;else{while(this._flags.mode===y.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&m(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==c.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),p(t,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?m(this._flags.last_token,["get","set","new","export"])||m(this._flags.last_token,A)||p(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!x(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var i="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?i="SPACE":m(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?i="NEWLINE":(i="SPACE",this._output.space_before_token=!0):i="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===y.BlockStatement?i="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&S(this._flags.mode)?i="SPACE":this._flags.last_token.type===c.STRING?i="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&h(this._last_last_text,["{",","]))?i="SPACE":this._flags.last_token.type===c.START_BLOCK?i=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,i="NEWLINE"),m(t,l)&&")"!==this._flags.last_token.text&&(i=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),m(t,["else","catch","finally"]))if((this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==y.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var n=this._output.current_line;"}"!==n.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===i?m(this._flags.last_token,g)||"declare"===this._flags.last_token.text&&m(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&m(t,["var","let","const"])||":"===this._flags.last_token.text||(p(t,"if")&&p(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):m(t,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===i&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==c.WORD&&t.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===c.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&p(t,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);var e=this._tokens.peek();while(this._flags.mode===y.Statement&&(!this._flags.if_block||!p(e,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},E.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==c.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==c.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},E.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},E.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===y.ObjectLiteral||this._flags.mode===y.Statement&&this._flags.parent.mode===y.ObjectLiteral?(this._flags.mode===y.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},E.prototype.handle_operator=function(t){var e="*"===t.text&&(m(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),i=h(t.text,["-","+"])&&(h(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||h(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var n=!e;this.handle_whitespace_and_comments(t,n)}if(m(this._flags.last_token,g))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==c.DOT)if("::"!==t.text){if(this._flags.last_token.type===c.OPERATOR&&h(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var r=!0,o=!0,s=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,s=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!i&&!e&&this._options.preserve_newlines&&h(t.text,u)){var a=":"===t.text,d=a&&s,f=a&&!s;switch(this._options.operator_position){case _.before_newline:return this._output.space_before_token=!f,this.print_token(t),a&&!d||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case _.after_newline:return this._output.space_before_token=!0,!a||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case _.preserve_newline:return f||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||f),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),r=!1;var p=this._tokens.peek();o=p&&h(p.type,[c.WORD,c.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===c.START_BLOCK,o=!1):(h(t.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(t),r=!1,o=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&S(this._flags.mode)&&(r=!0),this._flags.last_token.type===c.RESERVED?r=!0:this._flags.last_token.type===c.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===c.OPERATOR&&(r=h(t.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(t.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(o=!0)),(this._flags.mode!==y.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==y.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=o}else this.print_token(t);else this.print_token(t)},E.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(t,e){var i,n=M(t.text),r=!1,o=!1,s=t.whitespace_before,a=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(n[0]),this.print_newline(!1,e),n.length>1){for(n=n.slice(1),r=k(n,"*"),o=C(n,s),r&&(this._flags.alignment=1),i=0;i0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function n(t,n){this.__indent_cache=new i(t,n),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e,i},i.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e],i},i.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},n.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,i){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==i){this.__lines.splice(n+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=n},function(t){function e(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=e},function(t,e){var i="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",o="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",s="(?:\\\\u[0-9a-fA-F]{4}|["+i+r+"])",a="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])*";e.identifier=new RegExp(s+a,"g"),e.identifierStart=new RegExp(s),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+r+o+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,i){var n=i(6).Options,r=["before-newline","after-newline","preserve-newline"];function o(t){n.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v="\\?\\.(?!\\d) "+v,v=v.replace(/ /g,"|");var _,b=new RegExp(v),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),w=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),M=new RegExp("^(?:"+w.join("|")+")$"),x=function(t,e){r.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new l(this._input),n=new u(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(a.identifier).matching(a.identifierMatch),number:i.matching(f),punct:i.matching(b),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(//),include:i.starting_with(/#include/).until_after(a.lineBreak),shebang:i.starting_with(/#!/).until_after(a.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};function S(t){var e="",i=0,r=new n(t),o=null;while(r.hasNext())if(o=r.match(/([\s]|[^\\]|\\\\)+/g),o&&(e+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){e+="\\",r.hasNext()&&(e+=r.next());continue}o=r.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if(i=parseInt(o[1],16),i>126&&i<=255&&0===o[0].indexOf("x"))return t;if(i>=0&&i<32){e+="\\"+o[0];continue}e+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return e}x.prototype=new r,x.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},x.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},x.prototype._reset=function(){_=!1},x.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(h.EOF,""):(i=i||this._read_non_javascript(n),i=i||this._read_string(n),i=i||this._read_word(t),i=i||this._read_singles(n),i=i||this._read_comment(n),i=i||this._read_regexp(n,t),i=i||this._read_xml(n,t),i=i||this._read_punctuation(),i=i||this._create_token(h.UNKNOWN,this._input.next()),i)},x.prototype._read_word=function(t){var e;return e=this.__patterns.identifier.read(),""!==e?(e=e.replace(a.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&M.test(e)?"in"===e||"of"===e?this._create_token(h.OPERATOR,e):this._create_token(h.RESERVED,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},x.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&m.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):"?."===t?this._create_token(h.DOT,t):this._create_token(h.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read(),e))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read(),e)return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(p)){do{t=this._input.next(),i+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,i)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read(),e){while(this._input.hasNext()&&!this._input.testChar(a.newline))e+=this._input.next();return _=!0,this._create_token(h.COMMENT,e)}}else if(_&&"-"===t&&(e=this.__patterns.html_comment_end.read(),e))return _=!1,this._create_token(h.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if("/"===t){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var n=d.get_directives(i);n&&"start"===n.ignore&&(i+=d.readIgnored(this._input)),i=i.replace(a.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,i),e.directives=n}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,i))}return e},x.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=S(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&c(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&c(t.opened.previous.text,["if","while","for"])||c(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},x.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){var i=this._input.next(),n=!1,r=!1;while(this._input.hasNext()&&(n||r||this._input.peek()!==t)&&!this._input.testChar(a.newline))i+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===t&&(i+=this._input.next(),i+=this._input.read(a.identifier)),this._create_token(h.STRING,i)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var i="",n=this.__patterns.xml.read_match();if(n){var r=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===r.indexOf("{"),s=0;while(n){var l=!!n[1],u=n[2],c=!!n[n.length-1]||"![CDATA["===u.slice(0,8);if(!c&&(u===r||o&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--s:++s),i+=n[0],s<=0)break;n=this.__patterns.xml.read_match()}return n||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,i)}}return null},x.prototype._read_string_recursive=function(t,e,i){var n,r;"'"===t?r=this.__patterns.single_quote:'"'===t?r=this.__patterns.double_quote:"`"===t?r=this.__patterns.template_text:"}"===t&&(r=this.__patterns.template_expression);var o=r.read(),s="";while(this._input.hasNext()){if(s=this._input.next(),s===t||!e&&a.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?(n=this._input.peek(),"x"===n||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):i&&("${"===i&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),i===s&&(s+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(s+=this._input.next()))),s+=r.read(),o+=s}return o},t.exports.Tokenizer=x,t.exports.TOKEN=h,t.exports.positionable_operators=g.slice(),t.exports.line_starters=y.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,i){var n=i(8).InputScanner,r=i(3).Token,o=i(10).TokenStream,s=i(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new n(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new r(a.START,""),i=null,n=[],s=new o;while(e.type!==a.EOF){t=this._get_next_token(e,i);while(this._is_comment(t))s.add(t),t=this._get_next_token(e,i);s.isEmpty()||(t.comments_before=s,s=new o),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(a.RAW,i):this._create_token(a.EOF,"")},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){var i=new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=a},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new n,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var i in r)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=t||this.__patterns.smarty_comment.read(),t=t||this.__patterns.smarty_literal.read(),t=t||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=o}],e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}var r=n(0);i=r})();var o=i;n=[],r=function(){return{js_beautify:o}}.apply(e,n),void 0===r||(t.exports=r)})()},e95a:function(t,e,i){var n=i("b622"),r=i("3f8c"),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},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 u(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<=s;c--)l=(l<<1)+n[c];u.push(l)}for(var h=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=r;f>0;f--){for(s=0;s=0;u--){for(var c=0;u>=0&&0===s[u];u--)c++;if(u>=0&&c++,l=l.dblp(c),u<0)break;var h=s[u];a(0!==h),l="affine"===t.type?h>0?l.mixedAdd(r[h-1>>1]):l.mixedAdd(r[-h-1>>1].neg()):h>0?l.add(r[h-1>>1]):l.add(r[-h-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,i,n,r){var a,l,u,c=this._wnafT1,h=this._wnafT2,d=this._wnafT3,f=0;for(a=0;a=1;a-=2){var m=a-1,g=a;if(1===c[m]&&1===c[g]){var v=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(v[1]=e[m].add(e[g]),v[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(v[1]=e[m].toJ().mixedAdd(e[g]),v[2]=e[m].add(e[g].neg())):(v[1]=e[m].toJ().mixedAdd(e[g]),v[2]=e[m].toJ().mixedAdd(e[g].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],b=s(i[m],i[g]);for(f=Math.max(b[0].length,f),d[m]=new Array(f),d[g]=new Array(f),l=0;l=0;a--){var S=0;while(a>=0){var k=!0;for(l=0;l=0&&S++,M=M.dblp(S),a<0)break;for(l=0;l0?u=h[l][C-1>>1]:C<0&&(u=h[l][-C-1>>1].neg()),M="affine"===u.type?M.mixedAdd(u):M.add(u))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},u.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r=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>>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(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,u=e.andln(3)+o&3;3===l&&(l=-1),3===u&&(u=-1),0===(1&l)?s=0:(n=t.andln(7)+r&7,s=3!==n&&5!==n||2!==u?l:-l),i[0].push(s),0===(1&u)?a=0:(n=e.andln(7)+o&7,a=3!==n&&5!==n||2!==l?u:-u),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 u(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 h(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=u,n.parseBytes=c,n.intFromLE=h},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>>32-e}function u(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 h(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=u(i,n,r,o,t[0],3614090360,7),o=u(o,i,n,r,t[1],3905402710,12),r=u(r,o,i,n,t[2],606105819,17),n=u(n,r,o,i,t[3],3250441966,22),i=u(i,n,r,o,t[4],4118548399,7),o=u(o,i,n,r,t[5],1200080426,12),r=u(r,o,i,n,t[6],2821735955,17),n=u(n,r,o,i,t[7],4249261313,22),i=u(i,n,r,o,t[8],1770035416,7),o=u(o,i,n,r,t[9],2336552879,12),r=u(r,o,i,n,t[10],4294925233,17),n=u(n,r,o,i,t[11],2304563134,22),i=u(i,n,r,o,t[12],1804603682,7),o=u(o,i,n,r,t[13],4254626195,12),r=u(r,o,i,n,t[14],2792965006,17),n=u(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=h(i,n,r,o,t[5],4294588738,4),o=h(o,i,n,r,t[8],2272392833,11),r=h(r,o,i,n,t[11],1839030562,16),n=h(n,r,o,i,t[14],4259657740,23),i=h(i,n,r,o,t[1],2763975236,4),o=h(o,i,n,r,t[4],1272893353,11),r=h(r,o,i,n,t[7],4139469664,16),n=h(n,r,o,i,t[10],3200236656,23),i=h(i,n,r,o,t[13],681279174,4),o=h(o,i,n,r,t[0],3936430074,11),r=h(r,o,i,n,t[3],3572445317,16),n=h(n,r,o,i,t[6],76029189,23),i=h(i,n,r,o,t[9],3654602809,4),o=h(o,i,n,r,t[12],3873151461,11),r=h(r,o,i,n,t[15],530742520,16),n=h(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},f5df:function(t,e,i){var n=i("00ee"),r=i("c6b6"),o=i("b622"),s=o("toStringTag"),a="Arguments"==r(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(i){}};t.exports=n?r:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=l(e=Object(t),s))?i:a?r(e):"Object"==(n=r(e))&&"function"==typeof e.callee?"Arguments":n}},f772:function(t,e,i){var n=i("5692"),r=i("90e3"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},f83c:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},f8cd:function(t,e,i){var n=i("a691");t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},fa9e:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:["loquat-form",t.formId],style:{width:t.setPx(t.widgetForm.formWidth,"100%")}},[i("el-form",{ref:"form",class:t.widgetForm.customClass,attrs:{model:t.form,"status-icon":t.widgetForm.statusIcon,"label-suffix":t.widgetForm.labelSuffix||t.formDefaultConfig.labelSuffix,size:t.widgetForm.size||t.formDefaultConfig.size,"label-position":t.widgetForm.labelPosition||t.formDefaultConfig.labelPosition,"label-width":t.setPx(t.widgetForm.labelWidth,t.formDefaultConfig.labelWidth)},nativeOn:{submit:function(t){t.preventDefault()}}},[t._l(t.columns,(function(t,e){return[i("item",{key:e,ref:t.prop,refInFor:!0,attrs:{column:t}})]}))],2)],1)},r=[],o=i("166e"),s=o["a"],a=i("2877"),l=Object(a["a"])(s,n,r,!1,null,null,null);e["a"]=l.exports},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=y,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(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=h(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 m(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?b(r):v(r,r.length)}function g(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;n0&&(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 u=l.length,c=v(l,u);for(i=0;i=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():_(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=0;n--)this.removeListener(t,e[n]);return this},l.prototype.listeners=function(t){return m(this,t,!0)},l.prototype.rawListeners=function(t){return m(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fb15:function(t,e,i){"use strict";i.r(e),i.d(e,"install",(function(){return Dn})),i.d(e,"LoquatCore",(function(){return Ln["a"]})),i.d(e,"remoteFunc",(function(){return Ln["b"]})),i.d(e,"remoteOption",(function(){return Ln["c"]})),i.d(e,"setup",(function(){return Ln["d"]})),i.d(e,"LoquatUtils",(function(){return Pn})),i.d(e,"jsonBeautify",(function(){return In}));var n={};if(i.r(n),i.d(n,"install",(function(){return Dn})),i.d(n,"LoquatCore",(function(){return Ln["a"]})),i.d(n,"remoteFunc",(function(){return Ln["b"]})),i.d(n,"remoteOption",(function(){return Ln["c"]})),i.d(n,"setup",(function(){return Ln["d"]})),i.d(n,"LoquatUtils",(function(){return Pn})),i.d(n,"jsonBeautify",(function(){return In})),"undefined"!==typeof window){var r=window.document.currentScript,o=i("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var s=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);s&&(i.p=s[1])}i("99af"),i("b0c0"),i("159b");var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"params"],expression:"[column, 'params']"}],attrs:{label:"自定义属性"}},[i("ace-editor",{staticStyle:{height:"300px"},attrs:{lang:"json5",theme:"textmate"},model:{value:t.column.params,callback:function(e){t.$set(t.column,"params",e)},expression:"column.params"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"自定义事件"}},[i("ace-editor",{staticStyle:{height:"300px"},attrs:{lang:"javascript",theme:"textmate"},model:{value:t.column.events,callback:function(e){t.$set(t.column,"events",e)},expression:"column.events"}})],1)],1)},l=[],u=i("cf72"),c=i.n(u),h={name:"Custom",components:{AceEditor:c.a},props:{data:{type:Object}},data:function(){return{first:!1}},computed:{column:function(){return this.first?this.data:{}}},mounted:function(){this.first=!0}},d=h,f=i("2877"),p=Object(f["a"])(d,a,l,!1,null,null,null),m=p.exports,g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"placeholder"],expression:"[plugin, 'placeholder']"}],attrs:{label:"占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.plugin.placeholder,callback:function(e){t.$set(t.plugin,"placeholder",e)},expression:"plugin.placeholder"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("el-input",{attrs:{clearable:"",type:t.plugin.type,rows:5,placeholder:"默认值"},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"prepend"],expression:"[plugin, 'prepend']"}],attrs:{label:"前缀"}},[i("el-input",{attrs:{clearable:"",placeholder:"前缀"},model:{value:t.plugin.prepend,callback:function(e){t.$set(t.plugin,"prepend",e)},expression:"plugin.prepend"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"append"],expression:"[plugin, 'append']"}],attrs:{label:"后缀"}},[i("el-input",{attrs:{clearable:"",placeholder:"后缀"},model:{value:t.plugin.append,callback:function(e){t.$set(t.plugin,"append",e)},expression:"plugin.append"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"maxlength"],expression:"[plugin, 'maxlength']"}],attrs:{label:"最多输入"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入字符长度"},model:{value:t.plugin.maxlength,callback:function(e){t.$set(t.plugin,"maxlength",e)},expression:"plugin.maxlength"}},[i("template",{slot:"append"},[t._v("个字符")])],2)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"readonly"],expression:"[plugin, 'readonly']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.readonly,callback:function(e){t.$set(t.plugin,"readonly",e)},expression:"plugin.readonly"}},[t._v("只读")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showWordLimit"],expression:"[plugin, 'showWordLimit']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showWordLimit,callback:function(e){t.$set(t.plugin,"showWordLimit",e)},expression:"plugin.showWordLimit"}},[t._v("显示计数")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showPassword"],expression:"[plugin, 'showPassword']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showPassword,callback:function(e){t.$set(t.plugin,"showPassword",e)},expression:"plugin.showPassword"}},[t._v("显示密码")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.someAndEveryPermission.validate,3],expression:"[column, someAndEveryPermission.validate, 3]"}],attrs:{label:"校验"}},[i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.validateType,2],expression:"[column, everyPermission.validateType, 2]"}],staticClass:"validate-block"},[i("el-checkbox",{staticStyle:{"margin-right":"10px"},on:{change:function(e){t.plugin.type="",e&&["number","integer","float"].includes(t.validateConfig.typeFormat)&&(t.plugin.type="number")}},model:{value:t.validateConfig.type,callback:function(e){t.$set(t.validateConfig,"type",e)},expression:"validateConfig.type"}}),i("el-select",{attrs:{disabled:!t.validateConfig.type,size:"mini",placeholder:"请选择"},on:{change:function(e){["number","integer","float"].includes(t.validateConfig.typeFormat)?t.plugin.type="number":t.plugin.type=""}},model:{value:t.validateConfig.typeFormat,callback:function(e){t.$set(t.validateConfig,"typeFormat",e)},expression:"validateConfig.typeFormat"}},[i("el-option",{attrs:{value:"string",label:"字符串"}}),i("el-option",{attrs:{value:"number",label:"数字"}}),i("el-option",{attrs:{value:"integer",label:"整数"}}),i("el-option",{attrs:{value:"float",label:"浮点数"}}),i("el-option",{attrs:{value:"url",label:"URL地址"}}),i("el-option",{attrs:{value:"email",label:"邮箱地址"}}),i("el-option",{attrs:{value:"hex",label:"十六进制"}})],1),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.type,expression:"validateConfig.type"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.typeMessage,callback:function(e){t.$set(t.validateConfig,"typeMessage",e)},expression:"validateConfig.typeMessage"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"pattern"],expression:"[validateConfig, 'pattern']"}],staticClass:"validate-block"},[i("el-checkbox",{staticStyle:{"margin-right":"10px"},model:{value:t.validateConfig.pattern,callback:function(e){t.$set(t.validateConfig,"pattern",e)},expression:"validateConfig.pattern"}}),i("el-input",{staticStyle:{width:"239px"},attrs:{disabled:!t.validateConfig.pattern,size:"mini",placeholder:"填写正则表达式"},model:{value:t.validateConfig.patternFormat,callback:function(e){t.$set(t.validateConfig,"patternFormat",e)},expression:"validateConfig.patternFormat"}}),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.pattern,expression:"validateConfig.pattern"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.patternMessage,callback:function(e){t.$set(t.validateConfig,"patternMessage",e)},expression:"validateConfig.patternMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},v=[],_=(i("7db0"),i("2909")),b={cascader:{operate:["hide","hideLabel","plugin.multiple","plugin.filterable","plugin.disabled","plugin.clearable"],operateMultiple:["plugin.multiple","plugin.value"],options:["remote","dicData","remoteType","remoteDataSource","remoteOption","remoteFunc","plugin.value","plugin.props.value","plugin.props.label","plugin.props.children"],defaultValue:["dicData","plugin.value"]},checkbox:{operate:["hide","hideLabel","plugin.all","plugin.disabled"],options:["remote","dicData","remoteType","remoteDataSource","remoteOption","remoteFunc","plugin.value","plugin.showLabel","plugin.props.value","plugin.props.label"]},coralLayout:{operate:["flex","hide"]},date:{displayType:["type","value","format","valueFormat"],defaultValue:["value","type","valueFormat","format"],operate:["plugin.readonly","plugin.disabled","hide","hideLabel","timestamp","plugin.editable","plugin.clearable"],operateTimestamp:["timestamp","plugin.value","plugin.valueFormat","plugin.type"]},font:{operate:["hide","hideLabel","plugin.center"],theme:["effect","effectType"]},input:{operate:["plugin.readonly","plugin.showWordLimit","plugin.disabled","plugin.showPassword","hide","hideLabel"],defaultValue:["value","type"],validate:["validateConfig.required","validateConfig.type","validateConfig.pattern"],validateType:["validateConfig.type","plugin.type"]},inputColor:{operate:["hide","hideLabel","plugin.disabled","plugin.showAlpha"],defaultValue:["value","showAlpha"]},inputNumber:{operate:["hide","hideLabel","plugin.disabled"],defaultValue:["value","step","minRows","maxRows"]},radio:{operate:["hide","hideLabel","plugin.disabled"],options:["remote","dicData","remoteType","remoteFunc","remoteOption","remoteDataSource","plugin.value","plugin.showLabel","plugin.props.value","plugin.props.label"]},rate:{operate:["hide","hideLabel","plugin.disabled","plugin.showScore","plugin.allowHalf"],defaultValue:["value","max","allowHalf"]},select:{options:["remote","dicData","remoteType","remoteDataSource","remoteOption","remoteFunc","plugin.value","plugin.multiple","plugin.showLabel","plugin.props.value","plugin.props.label"],operate:["plugin.multiple","plugin.filterable","hide","plugin.disabled","hideLabel","plugin.clearable","plugin.drag"],operateMultiple:["plugin.multiple","plugin.value","plugin.drag"]},slider:{operate:["hide","hideLabel","plugin.disabled","plugin.showInput"],defaultValue:["value","min","max","step","showInput"]},switch:{operate:["hide","hideLabel","plugin.disabled"]},time:{operate:["hide","hideLabel","plugin.readonly","plugin.disabled","plugin.editable","plugin.range","plugin.clearable","plugin.arrowControl"],operateRange:["plugin.range","plugin.value"],defaultValue:["value","valueFormat","format"]},upload:{oss:["plugin.oss","remote"],getToken:["remoteType","remoteDataSource","remoteFunc"],fileSize:["fileSize","byteUnit"],uploadConfig:["uploadConfig.home","uploadConfig.fileName","uploadConfig.resUrl","uploadConfig.res"],canvasConfig:["canvasOption.text","canvasOption.fontFamily","canvasOption.color","canvasOption.fontSize","canvasOption.opacity","canvasOption.bottom","canvasOption.right","canvasOption.ratio"],operate:["hide","hideLabel","plugin.drag","plugin.disabled","plugin.showCanvas","plugin.withCredentials","plugin.multiple","plugin.showFileList"]},childForm:{pageConfig:["page.pagerCount","page.pageSize","page.layout"],pageConfigOperate:["page.smallPaging","page.simplePage","page.background"],operate:["hide","hideLabel","plugin.disabled","plugin.readonly","plugin.loading","plugin.paging","plugin.option.fit","plugin.option.stripe","plugin.option.showHeader","plugin.option.highlightCurrentRow","plugin.option.indexExecute"]}},y=[{component:"Cascader",everyPermission:{defaultValue:b.cascader.defaultValue,options:b.cascader.options,operateMultiple:b.cascader.operateMultiple},someAndEveryPermission:{operate:[b.cascader.operate,[b.cascader.operateMultiple]]}},{component:"Checkbox",somePermission:{operate:b.checkbox.operate},everyPermission:{options:b.checkbox.options}},{component:"CoralLayout",somePermission:{operate:b.coralLayout.operate}},{component:"Date",everyPermission:{defaultValue:b.date.defaultValue,displayType:b.date.displayType,operateTimestamp:b.date.operateTimestamp},someAndEveryPermission:{operate:[b.date.operate,[b.date.operateTimestamp]]}},{component:"Font",somePermission:{operate:b.font.operate},everyPermission:{theme:b.font.theme}},{component:"Input",somePermission:{operate:b.input.operate},everyPermission:{defaultValue:b.input.defaultValue,validateType:b.input.validateType},someAndEveryPermission:{validate:[b.input.validate,[b.input.validateType]]}},{component:"InputColor",somePermission:{operate:b.inputColor.operate},everyPermission:{defaultValue:b.inputColor.defaultValue}},{component:"InputNumber",somePermission:{operate:b.inputNumber.operate},everyPermission:{defaultValue:b.inputNumber.defaultValue}},{component:"Radio",somePermission:{operate:b.radio.operate},everyPermission:{options:b.radio.options}},{component:"Rate",somePermission:{operate:b.rate.operate},everyPermission:{defaultValue:b.rate.defaultValue}},{component:"Select",everyPermission:{options:b.select.options,operateMultiple:b.select.operateMultiple},someAndEveryPermission:{operate:[b.select.operate,[b.select.operateMultiple]]}},{component:"Slider",somePermission:{operate:b.slider.operate},everyPermission:{defaultValue:b.slider.defaultValue}},{component:"Switch",somePermission:{operate:b.switch.operate}},{component:"Time",everyPermission:{defaultValue:b.time.defaultValue,operateRange:b.time.operateRange},someAndEveryPermission:{operate:[b.time.operate,[b.time.operateRange]]}},{component:"Upload",somePermission:{uploadConfig:b.upload.uploadConfig,canvasConfig:b.upload.canvasConfig,configCenterPerm:[].concat(Object(_["a"])(b.upload.uploadConfig),Object(_["a"])(b.upload.canvasConfig)),operate:b.upload.operate},everyPermission:{oss:b.upload.oss,getToken:b.upload.getToken,fileSize:b.upload.fileSize}},{component:"ChildForm",somePermission:{configCenterPerm:[].concat(Object(_["a"])(b.childForm.pageConfig),Object(_["a"])(b.childForm.pageConfigOperate)),pageConfig:[].concat(Object(_["a"])(b.childForm.pageConfig),Object(_["a"])(b.childForm.pageConfigOperate)),pageConfigOperate:b.childForm.pageConfigOperate,operate:b.childForm.operate}}],w=i("5175"),M=i("e74d"),x={name:"Input",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},someAndEveryPermission:function(){return this.permConfig.someAndEveryPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},validateConfig:function(){return this.column.validateConfig||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},S=x,k=Object(f["a"])(S,g,v,!1,null,null,null),C=k.exports,E=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"placeholder"],expression:"[plugin, 'placeholder']"}],attrs:{label:"占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.plugin.placeholder,callback:function(e){t.$set(t.plugin,"placeholder",e)},expression:"plugin.placeholder"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.options,2],expression:"[column, everyPermission.options, 2]"}],attrs:{label:"选项"}},[i("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},on:{change:function(e){t.plugin.multiple?t.$set(t.plugin,"value",[]):t.$set(t.plugin,"value","")}},model:{value:t.column.remote,callback:function(e){t.$set(t.column,"remote",e)},expression:"column.remote"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("静态数据")]),i("el-radio-button",{attrs:{label:!0}},[t._v("动态数据")])],1),t.column.remote?t._e():[i("el-checkbox",{model:{value:t.plugin.showLabel,callback:function(e){t.$set(t.plugin,"showLabel",e)},expression:"plugin.showLabel"}},[t._v("是否显示标签")]),t.plugin.multiple?i("el-checkbox-group",{attrs:{size:"mini"},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}},[i("draggable",{attrs:{tag:"ul",list:t.column.dicData,group:{name:"selectDicData"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.column.dicData,(function(e,n){return i("li",{key:n},[i("el-checkbox",{staticStyle:{"margin-right":"3px"},attrs:{label:e.value}},[i("el-input",{style:{width:t.plugin.showLabel?"90px":"180px"},attrs:{size:"mini",clearable:""},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),t.plugin.showLabel?i("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini",clearable:""},model:{value:e.label,callback:function(i){t.$set(e,"label",i)},expression:"item.label"}}):t._e()],1),i("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleRemoveFields(n)}}})],1)})),0)],1):i("el-radio-group",{attrs:{size:"mini"},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}},[i("draggable",{attrs:{tag:"ul",list:t.column.dicData,group:{name:"selectDicData"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.column.dicData,(function(e,n){return i("li",{key:n},[i("el-radio",{staticStyle:{"margin-right":"3px"},attrs:{label:e.value}},[i("el-input",{style:{width:t.plugin.showLabel?"90px":"180px"},attrs:{size:"mini",clearable:""},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),t.plugin.showLabel?i("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini",clearable:""},model:{value:e.label,callback:function(i){t.$set(e,"label",i)},expression:"item.label"}}):t._e()],1),i("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleRemoveFields(n)}}})],1)})),0)],1),i("div",{staticStyle:{"margin-left":"22px"}},[i("el-button",{attrs:{type:"text"},on:{click:t.handleAddFields}},[t._v("添加选项")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){t.plugin.multiple?t.$set(t.plugin,"value",[]):t.$set(t.plugin,"value","")}}},[t._v("重置选择")])],1)],t.column.remote?i("div",[i("el-radio-group",{model:{value:t.column.remoteType,callback:function(e){t.$set(t.column,"remoteType",e)},expression:"column.remoteType"}},[i("el-radio",{attrs:{label:"datasource"}},[t._v("数据源")]),i("el-radio",{attrs:{label:"option"}},[t._v("赋值变量")]),i("el-radio",{attrs:{label:"func"}},[t._v("方法函数")])],1),"datasource"===t.column.remoteType?[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini",placeholder:"请选择"},model:{value:t.column.remoteDataSource,callback:function(e){t.$set(t.column,"remoteDataSource",e)},expression:"column.remoteDataSource"}},t._l(t.design.widgetForm.dataSource,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.key}})})),1)]:t._e(),"option"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteOption,callback:function(e){t.$set(t.column,"remoteOption",e)},expression:"column.remoteOption"}})]:t._e(),"func"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteFunc,callback:function(e){t.$set(t.column,"remoteFunc",e)},expression:"column.remoteFunc"}})]:t._e(),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("值")]},proxy:!0}],null,!1,3564984217),model:{value:t.props.value,callback:function(e){t.$set(t.props,"value",e)},expression:"props.value"}}),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("标签")]},proxy:!0}],null,!1,2213438812),model:{value:t.props.label,callback:function(e){t.$set(t.props,"label",e)},expression:"props.label"}})],2):t._e()],2),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.someAndEveryPermission.operate,3],expression:"[column, someAndEveryPermission.operate, 3]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.operateMultiple,2],expression:"[column, everyPermission.operateMultiple, 2]"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{on:{change:function(e){e?t.$set(t.plugin,"value",[]):t.$set(t.plugin,"value",""),t.$set(t.plugin,"drag",!1)}},model:{value:t.plugin.multiple,callback:function(e){t.$set(t.plugin,"multiple",e)},expression:"plugin.multiple"}},[t._v("是否多选")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"filterable"],expression:"[plugin, 'filterable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.filterable,callback:function(e){t.$set(t.plugin,"filterable",e)},expression:"plugin.filterable"}},[t._v("是否可搜索")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"clearable"],expression:"[plugin, 'clearable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.clearable,callback:function(e){t.$set(t.plugin,"clearable",e)},expression:"plugin.clearable"}},[t._v("显示清除按钮")])],1),t.plugin.multiple?i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"drag"],expression:"[plugin, 'drag']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.drag,callback:function(e){t.$set(t.plugin,"drag",e)},expression:"plugin.drag"}},[t._v("是否可拖拽")])],1):t._e()],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},A=[],O=(i("a434"),i("b76a")),R=i.n(O),T={name:"Select",components:{Draggable:R.a},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},someAndEveryPermission:function(){return this.permConfig.someAndEveryPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},props:function(){return this.plugin.props||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"],handleRemoveFields:function(t){this.plugin.multiple?this.$set(this.plugin,"value",[]):this.$set(this.plugin,"value",""),this.column.dicData.splice(t,1)},handleAddFields:function(){this.plugin.showLabel?this.column.dicData.push({label:"新选项",value:"新选项"}):this.column.dicData.push(Object({value:"新选项"}))}}},L=T,$=Object(f["a"])(L,E,A,!1,null,null,null),P=$.exports,I=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"minRows"],expression:"[plugin, 'minRows']"}],attrs:{label:"最小值"}},[i("el-input-number",{model:{value:t.plugin.minRows,callback:function(e){t.$set(t.plugin,"minRows",t._n(e))},expression:"plugin.minRows"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"maxRows"],expression:"[plugin, 'maxRows']"}],attrs:{label:"最大值"}},[i("el-input-number",{model:{value:t.plugin.maxRows,callback:function(e){t.$set(t.plugin,"maxRows",t._n(e))},expression:"plugin.maxRows"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"step"],expression:"[plugin, 'step']"}],attrs:{label:"步长"}},[i("el-input-number",{model:{value:t.plugin.step,callback:function(e){t.$set(t.plugin,"step",t._n(e))},expression:"plugin.step"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"precision"],expression:"[plugin, 'precision']"}],attrs:{label:"精度"}},[i("el-input-number",{model:{value:t.plugin.precision,callback:function(e){t.$set(t.plugin,"precision",t._n(e))},expression:"plugin.precision"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"controlsPosition"],expression:"[plugin, 'controlsPosition']"}],attrs:{label:"控制按钮位置"}},[i("el-radio-group",{model:{value:t.plugin.controlsPosition,callback:function(e){t.$set(t.plugin,"controlsPosition",e)},expression:"plugin.controlsPosition"}},[i("el-radio-button",{attrs:{label:""}},[t._v("默认")]),i("el-radio-button",{attrs:{label:"right"}},[t._v("右侧")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("el-input-number",{attrs:{step:t.plugin.step,min:t.plugin.minRows,max:t.plugin.maxRows},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",t._n(e))},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},D=[],B={name:"InputNumber",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},j=B,N=Object(f["a"])(j,I,D,!1,null,null,null),F=N.exports,q=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"inline"],expression:"[plugin, 'inline']"}],attrs:{label:"布局方式"}},[i("el-radio-group",{model:{value:t.plugin.inline,callback:function(e){t.$set(t.plugin,"inline",e)},expression:"plugin.inline"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("块级")]),i("el-radio-button",{attrs:{label:!0}},[t._v("行内")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.options,2],expression:"[column, everyPermission.options, 2]"}],attrs:{label:"选项"}},[i("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},on:{change:function(e){return t.$set(t.plugin,"value","")}},model:{value:t.column.remote,callback:function(e){t.$set(t.column,"remote",e)},expression:"column.remote"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("静态数据")]),i("el-radio-button",{attrs:{label:!0}},[t._v("动态数据")])],1),t.column.remote?t._e():[i("el-checkbox",{model:{value:t.plugin.showLabel,callback:function(e){t.$set(t.plugin,"showLabel",e)},expression:"plugin.showLabel"}},[t._v("是否显示标签")]),i("el-radio-group",{attrs:{size:"mini"},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}},[i("draggable",{attrs:{tag:"ul",list:t.column.dicData,group:{name:"radioDicData"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.column.dicData,(function(e,n){return i("li",{key:n},[i("el-radio",{staticStyle:{"margin-right":"3px"},attrs:{label:e.value}},[i("el-input",{style:{width:t.plugin.showLabel?"90px":"180px"},attrs:{size:"mini",clearable:""},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),t.plugin.showLabel?i("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini",clearable:""},model:{value:e.label,callback:function(i){t.$set(e,"label",i)},expression:"item.label"}}):t._e()],1),i("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleRemoveFields(n)}}})],1)})),0)],1),i("div",{staticStyle:{"margin-left":"22px"}},[i("el-button",{attrs:{type:"text"},on:{click:t.handleAddFields}},[t._v("添加选项")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.$set(t.plugin,"value","")}}},[t._v("重置选择")])],1)],t.column.remote?i("div",[i("el-radio-group",{model:{value:t.column.remoteType,callback:function(e){t.$set(t.column,"remoteType",e)},expression:"column.remoteType"}},[i("el-radio",{attrs:{label:"datasource"}},[t._v("数据源")]),i("el-radio",{attrs:{label:"option"}},[t._v("赋值变量")]),i("el-radio",{attrs:{label:"func"}},[t._v("方法函数")])],1),"datasource"===t.column.remoteType?[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini",placeholder:"请选择"},model:{value:t.column.remoteDataSource,callback:function(e){t.$set(t.column,"remoteDataSource",e)},expression:"column.remoteDataSource"}},t._l(t.design.widgetForm.dataSource,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.key}})})),1)]:t._e(),"option"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteOption,callback:function(e){t.$set(t.column,"remoteOption",e)},expression:"column.remoteOption"}})]:t._e(),"func"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteFunc,callback:function(e){t.$set(t.column,"remoteFunc",e)},expression:"column.remoteFunc"}})]:t._e(),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("值")]},proxy:!0}],null,!1,3564984217),model:{value:t.props.value,callback:function(e){t.$set(t.props,"value",e)},expression:"props.value"}}),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("标签")]},proxy:!0}],null,!1,2213438812),model:{value:t.props.label,callback:function(e){t.$set(t.props,"label",e)},expression:"props.label"}})],2):t._e()],2),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},W=[],z={name:"Radio",components:{Draggable:R.a},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},props:function(){return this.plugin.props||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"],handleRemoveFields:function(t){this.$set(this.plugin,"value",""),this.column.dicData.splice(t,1)},handleAddFields:function(){this.plugin.showLabel?this.column.dicData.push({label:"新选项",value:"新选项"}):this.column.dicData.push(Object({value:"新选项"}))}}},U=z,K=Object(f["a"])(U,q,W,!1,null,null,null),H=K.exports,V=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"inline"],expression:"[plugin, 'inline']"}],attrs:{label:"布局方式"}},[i("el-radio-group",{model:{value:t.plugin.inline,callback:function(e){t.$set(t.plugin,"inline",e)},expression:"plugin.inline"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("块级")]),i("el-radio-button",{attrs:{label:!0}},[t._v("行内")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.options,1],expression:"[column, everyPermission.options, 1]"}],attrs:{label:"选项"}},[i("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},on:{change:function(e){return t.$set(t.plugin,"value",[])}},model:{value:t.column.remote,callback:function(e){t.$set(t.column,"remote",e)},expression:"column.remote"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("静态数据")]),i("el-radio-button",{attrs:{label:!0}},[t._v("动态数据")])],1),t.column.remote?t._e():[i("el-checkbox",{model:{value:t.plugin.showLabel,callback:function(e){t.$set(t.plugin,"showLabel",e)},expression:"plugin.showLabel"}},[t._v("是否显示标签")]),i("el-checkbox-group",{attrs:{size:"mini"},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}},[i("draggable",{attrs:{tag:"ul",list:t.column.dicData,group:{name:"checkboxDicData"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.column.dicData,(function(e,n){return i("li",{key:n},[i("el-checkbox",{staticStyle:{"margin-right":"3px"},attrs:{label:e.value}},[i("el-input",{style:{width:t.plugin.showLabel?"90px":"180px"},attrs:{size:"mini",clearable:""},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),t.plugin.showLabel?i("el-input",{staticStyle:{width:"90px"},attrs:{size:"mini",clearable:""},model:{value:e.label,callback:function(i){t.$set(e,"label",i)},expression:"item.label"}}):t._e()],1),i("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.handleRemoveFields(n)}}})],1)})),0)],1),i("div",{staticStyle:{"margin-left":"22px"}},[i("el-button",{attrs:{type:"text"},on:{click:t.handleAddFields}},[t._v("添加选项")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.$set(t.plugin,"value",[])}}},[t._v("重置选择")])],1)],t.column.remote?i("div",[i("el-radio-group",{model:{value:t.column.remoteType,callback:function(e){t.$set(t.column,"remoteType",e)},expression:"column.remoteType"}},[i("el-radio",{attrs:{label:"datasource"}},[t._v("数据源")]),i("el-radio",{attrs:{label:"option"}},[t._v("赋值变量")]),i("el-radio",{attrs:{label:"func"}},[t._v("方法函数")])],1),"datasource"===t.column.remoteType?[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini",placeholder:"请选择"},model:{value:t.column.remoteDataSource,callback:function(e){t.$set(t.column,"remoteDataSource",e)},expression:"column.remoteDataSource"}},t._l(t.design.widgetForm.dataSource,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.key}})})),1)]:t._e(),"option"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteOption,callback:function(e){t.$set(t.column,"remoteOption",e)},expression:"column.remoteOption"}})]:t._e(),"func"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteFunc,callback:function(e){t.$set(t.column,"remoteFunc",e)},expression:"column.remoteFunc"}})]:t._e(),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("值")]},proxy:!0}],null,!1,3564984217),model:{value:t.props.value,callback:function(e){t.$set(t.props,"value",e)},expression:"props.value"}}),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("标签")]},proxy:!0}],null,!1,2213438812),model:{value:t.props.label,callback:function(e){t.$set(t.props,"label",e)},expression:"props.label"}})],2):t._e()],2),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"all"],expression:"[plugin, 'all']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.all,callback:function(e){t.$set(t.plugin,"all",e)},expression:"plugin.all"}},[t._v("全选")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},G=[],Y={name:"Checkbox",components:{Draggable:R.a},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},props:function(){return this.plugin.props||{}},validateConfig:function(){return this.plugin.validateConfig||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"],handleRemoveFields:function(t){this.$set(this.plugin,"value",[]),this.column.dicData.splice(t,1)},handleAddFields:function(){this.column.showLabel?this.column.dicData.push({label:"新选项",value:"新选项"}):this.column.dicData.push(Object({value:"新选项"}))}}},Z=Y,X=Object(f["a"])(Z,V,G,!1,null,null,null),Q=X.exports,J=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),t.plugin.range?t._e():i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"placeholder"],expression:"[plugin, 'placeholder']"}],attrs:{label:"占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.plugin.placeholder,callback:function(e){t.$set(t.plugin,"placeholder",e)},expression:"plugin.placeholder"}})],1),t.plugin.range?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"startPlaceholder"],expression:"[plugin, 'startPlaceholder']"}],attrs:{label:"开始时间占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"开始时间占位内容"},model:{value:t.plugin.startPlaceholder,callback:function(e){t.$set(t.plugin,"startPlaceholder",e)},expression:"plugin.startPlaceholder"}})],1):t._e(),t.plugin.range?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"endPlaceholder"],expression:"[plugin, 'endPlaceholder']"}],attrs:{label:"结束时间占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"结束时间占位内容"},model:{value:t.plugin.endPlaceholder,callback:function(e){t.$set(t.plugin,"endPlaceholder",e)},expression:"plugin.endPlaceholder"}})],1):t._e(),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"valueFormat"],expression:"[plugin, 'valueFormat']"}],attrs:{label:"值格式化"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.valueFormat,callback:function(e){t.$set(t.plugin,"valueFormat",e)},expression:"plugin.valueFormat"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"format"],expression:"[plugin, 'format']"}],attrs:{label:"显示格式化"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.format,callback:function(e){t.$set(t.plugin,"format",e)},expression:"plugin.format"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[t.plugin.range?t._e():i("el-time-picker",{key:"1",staticStyle:{width:"100%"},attrs:{"value-format":t.plugin.valueFormat,format:t.plugin.format},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}}),t.plugin.range?i("el-time-picker",{key:"2",staticStyle:{width:"100%"},attrs:{"is-range":"","value-format":t.plugin.valueFormat,format:t.plugin.format},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}}):t._e()],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.someAndEveryPermission.operate,3],expression:"[column, someAndEveryPermission.operate, 3]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"readonly"],expression:"[plugin, 'readonly']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.readonly,callback:function(e){t.$set(t.plugin,"readonly",e)},expression:"plugin.readonly"}},[t._v("只读")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"editable"],expression:"[plugin, 'editable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.editable,callback:function(e){t.$set(t.plugin,"editable",e)},expression:"plugin.editable"}},[t._v("文本框可输入")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.operateRange,2],expression:"[column, everyPermission.operateRange, 2]"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{on:{change:function(e){return t.$set(t.plugin,"value","")}},model:{value:t.plugin.range,callback:function(e){t.$set(t.plugin,"range",e)},expression:"plugin.range"}},[t._v("是否为范围选择")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"clearable"],expression:"[plugin, 'clearable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.clearable,callback:function(e){t.$set(t.plugin,"clearable",e)},expression:"plugin.clearable"}},[t._v("显示清除按钮")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"arrowControl"],expression:"[plugin, 'arrowControl']"}],attrs:{span:24}},[i("el-checkbox",{model:{value:t.plugin.arrowControl,callback:function(e){t.$set(t.plugin,"arrowControl",e)},expression:"plugin.arrowControl"}},[t._v("使用箭头进行时间选择")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},tt=[],et={name:"Time",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},someAndEveryPermission:function(){return this.permConfig.someAndEveryPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},it=et,nt=Object(f["a"])(it,J,tt,!1,null,null,null),rt=nt.exports,ot=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.displayType,2],expression:"[plugin, everyPermission.displayType, 2]"}],attrs:{label:"显示类型"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},on:{change:function(){t.$set(t.plugin,"value",""),t.$set(t.plugin,"format",t.handleFormatType(t.plugin.type,1)),t.$set(t.plugin,"valueFormat",t.handleFormatType(t.plugin.type,0))}},model:{value:t.plugin.type,callback:function(e){t.$set(t.plugin,"type",e)},expression:"plugin.type"}},[i("el-option",{attrs:{value:"year"}}),i("el-option",{attrs:{value:"month"}}),i("el-option",{attrs:{value:"date"}}),i("el-option",{attrs:{value:"dates"}}),i("el-option",{attrs:{value:"datetime"}}),i("el-option",{attrs:{value:"datetimerange"}}),i("el-option",{attrs:{value:"daterange"}})],1)],1),t.plugin.type&&t.plugin.type.includes("range")?t._e():i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"placeholder"],expression:"[plugin, 'placeholder']"}],attrs:{label:"占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.plugin.placeholder,callback:function(e){t.$set(t.plugin,"placeholder",e)},expression:"plugin.placeholder"}})],1),t.plugin.type&&t.plugin.type.includes("range")?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"startPlaceholder"],expression:"[plugin, 'startPlaceholder']"}],attrs:{label:"开始时间占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"开始时间占位内容"},model:{value:t.plugin.startPlaceholder,callback:function(e){t.$set(t.plugin,"startPlaceholder",e)},expression:"plugin.startPlaceholder"}})],1):t._e(),t.plugin.type&&t.plugin.type.includes("range")?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"endPlaceholder"],expression:"[plugin, 'endPlaceholder']"}],attrs:{label:"结束时间占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"结束时间占位内容"},model:{value:t.plugin.endPlaceholder,callback:function(e){t.$set(t.plugin,"endPlaceholder",e)},expression:"plugin.endPlaceholder"}})],1):t._e(),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"valueFormat"],expression:"[plugin, 'valueFormat']"}],attrs:{label:"值格式化"}},[t.column.timestamp?i("el-input",{attrs:{value:t.$set(t.plugin,"valueFormat","timestamp"),disabled:!0}}):i("el-input",{attrs:{clearable:""},model:{value:t.plugin.valueFormat,callback:function(e){t.$set(t.plugin,"valueFormat",e)},expression:"plugin.valueFormat"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"format"],expression:"[plugin, 'format']"}],attrs:{label:"显示格式化"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.format,callback:function(e){t.$set(t.plugin,"format",e)},expression:"plugin.format"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[t.plugin.type&&t.plugin.type.includes("range")?t._e():i("el-date-picker",{key:"1",staticStyle:{width:"100%"},attrs:{type:t.plugin.type,"value-format":t.plugin.valueFormat,format:t.plugin.format},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}}),t.plugin.type&&t.plugin.type.includes("range")?i("el-date-picker",{key:"2",staticStyle:{width:"100%"},attrs:{type:t.plugin.type,"value-format":t.plugin.valueFormat,format:t.plugin.format},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}}):t._e()],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.someAndEveryPermission.operate,3],expression:"[column, someAndEveryPermission.operate, 3]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"readonly"],expression:"[plugin, 'readonly']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.readonly,callback:function(e){t.$set(t.plugin,"readonly",e)},expression:"plugin.readonly"}},[t._v("只读")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"editable"],expression:"[plugin, 'editable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.editable,callback:function(e){t.$set(t.plugin,"editable",e)},expression:"plugin.editable"}},[t._v("文本框可输入")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"clearable"],expression:"[plugin, 'clearable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.clearable,callback:function(e){t.$set(t.plugin,"clearable",e)},expression:"plugin.clearable"}},[t._v("显示清除按钮")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.operateTimestamp,2],expression:"[column, everyPermission.operateTimestamp, 2]"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{on:{change:function(e){t.$set(t.plugin,"value",""),e||t.$set(t.plugin,"valueFormat",t.handleFormatType(t.plugin.type,0))}},model:{value:t.column.timestamp,callback:function(e){t.$set(t.column,"timestamp",e)},expression:"column.timestamp"}},[t._v("是否获取时间戳")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},st=[],at={name:"Date",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},someAndEveryPermission:function(){return this.permConfig.someAndEveryPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"],handleFormatType:function(t,e){switch(t){case"year":return"yyyy";case"week":return e?"yyyy 第 WW 周":"yyyy-MM-dd HH:mm:ss";case"month":case"monthrange":return"yyyy-MM";case"date":case"dates":case"daterange":return"yyyy-MM-dd";case"datetime":case"datetimerange":return"yyyy-MM-dd HH:mm:ss"}}}},lt=at,ut=Object(f["a"])(lt,ot,st,!1,null,null,null),ct=ut.exports,ht=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"max"],expression:"[plugin, 'max']"}],attrs:{label:"最大值"}},[i("el-input-number",{attrs:{"min-rows":1},model:{value:t.plugin.max,callback:function(e){t.$set(t.plugin,"max",e)},expression:"plugin.max"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("plugin-rate",{attrs:{max:t.plugin.max,"allow-half":t.plugin.allowHalf,"show-empty":!0},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showScore"],expression:"[plugin, 'showScore']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showScore,callback:function(e){t.$set(t.plugin,"showScore",e)},expression:"plugin.showScore"}},[t._v("显示分数")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"allowHalf"],expression:"[plugin, 'allowHalf']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.allowHalf,callback:function(e){t.$set(t.plugin,"allowHalf",e)},expression:"plugin.allowHalf"}},[t._v("允许半选")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},dt=[],ft=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loquat-rate"},[i("el-rate",{style:t.customizeStyle,attrs:{max:t.max,texts:t.texts,"allow-half":t.allowHalf,"show-text":t.showText,"low-threshold":t.lowThreshold,"high-threshold":t.highThreshold,"void-color":t.voidColor,"disabled-void-color":t.disabledVoidColor,"disabled-void-icon-class":t.disabledVoidIconClass,"show-score":t.showScore,"text-color":t.textColor,"icon-classes":t.iconClasses,"void-icon-class":t.voidIconClass,disabled:t.disabled,colors:t.colors,"score-template":t.scoreTemplate},on:{change:t.handleChange},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}}),t.showEmpty?[i("el-button",{staticClass:"loquat-rate__empty",attrs:{type:"text"},on:{click:function(e){return t.handleChange(0)}}},[t._v("清空")])]:t._e()],2)},pt=[];i("a9e3");function mt(t,e,i){"function"===typeof t[e]&&t[e]({value:t.value,column:t.column}),t.$emit(e,t.value,i)}var gt={name:"Rate",props:{value:{type:Number,default:0},colors:{type:Array},max:{type:Number,default:5},iconClasses:{type:Array},texts:{type:Array},showText:{type:Boolean,default:!1},voidIconClass:{type:String},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},lowThreshold:{type:Number},highThreshold:{type:Number},voidColor:{type:String},disabledVoidColor:{type:Number},disabledVoidIconClass:{type:String},showScore:{type:Boolean,default:!1},textColor:{type:String},scoreTemplate:{type:String},showEmpty:{type:Boolean,default:!1},customizeStyle:{type:Object}},data:function(){return{text:void 0}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleClick:function(t){mt(this,"click",t)},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},vt=gt,_t=Object(f["a"])(vt,ft,pt,!1,null,null,null),bt=_t.exports,yt={name:"Rate",components:{pluginRate:bt},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},wt=yt,Mt=Object(f["a"])(wt,ht,dt,!1,null,null,null),xt=Mt.exports,St=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("plugin-input-color",{attrs:{"show-alpha":t.plugin.showAlpha},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showAlpha"],expression:"[plugin, 'showAlpha']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showAlpha,callback:function(e){t.$set(t.plugin,"showAlpha",e)},expression:"plugin.showAlpha"}},[t._v("支持透明度选择")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},kt=[],Ct=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loquat-input-color"},[i("el-input",{style:t.customizeStyle,attrs:{placeholder:t.placeholder,size:t.size,clearable:!t.disabled&&t.clearable,disabled:t.disabled},on:{change:t.handleChange},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},[i("template",{slot:"append"},[i("el-color-picker",{attrs:{size:t.size,"show-alpha":t.showAlpha,"color-format":t.colorFormat,"popper-class":t.popperClass,predefine:t.predefineColors},on:{change:t.handleChange},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1)],2)],1)},Et=[],At={name:"InputColor",props:{value:{},placeholder:{type:String,default:""},size:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showAlpha:{type:Boolean,default:!1},colorFormat:{type:String},popperClass:{type:String},predefineColors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]}},customizeStyle:{type:Object}},data:function(){return{text:void 0}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},Ot=At,Rt=Object(f["a"])(Ot,Ct,Et,!1,null,null,null),Tt=Rt.exports,Lt={name:"InputColor",components:{pluginInputColor:Tt},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},$t=Lt,Pt=Object(f["a"])($t,St,kt,!1,null,null,null),It=Pt.exports,Dt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"value"],expression:"[plugin, 'value']"}],attrs:{label:"默认值"}},[i("el-switch",{model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},Bt=[],jt={name:"Switch",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},Nt=jt,Ft=Object(f["a"])(Nt,Dt,Bt,!1,null,null,null),qt=Ft.exports,Wt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"min"],expression:"[plugin, 'min']"}],attrs:{label:"最小值"}},[i("el-input-number",{model:{value:t.plugin.min,callback:function(e){t.$set(t.plugin,"min",e)},expression:"plugin.min"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"max"],expression:"[plugin, 'max']"}],attrs:{label:"最大值"}},[i("el-input-number",{model:{value:t.plugin.max,callback:function(e){t.$set(t.plugin,"max",e)},expression:"plugin.max"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"step"],expression:"[plugin, 'step']"}],attrs:{label:"步长"}},[i("el-input-number",{model:{value:t.plugin.step,callback:function(e){t.$set(t.plugin,"step",e)},expression:"plugin.step"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("el-slider",{attrs:{min:t.plugin.min,max:t.plugin.max,step:t.plugin.step,"show-input":t.plugin.showInput},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showInput"],expression:"[plugin, 'showInput']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showInput,callback:function(e){t.$set(t.plugin,"showInput",e)},expression:"plugin.showInput"}},[t._v("显示输入框")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},zt=[],Ut={name:"Slider",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},Kt=Ut,Ht=Object(f["a"])(Kt,Wt,zt,!1,null,null,null),Vt=Ht.exports,Gt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.theme,2],expression:"[plugin, everyPermission.theme, 2]"}],attrs:{label:"主题"}},[i("el-switch",{attrs:{disabled:"default"===t.plugin.effectType,"active-value":"dark","inactive-value":"light","active-text":"黑暗","inactive-text":"明亮"},model:{value:t.plugin.effect,callback:function(e){t.$set(t.plugin,"effect",e)},expression:"plugin.effect"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"effectType"],expression:"[plugin, 'effectType']"}],attrs:{label:"主题类型"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:t.plugin.effectType,callback:function(e){t.$set(t.plugin,"effectType",e)},expression:"plugin.effectType"}},[i("el-option",{attrs:{value:"default"}}),i("el-option",{attrs:{value:"success"}}),i("el-option",{attrs:{value:"info"}}),i("el-option",{attrs:{value:"warning"}}),i("el-option",{attrs:{value:"error"}}),i("el-option",{attrs:{value:"tip"}})],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"value"],expression:"[plugin, 'value']"}],attrs:{label:"默认值"}},[i("el-input",{attrs:{type:"textarea",rows:5,clearable:""},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"center"],expression:"[plugin, 'center']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.center,callback:function(e){t.$set(t.plugin,"center",e)},expression:"plugin.center"}},[t._v("文字居中")])],1)],1)],1)],1)},Yt=[],Zt={name:"Font",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}}},mounted:function(){this.first=!0}},Xt=Zt,Qt=Object(f["a"])(Xt,Gt,Yt,!1,null,null,null),Jt=Qt.exports,te=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"tip"],expression:"[plugin, 'tip']"}],attrs:{label:"字段提示"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.tip,callback:function(e){t.$set(t.plugin,"tip",e)},expression:"plugin.tip"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.oss,2],expression:"[column, everyPermission.oss, 2]"}],attrs:{label:"OSS"}},[i("el-radio-group",{on:{change:function(e){e?t.$set(t.column,"remote",!0):t.$set(t.column,"remote",!1)}},model:{value:t.plugin.oss,callback:function(e){t.$set(t.plugin,"oss",e)},expression:"plugin.oss"}},[i("el-radio-button",{attrs:{label:""}},[t._v(" 普通请求 ")]),i("el-radio-button",{attrs:{label:"qiniu"}},[t._v(" 七牛OSS ")])],1)],1),t.plugin.oss?t._e():i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"action"],expression:"[plugin, 'action']"}],attrs:{label:"上传地址"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.action,callback:function(e){t.$set(t.plugin,"action",e)},expression:"plugin.action"}})],1),t.plugin.oss?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"domain"],expression:"[plugin, 'domain']"}],attrs:{label:"Domain"}},[i("el-input",{attrs:{clearable:""},model:{value:t.plugin.domain,callback:function(e){t.$set(t.plugin,"domain",e)},expression:"plugin.domain"}})],1):t._e(),t.plugin.oss?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.getToken,2],expression:"[column, everyPermission.getToken, 2]"}],attrs:{label:"获取Token"}},[i("el-radio-group",{model:{value:t.column.remoteType,callback:function(e){t.$set(t.column,"remoteType",e)},expression:"column.remoteType"}},[i("el-radio",{attrs:{label:"datasource"}},[t._v("数据源")]),i("el-radio",{attrs:{label:"func"}},[t._v("方法函数")])],1),"datasource"===t.column.remoteType?[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{placeholder:"请选择"},model:{value:t.column.remoteDataSource,callback:function(e){t.$set(t.column,"remoteDataSource",e)},expression:"column.remoteDataSource"}},t._l(t.design.widgetForm.dataSource,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.key}})})),1)]:t._e(),"func"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{clearable:""},model:{value:t.column.remoteFunc,callback:function(e){t.$set(t.column,"remoteFunc",e)},expression:"column.remoteFunc"}})]:t._e()],2):t._e(),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"limit"],expression:"[plugin, 'limit']"}],attrs:{label:"最大上传数"}},[i("el-input",{attrs:{type:"number",clearable:""},model:{value:t.plugin.limit,callback:function(e){t.$set(t.plugin,"limit",t._n(e))},expression:"plugin.limit"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"accept"],expression:"[plugin, 'accept']"}],attrs:{label:"文件类型"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择文件类型",clearable:""},model:{value:t.plugin.accept,callback:function(e){t.$set(t.plugin,"accept",e)},expression:"plugin.accept"}},[i("el-option",{attrs:{label:"图片",value:"image/*"}}),i("el-option",{attrs:{label:"视频",value:"video/*"}}),i("el-option",{attrs:{label:"音频",value:"audio/*"}}),i("el-option",{attrs:{label:"excel",value:".xls,.xlsx"}}),i("el-option",{attrs:{label:"word",value:".doc,.docx"}}),i("el-option",{attrs:{label:"pdf",value:".pdf"}}),i("el-option",{attrs:{label:"txt",value:".txt"}})],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"headers"],expression:"[plugin, 'headers']"}],attrs:{label:"设置上传的请求头部"}},[i("ul",t._l(t.plugin.headers,(function(e,n){return i("li",{key:n,staticStyle:{"margin-bottom":"5px"}},[i("el-input",{staticStyle:{width:"100px","margin-right":"5px"},attrs:{type:"textarea",size:"mini",rows:1,clearable:"",placeholder:"KEY"},model:{value:e.key,callback:function(i){t.$set(e,"key",i)},expression:"item.key"}}),i("el-input",{staticStyle:{width:"130px"},attrs:{type:"textarea",size:"mini",rows:1,clearable:"",placeholder:"VALUE"},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.plugin.headers.splice(n,1)}}})],1)})),0),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.plugin.headers.push({key:"",value:""})}}},[t._v("添加")])],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"data"],expression:"[plugin, 'data']"}],attrs:{label:"设置上传的请求参数"}},[i("ul",t._l(t.plugin.data,(function(e,n){return i("li",{key:n,staticStyle:{"margin-bottom":"5px"}},[i("el-input",{staticStyle:{width:"100px","margin-right":"5px"},attrs:{type:"textarea",size:"mini",rows:1,clearable:"",placeholder:"KEY"},model:{value:e.key,callback:function(i){t.$set(e,"key",i)},expression:"item.key"}}),i("el-input",{staticStyle:{width:"130px"},attrs:{type:"textarea",size:"mini",rows:1,clearable:"",placeholder:"VALUE"},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),i("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(e){return t.plugin.data.splice(n,1)}}})],1)})),0),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.plugin.data.push({key:"",value:""})}}},[t._v("添加")])],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"listType"],expression:"[plugin, 'listType']"}],attrs:{label:"文件列表类型"}},[i("el-radio-group",{model:{value:t.plugin.listType,callback:function(e){t.$set(t.plugin,"listType",e)},expression:"plugin.listType"}},[i("el-radio-button",{attrs:{label:"text"}},[t._v(" 附件 ")]),i("el-radio-button",{attrs:{label:"picture-card"}},[t._v(" 照片墙 ")]),i("el-radio-button",{attrs:{label:"picture-img"}},[t._v(" 头像 ")]),i("el-radio-button",{attrs:{label:"picture"}},[t._v(" 缩略图 ")])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.fileSize,2],expression:"[plugin, everyPermission.fileSize, 2]"}],attrs:{label:"文件大小"}},[i("el-input",{attrs:{placeholder:"请输入文件大小"},model:{value:t.plugin.fileSize,callback:function(e){t.$set(t.plugin,"fileSize",t._n(e))},expression:"plugin.fileSize"}},[i("el-select",{style:{width:"66px"},attrs:{slot:"append"},slot:"append",model:{value:t.plugin.byteUnit,callback:function(e){t.$set(t.plugin,"byteUnit",e)},expression:"plugin.byteUnit"}},[i("el-option",{attrs:{label:"KB",value:"KB"}}),i("el-option",{attrs:{label:"MB",value:"MB"}}),i("el-option",{attrs:{label:"GB",value:"GB"}})],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.configCenterPerm,1],expression:"[plugin, somePermission.configCenterPerm, 1]"}],attrs:{label:"配置中心"}},[i("el-collapse",{attrs:{accordion:""}},[i("el-collapse-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.uploadConfig,1],expression:"[plugin, somePermission.uploadConfig, 1]"}],attrs:{title:"上传配置"}},[i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.uploadConfig,"home"],expression:"[uploadConfig, 'home']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("首页地址:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.uploadConfig.home,callback:function(e){t.$set(t.uploadConfig,"home",e)},expression:"uploadConfig.home"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.uploadConfig,"fileName"],expression:"[uploadConfig, 'fileName']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("文件字段名:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.uploadConfig.fileName,callback:function(e){t.$set(t.uploadConfig,"fileName",e)},expression:"uploadConfig.fileName"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.uploadConfig,"res"],expression:"[uploadConfig, 'res']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("响应数据键:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.uploadConfig.res,callback:function(e){t.$set(t.uploadConfig,"res",e)},expression:"uploadConfig.res"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.uploadConfig,"resUrl"],expression:"[uploadConfig, 'resUrl']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("响应数据url键:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.uploadConfig.resUrl,callback:function(e){t.$set(t.uploadConfig,"resUrl",e)},expression:"uploadConfig.resUrl"}})],1)]),i("el-collapse-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.canvasConfig,1],expression:"[plugin, somePermission.canvasConfig, 1]"}],attrs:{title:"水印配置"}},[i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"text"],expression:"[canvasOption, 'text']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("水印文字:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.canvasOption.text,callback:function(e){t.$set(t.canvasOption,"text",e)},expression:"canvasOption.text"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"fontFamily"],expression:"[canvasOption, 'fontFamily']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("字体类型:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.canvasOption.fontFamily,callback:function(e){t.$set(t.canvasOption,"fontFamily",e)},expression:"canvasOption.fontFamily"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"color"],expression:"[canvasOption, 'color']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("字体颜色:")]),i("plugin-input-color",{attrs:{size:"mini",clearable:""},model:{value:t.canvasOption.color,callback:function(e){t.$set(t.canvasOption,"color",e)},expression:"canvasOption.color"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"fontSize"],expression:"[canvasOption, 'fontSize']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("字体大小:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"mini","controls-position":"right"},model:{value:t.canvasOption.fontSize,callback:function(e){t.$set(t.canvasOption,"fontSize",e)},expression:"canvasOption.fontSize"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"opacity"],expression:"[canvasOption, 'opacity']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("文字的透明度:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"mini","controls-position":"right",step:10,min:10,max:100},model:{value:t.canvasOption.opacity,callback:function(e){t.$set(t.canvasOption,"opacity",e)},expression:"canvasOption.opacity"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"bottom"],expression:"[canvasOption, 'bottom']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("文字距离图片底部的距离:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",size:"mini"},model:{value:t.canvasOption.bottom,callback:function(e){t.$set(t.canvasOption,"bottom",e)},expression:"canvasOption.bottom"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"right"],expression:"[canvasOption, 'right']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("文字距离图片右边的距离:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",size:"mini"},model:{value:t.canvasOption.right,callback:function(e){t.$set(t.canvasOption,"right",e)},expression:"canvasOption.right"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.canvasOption,"ratio"],expression:"[canvasOption, 'ratio']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("压缩图片比率:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",step:.1,min:0,max:1,size:"mini"},model:{value:t.canvasOption.ratio,callback:function(e){t.$set(t.canvasOption,"ratio",e)},expression:"canvasOption.ratio"}})],1)])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showCanvas"],expression:"[plugin, 'showCanvas']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.showCanvas,callback:function(e){t.$set(t.plugin,"showCanvas",e)},expression:"plugin.showCanvas"}},[t._v("开启水印")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"drag"],expression:"[plugin, 'drag']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.drag,callback:function(e){t.$set(t.plugin,"drag",e)},expression:"plugin.drag"}},[t._v("是否拖拽上传")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"multiple"],expression:"[plugin, 'multiple']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.multiple,callback:function(e){t.$set(t.plugin,"multiple",e)},expression:"plugin.multiple"}},[t._v("是否多选")])],1),t.column.oss?t._e():i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"withCredentials"],expression:"[plugin, 'withCredentials']"}],attrs:{span:24}},[i("el-checkbox",{model:{value:t.plugin.withCredentials,callback:function(e){t.$set(t.plugin,"withCredentials",e)},expression:"plugin.withCredentials"}},[t._v("跨域请求是否提供凭据信息")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"showFileList"],expression:"[plugin, 'showFileList']"}],attrs:{span:24}},[i("el-checkbox",{model:{value:t.plugin.showFileList,callback:function(e){t.$set(t.plugin,"showFileList",e)},expression:"plugin.showFileList"}},[t._v("是否显示已上传文件列表")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},ee=[],ie={name:"Upload",components:{pluginInputColor:Tt},inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},uploadConfig:function(){return this.plugin.uploadConfig||{}},canvasOption:function(){return this.plugin.canvasOption||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},ne=ie,re=Object(f["a"])(ne,te,ee,!1,null,null,null),oe=re.exports,se=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.customizeStyle,"width"],expression:"[customizeStyle, 'width']"}],attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:t.customizeStyle.width,callback:function(e){t.$set(t.customizeStyle,"width",e)},expression:"customizeStyle.width"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"placeholder"],expression:"[plugin, 'placeholder']"}],attrs:{label:"占位内容"}},[i("el-input",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.plugin.placeholder,callback:function(e){t.$set(t.plugin,"placeholder",e)},expression:"plugin.placeholder"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.everyPermission.options,2],expression:"[column, everyPermission.options, 2]"}],attrs:{label:"选项"}},[i("el-radio-group",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini"},on:{change:function(e){return t.$set(t.plugin,"value",[])}},model:{value:t.column.remote,callback:function(e){t.$set(t.column,"remote",e)},expression:"column.remote"}},[i("el-radio-button",{attrs:{label:!1}},[t._v("静态数据")]),i("el-radio-button",{attrs:{label:!0}},[t._v("动态数据")])],1),t.column.remote?t._e():[i("el-button",{staticStyle:{width:"100%"},on:{click:function(e){return t.design.handleCascadeOptionSetData(t.column.dicData)}}},[t._v("设置")])],t.column.remote?i("div",[i("el-radio-group",{model:{value:t.column.remoteType,callback:function(e){t.$set(t.column,"remoteType",e)},expression:"column.remoteType"}},[i("el-radio",{attrs:{label:"datasource"}},[t._v("数据源")]),i("el-radio",{attrs:{label:"option"}},[t._v("赋值变量")]),i("el-radio",{attrs:{label:"func"}},[t._v("方法函数")])],1),"datasource"===t.column.remoteType?[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini",placeholder:"请选择"},model:{value:t.column.remoteDataSource,callback:function(e){t.$set(t.column,"remoteDataSource",e)},expression:"column.remoteDataSource"}},t._l(t.design.widgetForm.dataSource,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.key}})})),1)]:t._e(),"option"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteOption,callback:function(e){t.$set(t.column,"remoteOption",e)},expression:"column.remoteOption"}})]:t._e(),"func"===t.column.remoteType?[i("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{size:"mini",clearable:""},model:{value:t.column.remoteFunc,callback:function(e){t.$set(t.column,"remoteFunc",e)},expression:"column.remoteFunc"}})]:t._e(),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("值")]},proxy:!0}],null,!1,3564984217),model:{value:t.props.value,callback:function(e){t.$set(t.props,"value",e)},expression:"props.value"}}),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("标签")]},proxy:!0}],null,!1,2213438812),model:{value:t.props.label,callback:function(e){t.$set(t.props,"label",e)},expression:"props.label"}}),i("el-input",{attrs:{size:"mini",clearable:""},scopedSlots:t._u([{key:"prepend",fn:function(){return[t._v("子选项")]},proxy:!0}],null,!1,2098913253),model:{value:t.props.children,callback:function(e){t.$set(t.props,"children",e)},expression:"props.children"}})],2):t._e()],2),t.column.remote?t._e():i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.defaultValue,2],expression:"[plugin, everyPermission.defaultValue, 2]"}],attrs:{label:"默认值"}},[i("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.column.dicData,clearable:""},model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.someAndEveryPermission.operate,3],expression:"[column, someAndEveryPermission.operate, 3]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.everyPermission.operateMultiple,2],expression:"[plugin, everyPermission.operateMultiple, 2]"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{on:{change:function(e){return t.$set(t.plugin,"value",[])}},model:{value:t.plugin.multiple,callback:function(e){t.$set(t.plugin,"multiple",e)},expression:"plugin.multiple"}},[t._v("是否多选")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"filterable"],expression:"[plugin, 'filterable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.filterable,callback:function(e){t.$set(t.plugin,"filterable",e)},expression:"plugin.filterable"}},[t._v("是否可搜索")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"clearable"],expression:"[plugin, 'clearable']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.clearable,callback:function(e){t.$set(t.plugin,"clearable",e)},expression:"plugin.clearable"}},[t._v("显示清除按钮")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},ae=[],le={name:"Cascader",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},everyPermission:function(){return this.permConfig.everyPermission||{}},someAndEveryPermission:function(){return this.permConfig.someAndEveryPermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},props:function(){return this.plugin.props||{}},customizeStyle:function(){return this.plugin.customizeStyle||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},ue=le,ce=Object(f["a"])(ue,se,ae,!1,null,null,null),he=ce.exports,de=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{disabled:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"gutter"],expression:"[column, 'gutter']"}],attrs:{label:"栅格间隔"}},[i("el-input",{attrs:{type:"number"},model:{value:t.column.gutter,callback:function(e){t.$set(t.column,"gutter",t._n(e))},expression:"column.gutter"}})],1),t.column.flex?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"justify"],expression:"[column, 'justify']"}],attrs:{label:"水平排列方式"}},[i("el-select",{style:{width:"100%"},model:{value:t.column.justify,callback:function(e){t.$set(t.column,"justify",e)},expression:"column.justify"}},[i("el-option",{attrs:{label:"左对齐",value:"start"}}),i("el-option",{attrs:{label:"右对齐",value:"end"}}),i("el-option",{attrs:{label:"居中",value:"center"}}),i("el-option",{attrs:{label:"两侧间隔相等",value:"space-around"}}),i("el-option",{attrs:{label:"两端对齐",value:"space-between"}})],1)],1):t._e(),t.column.flex?i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"align"],expression:"[column, 'align']"}],attrs:{label:"垂直排列方式"}},[i("el-select",{style:{width:"100%"},model:{value:t.column.align,callback:function(e){t.$set(t.column,"align",e)},expression:"column.align"}},[i("el-option",{attrs:{label:"顶部对齐",value:"top"}}),i("el-option",{attrs:{label:"居中",value:"middle"}}),i("el-option",{attrs:{label:"底部对齐",value:"bottom"}})],1)],1):t._e(),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"flex"],expression:"[column, 'flex']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.flex,callback:function(e){t.$set(t.column,"flex",e)},expression:"column.flex"}},[t._v("Flex布局")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1)],1)],1)],1)},fe=[],pe={name:"CoralLayout",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},column:function(){return this.first?this.data:{}}},mounted:function(){this.first=!0}},me=pe,ge=Object(f["a"])(me,de,fe,!1,null,null,null),ve=ge.exports,_e=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"md"],expression:"[column, 'md']"}],attrs:{label:"栅格占据的列数"}},[i("el-input-number",{attrs:{min:1,max:24},model:{value:t.column.md,callback:function(e){t.$set(t.column,"md",t._n(e))},expression:"column.md"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"offset"],expression:"[column, 'offset']"}],attrs:{label:"栅格左侧的间隔格数"}},[i("el-input-number",{attrs:{min:0,max:24},model:{value:t.column.offset,callback:function(e){t.$set(t.column,"offset",t._n(e))},expression:"column.offset"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"push"],expression:"[column, 'push']"}],attrs:{label:"栅格向右移动格数"}},[i("el-input-number",{attrs:{min:0,max:24},model:{value:t.column.push,callback:function(e){t.$set(t.column,"push",t._n(e))},expression:"column.push"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"pull"],expression:"[column, 'pull']"}],attrs:{label:"栅格向左移动格数"}},[i("el-input-number",{attrs:{min:0,max:24},model:{value:t.column.pull,callback:function(e){t.$set(t.column,"pull",t._n(e))},expression:"column.pull"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)},be=[],ye={name:"CoralLayoutCol",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{first:!1}},computed:{design:function(){return this.designProvide||{}},column:function(){return this.first?this.data:{}}},mounted:function(){this.first=!0}},we=ye,Me=Object(f["a"])(we,_e,be,!1,null,null,null),xe=Me.exports,Se=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-form-item",{attrs:{label:"字段标识"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.prop,callback:function(e){t.$set(t.column,"prop",e)},expression:"column.prop"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"label"],expression:"[column, 'label']"}],attrs:{label:"标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.column.label,callback:function(e){t.$set(t.column,"label",e)},expression:"column.label"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"labelWidth"],expression:"[column, 'labelWidth']"}],attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:t.column.labelWidth,callback:function(e){t.$set(t.column,"labelWidth",t._n(e))},expression:"column.labelWidth"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"value"],expression:"[plugin, 'value']"}],attrs:{label:"默认值"}},[i("el-button",{staticStyle:{width:"100%"},on:{click:function(e){t.design.childFormModelVisible=!0}}},[t._v("设置")])],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"emptyText"],expression:"[option, 'emptyText']"}],attrs:{label:"空数据文本内容"}},[i("el-input",{attrs:{clearable:""},model:{value:t.option.emptyText,callback:function(e){t.$set(t.option,"emptyText",e)},expression:"option.emptyText"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"indexExecuteLabel"],expression:"[option, 'indexExecuteLabel']"}],attrs:{label:"索引列标题"}},[i("el-input",{attrs:{clearable:""},model:{value:t.option.indexExecuteLabel,callback:function(e){t.$set(t.option,"indexExecuteLabel",e)},expression:"option.indexExecuteLabel"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"indexExecuteFixed"],expression:"[option, 'indexExecuteFixed']"}],attrs:{label:"索引列固定"}},[i("el-input",{attrs:{clearable:""},model:{value:t.option.indexExecuteFixed,callback:function(e){t.$set(t.option,"indexExecuteFixed",e)},expression:"option.indexExecuteFixed"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"align"],expression:"[option, 'align']"}],attrs:{label:"列对齐方式"}},[i("el-input",{attrs:{clearable:""},model:{value:t.option.align,callback:function(e){t.$set(t.option,"align",e)},expression:"option.align"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"headerAlign"],expression:"[option, 'headerAlign']"}],attrs:{label:"列表头对齐方式"}},[i("el-input",{attrs:{clearable:""},model:{value:t.option.headerAlign,callback:function(e){t.$set(t.option,"headerAlign",e)},expression:"option.headerAlign"}})],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.configCenterPerm,1],expression:"[plugin, somePermission.configCenterPerm, 1]"}],attrs:{label:"配置中心"}},[i("el-collapse",{attrs:{accordion:""}},[i("el-collapse-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.pageConfig,1],expression:"[plugin, somePermission.pageConfig, 1]"}],attrs:{title:"分页配置"}},[i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"pagerCount"],expression:"[pageConfig, 'pagerCount']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("超过多少数目隐藏:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"mini","controls-position":"right"},model:{value:t.pageConfig.pagerCount,callback:function(e){t.$set(t.pageConfig,"pagerCount",e)},expression:"pageConfig.pagerCount"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"pageSize"],expression:"[pageConfig, 'pageSize']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("每页显示数目:")]),i("el-input-number",{staticStyle:{width:"100%"},attrs:{size:"mini","controls-position":"right"},model:{value:t.pageConfig.pageSize,callback:function(e){t.$set(t.pageConfig,"pageSize",e)},expression:"pageConfig.pageSize"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"layout"],expression:"[pageConfig, 'layout']"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("布局:")]),i("el-input",{attrs:{size:"mini",clearable:""},model:{value:t.pageConfig.layout,callback:function(e){t.$set(t.pageConfig,"layout",e)},expression:"pageConfig.layout"}})],1),i("div",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,t.somePermission.pageConfigOperate,1],expression:"[plugin, somePermission.pageConfigOperate, 1]"}]},[i("span",{staticClass:"horizontal-tip-text"},[t._v("操作属性:")]),i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"smallPaging"],expression:"[pageConfig, 'smallPaging']"}],attrs:{span:24}},[i("el-checkbox",{attrs:{size:"mini"},model:{value:t.pageConfig.smallPaging,callback:function(e){t.$set(t.pageConfig,"smallPaging",e)},expression:"pageConfig.smallPaging"}},[t._v("是否使用小分页")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"background"],expression:"[pageConfig, 'background']"}],attrs:{span:24}},[i("el-checkbox",{attrs:{size:"mini"},model:{value:t.pageConfig.background,callback:function(e){t.$set(t.pageConfig,"background",e)},expression:"pageConfig.background"}},[t._v("是否显示背景颜色")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.pageConfig,"simplePage"],expression:"[pageConfig, 'simplePage']"}],attrs:{span:24}},[i("el-checkbox",{attrs:{size:"mini"},model:{value:t.pageConfig.simplePage,callback:function(e){t.$set(t.pageConfig,"simplePage",e)},expression:"pageConfig.simplePage"}},[t._v("当只有一页时隐藏分页")])],1)],1)],1)])],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"customClass"],expression:"[column, 'customClass']"}],attrs:{label:"自定义Class"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",multiple:"",laceholder:"请选择"},model:{value:t.column.customClass,callback:function(e){t.$set(t.column,"customClass",e)},expression:"column.customClass"}},t._l(t.design.styleSheetsArray,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,t.somePermission.operate,1],expression:"[column, somePermission.operate, 1]"}],attrs:{label:"操作属性"}},[i("el-row",[i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"disabled"],expression:"[plugin, 'disabled']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.disabled,callback:function(e){t.$set(t.plugin,"disabled",e)},expression:"plugin.disabled"}},[t._v("禁用")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"readonly"],expression:"[plugin, 'readonly']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.readonly,callback:function(e){t.$set(t.plugin,"readonly",e)},expression:"plugin.readonly"}},[t._v("只读")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hide"],expression:"[column, 'hide']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hide,callback:function(e){t.$set(t.column,"hide",e)},expression:"column.hide"}},[t._v("隐藏")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"hideLabel"],expression:"[column, 'hideLabel']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.column.hideLabel,callback:function(e){t.$set(t.column,"hideLabel",e)},expression:"column.hideLabel"}},[t._v("隐藏标签")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"stripe"],expression:"[option, 'stripe']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.option.stripe,callback:function(e){t.$set(t.option,"stripe",e)},expression:"option.stripe"}},[t._v("是否为斑马纹")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"showHeader"],expression:"[option, 'showHeader']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.option.showHeader,callback:function(e){t.$set(t.option,"showHeader",e)},expression:"option.showHeader"}},[t._v("是否显示表头")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"loading"],expression:"[plugin, 'loading']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.loading,callback:function(e){t.$set(t.plugin,"loading",e)},expression:"plugin.loading"}},[t._v("是否显示加载")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.plugin,"paging"],expression:"[plugin, 'paging']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.plugin.paging,callback:function(e){t.$set(t.plugin,"paging",e)},expression:"plugin.paging"}},[t._v("是否启动分页")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"indexExecute"],expression:"[option, 'indexExecute']"}],attrs:{span:t.operationComputedSpan}},[i("el-checkbox",{model:{value:t.option.highlightCurrentRow,callback:function(e){t.$set(t.option,"highlightCurrentRow",e)},expression:"option.highlightCurrentRow"}},[t._v("是否显示索引列")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"highlightCurrentRow"],expression:"[option, 'highlightCurrentRow']"}],attrs:{span:24}},[i("el-checkbox",{model:{value:t.option.highlightCurrentRow,callback:function(e){t.$set(t.option,"highlightCurrentRow",e)},expression:"option.highlightCurrentRow"}},[t._v("是否要高亮当前行")])],1),i("el-col",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.option,"fit"],expression:"[option, 'fit']"}],attrs:{span:24}},[i("el-checkbox",{model:{value:t.option.fit,callback:function(e){t.$set(t.option,"fit",e)},expression:"option.fit"}},[t._v("列的宽度是否自撑开")])],1)],1)],1),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.validateConfig,"required"],expression:"[validateConfig, 'required']"}],attrs:{label:"校验"}},[i("div",{staticClass:"validate-block"},[i("el-checkbox",{model:{value:t.validateConfig.required,callback:function(e){t.$set(t.validateConfig,"required",e)},expression:"validateConfig.required"}},[t._v("必填")]),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.validateConfig.required,expression:"validateConfig.required"}],staticClass:"message-input",attrs:{size:"mini",placeholder:"自定义错误提示"},model:{value:t.validateConfig.requiredMessage,callback:function(e){t.$set(t.validateConfig,"requiredMessage",e)},expression:"validateConfig.requiredMessage"}})],1)]),i("el-form-item",{directives:[{name:"loquat-has-perm",rawName:"v-loquat-has-perm",value:[t.column,"events"],expression:"[column, 'events']"}],attrs:{label:"动作设置"}},[i("div",{staticClass:"event-panel-config"},[t.validateNull(t.events)?t._e():i("el-collapse",{attrs:{value:Object.keys(t.events)}},t._l(t.events,(function(e,n,r){return i("el-collapse-item",{key:r,attrs:{title:n+" "+t.get(t.eventsDic,n,""),name:n}},[i("div",{staticClass:"event-panel-item"},[i("el-select",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{size:"mini"},model:{value:t.column.events[n],callback:function(e){t.$set(t.column.events,n,e)},expression:"column.events[key]"}},t._l(t.design.widgetForm.eventScript,(function(t){return i("el-option",{key:t.key,attrs:{label:t.name,value:t.name}})})),1),i("i",{staticClass:"iconfont icon-code-generation",attrs:{title:"编辑代码"},on:{click:function(i){return i.stopPropagation(),t.design.handleActionSettingsSetData({eventName:n,funcName:e})}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){e.stopPropagation(),t.column.events[n]=""}}})],1)])})),1),i("el-dropdown",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{placement:"bottom",trigger:"click"}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"primary",plain:""}},[t._v("新增动作"),i("i",{staticClass:"el-icon-plus"})]),i("el-dropdown-menu",{staticStyle:{width:"280px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.column.events,(function(e,n,r){return i("el-dropdown-item",{key:r,attrs:{disabled:!!e},nativeOn:{click:function(e){return function(){t.design.handleActionSettingsSetData({eventName:n}),t.design.handleActionAdd()}.apply(null,arguments)}}},[t._v(t._s(n+" "+t.get(t.eventsDic,n,"")))])})),1)],1)],1)])],1)},ke=[],Ce={name:"ChildForm",inject:["designProvide"],props:{data:{type:Object}},data:function(){return{permission:y,first:!1,eventsDic:w["a"].eventsDic,operationComputedSpan:12}},computed:{design:function(){return this.designProvide||{}},permConfig:function(){var t=Object(M["n"])(this.$options.name);return this.permission.find((function(e){return t===e.component}))||{}},somePermission:function(){return this.permConfig.somePermission||{}},column:function(){return this.first?this.data:{}},plugin:function(){return this.column.plugin||{}},option:function(){return this.plugin.option||{}},pageConfig:function(){return this.plugin.page||{}},validateConfig:function(){return this.column.validateConfig||{}},events:function(){var t=Object(M["d"])(this.column.events);for(var e in t)Object(M["s"])(t[e])&&delete t[e];return t}},mounted:function(){this.first=!0},methods:{get:M["f"],validateNull:M["s"]}},Ee=Ce,Ae=Object(f["a"])(Ee,Se,ke,!1,null,null,null),Oe=Ae.exports,Re=i("422f"),Te=[m,C,P,F,H,Q,rt,ct,xt,It,qt,Vt,Jt,oe,he,ve,xe,Oe],Le={install:function(t){Te.forEach((function(e){var i=Object(M["l"])(e.name);e.name=Re["h"].concat(i),t.component(e.name,e)}))}},$e=Le,Pe=i("cfe8"),Ie=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-input",{staticClass:"loquat-input",style:t.customizeStyle,attrs:{size:t.size,clearable:!t.disabled&&t.clearable,type:t.typeParam,maxlength:t.maxlength,minlength:t.minlength,"show-password":t.showPassword,autosize:{minRows:t.minRows,maxRows:t.maxRows},"prefix-icon":t.prefixIcon,"suffix-icon":t.suffixIcon,readonly:t.readonly,placeholder:t.placeholder,"show-word-limit":t.showWordLimit,disabled:t.disabled,autocomplete:t.autocomplete},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.isSearch&&t.appendClick()},focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},[t.prepend?i("template",{slot:"prepend"},[i("span",{on:{click:function(e){return t.prependClick()}}},[t._v(t._s(t.prepend))])]):t._e(),t.append?i("template",{slot:"append"},[i("span",{on:{click:function(e){return t.appendClick()}}},[t._v(t._s(t.append))])]):t.isSearch?i("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.appendClick()}},slot:"append"}):t._e()],2)},De=[],Be={name:"Input",props:{value:{},clearable:{type:Boolean,default:!0},maxlength:{type:[Number,String]},minlength:{type:[Number,String]},disabled:{type:Boolean,default:!1},size:{type:String,default:""},showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},target:{type:String,default:" _blank"},prefixIcon:{type:String},suffixIcon:{type:String},prependClick:{type:Function,default:function(){}},prepend:{type:String},appendClick:{type:Function,default:function(){}},append:{type:String},minRows:{type:Number,default:5},maxRows:{type:Number,default:10},autocomplete:{type:String},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:""},type:{type:String,default:""},customizeStyle:{type:Object}},data:function(){return{text:void 0}},computed:{isSearch:function(){return"search"==this.type},typeParam:function(){return"textarea"===this.type?"textarea":"password"===this.type?"password":"number"===this.type?"number":"text"}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleFocus:function(t){mt(this,"focus",t)},handleBlur:function(t){mt(this,"blur",t)},handleClick:function(t){mt(this,"click",t)},handleChange:function(t){t=Object(M["e"])(t,this.type),this.$emit("input",t),this.$emit("change",t)}}},je=Be,Ne=Object(f["a"])(je,Ie,De,!1,null,null,null),Fe=Ne.exports,qe=i("fa9e"),We=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-select",{ref:"main",staticClass:"loquat-select",style:t.customizeStyle,attrs:{size:t.size,loading:t.loading,"loading-text":t.loadingText,multiple:t.multiple,filterable:!!t.remote||t.filterable,remote:t.remote,"no-match-text":t.noMatchText,"no-data-text":t.noDataText,"remote-method":t.handleRemoteMethod,"collapse-tags":t.tags,clearable:!t.disabled&&t.clearable,placeholder:t.placeholder,"multiple-limit":t.limit,"allow-create":t.allowCreate,"default-first-option":t.defaultFirstOption,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},[t.group?t._l(t.netDic,(function(e,n){return i("el-option-group",{key:n,attrs:{label:t.getLabelText(e)}},t._l(e[t.groupsKey],(function(e,n){return i("el-option",{key:n,attrs:{disabled:e[t.disabledKey],label:t.getLabelText(e),value:e[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,showLabel:t.showLabel,item:e}):[i("span",[t._v(t._s(t.getLabelText(e)))]),e.desc?i("span",{staticClass:"loquat-select__desc"},[t._v(t._s(e.desc))]):t._e()]],2)})),1)})):t._l(t.netDic,(function(e,n){return i("el-option",{key:n,attrs:{disabled:e[t.disabledKey],label:t.getLabelText(e),value:e[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,showLabel:t.showLabel,item:e}):[i("span",[t._v(t._s(t.getLabelText(e)))]),e[t.descKey]?i("span",{staticClass:"loquat-select__desc"},[t._v(t._s(e[t.descKey]))]):t._e()]],2)}))],2)},ze=[],Ue=(i("a15b"),i("d0c1")),Ke={name:"Select",props:{value:{},dic:{type:Array,default:function(){return[]}},loadingText:{type:String},noMatchText:{type:String},noDataText:{type:String},drag:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},size:{type:String,default:""},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},group:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}},typeFormat:Function,props:{type:Object,default:function(){return Re["g"]}},disabled:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},customizeStyle:{type:Object}},data:function(){return{created:!1,netDic:[],loading:!1,text:void 0,propsDefault:Re["g"]}},computed:{groupsKey:function(){return this.props.groups||this.propsDefault.groups},disabledKey:function(){return this.props.disabled||this.propsDefault.disabled},valueKey:function(){return this.props.value||this.propsDefault.value},labelKey:function(){return this.props.label||this.propsDefault.label},descKey:function(){return this.props.desc||this.propsDefault.desc}},watch:{value:{handler:function(t){this.initVal(),Object(M["s"])(t)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(","):this.text))}},dic:{handler:function(t){this.netDic=t},immediate:!0},text:{handler:function(t){this.handleChange(t)}}},created:function(){this.initVal()},mounted:function(){this.drag&&this.setSort()},methods:{initVal:function(){this.text=this.value},setSort:function(){var t=this;if(window.Sortable){var e=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];this.sortable=window.Sortable.create(e,{ghostClass:"sortable-ghost",setData:function(t){t.setData("Text","")},onEnd:function(e){var i=t.value.splice(e.oldIndex,1)[0];t.value.splice(e.newIndex,0,i)}})}else Ue["default"].logs("Sortable")},handleRemoteMethod:function(t){this.$emit("remoteMethod",t)},handleFocus:function(t){mt(this,"focus",t)},handleBlur:function(t){mt(this,"blur",t)},handleClick:function(t){mt(this,"click",t)},getLabelText:function(t){return Object(M["s"])(t)?"":"function"===typeof this.typeFormat?this.typeFormat(t,this.labelKey,this.valueKey):this.showLabel&&t[this.labelKey]?t[this.labelKey]:t[this.valueKey]},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},He=Ke,Ve=Object(f["a"])(He,We,ze,!1,null,null,null),Ge=Ve.exports,Ye=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-input-number",{staticClass:"loquat-input-number",style:t.customizeStyle,attrs:{precision:t.precision,placeholder:t.placeholder,size:t.size,min:t.minRows,max:t.maxRows,step:t.step,clearable:!t.disabled&&t.clearable,"controls-position":t.controlsPosition,controls:t.controls,label:t.placeholder,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=t._n(e)},expression:"text"}})},Ze=[],Xe={name:"InputNumber",props:{value:{},controls:{type:Boolean,default:!0},step:{type:Number,default:1},controlsPosition:{type:String,default:"right"},precision:{type:Number},minRows:{type:Number,default:-1/0},maxRows:{type:Number,default:1/0},placeholder:{type:String,default:""},size:{type:String,default:""},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},customizeStyle:{type:Object}},data:function(){return{text:void 0}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleClick:function(t){mt(this,"click",t)},handleFocus:function(t){mt(this,"focus",t)},handleBlur:function(t){mt(this,"blur",t)},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},Qe=Xe,Je=Object(f["a"])(Qe,Ye,Ze,!1,null,null,null),ti=Je.exports,ei=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loquat-radio"},[i("el-radio-group",{style:t.customizeStyle,attrs:{size:t.size,disabled:t.disabled},on:{change:t.handleChange},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},t._l(t.dic,(function(e,n){return i(t.componentName,{key:n,tag:"component",style:t.inlineStyle,attrs:{label:e[t.valueKey],border:t.border,readonly:t.readonly,disabled:e[t.disabledKey]}},[t._v(t._s(t.showLabel?e[t.labelKey]:e[t.valueKey]))])})),1)],1)},ii=[],ni={name:"Radio",props:{value:{},size:{type:String,default:""},disabled:{type:Boolean,default:!1},button:{type:Boolean,default:!1},dic:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},props:{type:Object,default:function(){return Re["g"]}},inline:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},customizeStyle:{type:Object}},data:function(){return{name:"radio",text:void 0,propsDefault:Re["g"]}},computed:{componentName:function(){return"el-".concat(this.name).concat(this.button?"-button":"")},valueKey:function(){return this.props.value||this.propsDefault.value},disabledKey:function(){return this.props.disabled||this.propsDefault.disabled},labelKey:function(){return this.props.label||this.propsDefault.label},inlineStyle:function(){return this.inline?{display:"inline-block"}:{display:"block"}}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleClick:function(t){mt(this,"click",t)},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},ri=ni,oi=Object(f["a"])(ri,ei,ii,!1,null,null,null),si=oi.exports,ai=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loquat-checkbox"},[t.all?[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAll},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),i("div",{staticStyle:{margin:"5px 0"}})]:t._e(),i("el-checkbox-group",{style:t.customizeStyle,attrs:{disabled:t.disabled,size:t.size,min:t.min,max:t.max},on:{change:t.handleCheckChange},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}},t._l(t.dic,(function(e,n){return i(t.componentName,{key:n,tag:"component",style:t.inlineStyle,attrs:{label:e[t.valueKey],border:t.border,size:t.size,disabled:e[t.disabledKey]}},[t._v(t._s(t.showLabel?e[t.labelKey]:e[t.valueKey]))])})),1)],2)},li=[],ui=(i("d81d"),{name:"Checkbox",props:{value:{type:Array,default:function(){return[]}},all:{type:Boolean,default:!1},size:{type:String,default:""},disabled:{type:Boolean,default:!1},button:{type:Boolean,default:!1},dic:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1},props:{type:Object,default:function(){return Re["g"]}},inline:{type:Boolean,default:!1},min:{type:Number},max:{type:Number},showLabel:{type:Boolean,default:!0},customizeStyle:{type:Object}},data:function(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox",text:void 0,propsDefault:Re["g"]}},computed:{componentName:function(){return"el-".concat(this.name).concat(this.button?"-button":"")},valueKey:function(){return this.props.value||this.propsDefault.value},disabledKey:function(){return this.props.disabled||this.propsDefault.disabled},labelKey:function(){return this.props.label||this.propsDefault.label},inlineStyle:function(){return this.inline?{display:"inline-block"}:{display:"block"}}},watch:{dic:function(){this.handleCheckChange(this.text)},text:{handler:function(t){this.handleChange(t),this.handleCheckChange(t)},immediate:!0},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleClick:function(t){mt(this,"click",t)},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)},handleCheckAll:function(t){var e=this;this.all&&(this.text=t?this.dic.map((function(t){return t[e.valueKey]})):[],this.isIndeterminate=!1)},handleCheckChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.all){var e=t.length;if(0!==e){var i=this.dic.length;this.checkAll=e===i,this.isIndeterminate=e>0&&e1&&void 0!==arguments[1]?arguments[1]:{},r={width:200,height:200},o={text:"商用通用大水印",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1,left:0,top:0};return new Promise((function(s,a){var l=n.text,u=n.fontFamily,c=n.color,h=n.fontSize,d=n.opacity,f=n.bottom,p=n.right,m=n.ratio;function g(){o.text=l||o.text,o.fontFamily=u||o.fontFamily,o.color=c||o.color,o.fontSize=h||o.fontSize,o.opacity=d||o.opacity,o.bottom=f||o.bottom,o.right=p||o.right,o.ratio=m||o.ratio}function v(e){var n=new Image;n.src=e,n.onload=function(){var e=n.width,r=n.height;_(e,r),i.drawImage(n,0,0,e,r),b(e,r);var a=Object(M["c"])(document.getElementById("canvas").toDataURL(t.type,o.ratio),t.name);document.getElementById("canvas").remove(),s(Object.assign(a,t))}}function _(t,n){e=document.getElementById("canvas"),null===e&&(e=document.createElement("canvas"),e.id="canvas",e.className="loquat-canvas",document.body.appendChild(e)),i=e.getContext("2d"),e.width=t,e.height=n}function b(t,e){var n=o.text,r=y(n,t,e);i.font=r.fontSize+"px "+o.fontFamily,i.fillStyle=o.color,i.globalAlpha=o.opacity/100,i.fillText(n,r.x,r.y)}function y(t,e,n){var s,a,l=o.fontSize/r.width,u=l*e;a=o.bottom?r.height-o.bottom:o.top,s=o.right?r.width-o.right:o.left,i.font=o.fontSize+"px "+o.fontFamily;var c=Number(i.measureText(t).width);s-=c;var h=s/r.width,d=a/r.height;return s=h*e,a=d*n,{x:s,y:a,fontSize:u}}function w(t,e){var i=new FileReader;i.readAsDataURL(t),i.onload=function(t){e(t.target.result)}}g(),w(t,v)}))}var Yi,Zi=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShow?i("div",{staticClass:"image-preview"},[t.ops.modal?i("div",{staticClass:"image-preview__mask",on:{click:t.close}}):t._e(),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.close}},[i("i",{staticClass:"el-icon-circle-close"})]),t.isArrow?i("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(e){return t.handlePrev()}}},[i("i",{staticClass:"el-icon-arrow-left"})]):t._e(),t.isArrow?i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(e){return t.handleNext()}}},[i("i",{staticClass:"el-icon-arrow-right"})]):t._e(),i("div",{ref:"box",staticClass:"image-preview__box"},[i("el-carousel",{ref:"carousel",attrs:{"show-indicators":!1,"initial-index":t.index,"initial-swipe":t.index,interval:0,arrow:"never","indicator-position":"none"},on:{change:t.handleChange}},t._l(t.datas,(function(e,n){return i("el-carousel-item",{key:n,nativeOn:{click:function(e){if(e.target!==e.currentTarget)return null;t.ops.closeOnClickModal&&t.close()}}},[t._t("default"),t.typeList.img.test(e.url)||t.typeList.video.test(e.url)?i("img",t._b({ref:"item",refInFor:!0,style:[t.styleName,t.styleBoxName],attrs:{src:e.url,controls:"controls",ondragstart:"return false"},on:{mousedown:t.move}},"img",t.getIsVideo(e),!1)):i("div",{staticClass:"image-preview__file"},[i("a",{attrs:{href:e.url,target:"_blank"}},[i("i",{staticClass:"el-icon-document"}),i("p",[t._v(t._s(e.name))])])])],2)})),1)],1),i("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[i("div",{staticClass:"el-image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:t.subScale}}),i("i",{staticClass:"el-icon-zoom-in",on:{click:t.addScale}}),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){t.rotate=t.rotate-90}}}),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){t.rotate=t.rotate+90}}})])])]):t._e()},Xi=[],Qi=(i("b680"),{name:"ImagePreview",data:function(){return{typeList:Re["o"],left:0,top:0,scale:1,datas:[],rotate:0,loading:!1,isShow:!1,index:0,onClose:null}},computed:{styleBoxName:function(){return{marginLeft:Object(M["q"])(this.left),marginTop:Object(M["q"])(this.top)}},styleName:function(){return{transform:"scale(".concat(this.scale,") rotate(").concat(this.rotate,"deg)"),maxWidth:"100%",maxHeight:"100%"}},isArrow:function(){return 1!=this.imgLen},imgLen:function(){return this.imgList.length},imgList:function(){return this.datas.map((function(t){return t.url}))}},mounted:function(){document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)},methods:{handlePrev:function(){this.$refs.carousel.prev(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},handleNext:function(){this.$refs.carousel.next(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},stopItem:function(){this.left=0,this.top=0,this.$refs.item.forEach((function(t){t.pause&&t.pause()}))},getIsVideo:function(t){return this.typeList.video.test(t.url)||"video"==t.type?{is:"video"}:{}},subScale:function(){.2!=this.scale&&(this.scale=parseFloat((this.scale-.2).toFixed(2)))},addScale:function(){this.scale=parseFloat((this.scale+.2).toFixed(2))},handleChange:function(){this.scale=1,this.rotate=0},move:function(t){var e=this,i=t.clientX,n=t.clientY,r=2;document.onmousemove=function(t){var o=t.clientX-i,s=t.clientY-n;i=t.clientX,n=t.clientY,e.left=e.left+o*r,e.top=e.top+s*r},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}},close:function(){this.isShow=!1,"function"===typeof this.onClose&&this.onClose(this)},keydown:function(t){27===t.keyCode&&this.isShow&&this.close()}}}),Ji=Qi,tn=(i("b938"),Object(f["a"])(Ji,Zi,Xi,!1,null,"93dc244a",null)),en=tn.exports,nn=i("53ca");function rn(t){var e=Object.prototype.hasOwnProperty;return null!==t&&"object"===Object(nn["a"])(t)&&e.call(t,"componentOptions")}var on=[],sn=1,an=function(t){var e=t.extend(en),i=function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="imagePreview_"+sn++,s={datas:i,index:n,ops:Object.assign({closeOnClickModal:!1,modal:!0},r)},a=s.onClose;return Yi=new e({data:s}),s.onClose=function(){t.close(o,a)},Yi.id=o,rn(Yi.message)&&(Yi.$slots.default=[Yi.message],Yi.message=null),Yi.vm=Yi.$mount(),document.body.appendChild(Yi.vm.$el),Yi.vm.isShow=!0,Yi.dom=Yi.vm.$el,on.push(Yi),Yi.vm};return i.close=function(t,e){for(var i=0,n=on.length;ithis.fileSize)this.handleError("文件太大不符合");else{var o=function(){var t={},r=e.action,o=e.withCredentials,s=new FormData,a=Object.assign(e.headers,{"Content-Type":"multipart/form-data"}),l=function(n){for(var l in e.data)s.append(l,e.data[l]);var u=n||i;(function(){return s.append(e.fileName,u),e.isQiniuOss&&(s.append("token",e.dic),t=w["a"].qiniu,r=t.up,o=!1),Vi.a.post(r,s,{headers:a,withCredentials:o})})().then((function(t){var i=Object(M["f"])(t.data,e.resKey,"");"function"===typeof e.uploadAfter?e.uploadAfter(i,e.handleSuccess(i,u),(function(){e.loading=!1}),e.column):e.handleSuccess(i,u)})).catch((function(t){"function"===typeof e.uploadAfter?e.uploadAfter(t,e.handleError,(function(){e.loading=!1}),e.column):e.handleError(t)}))};"function"===typeof e.uploadBefore?e.uploadBefore(n,l,(function(){e.loading=!1}),e.column):l()};this.showCanvas&&-1!==i.type.indexOf("image")?Gi(i,this.canvasOption).then((function(t){i=t,o()})):o()}}else this.httpRequest(t)},handleSuccess:function(t,e){this.loading=!1;var i=this.handleExternalLinkUrl(t);if(this.isAvatarImg)this.files.splice(0,1,i);else if(this.getStringMode)this.files.push(i);else{var n;this.files.push((n={},Object(Ki["a"])(n,this.nameKey,e.name),Object(Ki["a"])(n,this.urlKey,i),n))}this.uploadSuccess&&this.uploadSuccess(t,e,this.fileList,this.column)},handleExceed:function(t,e){this.uploadExceed&&this.uploadExceed(this.limit,t,e,this.column)},handleError:function(t){this.loading=!1,this.uploadError&&this.uploadError(t,this.fileList,this.column)},handleAvatarRemove:function(t){var e=this;this.handleBeforeRemove(t,this.fileList).then((function(){e.text=[],e.menu=!1})).catch((function(){}))},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)},handleFileChange:function(t,e){e.splice(e.length-1,1)}}},cn=un,hn=Object(f["a"])(cn,zi,Ui,!1,null,null,null),dn=hn.exports,fn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-cascader",{style:t.customizeStyle,attrs:{options:t.dic,placeholder:t.placeholder,props:t.allProps,size:t.size,clearable:!t.disabled&&t.clearable,"show-all-levels":t.showAllLevels,filterable:t.filterable,separator:t.separator,disabled:t.disabled,"collapse-tags":t.tags},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(e){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.data,r=e.node;return[t.$scopedSlots.default?t._t("default",null,{data:n,node:r}):i("span",[t._v(t._s(n[t.labelKey]))])]}}],null,!0),model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})},pn=[],mn={name:"Cascader",props:{value:{},checkStrictly:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},showAllLevels:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},lazyLoad:Function,filterable:{type:Boolean,default:!1},expandTrigger:{type:String,default:"click"},separator:{type:String},dic:{type:Array,default:function(){return[]}},placeholder:{type:String,default:""},size:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},props:{type:Object,default:function(){return Re["g"]}},multiple:{type:Boolean,default:!1},customizeStyle:{type:Object}},data:function(){return{text:void 0,propsDefault:Re["g"]}},computed:{labelKey:function(){return this.props.label||this.propsDefault.label},valueKey:function(){return this.props.value||this.propsDefault.value},childrenKey:function(){return this.props.children||this.propsDefault.children},allProps:function(){var t=this;return{label:this.labelKey,value:this.valueKey,children:this.childrenKey,checkStrictly:this.checkStrictly,multiple:this.multiple,emitPath:this.emitPath,lazy:this.lazy,lazyLoad:function(e,i){var n=function(n){var r=function e(i,n,r){i.forEach((function(i){i[t.valueKey]==n?i[t.childrenKey]=r:i[t.childrenKey]&&e(i[t.childrenKey])}))};r(t.dic,e[t.valueKey],n),i(n)};t.lazyLoad&&t.lazyLoad(e,n)},expandTrigger:this.expandTrigger}}},watch:{text:{handler:function(t){this.handleChange(t)}},value:{handler:function(){this.initVal()}}},created:function(){this.initVal()},methods:{initVal:function(){this.text=this.value},handleFocus:function(t){mt(this,"focus",t)},handleBlur:function(t){mt(this,"blur",t)},handleClick:function(t){mt(this,"click",t)},handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}},gn=mn,vn=Object(f["a"])(gn,fn,pn,!1,null,null,null),_n=vn.exports,bn=i("1d81"),yn=[Pe["a"],Fe,qe["a"],Ge,ti,si,di,_i,Si,bt,Tt,Ri,Di,Wi,dn,_n,bn["a"]],wn={install:function(t){yn.forEach((function(e){var i=Object(M["l"])(e.name);e.name=Re["i"].concat(i),t.component(e.name,e)}))}},Mn=wn,xn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",{class:["form-designer",t.formId]},[i("el-main",{staticClass:"widget-form-main"},[i("el-container",[i("el-aside",{attrs:{width:t.leftWidth}},[i("div",{staticClass:"fields-list"},[t._l(t.fields,(function(e,n){return i("div",{key:n},[e.list.find((function(e){return t.includeFields.includes(e.type)}))?[i("div",{staticClass:"field-title"},[t._v(t._s(e.title))]),i("draggable",{attrs:{tag:"ul",list:e.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1},on:{start:function(i){return t.handleDraggableWidget(e.list,i)}}},[t._l(e.list,(function(e,n){return[t.includeFields.includes(e.type)?i("li",{key:n,staticClass:"field-label"},[i("a",{on:{click:function(i){return t.handleFieldClick(e)}}},[i("i",{staticClass:"icon iconfont",class:e.icon}),i("span",[t._v(t._s(e.title||e.label))])])]):t._e()]}))],2)]:t._e()],2)})),t.validateNull(t.getCustomFields)?t._e():t._l(t.getCustomFields,(function(e,n){return i("div",{key:n+t.fields.length},[i("div",{staticClass:"field-title"},[t._v(t._s(e.title))]),i("draggable",{attrs:{tag:"ul",list:e.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1},on:{start:function(i){return t.handleDraggableWidget(e.list,i)}}},[t._l(e.list,(function(e,n){return[i("li",{key:n,staticClass:"field-label"},[i("a",{on:{click:function(i){return t.handleFieldClick(e)}}},[i("i",{staticClass:"icon",class:e.icon}),i("span",[t._v(t._s(e.title||e.label))])])])]}))],2)],1)}))],2)]),i("el-container",{staticClass:"widget-container",attrs:{direction:"vertical"}},[i("el-header",{staticClass:"btn-bar"},[i("svg-icon",{staticClass:"bar-icon",attrs:{"icon-class":"homeIcon"}}),i("div",{staticClass:"btn-diviler"}),i("div",{staticClass:"btn-bar-plat"},[i("a",{class:{active:"pc"===t.adapter},on:{click:function(e){t.adapter="pc"}}},[i("i",{staticClass:"iconfont icon-pc"})]),i("a",{class:{active:"pad"===t.adapter},on:{click:function(e){t.adapter="pad"}}},[i("i",{staticClass:"iconfont icon-pad"})]),i("a",{class:{active:"mobile"===t.adapter},on:{click:function(e){t.adapter="mobile"}}},[i("i",{staticClass:"iconfont icon-mobile"})])]),i("div",{staticClass:"btn-diviler"}),t.undoRedo?i("div",{staticClass:"btn-bar-action"},[i("el-tooltip",{attrs:{effect:"dark",content:"撤销",placement:"bottom"}},[i("el-button",{attrs:{type:"text",size:"medium",icon:"iconfont icon-undo",disabled:0==t.historySteps.index},on:{click:t.handleWidgetFormUndo}})],1),i("el-tooltip",{attrs:{effect:"dark",content:"重做",placement:"bottom"}},[i("el-button",{attrs:{type:"text",size:"medium",icon:"iconfont icon-redo",disabled:t.historySteps.index==t.historySteps.steps.length-1},on:{click:t.handleWidgetFormRedo}})],1)],1):t._e(),t._t("toolbar-left"),t.toolbar.includes("import")?i("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:t.handleImportJson}},[t._v("导入JSON")]):t._e(),t.toolbar.includes("clear")?i("el-button",{staticClass:"danger",attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:t.handleClear}},[t._v("清空")]):t._e(),t.toolbar.includes("preview")?i("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:t.handlePreview}},[t._v("预览")]):t._e(),t.toolbar.includes("generate")?i("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-download"},on:{click:t.handleGenerateJson}},[t._v("生成JSON")]):t._e(),t._t("toolbar-right")],2),i("el-main",[i("widget-form",{ref:"widgetForm",attrs:{adapter:t.adapter},on:{change:function(e){return t.handleHistoryChange({widgetForm:t.widgetForm,widgetFormSelect:t.widgetFormSelect})}}})],1)],1),i("el-aside",{staticClass:"widget-config-container",attrs:{width:t.rightWidth}},[i("el-tabs",{attrs:{stretch:""},model:{value:t.configTab,callback:function(e){t.configTab=e},expression:"configTab"}},[i("el-tab-pane",{staticStyle:{padding:"0 10px"},attrs:{label:"字段属性",name:"widget"}},[i("widget-config",{attrs:{data:t.widgetFormSelect}})],1),i("el-tab-pane",{staticStyle:{padding:"0 10px"},attrs:{label:"表单属性",name:"form",lazy:""}},[i("form-config",{attrs:{data:t.widgetForm}})],1)],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"预览",visible:t.previewVisible,"close-on-click-modal":!1,"append-to-body":"",center:"",fullscreen:""},on:{"update:visible":function(e){t.previewVisible=e},close:function(e){t.widgetModels={}}}},[i("div",{class:["form-preview",t.adapter]},[t.previewVisible?i("plugin-form",{ref:"previewForm",attrs:{option:t.widgetFormPreview,disabled:t.previewDisableSwitch},on:{submit:t.handlePreviewGetData},model:{value:t.widgetModels,callback:function(e){t.widgetModels=e},expression:"widgetModels"}}):t._e()],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handlePreviewGetData}},[t._v("获取数据")]),i("el-button",{attrs:{size:"medium"},on:{click:t.handlePreviewFormReset}},[t._v("重置")]),i("el-button",{attrs:{size:"medium"},on:{click:function(e){t.previewDisableSwitch=!t.previewDisableSwitch}}},[t._v(" "+t._s(t.previewDisableSwitch?"启动编辑":"禁用编辑")+" ")]),i("el-button",{attrs:{size:"medium"},on:{click:function(e){t.previewVisible=!1}}},[t._v("关闭")])],1)]),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"导入JSON",visible:t.importJsonVisible,"close-on-click-modal":!1,width:"800px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.importJsonVisible=e}}},[i("el-alert",{attrs:{type:"info",title:"JSON格式如下,直接复制生成的json覆盖此处代码点击确定即可"}}),i("ace-editor",{staticStyle:{height:"400px"},attrs:{lang:"json",theme:"textmate"},model:{value:t.importJson,callback:function(e){t.importJson=e},expression:"importJson"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleImportJsonSubmit}},[t._v("确定")]),i("el-button",{attrs:{size:"medium"},on:{click:function(e){t.importJsonVisible=!1}}},[t._v("取消")])],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"生成JSON",visible:t.generateJsonVisible,"close-on-click-modal":!1,width:"800px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.generateJsonVisible=e}}},[i("ace-editor",{staticStyle:{height:"400px"},attrs:{lang:"json",theme:"textmate",readonly:!0},model:{value:t.generateJson,callback:function(e){t.generateJson=e},expression:"generateJson"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleExport}},[t._v("导出")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[i("el-form",{staticStyle:{padding:"0 20px"},attrs:{"label-suffix":":","label-width":"166px","label-position":"left"},model:{value:t.jsonOption,callback:function(e){t.jsonOption=e},expression:"jsonOption"}},[i("el-form-item",{attrs:{label:"缩进长度-空格数量"}},[i("el-slider",{attrs:{disabled:t.jsonOption.minify,"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:t.jsonOption.space,callback:function(e){t.$set(t.jsonOption,"space",e)},expression:"jsonOption.space"}})],1),i("el-form-item",{attrs:{label:"引号类型"}},[i("el-switch",{attrs:{"active-value":"single","inactive-value":"double","active-text":"单引号","inactive-text":"双引号"},model:{value:t.jsonOption.quoteType,callback:function(e){t.$set(t.jsonOption,"quoteType",e)},expression:"jsonOption.quoteType"}})],1),i("el-form-item",{attrs:{label:"移除key的引号"}},[i("el-switch",{model:{value:t.jsonOption.dropQuotesOnKeys,callback:function(e){t.$set(t.jsonOption,"dropQuotesOnKeys",e)},expression:"jsonOption.dropQuotesOnKeys"}})],1),i("el-form-item",{attrs:{label:"移除数字字符串的引号"}},[i("el-switch",{model:{value:t.jsonOption.dropQuotesOnNumbers,callback:function(e){t.$set(t.jsonOption,"dropQuotesOnNumbers",e)},expression:"jsonOption.dropQuotesOnNumbers"}})],1),i("el-form-item",{attrs:{label:"数组折叠"}},[i("el-switch",{attrs:{disabled:t.jsonOption.minify},model:{value:t.jsonOption.inlineShortArrays,callback:function(e){t.$set(t.jsonOption,"inlineShortArrays",e)},expression:"jsonOption.inlineShortArrays"}})],1),i("el-form-item",{attrs:{label:"数组折叠-深度"}},[i("el-slider",{attrs:{disabled:t.jsonOption.minify,"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:t.jsonOption.inlineShortArraysDepth,callback:function(e){t.$set(t.jsonOption,"inlineShortArraysDepth",e)},expression:"jsonOption.inlineShortArraysDepth"}})],1),i("el-form-item",{attrs:{label:"压缩json"}},[i("el-switch",{model:{value:t.jsonOption.minify,callback:function(e){t.$set(t.jsonOption,"minify",e)},expression:"jsonOption.minify"}})],1)],1),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{slot:"reference",size:"medium",type:"primary"},on:{click:t.handleCopy},slot:"reference"},[t._v("复制")])],1)],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"表单样式表",visible:t.styleSheetsVisible,"close-on-click-modal":!1,width:"900px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.styleSheetsVisible=e},open:function(e){t.styleSheets=t.widgetForm.styleSheets}}},[i("ace-editor",{staticStyle:{height:"450px"},attrs:{lang:"css",theme:"textmate"},model:{value:t.styleSheets,callback:function(e){t.styleSheets=e},expression:"styleSheets"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleStyleSheetsSubmit}},[t._v("确定")]),i("el-button",{attrs:{size:"medium"},on:{click:function(e){t.styleSheetsVisible=!1}}},[t._v("取消")])],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"动作设置",visible:t.actionSettingsVisible,"close-on-click-modal":!1,width:"1000px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.actionSettingsVisible=e},close:t.handleActionCancel}},[i("el-container",{staticStyle:{height:"600px",border:"1px solid rgb(238, 238, 238)"}},[i("el-container",{staticClass:"event-script-container"},[i("el-aside",{staticClass:"event-script-aside",staticStyle:{width:"320px"}},[i("el-container",[i("el-header",{staticStyle:{height:"40px"}},[i("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-plus"},on:{click:t.handleActionAdd}},[t._v("添加动作")])],1),i("el-main",[i("el-menu",{staticClass:"event-script-aside-menu",attrs:{"default-active":t.actionMenuActive}},[t._l(t.widgetForm.eventScript,(function(e){return i("el-menu-item",{key:e.key,attrs:{index:e.key,disabled:t.actionMenuItemDisabled},nativeOn:{click:function(i){return t.handleActionSelect(e.key)}}},[i("div",[i("span",{staticClass:"event-script-menu-i"},[t._v("Function")]),i("div",{staticClass:"event-script-menu-label"},[t._v(t._s(e.name))]),t.formCallbackHooks.includes(e.key)?t._e():i("div",{staticClass:"event-script-menu-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(i){return i.stopPropagation(),t.handleActionClone(e)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(i){return i.stopPropagation(),t.handleActionDelete(e)}}})])])])})),t.actionMenuItemDisabled?i("el-menu-item",{attrs:{index:t.actionForm.key}},[i("div",[i("span",{staticClass:"event-script-menu-i"},[t._v("Function")]),i("div",{staticClass:"event-script-menu-label"},[t._v(t._s(t.actionForm.name))]),i("div",{staticClass:"event-script-menu-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.handleActionClone(t.actionForm)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.handleActionDelete(t.actionForm)}}})])])]):t._e()],2)],1)],1)],1),i("el-main",{staticClass:"event-script-main"},[t.actionMainContainerVisible?i("el-container",[i("el-header",{staticStyle:{height:"40px"}},[i("div",{staticClass:"event-script-action"},[t.eventSelect?i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleActionConfirm}},[t._v("确定")]):t._e(),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleActionSave}},[t._v("保存")]),i("el-button",{attrs:{size:"mini"},on:{click:t.handleActionCancel}},[t._v("取消")])],1)]),i("el-main",[i("el-form",{ref:"actionForm",attrs:{model:t.actionForm,size:"small"}},[i("el-form-item",{attrs:{label:"Function Name",prop:"name",rules:[{required:!0,message:"函数名称不能为空"},{validator:t.handleActionFormNameValidate,trigger:"blur"}],"label-width":"130px"}},[i("el-input",{attrs:{disabled:t.formCallbackHooks.includes(t.actionForm.key)},model:{value:t.actionForm.name,callback:function(e){t.$set(t.actionForm,"name",e)},expression:"actionForm.name"}})],1),i("el-form-item",{attrs:{prop:"func","label-width":"0"}},[i("div",{staticClass:"code-line"},[t._v("Function () {")]),i("ace-editor",{staticStyle:{height:"380px",border:"1px solid #dcdfe6"},attrs:{lang:"javascript",theme:"textmate"},model:{value:t.actionForm.func,callback:function(e){t.$set(t.actionForm,"func",e)},expression:"actionForm.func"}}),i("div",{staticClass:"code-line"},[t._v("}")])],1)],1)],1)],1):t._e()],1)],1)],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"数据源设置",visible:t.dataSourceSettingsVisible,"close-on-click-modal":!1,width:"1000px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.dataSourceSettingsVisible=e},close:t.handleDataSourceCancel}},[i("el-container",{staticStyle:{height:"600px",border:"1px solid rgb(238, 238, 238)"}},[i("el-container",{staticClass:"data-source-container"},[i("el-aside",{staticClass:"data-source-aside",staticStyle:{width:"320px"}},[i("el-container",[i("el-header",{staticStyle:{height:"40px"}},[i("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-plus"},on:{click:t.handleDataSourceAdd}},[t._v("添加数据源")])],1),i("el-main",[i("el-menu",{staticClass:"data-source-aside-menu",attrs:{"default-active":t.dataSourceMenuActive}},[t._l(t.widgetForm.dataSource,(function(e){return i("el-menu-item",{key:e.key,attrs:{index:e.key,disabled:t.dataSourceMenuItemDisabled},nativeOn:{click:function(i){return t.handleDataSourceSelect(e.key)}}},[i("div",[i("span",{class:["data-source-menu-i",e.method]},[t._v(t._s(e.method))]),i("div",{staticClass:"data-source-menu-label"},[t._v(t._s(e.name))]),i("div",{staticClass:"data-source-menu-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(i){return i.stopPropagation(),t.handleDataSourceClone(e)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(i){return i.stopPropagation(),t.handleDataSourceDelete(e)}}})])])])})),t.dataSourceMenuItemDisabled?i("el-menu-item",{attrs:{index:t.dataSourceForm.key}},[i("div",[i("span",{class:["data-source-menu-i",t.dataSourceForm.method]},[t._v(t._s(t.dataSourceForm.method))]),i("div",{staticClass:"data-source-menu-label"},[t._v(t._s(t.dataSourceForm.name))]),i("div",{staticClass:"data-source-menu-action"},[i("i",{staticClass:"iconfont icon-clone",attrs:{title:"复制"},on:{click:function(e){return e.stopPropagation(),t.handleDataSourceClone(t.dataSourceForm)}}}),i("i",{staticClass:"iconfont icon-trash",attrs:{title:"删除"},on:{click:function(e){return e.stopPropagation(),t.handleDataSourceDelete(t.dataSourceForm)}}})])])]):t._e()],2)],1)],1)],1),i("el-main",{staticClass:"data-source-main"},[t.dataSourceMainContainerVisible?i("el-container",[i("el-header",{staticStyle:{height:"40px"}},[i("div",{staticClass:"data-source-action"},[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleDataSourceSave}},[t._v("保存")]),i("el-button",{attrs:{size:"mini"},on:{click:t.handleDataSourceRequestTest}},[t._v("请求测试")]),i("el-button",{attrs:{size:"mini"},on:{click:t.handleDataSourceCancel}},[t._v("取消")])],1)]),i("el-main",[i("el-form",{ref:"dataSourceForm",attrs:{model:t.dataSourceForm,size:"small","label-width":"79px"}},[i("el-form-item",{attrs:{label:"名称",prop:"name",rules:[{required:!0,message:"数据源名称不能为空"},{validator:t.handleDataSourceFormNameValidate,trigger:"blur"}]}},[i("el-input",{model:{value:t.dataSourceForm.name,callback:function(e){t.$set(t.dataSourceForm,"name",e)},expression:"dataSourceForm.name"}})],1),i("el-form-item",{attrs:{label:"请求地址",prop:"url",rules:[{required:!0,message:"请求地址不能为空"},{type:"url",message:"url格式不正确"}]}},[i("el-input",{attrs:{size:"small",type:"textarea",rows:1},model:{value:t.dataSourceForm.url,callback:function(e){t.$set(t.dataSourceForm,"url",e)},expression:"dataSourceForm.url"}})],1),i("el-form-item",{attrs:{label:"请求方法",prop:"method"}},[i("el-radio-group",{model:{value:t.dataSourceForm.method,callback:function(e){t.$set(t.dataSourceForm,"method",e)},expression:"dataSourceForm.method"}},[i("el-radio-button",{attrs:{label:"GET"}},[t._v("GET")]),i("el-radio-button",{attrs:{label:"POST"}},[t._v("POST")]),i("el-radio-button",{attrs:{label:"PUT"}},[t._v("PUT")]),i("el-radio-button",{attrs:{label:"DELETE"}},[t._v("DELETE")])],1)],1),i("el-form-item",{attrs:{label:"请求头部",prop:"headers"}},[i("div",{staticClass:"array-dynamic-container"},[t._l(t.dataSourceForm.headers,(function(e,n){return i("div",{key:n,staticClass:"array-dynamic-item"},[i("el-input",{attrs:{size:"small",clearable:"",type:"textarea",rows:1,placeholder:"KEY"},model:{value:e.key,callback:function(i){t.$set(e,"key",i)},expression:"item.key"}}),i("el-input",{attrs:{size:"small",clearable:"",type:"textarea",rows:1,placeholder:"VALUE"},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),i("el-button",{attrs:{circle:"",plain:"",type:"danger",size:"small",icon:"el-icon-minus"},on:{click:function(e){return t.dataSourceForm.headers.splice(n,1)}}})],1)})),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.dataSourceForm.headers.push({})}}},[t._v("添加")])],2)]),i("el-form-item",{attrs:{label:"请求参数",prop:"params"}},[i("div",{staticClass:"array-dynamic-container"},[t._l(t.dataSourceForm.params,(function(e,n){return i("div",{key:n,staticClass:"array-dynamic-item"},[i("el-input",{attrs:{size:"small",type:"textarea",rows:1,placeholder:"KEY"},model:{value:e.key,callback:function(i){t.$set(e,"key",i)},expression:"item.key"}}),i("el-input",{attrs:{size:"small",type:"textarea",rows:1,placeholder:"VALUE"},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"item.value"}}),i("el-button",{attrs:{circle:"",plain:"",type:"danger",size:"small",icon:"el-icon-minus"},on:{click:function(e){return t.dataSourceForm.params.splice(n,1)}}})],1)})),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.dataSourceForm.params.push({})}}},[t._v("添加")])],2)]),i("el-form-item",{attrs:{label:"是否使用第三方axios",prop:"thirdPartyAxios","label-width":"155px"}},[i("el-switch",{model:{value:t.dataSourceForm.thirdPartyAxios,callback:function(e){t.$set(t.dataSourceForm,"thirdPartyAxios",e)},expression:"dataSourceForm.thirdPartyAxios"}})],1),i("el-form-item",{attrs:{label:"是否表单初始化发送请求",prop:"auto","label-width":"175px"}},[i("el-switch",{model:{value:t.dataSourceForm.auto,callback:function(e){t.$set(t.dataSourceForm,"auto",e)},expression:"dataSourceForm.auto"}})],1),i("el-form-item",{attrs:{label:"数据处理"}},[i("el-collapse",{attrs:{value:["requestFunc","responseFunc","errorFunc"]}},[i("el-collapse-item",{attrs:{name:"requestFunc",title:"请求发送前:"}},[i("div",{staticClass:"code-desc"},[t._v("// config: 发出请求的可用配置选项;")]),i("div",{staticClass:"code-desc"},[t._v("// 通过 config.url 可以更改请求地址,通过 config.headers 可以更改请求头部")]),i("div",{staticClass:"code-desc"},[t._v("// 通过 config.data 可以更改发送的数据,(GET 请求不适用,需要更改 config.params)")]),i("div",{staticClass:"code-line"},[t._v("(config) => {")]),i("ace-editor",{ref:"requestFuncAce",staticStyle:{height:"148px",border:"1px solid #dcdfe6"},attrs:{lang:"javascript",readonly:t.dataSourceForm.thirdPartyAxios,theme:"textmate"},model:{value:t.dataSourceForm.requestFunc,callback:function(e){t.$set(t.dataSourceForm,"requestFunc",e)},expression:"dataSourceForm.requestFunc"}}),i("div",{staticClass:"code-line"},[t._v("}")])],1),i("el-collapse-item",{attrs:{name:"responseFunc",title:"请求返回响应数据时:"}},[i("div",{staticClass:"code-desc"},[t._v("// 默认直接返回响应数据 res,可以在下方对数据进行处理")]),i("div",{staticClass:"code-line"},[t._v("(res) => {")]),i("ace-editor",{staticStyle:{height:"148px",border:"1px solid #dcdfe6"},attrs:{lang:"javascript",theme:"textmate"},model:{value:t.dataSourceForm.responseFunc,callback:function(e){t.$set(t.dataSourceForm,"responseFunc",e)},expression:"dataSourceForm.responseFunc"}}),i("div",{staticClass:"code-line"},[t._v("}")])],1),i("el-collapse-item",{attrs:{name:"errorFunc",title:"请求发生错误时:"}},[i("div",{staticClass:"code-line"},[t._v("(error) => {")]),i("ace-editor",{staticStyle:{height:"148px",border:"1px solid #dcdfe6"},attrs:{lang:"javascript",theme:"textmate"},model:{value:t.dataSourceForm.errorFunc,callback:function(e){t.$set(t.dataSourceForm,"errorFunc",e)},expression:"dataSourceForm.errorFunc"}}),i("div",{staticClass:"code-line"},[t._v("}")])],1)],1)],1)],1)],1)],1):t._e()],1)],1)],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"选项",visible:t.cascadeOptionVisible,"close-on-click-modal":!1,width:"800px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.cascadeOptionVisible=e}}},[i("ace-editor",{staticStyle:{height:"400px"},attrs:{lang:"json",theme:"textmate"},model:{value:t.cascadeOption,callback:function(e){t.cascadeOption=e},expression:"cascadeOption"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleCascadeOptionSubmit}},[t._v("确定")]),i("el-button",{attrs:{size:"medium"},on:{click:function(e){t.cascadeOptionVisible=!1}}},[t._v("取消")])],1)],1),i("el-dialog",{staticClass:"loquat-dialog",attrs:{title:"子表单默认值",visible:t.childFormModelVisible,"close-on-click-modal":!1,width:"800px","append-to-body":"",top:"3vh",center:""},on:{"update:visible":function(e){t.childFormModelVisible=e}}},[i("plugin-child-form",t._b({model:{value:t.plugin.value,callback:function(e){t.$set(t.plugin,"value",e)},expression:"plugin.value"}},"plugin-child-form",t.plugin,!1))],1)],1)],1)],1)},Sn=[],kn=i("1ef5"),Cn=kn["a"],En=(i("1115"),Object(f["a"])(Cn,xn,Sn,!1,null,null,null)),An=En.exports,On=i("162b"),Rn=function(t){t.directive(Re["i"].concat("has-perm"),On["a"])},Tn=Rn,Ln=i("c282"),$n=(i("9b74"),i("dfb0"),i("a630")),Pn={jsonBeautify:$n["a"]},In=$n["a"];function Dn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(Ln["d"])(e),t.use($e),t.use(Mn),t.use(Tn),t.component(Re["i"].concat(Object(M["l"])(An.name)),An)}var Bn=n;e["default"]=Bn},fb6a:function(t,e,i){"use strict";var n=i("23e7"),r=i("861d"),o=i("e8b5"),s=i("23cb"),a=i("50c4"),l=i("fc6a"),u=i("8418"),c=i("b622"),h=i("1dde"),d=h("slice"),f=c("species"),p=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var i,n,c,h=l(this),d=a(h.length),g=s(t,d),v=s(void 0===e?d:e,d);if(o(h)&&(i=h.constructor,"function"!=typeof i||i!==Array&&!o(i.prototype)?r(i)&&(i=i[f],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i))return p.call(h,g,v);for(n=new(void 0===i?Array:i)(m(v-g,0)),c=0;g0;return c(t,s,a,(function(t){n||(n=t),t&&o.forEach(h),s||(o.forEach(h),r(n))}))}));return e.reduce(d)}t.exports=p},fc6a:function(t,e,i){var n=i("44ad"),r=i("1d80");t.exports=function(t){return n(r(t))}},fce3:function(t,e,i){var n=i("d039");t.exports=n((function(){var t=RegExp(".","string".charAt(0));return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},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